body {
  font-family: "Cairo", sans-serif;
  background: #f1f5f9;
  margin: 0;
  padding: 0;
  color: #222;
}

/* Header */
header {
  background: #2563eb;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
header h2 {
  margin: 0;
  font-weight: 600;
  font-size: 1.2rem;
}
.filter-btn {
  background: #10b981;
  border: none;
  color: #fff;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-btn:hover {
  background: #059669;
}

/* Tableau */
main {
  padding: 15px;
}
table.dataTable {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
thead th {
  background: #2563eb;
  color: white;
  text-align: center;
  padding: 10px;
}
tfoot th {
  background: #e2e8f0;
  font-weight: bold;
}

/* Popup Produits */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 10;
}
.modal-content {
  background: white;
  border-radius: 10px;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.modal-content h3 {
  margin-top: 0;
  text-align: center;
}
#searchProduit {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}
#produitList {
  max-height: 250px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
}
#produitList li {
  padding: 8px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: 0.2s;
}
#produitList li:hover {
  background: #2563eb;
  color: white;
}
.close-btn {
  background: #ef4444;
  border: none;
  color: #fff;
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  margin-top: 10px;
  cursor: pointer;
}
.close-btn:hover {
  background: #dc2626;
}

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .filter-btn {
    width: 100%;
    justify-content: center;
  }
}
