/* ============================================
   TimbrApp — Mobile-First Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Syne:wght@400;600;800&display=swap');

/* ---- TOKENS ---- */
:root {
  --bg:        #0f1117;
  --bg2:       #161920;
  --bg3:       #1e2130;
  --border:    #2a2f42;
  --text:      #e8eaf0;
  --muted:     #6b7280;
  --accent:    #00e5a0;
  --accent-bg: rgba(0,229,160,.12);
  --accent-br: rgba(0,229,160,.3);
  --red:       #ff4d6a;
  --red-bg:    rgba(255,77,106,.12);
  --orange:    #ff9f43;
  --blue:      #4da6ff;
  --r:         14px;
  --r-sm:      10px;
  --nav-h:     64px;
  --top-h:     52px;
  --tap:       48px;
  --mono:      'Space Mono', monospace;
  --sans:      'Syne', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-tap-highlight-color: transparent; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ---- LAYOUT ---- */
.app-shell {
  display: flex; flex-direction: column;
  min-height: 100vh; max-width: 480px; margin: 0 auto;
}
.main-content {
  flex: 1;
  padding: 14px 14px calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 14px);
  display: flex; flex-direction: column; gap: 12px;
}

/* ---- TOPBAR ---- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--top-h);
  background: var(--bg); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
}
.topbar-left  { display: flex; align-items: center; gap: 8px; }
.topbar-logo  { font-size: 20px; }
.topbar-title { font-weight: 800; font-size: 17px; letter-spacing: -.3px; }
.topbar-right { display: flex; align-items: center; gap: 4px; }
.topbar-user  { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-right: 4px; }
.topbar-link, .topbar-back {
  width: var(--tap); height: var(--tap);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--muted);
  border-radius: 8px; transition: color .15s, background .15s;
}
.topbar-link:hover, .topbar-back:hover { color: var(--text); background: var(--bg3); }

/* ---- BOTTOM NAV ---- */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg); border-top: 1px solid var(--border);
  display: flex; align-items: center; z-index: 100;
}
.nav-item {
  flex: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px;
  transition: color .15s; padding-bottom: 4px;
}
.nav-item.active { color: var(--accent); }
.nav-icon { font-size: 22px; line-height: 1; }

/* ---- SECTION TITLES ---- */
.section-title {
  font-size: 11px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: 1px;
}
.section-header { display: flex; align-items: center; justify-content: space-between; }
.section-link   { font-size: 13px; color: var(--accent); font-weight: 600; }

/* ============================================
   HOMEPAGE
   ============================================ */
