/* ===============================
   RESET + BASE
================================ */

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #F9FAFB;
  color: #111827;
}

/* ===============================
   LAYOUT MOBILE FIRST
================================ */

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

/* ===============================
   HEADER
================================ */

.header {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ===============================
   CARDS
================================ */

.card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  margin-bottom: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:active {
  transform: scale(0.98);
}

/* ===============================
   BOUTONS PRINCIPAUX
================================ */

.big-btn {
  display: block;
  width: 100%;
  padding: 18px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #111827;
  color: white;
}

.btn-primary:active {
  background: #000;
}

.btn-accent {
  background: #3B82F6;
  color: white;
}

.btn-accent:active {
  background: #2563EB;
}

/* ===============================
   FORMULAIRES
================================ */

input, textarea, select {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #E5E7EB;
  margin-bottom: 12px;
  font-size: 16px;
  background: #F9FAFB;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #3B82F6;
  background: white;
}

button {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  background: #111827;
  color: white;
  transition: background 0.2s ease;
}

button:active {
  background: #000;
}

/* ===============================
   NAVIGATION BASSE (optionnel)
================================ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: white;
  border-top: 1px solid #E5E7EB;
  padding: 10px;
  display: flex;
  justify-content: space-around;
}

/* ===============================
   ANIMATION PAGE
================================ */

.page {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   RESPONSIVE TABLET
================================ */

@media (min-width: 768px) {
  .container {
    max-width: 600px;
  }
}

/* ===== PANIER ===== */

.cart-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 15px;
}

.total-bar {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  margin: 10px 0;
}

/* ===== PRODUITS ===== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-btn {
  background: grey;
  text-decoration: uppercase !important;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-weight: 600;
  transition: transform 0.1s ease;
}

.product-btn:active {
  transform: scale(0.96);
}

.product-btn .price {
  margin-top: 8px;
  font-weight: 500;
  color: #3B82F6;
}

/* ===== RECHERCHE ===== */

#search {
  position: sticky;
  top: 0;
  z-index: 5;
  background: white;
  margin-bottom: 12px;
  border: 2px solid #E5E7EB;
}

/* ===== PANIER ===== */

.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 15px;
}

.remove-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: red;
  margin-left: 6px;
}

/* ===== PRODUITS ===== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.product-btn {
  background: white;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-weight: 600;
  transition: transform 0.1s ease;
}

.product-btn:active {
  transform: scale(0.95);
}

.product-btn .price {
  margin-top: 8px;
  font-weight: 500;
  color: #3B82F6;
}