@charset "UTF-8";

/* Animation personnalisée */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseBorder {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

.animate-slide-down {
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse-border {
  animation: pulseBorder 2s infinite;
}

/* Ergonomie tactile Mobile (Android) et Bureau (macOS) */
button, .touch-target {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

button:active:not(:disabled), .touch-press:active {
  transform: scale(0.97);
  transition: transform 0.08s ease-out;
}

/* Barre de défilement discrète */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748B;
}

/* Badges de statut */
.status-pill-ToBuy {
  background-color: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.status-pill-InCart {
  background-color: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.status-pill-Purchased {
  background-color: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

/* Masquage fluide */
.item-purchased {
  opacity: 0.65;
  background-color: #F8FAFC !important;
}

.item-purchased .item-title {
  text-decoration: line-through;
  color: #64748B;
}

/* Modals et Drawers */
.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Flottement de notification */
.notification-card {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}
