.warehouse-stock-box {
  background: #ffffff;
  width: 100%;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f1f1;
  transition: all 0.3s ease;
}

.warehouse-stock-box:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Header */
.warehouse-stock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.warehouse-stock-title-group h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #111;
}

.warehouse-stock-title-group small {
  font-size: 12px;
  color: #888;
}

/* Liste */
.warehouse-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Item */
.warehouse-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 8px;
  background: #fafafa;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.warehouse-list li:hover {
  background: #f5f7ff;
  border-color: #e0e6ff;
  transform: translateY(-2px);
}

/* Nom du magasin */
.warehouse-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* Quantité */
.warehouse-qty {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
}

/* Etats */
.warehouse-qty.in-stock {
  background: #e6f9f0;
  color: #16a34a;
}

.warehouse-qty.low-stock {
  background: #fff7e6;
  color: #f59e0b;
}

.warehouse-qty.out-stock {
  background: #ffecec;
  color: #dc2626;
}

/* Animation apparition */
.warehouse-list li {
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Header */
.warehouse-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #111;
}

/* Icône */
.warehouse-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Point central */
.warehouse-icon::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  z-index: 2;
}

/* Pulse animation */
.warehouse-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0.6;
  z-index: 1;
}

/* ✅ STOCK OK → vert + pulse */
.warehouse-title.in-stock .warehouse-icon {
  background: #22c55e;
}

.warehouse-title.in-stock .warehouse-icon::after {
  background: #22c55e;
  animation: pulseStock 1.8s infinite;
}

/* ⚠️ STOCK FAIBLE → orange léger pulse */
.warehouse-title.low-stock .warehouse-icon {
  background: #f59e0b;
}

.warehouse-title.low-stock .warehouse-icon::after {
  background: #f59e0b;
  animation: pulseStock 2.5s infinite;
}

/* ❌ RUPTURE → rouge sans animation */
.warehouse-title.out-stock .warehouse-icon {
  background: #ef4444;
}

.warehouse-title.out-stock .warehouse-icon::after {
  display: none;
}

/* Animation */
@keyframes pulseStock {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
/* Container */
.warehouse-item {
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

/* Header cliquable */
.warehouse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

/* Collapse */
.warehouse-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

/* Ouvert */
.warehouse-item.active .warehouse-collapse {
  max-height: 200px;
}

/* Contenu */
.warehouse-details {
  padding: 10px 5px 5px;
  font-size: 13px;
  color: #666;
}

/* Effet flèche */
.warehouse-name::after {
  content: "›";
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.warehouse-item.active .warehouse-name::after {
  transform: rotate(90deg);
}
.icon-svg {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  color: #111; /* contour noir */
}

.icon-svg svg {
  display: block;
}