:root {
  /* Couleurs */
  --vert-fonce: #014d28;
  --vert-moyen: #074420;
  --blanc: #ffffff;
  --noir: #000000;
  --gris-clair: #eae9e8;
  --beige: #e8dfd4;
  --vert-pale: #bcd6a6;
  --gris-fonce: #2f2f2f;
  --hybride: #a1a569;
  --indica: #adcbc9;
  --sativa: #ebdc70;
}

body {
  background-color: var(--gris-clair);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--noir);
}

/* En-tête */
.app-title {
  color: var(--vert-fonce);
  font-weight: 700;
}

/* Cartes produits */
.product-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  height: 100%;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
  font-weight: 600;
  padding: 15px;
}

/* Classes pour les catégories */
.fleurs .card-header {
  background-color: #bcd6a6;
  color: var(--noir);
}

.concentres .card-header {
  background-color: #e8dfd4;
  color: var(--noir);
}

.pre-roules .card-header {
  background-color: #d4c4a8;
  color: var(--noir);
}

.haschich .card-header {
  background-color: #c9b798;
  color: var(--noir);
}

.vape .card-header {
  background-color: #d6e0f0;
  color: var(--noir);
}

.edibles .card-header {
  background-color: #f0d6d6;
  color: var(--noir);
}

/* Pour le modal */
.modal-header.fleurs { background-color: #bcd6a6; }
.modal-header.concentres { background-color: #e8dfd4; }
.modal-header.pre-roules { background-color: #d4c4a8; }
.modal-header.haschich { background-color: #c9b798; }
.modal-header.vape { background-color: #d6e0f0; }
.modal-header.edibles { background-color: #f0d6d6; }

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 60px);
}

.price {
  font-size: 1.25rem;
  color: var(--vert-fonce);
  font-weight: 600;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
}

.badge-thc {
  background-color: var(--vert-fonce);
  color: white;
}

.badge-cbd {
  background-color: var(--vert-moyen);
  color: white;
}

.badge-stock {
  background-color: var(--gris-fonce);
  color: white;
}

/* Sections spéciales */
.terpenes, .effects {
  background-color: rgba(188, 214, 166, 0.2);
  padding: 10px;
  border-radius: 8px;
  margin: 8px 0;
}

.special-info {
  background-color: var(--beige);
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
}

/* Modal */
.modal-content {
  border-radius: 15px;
  overflow: hidden;
}

.modal-header {
  padding: 15px 20px;
  font-weight: 600;
}

.modal-body {
  padding: 20px;
}

.modal-title {
  font-weight: 700;
}

/* Alertes */
.alert {
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .card-body {
    padding: 15px;
  }
  
  .filter-section {
    flex-direction: column;
  }
  
  .filter-section select {
    margin-bottom: 10px;
  }
  
  .mb-4 {
    margin-bottom: 0 !important;
  }
}
/* Nouvelles classes pour les catégories */
.derives .card-header {
  background-color: #f8f8f8;
  color: #000000;
}

.hybride .card-header {
  background-color: #a1a569;
  color: #000000;
}

.sativa .card-header {
  background-color: #ebdc70;
  color: #000000;
}

.indica .card-header {
  background-color: #adcbc9;
  color: #000000;
}

/* Pour le modal */
.modal-header.derives { background-color: #f8f8f8; }
.modal-header.hybride { background-color: #a1a569; }
.modal-header.sativa { background-color: #ebdc70; }
.modal-header.indica { background-color: #adcbc9; }

/* Style pour le nouveau filtre */
#commandeFilter {
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
}

/* Style pour les badges de date d'arrivée */
.badge.bg-warning {
  font-weight: 500;
  padding: 5px 8px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .col-md-2 {
    margin-bottom: 10px;
  }
}

/* Styles pour les appareils mobiles */
@media (max-width: 768px) {
  /* Conteneurs de filtres mobiles */
  .filter-panel {
    margin-bottom: 0.75rem !important;
    padding: 1rem !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .filter-title {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
    color: #495057 !important;
    font-weight: 600 !important;
  }
  
  /* Boutons de filtres mobiles */
  .filter-panel .btn {
    min-width: auto !important;
    width: 100% !important;
    margin-bottom: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
    border-radius: 0.5rem !important;
    text-align: left !important;
    border-width: 1px !important;
  }
  
  /* Derniers boutons sans marge en bas */
  .filter-panel .btn:last-child {
    margin-bottom: 0 !important;
  }
  
  /* Espacement entre les conteneurs de filtres */
  #filterContainer {
    gap: 0.75rem !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    width: 100% !important;
    flex-direction: column !important;
  }
  
  /* Ajustements pour les pastilles de filtres actifs */
  #filterChips {
    margin-bottom: 1rem !important;
  }
  
  #filterChips .badge {
    font-size: 0.85rem !important;
    padding: 0.5rem 0.75rem !important;
    margin-bottom: 0.5rem !important;
  }
}
.modal-filter {
  background-color: #dee2e600; /* plus foncé que #eae9e8 */
  border-radius: 0.5em;
  padding: 2px 8px;
  margin: 2px;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: 500;
}
.modal-filter:hover {
  background-color: #d1e7dd;
  color: #198754;
}
.modal-filter-small {
  font-size: 0.82em;
  padding: 1px 7px;
  margin: 1px;
}