/* ══════════════════════════════════════════════════════════════
   STRUCTURE, NAVIGATION & ÉCRANS (LIGHT THEME)
══════════════════════════════════════════════════════════════ */

.sc {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
  padding-top: var(--sat);
}
.sc.on {
  display: flex;
}

.scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(16px + var(--sab));
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.scroll::-webkit-scrollbar {
  width: 6px;
}
.scroll::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 4px;
}
.scroll::-webkit-scrollbar-track {
  background: transparent;
}
.scroll-nav {
  padding-bottom: calc(var(--nav-h) + var(--sab) + 16px);
}

/* ═══ BARRE SUPÉRIEURE (TOPBAR) ═══ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 11px;
  flex-shrink: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.topbar-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: .8px;
}

/* ═══ BARRE DE NAVIGATION INFÉRIEURE (BOTTOM NAV) ═══ */
.bnav {
  display: flex;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding-bottom: var(--sab);
  height: calc(var(--nav-h) + var(--sab));
  flex-shrink: 0;
  box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.04);
}
.bni {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  cursor: pointer;
  transition: transform .1s ease, color .15s ease;
  position: relative;
  user-select: none;
}
.bni:active {
  transform: scale(.93);
}
.bni-ico {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}
.bni-lbl {
  font-size: 11px;
  color: var(--sub);
  font-weight: 600;
  letter-spacing: .2px;
}
.bni.on .bni-lbl {
  color: var(--red);
  font-weight: 700;
}
.bni.on::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--red);
  border-radius: 0 0 4px 4px;
}

/* ═══ ÉCRAN DE CONNEXION (LOGIN SCREEN) ═══ */
#sc-login {
  background: radial-gradient(circle at 50% 20%, #ffffff 0%, var(--bg) 100%);
  display: none;
  align-items: center;
  justify-content: center;
}
#sc-login.on {
  display: flex;
}
.login-logo {
  text-align: center;
  padding: 40px 20px 16px;
  flex-shrink: 0;
}
.login-logo img {
  filter: drop-shadow(0 4px 12px rgba(225, 29, 72, .15));
}
.login-fields {
  padding: 28px 24px;
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
}
