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

body{
  font-family:Arial, Helvetica, sans-serif;
  background:#f5f1ea;
  color:#1f1f1f;
  overflow-x:hidden;
}

/* ===== EN-TETE ===== */
.hero{
  background:linear-gradient(135deg,#050505,#101820);
  color:white;
  padding:24px 16px;
}

.hero-inner{
  max-width:1450px;
  width:92%;
  margin:auto;
  display:flex;
  gap:22px;
  align-items:center;
  justify-content:space-between;
}

.brand{
  text-align:center;
  min-width:230px;
}

.logo{
  width:200px;
  max-width:80%;
  display:block;
  margin:0 auto 8px auto;
}

.subtitle{
  font-size:17px;
  opacity:.95;
  margin-top:4px;
  font-weight:800;
  color:#f5e4b8;
}

.notice{
  max-width:720px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.22);
  padding:16px 18px;
  border-radius:14px;
  line-height:1.45;
  font-size:15px;
}

.notice p + p{
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.15);
}

/* ===== STRUCTURE GENERALE ===== */
.layout{
  max-width:1450px;
  width:92%;
  margin:24px auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  gap:18px;
}

.menu-zone,
.cart-sticky{
  background:#fff;
  border-radius:18px;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.menu-zone{
  padding:18px;
  overflow:hidden;
}

/* ===== RECHERCHE ===== */
.toolbar{
  display:flex;
  gap:10px;
  position:sticky;
  top:0;
  background:white;
  padding-bottom:14px;
  z-index:4;
}

.toolbar input{
  flex:1;
  border:1px solid #ddd;
  border-radius:12px;
  padding:14px 16px;
  font-size:16px;
}

.toolbar button,
.mini-btn{
  border:0;
  border-radius:12px;
  padding:12px 16px;
  background:#111;
  color:#fff;
  cursor:pointer;
  font-weight:800;
}

/* ===== CATEGORIES ===== */
.category-tabs{
  display:flex;
  gap:8px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:0 0 14px;
  margin-bottom:8px;
  scrollbar-width:thin;
}

.category-tabs button{
  white-space:nowrap;
  border:1px solid #e2d7c6;
  background:#fff8ef;
  border-radius:999px;
  padding:10px 15px;
  cursor:pointer;
  font-weight:800;
  color:#3b2a15;
}

.category-tabs button.active{
  background:#111;
  color:#d7a84f;
  border-color:#111;
}

.category-block{
  border:1px solid #eadfce;
  border-radius:16px;
  margin-bottom:14px;
  overflow:hidden;
  background:#fff;
}

.category-header{
  width:100%;
  border:0;
  background:#141414;
  color:#d7a84f;
  padding:16px;
  text-align:left;
  font-size:19px;
  font-weight:900;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.category-content{
  display:none;
  padding:14px;
}

.category-block.open .category-content{
  display:block;
}

.subcat-title{
  font-size:17px;
  margin:14px 0 12px;
  color:#2a1c0b;
  border-left:5px solid #d7a84f;
  padding-left:10px;
}

/* ===== PRODUITS ===== */
.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:16px;
}

.product-card{
  border:1px solid #eee;
  border-radius:14px;
  padding:14px;
  background:#fffdf9;
  display:flex;
  flex-direction:column;
  gap:8px;
  transition:transform .18s ease, box-shadow .18s ease;
}

.product-card:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 22px rgba(0,0,0,.08);
}

.product-img{
  width:100%;
  height:175px;
  object-fit:cover;
  border-radius:12px;
  margin-bottom:8px;
  background:#f5f1ea;
  border:1px solid #eadfce;
}

.product-card h4{
  font-size:16px;
  line-height:1.25;
}

.product-card p{
  font-size:13px;
  color:#646464;
  line-height:1.4;
}

.price{
  font-weight:900;
  color:#0c7a31;
  font-size:18px;
  margin-top:auto;
}

.add-btn{
  margin-top:6px;
  border:0;
  background:#d7a84f;
  color:#111;
  border-radius:12px;
  padding:12px;
  font-weight:900;
  cursor:pointer;
}

.add-btn:hover,
.toolbar button:hover,
.whatsapp-btn:hover{
  opacity:.9;
}

/* ===== PANIER ===== */
.cart-sticky{
  padding:18px;
  position:sticky;
  top:16px;
}

.close-cart-mobile{
  display:none;
  position:absolute;
  right:16px;
  top:12px;
  border:0;
  background:#111;
  color:#fff;
  border-radius:50%;
  width:34px;
  height:34px;
  font-size:24px;
  line-height:34px;
  cursor:pointer;
}

.cart-sticky h2{
  margin-bottom:12px;
  font-size:22px;
}

.cart-items{
  max-height:280px;
  overflow:auto;
  border-top:1px solid #eee;
  border-bottom:1px solid #eee;
  padding:8px 0;
  margin-bottom:12px;
}

.cart-items.empty{
  color:#888;
  font-size:14px;
}

