/* Navigation : bouton de thème, barre du bas sur téléphone, page Ma journée, onglet Statistiques */
.theme-btn { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 0; font: inherit; font-size: 0.75rem; }
.theme-btn:hover { color: var(--ink); }
.bottombar, .bb-sheet, .bb-sheet-bg { display: none; }
@media (max-width: 900px) {
  .bottombar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--panel); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .bb-item { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: none; color: var(--ink-3); text-decoration: none; font: inherit; font-size: 0.68rem; font-weight: 600; cursor: pointer; padding: 4px 0; }
  .bb-item.on { color: var(--accent); }
  .bb-ic { position: relative; font-size: 1.15rem; line-height: 1.2; }
  .bb-ic i { position: absolute; top: -4px; right: -12px; font-style: normal; font-size: 0.6rem; background: var(--bad); color: #fff; border-radius: 999px; padding: 0 5px; }
  .bb-sheet-bg { display: block; position: fixed; inset: 0; z-index: 28; background: rgba(11, 11, 15, .35); }
  .bb-sheet { display: flex; flex-direction: column; position: fixed; left: 10px; right: 10px; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 29; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.4); }
  .bb-sheet a, .bb-sheet .theme-btn { padding: 12px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; text-align: left; }
  .bb-sheet a.on { background: var(--accent-soft); color: var(--accent); }
  .main { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
}
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-3 .bar { margin: 4px 0; }
.jr-main { align-items: start; }
.jr-events { display: flex; flex-direction: column; gap: 8px; }
.jr-ev { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; background: var(--bg-soft); border-left: 3px solid var(--accent); }
.jr-ev.is-past { opacity: .55; border-left-color: var(--line); }
.jr-ev.is-now { background: var(--accent-soft); }
.jr-time { font-size: 0.82rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.jr-title { font-weight: 600; overflow-wrap: break-word; }
.jr-dash { margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.jr-dash .head h2 { font-size: 1.2rem; margin: 0; }
.stats-seg { margin-bottom: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .jr-ev { grid-template-columns: 1fr; gap: 4px; } }
