* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f6fa;
  color: #222;
  line-height: 1.4;
}

header {
  background: linear-gradient(90deg,#2c3e50,#34495e);
  color: #fff;
  padding: 18px 10px;
  text-align: center;
}
header h1 { font-size: 1.8rem; margin-bottom: 8px; }

nav ul { list-style: none; display:flex; justify-content:center; gap:16px; flex-wrap:wrap; }
nav a { color: #fff; text-decoration: none; font-weight:700; padding:6px 10px; }

main {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 12px 40px;
}
main section h2 { margin: 20px 0 12px; color: #2c3e50; }

.produits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}
.produit-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  padding: 14px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.produit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}
.produit-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}
.produit-card h3 { margin-bottom: 6px; }
.produit-card .desc { font-size: 0.95rem; color: #555; margin-bottom: 8px; }
.produit-card .prix { margin-bottom: 12px; font-weight:700; color: #111; }

button.ajouter {
  background: #27ae60;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight:700;
  transition: background 0.2s ease;
}
button.ajouter:hover { background: #219150; }

.filtres { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
.filtres label { background:#fff; padding:6px 10px; border-radius:8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); cursor:pointer; }

.panier-table {
  width: 100%;
  border-collapse: collapse;
  background:#fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  margin-bottom: 10px;
}
.panier-table th, .panier-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}
.panier-table th { background:#f1f1f1; font-weight:700; }

button.supprimer {
  background: #ae3927;
  color: #fff;
  border: none;
  padding:6px 10px;
  border-radius:6px;
  cursor:pointer;
}
button.supprimer:hover { background: #7b2417; }

#formulaire .form-row { margin-bottom:12px; }
#formulaire label { display:block; margin-bottom:6px; font-weight:600; }
#formulaire input[type="text"], #formulaire input[type="email"], #formulaire textarea, #formulaire select {
  width:100%; padding:8px; border:1px solid #ccc; border-radius:6px;
}
#formulaire input[type="submit"] {
  background:#27ae60; color:#fff; border:none; padding:10px 14px; border-radius:8px; cursor:pointer; font-weight:700;
}
#formulaire input[type="submit"]:hover { background:#219150; }

.total-panier { font-size:1.05rem; margin-top:8px; }

@media (max-width: 800px) {
  .produits { grid-template-columns: 1fr; }
  nav ul { gap:10px; }
}