/* === RESET SIMPLE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === HEADER === */
header {
  background: #fff;
  padding: 15px 20px;
  border-bottom: 2px solid #eee;
  text-align: center;
}

header h1 {
  color: #f9a3b0;
  margin-bottom: 5px;
}

/* === LAYOUT PRINCIPAL === */
main {
  flex: 1;
  display: flex;
  padding: 20px;
  gap: 20px;
}

/* === CATALOGUE PRODUITS === */
#catalogue-section {
  flex: 2;
}

#catalogue-section h2 {
  margin-bottom: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.product {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: 0.2s;
  cursor: pointer;
}

.product:hover {
  transform: translateY(-3px);
  box-shadow: 0px 2px 8px rgba(0,0,0,0.1);
}

.product h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.product p {
  color: #777;
  margin-bottom: 10px;
}

.product button {
  background: #f9a3b0;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.product button:hover {
  background: #e68292;
}

/* === PANIER === */
#cart-section {
  flex: 1;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
}

#cart-section h2 {
  margin-bottom: 15px;
}

#cartItems {
  list-style: none;
  margin-bottom: 10px;
}

#cartItems li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #eee;
  padding: 5px 0;
}

.total {
  font-size: 1.1rem;
  margin: 10px 0;
  color: #000;
}

/* === FORMULAIRES === */
.form-group {
  margin-bottom: 12px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input, select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* === BOUTON VALIDER === */
#submitOrder {
  width: 100%;
  background: #f9a3b0;
  border: none;
  padding: 12px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

#submitOrder:hover {
  background: #e68292;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 10px;
  background: #fff;
  border-top: 2px solid #eee;
  font-size: 0.9rem;
  color: #777;
}
footer a {
  color: #f9a3b0;
  text-decoration: none;
}