:root {
  --primary: #f97316; --bg: #fff7ed; --card: #fff;
  --text: #1e293b; --muted: #64748b; --border: #e2e8f0;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); }
.topbar { background: #7c2d12; color: #fff; padding: 14px 20px;
  display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 100; }
.topbar h1 { font-size: 1rem; font-weight: 700; }
.topbar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff;
  border-top: 1px solid var(--border); display: flex; z-index: 100; }
.nav-btn { flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 3px; padding: 10px 4px; border: none; background: none; cursor: pointer;
  color: var(--muted); font-size: .65rem; font-weight: 600; transition: color .15s; }
.nav-btn i { font-size: 1.1rem; }
.nav-btn.active { color: var(--primary); }
.content { padding: 16px 16px 80px; }
.card { background: var(--card); border-radius: 16px; border: 1px solid var(--border);
  padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.badge { display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 99px; font-size: .72rem; font-weight: 600; }
.badge-present { background: #d1fae5; color: #065f46; }
.badge-absent  { background: #fee2e2; color: #991b1b; }
.badge-retard  { background: #fef3c7; color: #92400e; }
.badge-blue    { background: #dbeafe; color: #1e40af; }
.taux-bar { height: 8px; border-radius: 4px; background: #e2e8f0; overflow: hidden; }
.taux-fill { height: 100%; border-radius: 4px; transition: width .6s; }
.stat-box { background: #fff; border-radius: 14px; border: 1px solid var(--border);
  padding: 14px; text-align: center; }
.stat-val { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-lbl { font-size: .72rem; color: var(--muted); margin-top: 4px; }
@media (min-width: 640px) { .content { max-width: 600px; margin: 0 auto; } }
