/* =============================
   VARIABLES (palette + ombres)
============================= */
:root {
  --green-main: #2d6a4f;
  --green-light: #40916c;
  --gold-accent: #d4a856;
  --brown-dark: #3b2618;
  --beige-bg: #f8f4ec;
  --shadow: rgba(0, 0, 0, 0.15);
}

/* =============================
   RESET + BASE
============================= */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--beige-bg);
  color: #222;
}

img { display: block; max-width: 100%; }

/* =============================
   HEADER
============================= */
header {
  background: linear-gradient(90deg, var(--green-main), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .logo span {
  font-weight: bold;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

header nav a {
  color: white;
  margin: 0 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}

header nav a:hover { color: var(--gold-accent); }

.btn-login {
  background: var(--gold-accent);
  border: none;
  color: var(--brown-dark);
  padding: 8px 18px;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}
.btn-login:hover { filter: brightness(1.05); }

/* Badge panier (si tu l’utilises) */
.cart-link { position: relative; }

/* =============================
   HERO (accueil avec image)
============================= */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 60px;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  animation: fadeInHero 1.6s ease forwards;
}

@keyframes fadeInHero {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 18px 34px;
  background: rgba(0,0,0,0.22);
  border-radius: 14px;
  backdrop-filter: blur(2px);
}

.hero-content p {
  font-size: 1.2rem;
  margin: 0 0 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

.hero-content button,
.btn-gold {
  background: var(--gold-accent);
  border: none;
  color: var(--brown-dark);
  padding: 12px 22px;
  font-size: 1.05rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 800;
  transition: .2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
}

.hero-content button:hover,
.btn-gold:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* =============================
   CATÉGORIES (accueil)
============================= */
.category-section {
  text-align: center;
  padding: 60px 20px;
}

.category-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.category-card {
  background: #fff;
  width: 240px;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  padding: 18px;
  transition: transform .2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-card:hover { transform: translateY(-5px); }

.category-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

.category-card h4 {
  color: var(--brown-dark);
  margin: 12px 0 10px;
  font-size: 1.1rem;
}

.category-card button {
  background: var(--green-main);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 700;
  margin-top: auto;
}
.category-card button:hover { background: var(--green-light); }

/* =============================
   ABOUT / VALEURS (accueil)
============================= */
.about {
  text-align: center;
  padding: 80px 20px;
}

.about h2 {
  color: var(--green-main);
  font-size: 2rem;
  margin-bottom: 10px;
}

.about p {
  max-width: 650px;
  margin: 0 auto 45px;
  color: #444;
  font-size: 1.05rem;
}

.values {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}

.value-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  padding: 26px 20px;
  width: 270px;
  transition: transform .2s, box-shadow .2s;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

.value-card .icon {
  font-size: 2rem;
  color: var(--gold-accent);
  margin-bottom: 10px;
}

.value-card h4 {
  color: var(--green-main);
  margin: 8px 0 10px;
}
.value-card p { margin: 0; color: #555; }

/* =============================
   MENU (page menu.php)
============================= */
.menu-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.menu-container h2 {
  text-align: center;
  color: var(--green-main);
  margin-bottom: 30px;
}

/* Grille cartes catégories menu */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

/* Carte */
.product-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.10);
  text-align: center;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ✅ Compat : si ton HTML n’a pas .product-image */
.product-card > img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* ✅ Si un jour tu utilises .product-image, c’est prêt aussi */
.product-image {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h4 {
  color: var(--brown-dark);
  margin: 8px 0 8px;
  font-size: 1.05rem;
}

.product-card p {
  margin: 5px 0 10px;
  font-weight: 800;
  color: var(--green-main);
}

.btn-custom {
  background: var(--green-main);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 800;
  margin-top: auto;
  transition: .2s;
}
.btn-custom:hover { background: var(--green-light); }

/* =============================
   MODALES (général)
============================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  border-radius: 18px;
  width: 420px;
  max-width: 95%;
  max-height: 85vh;     /* ✅ pour scroller */
  overflow-y: auto;     /* ✅ pour scroller */
  padding: 24px 24px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.25);
  position: relative;
}

.modal .close {
  position: absolute;
  top: 12px;
  right: 16px;
  cursor: pointer;
  font-size: 1.7rem;
  color: var(--green-main);
}
.modal .close:hover { color: var(--gold-accent); }

.modal-content h3 {
  text-align: center;
  color: var(--green-main);
  font-weight: 900;
  font-size: 1.25rem;
  margin: 6px 0 18px;
}

/* =============================
   MODALE "liste produits" (categoryModal)
============================= */
.modal-products {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: #faf8f2;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px 12px;
}

.modal-product strong { color: var(--brown-dark); }
.modal-product span { color: #333; font-weight: 800; }

/* =============================
   OPTIONS (chips : viandes/sauces/boissons)
============================= */
.option-group { margin: 16px 0; }

.option-group legend {
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--brown-dark);
}

.option-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.option-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #fff;
  border: 2px solid #eae4d8;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  color: var(--brown-dark);
  transition: .15s;
}

.option-chip:hover {
  background: #fff8e9;
  border-color: var(--gold-accent);
}

.option-chip input { display: none; }
.option-chip span { display: inline-block; }

.option-chip input:checked + span {
  background: var(--green-main);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
}

/* bouton de validation dans modale */
.btn-full {
  width: 100%;
  padding: 12px 0;
  background: var(--gold-accent);
  color: var(--brown-dark);
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  margin-top: 16px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}
.btn-full:hover { filter: brightness(1.05); }

/* erreurs */
.error-msg {
  display: block;
  margin-top: 8px;
  color: #c0392b;
  font-weight: 800;
  text-align: center;
}

/* =============================
   POPUP CONNEXION (header.php)
============================= */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1200;
}

.popup.show { display: flex; }

.popup-content {
  background: #fff;
  padding: 26px 26px;
  border-radius: 14px;
  width: 360px;
  max-width: 92%;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 26px rgba(0,0,0,0.25);
}

.popup-content h3 {
  margin: 0 0 14px;
  color: var(--green-main);
  font-weight: 900;
}

.popup-content input, .popup-content select {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
}

.popup-content button {
  width: 100%;
  background: var(--green-main);
  color: #fff;
  border: none;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 900;
  margin-top: 6px;
}
.popup-content button:hover { background: var(--green-light); }

.popup .close {
  position: absolute;
  top: 10px;
  right: 14px;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--green-main);
}


