/* Menu latéral et zone d'écran de la tablette */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  background: var(--panel);
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav:hover { background: var(--panel-2); color: var(--text); }
.nav[aria-current="page"] { background: var(--red-soft); color: var(--text); box-shadow: inset 3px 0 0 var(--red); }
.nav__count {
  margin-left: auto;
  font-size: 0.75rem;
  background: var(--panel-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 1px 8px;
}
.nav__count:empty { display: none; }
.nav__count--alert { background: var(--red); color: #fff; }
.sidebar__foot { margin-top: auto; display: flex; gap: 14px; padding: 12px; border-top: 1px solid var(--line); }

.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}
.link:hover { color: var(--text); }

/* Écran */
.screen { overflow-y: auto; padding: 28px; }
.view { display: flex; flex-direction: column; gap: 20px; }
.view[hidden] { display: none; }
.view:not([hidden]) { animation: view-in 0.32s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes view-in { from { opacity: 0.35; transform: translateY(6px); } }
.view__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.view__head h2 { margin: 0; font-family: var(--head); font-weight: 700; font-size: 2.125rem; line-height: 1; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card--flush { padding: 0; overflow-x: auto; }
.card__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.card__head h2 { margin: 0; font-family: var(--head); font-weight: 700; font-size: 1.4375rem; }
.label { margin: 0; color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