.cart-item{
  padding:10px 0;
  border-bottom:1px solid #f0f0f0;
}

.cart-item:last-child{
  border-bottom:0;
}

.cart-item-title{
  font-weight:800;
  margin-bottom:3px;
}

.cart-item-options{
  font-size:12px;
  color:#666;
  line-height:1.35;
}

.cart-row{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
}

.qty-controls{
  display:flex;
  gap:6px;
  align-items:center;
  margin-top:8px;
}

.qty-controls button{
  width:30px;
  height:30px;
  border:0;
  border-radius:8px;
  background:#111;
  color:white;
  cursor:pointer;
  font-weight:900;
}

.remove-btn{
  background:#8b1d1d!important;
}

.cart-total{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:19px;
  border-bottom:1px solid #eee;
  padding-bottom:14px;
  margin-bottom:14px;
}

.cart-total strong{
  color:#0c9b3c;
}

.client-form h3{
  font-size:16px;
  margin-bottom:10px;
}

.field-with-icon{
  position:relative;
  margin-bottom:9px;
}

.field-icon{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  font-size:16px;
  line-height:1;
  pointer-events:none;
}

.field-icon svg{
  display:block;
  width:18px;
  height:18px;
}

.field-icon-whatsapp svg{
  width:20px;
  height:20px;
}

.client-form input,
.client-form textarea{
  width:100%;
  border:1px solid #ddd;
  border-radius:10px;
  padding:12px 12px 12px 42px;
  font-size:14px;
}

.field-with-icon-textarea .field-icon{
  top:14px;
  transform:none;
}

.client-form textarea{
  min-height:78px;
  resize:vertical;
}

.whatsapp-btn{
  width:100%;
  border:0;
  background:#25D366;
  color:white;
  border-radius:14px;
  padding:15px;
  font-size:17px;
  font-weight:900;
  cursor:pointer;
}

/* ===== POPUP OPTIONS ===== */
.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:50;
  padding:16px;
}

.modal.hidden{
  display:none;
}

.modal-card{
  background:white;
  border-radius:18px;
  max-width:520px;
  width:100%;
  max-height:90vh;
  overflow:auto;
  padding:18px;
  position:relative;
}

.close-modal{
  position:absolute;
  right:12px;
  top:10px;
  border:0;
  background:#111;
  color:#fff;
  border-radius:50%;
  width:32px;
  height:32px;
  font-size:24px;
  line-height:32px;
  cursor:pointer;
}

.option-title{
  font-size:20px;
  font-weight:900;
  margin:8px 40px 10px 0;
}

.option-desc{
  color:#666;
  font-size:14px;
  margin-bottom:10px;
}

.option-group{
  border-top:1px solid #eee;
  padding-top:12px;
  margin-top:12px;
}

.option-group h4{
  margin-bottom:8px;
}

.option-line{
  display:block;
  padding:8px 0;
  cursor:pointer;
}

.option-line input{
  margin-right:8px;
}

.modal-actions{
  display:flex;
  gap:10px;
  margin-top:14px;
}

.modal-actions button{
  flex:1;
  border:0;
  border-radius:12px;
  padding:13px;
  font-weight:900;
  cursor:pointer;
}

.confirm-btn{
  background:#25D366;
  color:white;
}

.cancel-btn{
  background:#ddd;
  color:#111;
}

/* ===== MOBILE ===== */
.mobile-cart-btn{
  display:none;
  position:fixed;
  bottom:12px;
  left:12px;
  right:12px;
  background:#25D366;
  color:white;
  border:0;
  border-radius:16px;
  padding:14px;
  font-weight:900;
  z-index:40;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
}

.search-empty{
  padding:30px;
  text-align:center;
  color:#777;
}

/* ===== FOOTER OPTIONNEL ===== */
.footer{
  max-width:1450px;
  width:92%;
  margin:0 auto 28px;
  text-align:center;
  color:#333;
  font-size:15px;
}

.footer-info{
  display:flex;
  justify-content:center;
  gap:28px;
  flex-wrap:wrap;
  margin-bottom:12px;
  font-weight:700;
}

@media(max-width:1200px){
  .layout{
    width:94%;
    grid-template-columns:minmax(0,1fr) 300px;
  }

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

@media(max-width:900px){
  .hero-inner{
    display:block;
    width:94%;
  }

  .notice{
    margin-top:16px;
  }

  .layout{
    width:94%;
    grid-template-columns:1fr;
    margin-bottom:90px;
  }

  .cart-panel{
    display:none;
  }

  .cart-panel.open{
    display:block;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    z-index:60;
    padding:14px;
    overflow:auto;
  }

  .cart-panel.open .cart-sticky{
    position:relative;
    top:0;
    margin:auto;
    max-width:480px;
  }

  .mobile-cart-btn{
    display:block;
  }

  .products-grid{
    grid-template-columns:1fr;
  }

  .brand{
    text-align:center;
  }

  .logo{
    width:170px;
  }

  .close-cart-mobile{
    display:block;
  }

  .product-img{
    height:190px;
  }
}