/* =============================
   FOOTER (avec map)
============================= */
footer {
  background: var(--brown-dark);
  color: #fff;
  padding: 50px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  border-top: 4px solid var(--gold-accent);
  margin-top: 60px;
  gap: 24px;
}

footer h4 { color: var(--gold-accent); margin-top: 0; }

footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin: 8px 0; }
footer ul a { color: #fff; text-decoration: none; }
footer ul a:hover { color: var(--gold-accent); }

footer .map-container {
  width: 360px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

footer .map-container iframe {
  width: 100%;
  height: 220px;
  border: 0;
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 900px) {
  header { flex-direction: column; gap: 10px; text-align: center; }
  header nav { display: flex; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 600px) {
  .product-list { grid-template-columns: 1fr; }
  .hero-content { padding: 16px 18px; }
  .hero-content p { font-size: 1.05rem; }
}

/* =============================
   AUTH – LOGIN / REGISTER
============================= */
.login-container {
  max-width: 420px;
  margin: 80px auto;
  background: #fff;
  padding: 35px 30px;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.login-container h2 {
  text-align: center;
  color: var(--green-main);
  margin-bottom: 25px;
  font-size: 1.6rem;
  font-weight: 800;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-form input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}
.login-form input:focus {
  outline: none;
  border-color: var(--green-main);
  box-shadow: 0 0 0 2px rgba(45,106,79,0.15);
}
.login-form .btn {
  margin-top: 10px;
  padding: 12px;
  border-radius: 30px;
  background: var(--green-main);
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.form-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 0.9rem;
}
.form-footer a {
  color: var(--green-main);
  font-weight: 600;
  text-decoration: none;
}
.checkbox-line {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.error-msg {
  background: #ffe0e0;
  color: #b00020;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
}
.success-msg {
  background: #e0f4ea;
  color: #1b5e20;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
}
/* =============================
   PROFIL CLIENT
============================= */
.profil-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px;
}
.profil-card {
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 35px;
}
.profil-table {
  width: 100%;
  border-collapse: collapse;
}
.profil-table th {
  background: var(--green-main);
  color: white;
  padding: 12px;
}
.profil-table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
}
.badge.nouvelle { background: #6c757d; }
.badge.en-préparation { background: #f0ad4e; }
.badge.prête { background: #5cb85c; }
.badge.terminée { background: #0275d8; }


/* =============================
   CART / PANIER
============================= */
.cart-container {
  max-width: 900px;
  margin: 50px auto;
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}
.cart-container h2 {
  text-align: center;
  color: var(--green-main);
  margin-bottom: 30px;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
}
.cart-table th {
  background: var(--green-main);
  color: #fff;
  padding: 12px;
}
.cart-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: center;
}
.cart-product {
  text-align: left;
}
.cart-options {
  font-size: 0.85rem;
  color: #555;
  margin-top: 6px;
}
.cart-summary {
  margin-top: 25px;
  text-align: right;
  font-size: 1.2rem;
  font-weight: 800;
}
.cart-actions {
  margin-top: 30px;
  text-align: right;
}
.cart-actions a {
  background: var(--gold-accent);
  color: var(--brown-dark);
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: 800;
  text-decoration: none;
}
.cart-actions a:hover {
  filter: brightness(1.05);
}

.btn-secondary {
  display: inline-block;
  margin-top: 12px;
  background: #eee;
  color: #333;
  padding: 10px 22px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}
.btn-secondary:hover {
  background: #ddd;
}

/* =============================
   PAYMENT
============================= */
.payment-wrapper {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
}
.payment-wrapper h2 {
  text-align: center;
  color: var(--green-main);
  margin-bottom: 30px;
}
.payment-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 25px;
}
.payment-card {
  background: #fff;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}
.payment-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.payment-item strong {
  display: block;
}
.payment-options {
  margin-top: 20px;
}
.payment-options label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}
.btn-pay {
  width: 100%;
  margin-top: 25px;
  padding: 14px;
  background: var(--green-main);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
}
.btn-pay:hover {
  background: var(--green-light);
}

/* =============================
   COMMANDE DETAIL
============================= */
.order-detail-container {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}
.order-detail-container h2 {
  color: var(--green-main);
  margin-bottom: 15px;
}
.order-meta {
  background: var(--beige-bg);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 25px;
}
.order-products {
  list-style: none;
  padding: 0;
}
.order-products li {
  padding: 15px;
  border-bottom: 1px solid #eee;
}
.order-options {
  font-size: 0.9rem;
  color: #555;
  margin-top: 8px;
}
.order-options li {
  margin-bottom: 4px;
}



/* =============================
   ADMIN – DASHBOARD COMMANDES
============================= */
.admin-dashboard {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}
/* ===== TOP BAR ===== */
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: 20px;
}
.admin-topbar h2 {
  color: var(--green-main);
  margin: 0;
}
/* Onglets */
.admin-tabs {
  display: flex;
  gap: 10px;
}
.admin-tabs a {
  padding: 8px 16px;
  border-radius: 25px;
  border: 2px solid var(--green-main);
  color: var(--green-main);
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}
.admin-tabs a.active,
.admin-tabs a:hover {
  background: var(--green-main);
  color: #fff;
}
/* ===== CARTE COMMANDE ===== */
.admin-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  padding: 18px;
  margin-bottom: 20px;
}
/* En-tête commande */
.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.admin-client {
  font-weight: 800;
  color: var(--brown-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.admin-phone {
  font-size: 0.9rem;
  color: #666;
}
.admin-meta {
  margin-top: 4px;
  font-size: 0.9rem;
  color: #666;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
/* Droite */
.admin-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.admin-btn {
  background: var(--gold-accent);
  color: var(--brown-dark);
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.2s;
}
.admin-btn:hover {
  filter: brightness(1.05);
}
.admin-statut {
  font-size: 0.9rem;
}
/* ===== CONTENU : À PRÉPARER ===== */
.admin-card-body h4 {
  color: var(--green-main);
  margin-bottom: 8px;
}
.admin-line {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed #eee;
}
.admin-qty {
  min-width: 42px;
  height: 28px;
  border-radius: 14px;
  background: var(--beige-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.admin-opts {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #333;
}
/* ===== FOOTER ACTIONS ===== */
.admin-card-footer {
  border-top: 1px solid #eee;
  margin-top: 12px;
  padding-top: 12px;
}
.admin-form {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}
.admin-form select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-weight: 600;
}
.admin-form button {
  background: var(--green-main);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 25px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}
.admin-form button:hover {
  background: var(--green-light);
}
/* ===== RESPONSIVE TABLETTE / MOBILE ===== */
@media (max-width: 768px) {
  .admin-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-right {
    align-items: flex-start;
  }
  .admin-form {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-form select,
  .admin-form button {
    width: 100%;
  }
  .admin-tabs {
    flex-wrap: wrap;
  }
}




















