:root {
  --orange: #F37C14;
  --orange-dark: #D9670A;
  --black: #1A1A1A;
  --cream: #FFF8F0;
  --gray: #6B6B6B;
  --line: #EAE2D8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--black);
  background: var(--cream);
}
a { color: inherit; }
.banner {
  background: var(--black);
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 8px 12px;
}
.banner strong { color: var(--orange); }
header {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  border-bottom: 3px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
  gap: 10px;
}
.brand img { height: 80px; display: block; }
nav a {
  text-decoration: none;
  margin-right: 22px;
  font-weight: 600;
  font-size: 14px;
}
nav a:last-child { margin-right: 0; }
nav a:hover { color: var(--orange); }
nav a.admin-link {
  color: var(--gray);
  font-weight: 500;
  font-size: 12.5px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
nav a.admin-link:hover { color: var(--orange); }
.cart-btn {
  background: var(--orange);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  text-decoration: none;
}
.hero {
  background: linear-gradient(135deg, var(--black) 0%, #2b2b2b 100%);
  color: #fff;
  padding: 60px 8% 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.hero-text { max-width: 560px; }
.hero-text .kicker { color: var(--orange); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.hero-text h1 { font-size: 36px; line-height: 1.15; margin: 10px 0 16px; }
.hero-text p { color: #d8d8d8; font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
.hero-logo img { width: 190px; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4)); }
.btn-primary {
  background: var(--orange);
  color: #fff;
  padding: 13px 26px;
  border-radius: 26px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 15px;
}
.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  padding: 11px 24px;
  border-radius: 26px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-left: 10px;
}
main { padding: 50px 6%; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 30px; }
.section-title .kicker { color: var(--orange); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }
.section-title h2 { font-size: 28px; margin: 6px 0 8px; }
.section-title p { color: var(--gray); max-width: 560px; margin: 0 auto; }
.cat-filter { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.cat-filter a {
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}
.cat-filter a.active, .cat-filter a:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.card .thumb {
  height: 130px;
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, #FFF1E0, #FFF1E0 10px, #FDE4C8 10px, #FDE4C8 20px);
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-dark); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card h3, .card h4 { margin: 0 0 6px; font-size: 15px; }
.card h3 a { text-decoration: none; }
.card p.desc { color: var(--gray); font-size: 12.5px; line-height: 1.5; margin: 0 0 14px; flex-grow: 1; }
.card .price-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.card .price { color: var(--orange-dark); font-weight: 800; font-size: 16px; }
.card .unit { color: var(--gray); font-size: 11px; }
.card .order-btn, form.inline-btn button {
  width: 100%;
  background: var(--black);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: block;
}
.card .order-btn:hover, form.inline-btn button:hover { background: var(--orange); }

.produit-detail { display: flex; gap: 40px; flex-wrap: wrap; }
.produit-detail .thumb-large {
  flex: 1 1 320px;
  height: 320px;
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, #FFF1E0, #FFF1E0 12px, #FDE4C8 12px, #FDE4C8 24px);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.produit-detail .info { flex: 1 1 320px; }
.produit-detail .info .cat-tag {
  display: inline-block; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 12px; margin-bottom: 10px; text-transform: uppercase;
}
.produit-detail .info h1 { margin: 0 0 10px; font-size: 26px; }
.produit-detail .info .price { color: var(--orange-dark); font-weight: 800; font-size: 24px; margin-bottom: 20px; }
.produit-detail .info p.desc { color: var(--gray); line-height: 1.6; margin-bottom: 24px; }
.qty-form { display: flex; align-items: center; gap: 14px; }
.qty-form input[type=number] { width: 70px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }

table.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
table.tbl th { background: var(--black); color: #fff; text-align: left; padding: 12px 14px; font-size: 13px; }
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.tbl tr:last-child td { border-bottom: none; }
.qty-inline { width: 60px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; }
.remove-link { color: #B3261E; font-size: 13px; text-decoration: none; font-weight: 600; }
.cart-total-row { text-align: right; font-size: 18px; font-weight: 800; margin: 20px 0; }
.cart-total-row .amount { color: var(--orange-dark); }

form.checkout-form { max-width: 560px; margin: 0 auto; background: #fff; padding: 30px; border-radius: 12px; border: 1px solid var(--line); }
form.checkout-form label { display: block; font-weight: 600; font-size: 13px; margin: 16px 0 6px; }
form.checkout-form input, form.checkout-form select, form.checkout-form textarea {
  width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit;
}
.alert {
  padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14px;
}
.alert-error { background: #FDEAEA; color: #A33A00; border: 1px solid #F2BFBF; }
.alert-success { background: #E9F7EF; color: #1F7A3F; border: 1px solid #BEE6CC; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--gray); }

.confirmation-box {
  max-width: 560px; margin: 40px auto; background: #fff; padding: 40px; border-radius: 12px;
  border: 1px solid var(--line); text-align: center;
}
.confirmation-box .check { font-size: 50px; margin-bottom: 16px; }
.confirmation-box h1 { font-size: 24px; margin-bottom: 12px; }
.confirmation-box p { color: var(--gray); line-height: 1.6; }
.confirmation-box .order-num { font-weight: 800; color: var(--orange-dark); font-size: 20px; margin: 16px 0; }

.payments { background: #fff; padding: 40px 6%; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.payments h3 { font-size: 18px; margin-bottom: 20px; }
.pay-icons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.pay-chip { background: var(--cream); border: 1px solid var(--line); padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 13px; }

footer { background: var(--black); color: #ccc; padding: 40px 6% 20px; margin-top: 40px; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; margin-bottom: 24px; }
.foot-col h4 { color: #fff; margin-bottom: 10px; font-size: 15px; }
.foot-col p, .foot-col a { color: #b8b8b8; font-size: 13px; line-height: 1.8; text-decoration: none; display: block; }
.foot-bottom { text-align: center; border-top: 1px solid #333; padding-top: 16px; font-size: 12px; color: #888; }

/* Admin */
.admin-body { background: #F4F5F7; }
.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: var(--black); color: #fff; padding: 24px 0; flex-shrink: 0; }
.admin-sidebar .logo { padding: 0 20px 24px; font-weight: 800; color: var(--orange); font-size: 18px; }
.admin-sidebar a { display: block; padding: 12px 20px; color: #ddd; text-decoration: none; font-size: 14px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: var(--orange); color: #fff; }
.admin-main { flex-grow: 1; padding: 30px 40px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.admin-header h1 { font-size: 22px; margin: 0; }
.btn { display: inline-block; background: var(--orange); color: #fff; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 13px; border: none; cursor: pointer; }
.btn-secondary { background: #eee; color: var(--black); }
.status-badge { padding: 4px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.status-nouvelle { background: #FFF3CD; color: #856404; }
.status-confirmee { background: #D1ECF1; color: #0C5460; }
.status-en_preparation { background: #E2D9F3; color: #4B2E83; }
.status-livree { background: #D4EDDA; color: #155724; }
.status-annulee { background: #F8D7DA; color: #721C24; }
.login-box { max-width: 380px; margin: 100px auto; background: #fff; padding: 34px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.login-box img { height: 110px; display: block; margin: 0 auto 20px; }
