/* ══════════════════════════════════════════
   Animations & Effets Dynamiques
   Brasserie Sportive
   ══════════════════════════════════════════ */

/* ─── SKELETON SHIMMER ─── */
@keyframes shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position:  800px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 10px;
  color: transparent !important;
  user-select: none;
}
.skeleton * { visibility: hidden !important; }
.skel-line  { height: 14px; border-radius: 5px; margin-bottom: 8px; }
.skel-line-sm { height: 10px; border-radius: 4px; margin-bottom: 6px; width: 60%; }
.skel-big   { height: 42px; border-radius: 8px; margin-bottom: 10px; }
.skel-circle { border-radius: 50%; width: 44px; height: 44px; }

/* ─── PAGE TRANSITION ─── */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-enter { animation: pageIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ─── RIPPLE ─── */
@keyframes ripple-grow {
  to { transform: scale(4); opacity: 0; }
}
.ripple-el {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  transform: scale(0);
  animation: ripple-grow 0.55s linear forwards;
  pointer-events: none;
}

/* ─── CONFETTI CANVAS ─── */
#confetti-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 99999;
}

/* ─── LIVE DOT ─── */
@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: live-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: var(--green);
  padding: 3px 9px; border-radius: 20px;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.3);
}

/* ─── STAT CARD HOVER ─── */
.stat-card {
  transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s ease;
  cursor: default;
}
.stat-card:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 0 0 1px var(--glass-border);
}

/* ─── BUTTON PRESS ─── */
.btn:active       { transform: scale(0.97); }
.quick-btn:active { transform: scale(0.94); }
.c-num:active     { transform: scale(0.91); }
.t-action-btn:active { transform: scale(0.95); }
.pay-method:active   { transform: scale(0.95); }
.split-method-btn:active { transform: scale(0.95); }

/* ─── COUNTER ANIMATE ─── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stat-value.anim-count { animation: countUp 0.4s ease both; }

/* ─── HEATMAP ─── */
.heatmap-wrap { overflow-x: auto; padding-bottom: 8px; }
.heatmap-grid {
  display: grid;
  grid-template-columns: 36px repeat(24, minmax(28px, 1fr));
  gap: 3px;
  min-width: 720px;
}
.hm-day-label {
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 7px; font-size: 11px; font-weight: 600; color: var(--text-3);
  height: 30px;
}
.hm-hour-label {
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: var(--text-3); height: 18px;
}
.hm-cell {
  height: 30px; border-radius: 5px;
  position: relative; cursor: default;
  transition: transform 0.12s ease;
}
.hm-cell:hover { transform: scale(1.25); z-index: 10; }
.hm-tip {
  display: none; position: absolute;
  bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--bg-1); border: 1px solid var(--glass-border);
  border-radius: 8px; padding: 6px 10px; font-size: 11px;
  white-space: nowrap; z-index: 200; box-shadow: var(--shadow-lg);
  color: var(--text-1); pointer-events: none;
}
.hm-cell:hover .hm-tip { display: block; }

/* ─── FULLSCREEN BUTTON ─── */
.fs-btn {
  position: fixed; bottom: 18px; right: 18px;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--bg-2); border: 1px solid var(--glass-border);
  color: var(--text-3); font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 500; transition: all 0.18s ease; box-shadow: var(--shadow-lg);
}
.fs-btn:hover { background: var(--bg-3); color: var(--text-1); transform: scale(1.08); }

/* ─── LIVE DASHBOARD STREAM ─── */
.live-val-update {
  animation: liveFlash 0.6s ease;
}
@keyframes liveFlash {
  0%   { color: var(--accent); }
  100% { color: inherit; }
}

/* ─── CARD ENTRY STAGGER ─── */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.card-anim { animation: cardIn 0.35s cubic-bezier(0.22,1,0.36,1) both; }
.card-anim:nth-child(1) { animation-delay: 0.03s; }
.card-anim:nth-child(2) { animation-delay: 0.07s; }
.card-anim:nth-child(3) { animation-delay: 0.11s; }
.card-anim:nth-child(4) { animation-delay: 0.15s; }
.card-anim:nth-child(5) { animation-delay: 0.19s; }
.card-anim:nth-child(6) { animation-delay: 0.23s; }