.hero-section {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative; overflow: hidden;
}
.hero-section::after {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(0,229,160,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-date { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.live-clock { font-family: var(--mono); font-size: 44px; font-weight: 700; letter-spacing: -2px; line-height: 1; }

.status-badge { font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 20px; letter-spacing: .5px; }
.status-absent  { background: rgba(107,114,128,.12); color: var(--muted); }
.status-present { background: var(--accent-bg); color: var(--accent); }
.status-pause   { background: rgba(255,159,67,.12); color: var(--orange); }
.status-termine { background: rgba(77,166,255,.12); color: var(--blue); }

.today-times { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.time-tag { font-family: var(--mono); font-size: 12px; background: var(--bg3); border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; color: var(--muted); }
.time-tag.accent { color: var(--accent); border-color: var(--accent-br); }

.actions-section { display: flex; flex-direction: column; gap: 10px; }
.btn-action {
  width: 100%; min-height: 58px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: var(--r); border: none;
  font-family: var(--sans); font-size: 17px; font-weight: 700;
  transition: transform .1s, filter .15s;
}
.btn-action:active { transform: scale(.97); }
.btn-icon { font-size: 18px; }
.btn-arrivee { background: var(--accent); color: #0a1a14; }
.btn-arrivee:hover { filter: brightness(1.07); }
.btn-pause   { background: var(--bg3); color: var(--orange); border: 1.5px solid rgba(255,159,67,.35); }
.btn-depart  { background: var(--bg3); color: var(--red);    border: 1.5px solid rgba(255,77,106,.35); }
.btn-rouvrir { background: var(--bg3); color: var(--muted);  border: 1.5px solid var(--border); font-size: 15px; min-height: 50px; }

.pause-info { text-align: center; font-family: var(--mono); font-size: 13px; color: var(--orange); padding: 4px 0; }
.done-msg {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px 16px; font-size: 15px; color: var(--muted);
}
.done-icon { font-size: 22px; color: var(--blue); }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; }
.stat-card-over { border-color: var(--accent-br); background: rgba(0,229,160,.04); }
.stat-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 6px; }
.stat-value { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 10px; }
.stat-bar-wrap { height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; margin-bottom: 5px; }
.stat-bar { height: 100%; background: var(--accent); border-radius: 2px; transition: width .6s; }
.stat-sub { font-family: var(--mono); font-size: 10px; color: var(--muted); }

.history-list { display: flex; flex-direction: column; gap: 3px; }
.history-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 13px; background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-sm); font-family: var(--mono); font-size: 13px; min-height: var(--tap);
}
.history-date { color: var(--muted); min-width: 36px; }
.history-times { flex: 1; }
.history-duree { color: var(--accent); }

/* ============================================
   LOGIN
   ============================================ */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login-wrap { width: 100%; max-width: 380px; }
.login-brand { text-align: center; margin-bottom: 36px; }
.brand-icon { font-size: 44px; margin-bottom: 8px; }
.brand-name { font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.brand-sub  { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.login-form { display: flex; flex-direction: column; gap: 14px; }

/* ============================================
   FORMS
   ============================================ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.field input,
.field select,
.field textarea {
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); color: var(--text);
  font-family: var(--mono); font-size: 16px;
  padding: 13px 14px; width: 100%; min-height: var(--tap);
  transition: border-color .15s; -webkit-appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 72px; font-size: 14px; }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 20px; height: var(--tap); border-radius: var(--r-sm); border: none;
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  transition: filter .15s, transform .1s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #0a1a14; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger  { background: var(--red); color: #fff; }
.btn-block   { width: 100%; }

.btn-sm {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; height: 42px; min-width: 42px;
  border-radius: var(--r-sm); border: 1.5px solid var(--border);
  background: var(--bg3); color: var(--text);
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  transition: all .15s; white-space: nowrap;
}
.btn-sm:active { transform: scale(.96); }
.btn-primary-sm { background: var(--accent); color: #0a1a14; border-color: var(--accent); }
.btn-danger-sm  { background: var(--red-bg); color: var(--red); border-color: rgba(255,77,106,.35); }

/* ============================================
   ALERTS
   ============================================ */
.alert { padding: 13px 16px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; }
.alert-success { background: var(--accent-bg); border: 1px solid var(--accent-br); color: var(--accent); }
.alert-error   { background: var(--red-bg);    border: 1px solid rgba(255,77,106,.35); color: var(--red); }

.flash-bar {
  position: fixed; top: var(--top-h); left: 0; right: 0;
  padding: 13px 20px; font-size: 14px; font-weight: 600; text-align: center; z-index: 200;
  animation: slideDown .25s ease, fadeOut .4s ease 2.5s forwards;
}
.flash-success { background: var(--accent); color: #0a1a14; }
.flash-error   { background: var(--red); color: #fff; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes fadeOut   { to { opacity: 0; pointer-events: none; } }

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-block; font-family: var(--mono); font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 20px; letter-spacing: .3px; white-space: nowrap;
}
.badge-ok      { background: var(--accent-bg); color: var(--accent); }
.badge-off     { background: rgba(107,114,128,.12); color: var(--muted); }
.badge-admin   { background: rgba(77,166,255,.15); color: var(--blue); }
.badge-user    { background: rgba(107,114,128,.1);  color: var(--muted); }
.badge-edit    { background: var(--accent-bg); color: var(--accent); }
.badge-noedit  { background: var(--red-bg); color: var(--red); }
.badge-neutral { background: var(--bg3); color: var(--muted); }

/* ============================================
   RECAP
   ============================================ */
.toggle-group {
  display: flex; background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); padding: 3px; gap: 3px;
}
.toggle-btn {
  flex: 1; height: 40px; border-radius: 8px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  border: none; background: transparent; font-family: var(--sans); transition: all .2s;
}
.toggle-btn.active { background: var(--accent); color: #0a1a14; }

.period-nav {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg2); border: 1.5px solid var(--border); border-radius: var(--r-sm);
}
.period-arrow {
  width: var(--tap); height: var(--tap);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--muted);
}
.period-label { font-family: var(--mono); font-size: 13px; text-align: center; flex: 1; }

.total-card {
  background: var(--bg2); border: 1.5px solid var(--accent-br);
  border-radius: var(--r); padding: 18px 16px; text-align: center;
}
.total-value { font-family: var(--mono); font-size: 44px; font-weight: 700; color: var(--accent); line-height: 1; }
.total-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

.objectif-bar-wrap { margin-top: 12px; }
.objectif-bar-track { height: 5px; background: var(--bg3); border-radius: 3px; overflow: hidden; margin-bottom: 5px; }
.objectif-bar-fill  { height: 100%; border-radius: 3px; transition: width .6s; }
.objectif-label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--muted); }

