/* ══════════════════════════════════════════════════════
   layout.css – App shell, sidebar desktop, tabs mobile,
                contenu principal
   ══════════════════════════════════════════════════════ */

/* ── App shell ─────────────────────────────────────── */
.app-shell {
  display: flex;
  min-height: calc(100vh - var(--header-h));
}

/* ── Sidebar (desktop) ──────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 1.2rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sidebar-section {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.6rem 0.7rem 0.3rem;
  margin-top: 0.5rem;
}
.sidebar-section:first-child {
  margin-top: 0;
}
.snav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-sm);
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-sub);
  width: 100%;
  text-align: left;
  transition: all 0.2s;
}
.snav:hover {
  background: var(--gray-lt);
  color: var(--text);
}
.snav.on {
  background: var(--pink-lt);
  color: var(--pink);
  font-weight: 800;
}
.snav-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-lt);
  transition: background 0.2s;
}
.snav-ico svg {
  width: 16px;
  height: 16px;
}
.snav.on .snav-ico {
  background: rgba(231, 39, 117, 0.2);
  color: var(--pink);
}
.snav:hover .snav-ico {
  background: var(--border);
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--r-sm);
  color: var(--gray);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
}
.sidebar-footer a:hover {
  background: var(--pink-lt);
  color: var(--pink);
}
.sidebar-footer a svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.sidebar-footer-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--r-sm);
  color: var(--gray);
  font-size: 0.82rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.2s;
}
.sidebar-footer-btn:hover {
  background: var(--pink-lt);
  color: var(--pink);
}
.sidebar-footer-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* ── Contenu principal ──────────────────────────────── */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 1.5rem 2rem;
  max-width: 920px;
  margin: 0 auto;
}

/* ── Tabs (mobile seulement) ────────────────────────── */
.tabs {
  display: none;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 199;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  flex: 1;
  min-width: 60px;
  padding: 0.65rem 0.3rem;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font);
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--gray);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.ti {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ti svg {
  width: 15px;
  height: 15px;
}
.tab.on {
  color: var(--pink);
  border-bottom-color: var(--pink);
}
.tab.on .ti {
  background: var(--pink-lt);
  color: var(--pink);
}
.tab:hover {
  color: var(--pink);
}
.tab:hover .ti {
  background: var(--pink-xlt);
  color: var(--pink);
}
