* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 5px;
}

header p {
  font-size: 1.1em;
  opacity: 0.9;
}

nav {
  background: #333;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav a {
  color: white;
  text-decoration: none;
  margin-right: 30px;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: #667eea;
}

main {
  padding: 40px 0;
  min-height: calc(100vh - 300px);
}

h2 {
  color: #667eea;
  margin-bottom: 30px;
  font-size: 2em;
}

h3 {
  color: #555;
  margin-bottom: 10px;
}

.hero {
  text-align: center;
  margin-bottom: 50px;
}

.hero p {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #667eea;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s;
}

.btn:hover {
  background: #764ba2;
}

.btn-primary {
  background: #667eea;
}

.btn-primary:hover {
  background: #764ba2;
}

.btn-secondary {
  background: #999;
  margin-left: 10px;
}

.btn-secondary:hover {
  background: #666;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.9em;
}

.btn-large {
  padding: 15px 30px;
  font-size: 1.1em;
}

.btn-danger {
  background: #e74c3c;
  padding: 6px 12px;
  font-size: 0.9em;
}

.btn-danger:hover {
  background: #c0392b;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.product-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.product-card h3 {
  color: #333;
  margin-bottom: 10px;
}

.product-card p {
  color: #666;
  font-size: 0.95em;
  margin-bottom: 10px;
}

.price {
  font-size: 1.5em;
  color: #667eea;
  font-weight: bold;
  margin: 15px 0;
}

.filters {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filters a {
  padding: 8px 16px;
  background: white;
  color: #667eea;
  text-decoration: none;
  border: 2px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s;
}

.filters a:hover,
.filters a.active {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.panier-table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.panier-table th,
.panier-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.panier-table th {
  background: #f0f0f0;
  font-weight: bold;
  color: #333;
}

.panier-table tr:hover {
  background: #f9f9f9;
}

.panier-summary {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.panier-summary h3 {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: #333;
}

.checkout-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.checkout-form {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.checkout-summary {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: fit-content;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.panier-items {
  margin-bottom: 20px;
}

.panier-items .item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.total {
  font-size: 1.3em;
  font-weight: bold;
  color: #667eea;
  padding-top: 15px;
  border-top: 2px solid #667eea;
}

.admin-table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-table th,
.admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  font-size: 0.95em;
}

.admin-table th {
  background: #f0f0f0;
  font-weight: bold;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: bold;
}

footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
}

@media (max-width: 768px) {
  .checkout-wrapper {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }

  header h1 {
    font-size: 1.8em;
  }

  nav a {
    margin-right: 15px;
    font-size: 0.95em;
  }
}