.recap-list { display: flex; flex-direction: column; gap: 3px; }
.recap-row-link {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 13px; min-height: var(--tap);
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); transition: border-color .15s;
}
.recap-row-link:hover { border-color: var(--accent); }
.recap-day  { display: flex; flex-direction: column; min-width: 38px; }
.recap-dow  { font-size: 10px; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; }
.recap-date { font-family: var(--mono); font-size: 13px; font-weight: 700; }
.recap-times { flex: 1; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.recap-sep  { margin: 0 3px; }
.recap-note-dot { color: var(--orange); font-size: 12px; margin-left: 4px; }
.recap-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.recap-net  { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--accent); }
.recap-pause { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.recap-edit-icon { color: var(--muted); font-size: 16px; margin-left: 6px; flex-shrink: 0; }

.export-links { display: flex; gap: 8px; }
.export-links .btn { flex: 1; font-size: 13px; padding: 0 8px; }

/* Calendar */
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-head { text-align: center; font-family: var(--mono); font-size: 9px; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 3px 0; }
.cal-cell { aspect-ratio: 1; background: var(--bg2); border: 1.5px solid var(--border); border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px; }
.cal-cell.cal-worked { background: rgba(0,229,160,.07); border-color: rgba(0,229,160,.25); cursor: pointer; }
.cal-cell.cal-worked:hover { border-color: var(--accent); }
.cal-cell.cal-today { border-color: var(--accent) !important; box-shadow: 0 0 0 1px var(--accent); }
.cal-cell.cal-we    { opacity: .4; }
.cal-cell.cal-empty { background: transparent; border-color: transparent; }
.cal-day-num { font-family: var(--mono); font-size: 11px; font-weight: 700; line-height: 1; }
.cal-day-dur { font-family: var(--mono); font-size: 8px; color: var(--accent); line-height: 1; }
.cal-dot     { font-size: 7px; }

/* ============================================
   EDIT PAGE
   ============================================ */
.edit-date-label { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: 1px; }
.edit-duree-info { font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--bg3); padding: 10px 14px; border-radius: var(--r-sm); }
.edit-duree-info strong { color: var(--accent); }
.pause-edit-row { display: flex; gap: 8px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.pause-edit-row:last-of-type { border-bottom: none; }
.pause-edit-form { flex: 1; }
.pause-edit-actions { margin-top: 8px; }
.add-pause-details { margin-top: 4px; }
.add-pause-details summary { font-size: 14px; font-weight: 700; color: var(--accent); cursor: pointer; min-height: var(--tap); display: flex; align-items: center; list-style: none; }
.add-pause-details summary::-webkit-details-marker { display: none; }
.danger-zone { border-color: rgba(255,77,106,.2); }

/* ============================================
   ADMIN
   ============================================ */
.card-section { background: var(--bg2); border: 1.5px solid var(--border); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.admin-form { display: flex; flex-direction: column; gap: 12px; }
.admin-user-card { border: 1.5px solid var(--border); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.admin-user-card.user-inactive { opacity: .4; }
.admin-user-header { display: flex; gap: 12px; align-items: flex-start; }
.admin-user-avatar { width: 44px; height: 44px; flex-shrink: 0; background: var(--bg3); border: 1.5px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--muted); }
.admin-user-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.admin-user-name  { font-size: 15px; font-weight: 700; }
.admin-user-email { font-family: var(--mono); font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.admin-actions-row { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-admin-action { flex: 1; min-width: 0; height: 44px; padding: 0 10px; border-radius: var(--r-sm); border: 1.5px solid var(--border); background: var(--bg3); color: var(--text); font-family: var(--sans); font-size: 12px; font-weight: 700; text-align: center; transition: all .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-action-ok      { color: var(--accent); border-color: var(--accent-br); }
.btn-action-warn    { color: var(--orange); border-color: rgba(255,159,67,.3); }
.btn-action-danger  { color: var(--red);    border-color: rgba(255,77,106,.3); }
.btn-action-neutral { color: var(--muted); }

/* ============================================
   PROFIL
   ============================================ */
.profil-avatar { text-align: center; padding: 16px 0 8px; }
.avatar-circle { width: 72px; height: 72px; background: var(--accent-bg); border: 2px solid var(--accent); border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--accent); }
.avatar-name { font-size: 20px; font-weight: 800; }
.avatar-role { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ============================================
   OBJECTIFS
   ============================================ */
.obj-hebdo-section { background: var(--bg2); border: 1.5px solid var(--border); border-radius: var(--r); padding: 16px; }
.obj-hebdo-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 14px; }

.obj-stepper { display: flex; align-items: stretch; background: var(--bg3); border: 1.5px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.obj-step-btn { width: 64px; flex-shrink: 0; font-size: 28px; font-weight: 300; line-height: 1; background: transparent; border: none; color: var(--text); display: flex; align-items: center; justify-content: center; min-height: 72px; transition: background .15s; }
.obj-step-btn:hover  { background: var(--border); }
.obj-step-btn:active { background: var(--accent-bg); color: var(--accent); }
.obj-stepper-display { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border); padding: 12px 0; }
.obj-stepper-val  { font-family: var(--mono); font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1; }
.obj-stepper-unit { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 3px; }

.obj-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.obj-preset  { flex: 1; min-width: 52px; height: 44px; background: var(--bg3); border: 1.5px solid var(--border); border-radius: var(--r-sm); color: var(--muted); font-family: var(--mono); font-size: 13px; transition: all .15s; }
.obj-preset:hover  { border-color: var(--accent); color: var(--accent); }
.obj-preset.active { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); font-weight: 700; }

.obj-hero { background: var(--bg2); border: 1.5px solid rgba(0,229,160,.2); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.obj-hero-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.obj-hero-month  { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.obj-hero-sub    { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.obj-edit-btn    { background: var(--bg3); border: 1.5px solid var(--border); color: var(--muted); border-radius: var(--r-sm); padding: 0 12px; height: 38px; font-size: 12px; font-family: var(--mono); white-space: nowrap; flex-shrink: 0; transition: color .15s, border-color .15s; }
.obj-edit-btn:hover { color: var(--accent); border-color: var(--accent); }
.obj-override-form { background: var(--bg3); border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: 12px; }
.obj-override-row  { display: flex; gap: 8px; align-items: flex-end; }

.obj-hero-body  { display: flex; align-items: center; gap: 14px; }
.obj-arc-wrap   { flex-shrink: 0; }
.obj-arc-svg    { width: 110px; height: 110px; display: block; }
.obj-hero-stats { flex: 1; display: flex; flex-direction: column; }
.obj-hstat      { display: flex; flex-direction: column; padding: 9px 0; }
.obj-hstat-divider { height: 1px; background: var(--border); }
.obj-hstat-val  { font-family: var(--mono); font-size: 19px; font-weight: 700; line-height: 1; }
.obj-hstat-lbl  { font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

.obj-history-list { display: flex; flex-direction: column; gap: 6px; }
.obj-hist-card    { background: var(--bg2); border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: 12px 13px; display: flex; flex-direction: column; gap: 8px; }
.obj-hist-header  { display: flex; align-items: center; gap: 4px; }
.obj-hist-left    { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.obj-hist-month   { font-size: 14px; font-weight: 700; white-space: nowrap; }
.obj-hist-right   { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12px; flex-shrink: 0; }
.obj-hist-trav { font-weight: 700; }
.obj-hist-sep  { color: var(--border); }
.obj-hist-obj  { color: var(--muted); }
.obj-hist-tag  { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.tag-over { background: var(--accent-bg); color: var(--accent); }
.tag-done { background: var(--accent-bg); color: var(--accent); }
.tag-miss { background: var(--red-bg);    color: var(--red); }
.obj-hist-bar-track { height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.obj-hist-bar-fill  { height: 100%; border-radius: 2px; transition: width .5s; }
.obj-hist-footer    { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--muted); }

/* ============================================
   FOOTER
   ============================================ */
.app-footer { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 0 2px; font-family: var(--mono); font-size: 11px; color: var(--muted); opacity: .45; }
.footer-app     { font-weight: 700; }
.footer-version { color: var(--accent); opacity: .8; }
.footer-sep     { opacity: .4; }
.footer-studio  { transition: color .2s; }
.footer-studio:hover { color: var(--accent); opacity: 1; }

/* ============================================
   MISC
   ============================================ */
.empty-state { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; padding: 24px 0; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.export-config {}
.export-form { display: flex; flex-direction: column; gap: 16px; }
.export-btns { display: flex; flex-direction: column; gap: 10px; }

/* ---- OBJECTIFS — layout pleine largeur ---- */

/* Stepper */
.obj-stepper {
  display: flex; align-items: stretch;
  background: var(--bg3); border: 1.5px solid var(--border);
  border-radius: var(--r); overflow: hidden; width: 100%;
}
.obj-step-btn {
  width: 72px; flex-shrink: 0;
  font-size: 32px; font-weight: 300; line-height: 1;
  background: transparent; border: none; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  min-height: 80px; transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.obj-step-btn:hover  { background: var(--border); }
.obj-step-btn:active { background: var(--accent-bg); color: var(--accent); }
.obj-stepper-display {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  padding: 14px 0;
}
.obj-stepper-val  { font-family: var(--mono); font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; }
.obj-stepper-unit { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Presets */
.obj-presets { display: flex; gap: 6px; margin-top: 12px; }
.obj-preset  {
  flex: 1; height: 48px;
  background: var(--bg3); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); color: var(--muted);
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  transition: all .15s;
}
.obj-preset:active { transform: scale(.95); }
.obj-preset:hover  { border-color: var(--accent); color: var(--accent); }
.obj-preset.active { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }

/* Hero card */
.obj-hero {
  background: var(--bg2); border: 1.5px solid rgba(0,229,160,.2);
  border-radius: var(--r); padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.obj-hero-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.obj-hero-month  { font-size: 20px; font-weight: 800; }
.obj-hero-sub    { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.obj-edit-btn    {
  background: var(--bg3); border: 1.5px solid var(--border);
  color: var(--muted); border-radius: var(--r-sm);
  padding: 0 14px; height: 40px;
  font-size: 13px; font-family: var(--mono); white-space: nowrap; flex-shrink: 0;
  transition: color .15s, border-color .15s;
}
.obj-edit-btn:hover { color: var(--accent); border-color: var(--accent); }
.obj-override-form { background: var(--bg3); border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: 12px; }
.obj-override-row  { display: flex; gap: 8px; align-items: flex-end; }

/* Arc centré grand format */
.obj-arc-center { display: flex; justify-content: center; padding: 4px 0; }
.obj-arc-big    { width: min(220px, 70vw); height: min(220px, 70vw); display: block; }

/* Stats 3 colonnes pleine largeur */
.obj-stats-row {
  display: flex; align-items: stretch;
  background: var(--bg3); border: 1.5px solid var(--border);
  border-radius: var(--r-sm); overflow: hidden;
}
.obj-stat-block {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 14px 8px; gap: 3px;
}
.obj-stat-sep { width: 1px; background: var(--border); flex-shrink: 0; }
.obj-stat-val {
  font-family: var(--mono); font-size: 18px; font-weight: 700; line-height: 1;
}
.obj-stat-lbl {
  font-family: var(--mono); font-size: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px;
}

/* Historique */
.obj-history-list { display: flex; flex-direction: column; gap: 6px; }
.obj-hist-card    { background: var(--bg2); border: 1.5px solid var(--border); border-radius: var(--r-sm); padding: 12px 13px; display: flex; flex-direction: column; gap: 8px; }
.obj-hist-header  { display: flex; align-items: center; gap: 4px; }
.obj-hist-left    { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.obj-hist-month   { font-size: 14px; font-weight: 700; white-space: nowrap; }
.obj-hist-right   { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12px; flex-shrink: 0; }
.obj-hist-trav { font-weight: 700; }
.obj-hist-sep  { color: var(--border); }
.obj-hist-obj  { color: var(--muted); }
.obj-hist-tag  { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.tag-over { background: var(--accent-bg); color: var(--accent); }
.tag-done { background: var(--accent-bg); color: var(--accent); }
.tag-miss { background: var(--red-bg);    color: var(--red); }
.obj-hist-bar-track { height: 5px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.obj-hist-bar-fill  { height: 100%; border-radius: 3px; transition: width .5s; }
.obj-hist-footer    { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--muted); }
