/* ============================================================
   Materia OS — Barre des tâches (dock flottant)
   ============================================================ */

#taskbar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8000;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 64px;
  padding: 8px 10px;
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--surface-container) 78%, transparent);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--outline-variant);
  animation: tb-in .7s var(--ease-out) .2s backwards;
}
@keyframes tb-in {
  from { opacity: 0; transform: translateX(-50%) translateY(80px); }
}

.tb-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface);
  transition: background var(--dur-s) var(--ease);
}
.tb-btn:hover { background: color-mix(in srgb, var(--on-surface) 9%, transparent); }
.tb-btn .material-symbols-rounded { font-size: 24px; }
#tb-launcher { background: var(--primary-container); color: var(--on-primary-container); }
#tb-launcher:hover { filter: brightness(1.05); }

#dock {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  border-left: 1px solid var(--outline-variant);
  border-right: 1px solid var(--outline-variant);
  margin: 0 4px;
}

.dock-app {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--r-m);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-s) var(--ease), background var(--dur-s) var(--ease);
  overflow: visible;
}
.dock-app:hover { transform: translateY(-4px); }
.dock-app:active { transform: translateY(-1px) scale(.94); }
.dock-glyph {
  width: 38px;
  height: 38px;
  border-radius: var(--r-s);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg, var(--primary-container));
  color: var(--fg, var(--on-primary-container));
  transition: border-radius var(--dur-m) var(--ease);
}
.dock-app:hover .dock-glyph { border-radius: var(--r-m); }
.dock-glyph .material-symbols-rounded { font-size: 22px; }

.dock-app .dot {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  transition: transform var(--dur-m) var(--ease), width var(--dur-m) var(--ease);
}
.dock-app.running .dot { transform: translateX(-50%) scale(1); }
.dock-app.active-app .dot { width: 16px; border-radius: 3px; }

/* Infobulle */
.dock-app::after {
  content: attr(data-label);
  position: absolute;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: var(--surface-container-highest);
  color: var(--on-surface);
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
  box-shadow: var(--shadow-2);
}
.dock-app:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- Zone statut (horloge + réglages rapides) --- */
#tb-status {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 16px 0 14px;
  border-radius: var(--r-full);
  color: var(--on-surface);
  transition: background var(--dur-s) var(--ease);
}
#tb-status:hover { background: color-mix(in srgb, var(--on-surface) 9%, transparent); }
#tb-status .st-ico { font-size: 18px; color: var(--on-surface-variant); }
#tb-clock {
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-left: 2px;
}
