:root {
  --primary: #1c594d;
  --primary-dark: #174f2b;
  --primary-light: #e8f1ea;
  --accent: #f5a623;
  --bg: #f5f5f5;
  --text: #1a1a1a;
  --muted: #6b7280;
  --card: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.font-serif { font-family: 'Fraunces', Georgia, serif; }

/* Top nav */
.top-nav {
  position: sticky; top: 0; z-index: 1040;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.top-nav .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 1.5rem; gap: 1rem;
}
.top-nav a { color: #fff; text-decoration: none; }
.top-nav .brand { display: flex; align-items: center; gap: .5rem; font-family: 'Fraunces', serif; }
.top-nav .brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.3); }
.top-nav nav.main-nav { display: flex; gap: 1.5rem; font-size: .9rem; }
.top-nav nav.main-nav a { opacity: .85; }
.top-nav nav.main-nav a:hover, .top-nav nav.main-nav a.active { opacity: 1; font-weight: 600; }
.cart-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.15); padding: .375rem .75rem; border-radius: 999px;
  font-size: .875rem; font-weight: 500; transition: background .2s;
}
.cart-btn:hover { background: rgba(255,255,255,.25); }
.cart-badge {
  background: var(--accent); color: #1a1a1a;
  min-width: 20px; height: 20px; border-radius: 999px;
  display: inline-grid; place-items: center; font-size: .7rem; font-weight: 700; padding: 0 .35rem;
}
.menu-toggle { display: none; background: rgba(255,255,255,.15); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }

/* Hero banner */
.hero-banner {
  position: relative;
  background: var(--primary);
  height: 320px;
  overflow: hidden;
}
.hero-banner img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-banner .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.3), rgba(0,0,0,.1), rgba(31,107,58,.7));
}
.hero-banner .content {
  position: relative; z-index: 2;
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-align: center; padding: 0 1rem; gap: .75rem;
}
.hero-logo {
  width: 120px; height: 120px; border-radius: 50%; border: 4px solid #fff;
  background: #000; box-shadow: 0 10px 25px rgba(0,0,0,.3); overflow: hidden;
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.hero-banner h1 { font-family: 'Fraunces', serif; font-size: 2.25rem; margin: 0; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.hero-banner p { font-size: .9rem; margin: 0; opacity: .9; }

/* Boutique */
.container-page { max-width: 1280px; margin: 0 auto; padding: 1.5rem 1rem; }
.page-title { font-family: 'Fraunces', serif; font-size: 1.875rem; margin: 0; }
.page-subtitle { color: var(--muted); font-size: .875rem; margin-top: .25rem; }

.filters-bar {
  position: sticky; top: 52px; z-index: 30;
  background: rgba(245,245,245,.95); backdrop-filter: blur(8px);
  margin: 1rem -1rem 0; padding: .5rem 1rem;
}
.filters-scroll { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem 0; }
.filters-scroll::-webkit-scrollbar { display: none; }
.filter-chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .8rem; border-radius: 999px;
  font-size: .8rem; font-weight: 500; background: #fff;
  color: var(--text); border: 1px solid rgba(0,0,0,.05); cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--primary); }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-chip svg { width: 14px; height: 14px; }

.cat-section { margin-top: 2.5rem; }
.cat-section:first-of-type { margin-top: 1.5rem; }
.cat-heading {
  display: flex; align-items: center; gap: .5rem;
  font-family: 'Fraunces', serif; font-size: 1.25rem; margin: 0 0 .75rem;
}
.cat-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-light); color: var(--primary); }
.cat-icon svg { width: 16px; height: 16px; }

.products-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .products-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .products-grid { grid-template-columns: 1fr 1fr 1fr; } }

.product-card {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; padding: 1rem; border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.05);
}
.product-thumb {
  width: 96px; height: 96px; flex-shrink: 0;
  border-radius: .75rem; overflow: hidden; background: #fff;
  border: 1px solid rgba(0,0,0,.05);
  display: grid; place-items: center;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-info { flex: 1; min-width: 0; }
.product-row { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.product-name { font-size: 1rem; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-price { color: var(--primary); font-weight: 600; font-size: 1rem; flex-shrink: 0; }
.product-desc { font-size: .8rem; color: var(--muted); margin: .15rem 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-actions { display: flex; justify-content: space-between; align-items: center; margin-top: .75rem; gap: .5rem; }
.product-unit { font-size: .7rem; color: var(--muted); }
.btn-add {
  display: inline-flex; align-items: center; gap: .25rem;
  background: var(--primary); color: #fff; border: none;
  padding: 0 .85rem; height: 32px; border-radius: 999px;
  font-size: .75rem; font-weight: 500; cursor: pointer; transition: background .15s;
}
.btn-add:hover { background: var(--primary-dark); }
.btn-add svg { width: 14px; height: 14px; }
.qty-control { display: inline-flex; align-items: center; gap: .25rem; padding: 2px; background: var(--primary-light); border-radius: 999px; }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer; display: grid; place-items: center; }
.qty-btn.minus { background: #fff; color: var(--primary); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
.qty-btn.plus { background: var(--primary); color: #fff; }
.qty-btn svg { width: 14px; height: 14px; }
.qty-val { width: 24px; text-align: center; font-weight: 600; color: var(--primary); font-size: .875rem; }

/* Récoltés section */
.passion-section { margin-top: 3rem; }
.passion-card { background: #fff; border-radius: 1.5rem; overflow: hidden; border: 1px solid rgba(0,0,0,.05); }
.passion-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .passion-grid { grid-template-columns: 4fr 8fr; } }
.passion-text { background: #f8f4e8; padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.passion-text .tag { font-family: 'Fraunces', serif; font-style: italic; color: var(--primary); font-size: .875rem; margin: 0; }
.passion-text h3 { font-family: 'Fraunces', serif; font-size: 1.875rem; margin: .25rem 0 .75rem; }
.passion-text p { color: var(--muted); font-size: .875rem; margin: 0 0 1.25rem; }
.passion-text a {
  align-self: flex-start; background: var(--primary); color: #fff; text-decoration: none;
  padding: .65rem 1rem; border-radius: .375rem; font-weight: 500; font-size: .875rem; transition: background .15s;
}
.passion-text a:hover { background: var(--primary-dark); }
.passion-images { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; min-height: 320px; }
.passion-images img { width: 100%; height: 100%; object-fit: cover; }
.passion-images img:nth-child(1) { grid-row: span 2; }
.passion-images img:nth-child(3) { grid-row: span 2; }

/* Pourquoi choisir */
.why-section { margin-top: 2.5rem; }
.why-section h3 { font-family: 'Fraunces', serif; font-size: 1.5rem; padding: 0 .25rem; margin-bottom: 1rem; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; padding: 1.25rem; border-radius: 1rem; border: 1px solid rgba(0,0,0,.05); }
.why-icon { width: 48px; height: 48px; border-radius: 50%; background: #eaf0e3; color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.why-icon svg { width: 24px; height: 24px; }
.why-card h4 { font-family: 'Fraunces', serif; font-size: 1rem; margin: 0; }
.why-card p { font-size: .875rem; color: var(--muted); margin: .25rem 0 0; }

/* Footer */
.site-footer { margin-top: 5rem; }
.footer-grass {
  position: relative; height: 80px; overflow: hidden;
  background: linear-gradient(to bottom, transparent, #5a4a3a 60%);
}
.footer-grass::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to bottom, #6b5a47, #3d3327);
}
.footer-main { background: var(--primary); color: rgba(255,255,255,.85); padding: 3rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 0 1.5rem; max-width: 100%; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); padding: 0 4rem; } }
.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 600; margin: 0 0 .75rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li, .footer-col a { font-size: .85rem; color: rgba(255,255,255,.8); text-decoration: none; padding: .25rem 0; display: flex; align-items: center; gap: .5rem; }
.footer-col a:hover { color: #fff; }
.footer-brand img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); object-fit: cover; }
.footer-brand .name { display: flex; align-items: center; gap: .75rem; font-family: 'Fraunces', serif; font-size: 1.1rem; color: #fff; }
.footer-brand p { margin: .75rem 0; font-size: .85rem; }
.social-icons { display: flex; gap: .5rem; margin-top: .75rem; }
.social-icons a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #fff; padding: 0; transition: background .15s; }
.social-icons a:hover { background: rgba(255,255,255,.2); }
.social-icons svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding: 1.25rem 1.5rem; font-size: .75rem; color: rgba(255,255,255,.6); display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; }
@media (min-width: 768px) { .footer-bottom { padding: 1.25rem 4rem; } }
.pay-badges { display: flex; align-items: center; gap: .5rem; }
.pay-badge { background: #fff; color: var(--text); padding: .25rem .5rem; border-radius: .25rem; font-size: .65rem; font-weight: 700; display: inline-flex; align-items: center; gap: .25rem; }
.pay-badge.visa { color: #1a1f71; font-style: italic; }
.pay-badge.mc-dot { padding: .25rem; }
.pay-badge.mc-dot .d1 { width: 14px; height: 14px; border-radius: 50%; background: #eb001b; }
.pay-badge.mc-dot .d2 { width: 14px; height: 14px; border-radius: 50%; background: #f79e1b; margin-left: -6px; mix-blend-mode: multiply; opacity: .9; }

/* WhatsApp button */
.wa-float {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 1050;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2);
  border: 4px solid rgba(255,255,255,.5); text-decoration: none; transition: transform .2s;
}
.wa-float:hover { transform: scale(1.05); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* Cart modal */
.cart-item { display: flex; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.cart-item img { width: 56px; height: 56px; border-radius: .5rem; object-fit: contain; background: #fff; border: 1px solid rgba(0,0,0,.05); }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .info h6 { margin: 0; font-size: .9rem; }
.cart-item .info small { color: var(--muted); }
.cart-empty { text-align: center; padding: 2rem; color: var(--muted); }
.cart-total { display: flex; justify-content: space-between; font-weight: 600; font-size: 1.1rem; padding-top: 1rem; }

/* Responsive */
@media (max-width: 767px) {
  .top-nav nav.main-nav { display: none; }
  .top-nav nav.main-nav.open { display: flex; flex-direction: column; gap: .5rem; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary); padding: 1rem; }
  .menu-toggle { display: grid; place-items: center; }
  .top-nav .nav-inner { position: relative; padding: .5rem 1rem; }
  .top-nav .brand .name-text { display: none; }
  .hero-banner { height: 240px; }
  .hero-banner h1 { font-size: 1.5rem; }
  .hero-logo { width: 96px; height: 96px; }
  .product-thumb { width: 80px; height: 80px; }
  .passion-images { min-height: 200px; }
}
