/* ===== IMPORT POLICE BRAND ===== */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ===== VARIABLES CHARTE AUFRUITS ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  /* Couleurs officielles */
  --vert-fonce:  #4B8A40;
  --vert-clair:  #70BE52;
  --orange:      #F47E23;
  --jaune:       #ECD961;
  --rouge:       #ED2B31;
  --bordeaux:    #A61F2D;

  /* Alias fonctionnels */
  --primary:     var(--vert-fonce);
  --accent:      var(--orange);
  --highlight:   var(--jaune);
  --text:        #2d2d2d;
  --muted:       #666;
  --bg:          #f8faf7;
  --white:       #ffffff;
  --radius:      14px;
  --shadow:      0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover:0 8px 32px rgba(0,0,0,0.14);

  /* Typographie */
  --font-title:  'Baloo 2', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-brand:  'Baloo 2', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body:   'Inter', Helvetica, Arial, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 50px;
  box-shadow: 0 2px 12px rgba(75,138,64,.12);
  border-bottom: 3px solid var(--jaune);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand .logo-img { height: 45px; width: auto; object-fit: contain; }
.nav-brand span.logo { font-size: 2rem; }
.nav-brand span.name {
  font-family: var(--font-title);
  font-size: 1.4rem; font-weight: 800;
  color: var(--vert-fonce); letter-spacing: 0.5px;
}
.nav-brand span.name em { color: var(--orange); font-style: normal; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text); font-size: 0.92rem; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: all .2s;
}
.nav-links a:hover { color: var(--vert-fonce); border-bottom-color: var(--orange); }
.nav-links a.active { color: var(--vert-fonce); border-bottom-color: var(--vert-fonce); font-weight: 700; }
.nav-cart {
  background: var(--orange); color: #fff; border: none; border-radius: 50px;
  padding: 10px 22px; font-size: 0.92rem; font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: background .2s; box-shadow: 0 3px 10px rgba(244,126,35,.3);
}
.nav-cart:hover { background: #d96915; }
.cart-count {
  background: var(--vert-fonce); color: #fff; border-radius: 50%;
  width: 22px; height: 22px; font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ===== HERO ===== */
.hero {
  background: var(--vert-fonce);
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex; flex-direction: column;
}
.hero-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding: 20px 5% 40px; flex: 1;
}
.hero-text {
  flex: 1;
  min-width: 0;
}
.hero-text h1 {
  font-family: var(--font-title);
  font-size: 2.0rem; font-weight: 800;
  color: #fff; line-height: 1.2; margin-bottom: 10px;
}
.hero-text h1 span { color: var(--jaune); }
.hero-text p  {
  font-size: 0.92rem; color: rgba(255,255,255,0.85);
  max-width: 480px; margin-bottom: 20px; line-height: 1.6;
}
.hero-slogan {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.85rem; font-weight: 600;
  color: var(--vert-fonce); background: var(--jaune);
  padding: 5px 16px; border-radius: 50px;
  margin-bottom: 16px; letter-spacing: 1px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--orange); color: #fff; border: none; border-radius: 50px;
  padding: 14px 32px; font-size: 1rem; font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer; transition: all .2s;
  box-shadow: 0 4px 16px rgba(244,126,35,.4);
}
.btn-primary:hover { background: #d96915; transform: translateY(-2px); }
.btn-secondary {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50px; padding: 14px 32px;
  font-size: 1rem; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; transition: all .2s;
}
.btn-secondary:hover { border-color: var(--jaune); color: var(--jaune); }
.hero-fruits {
  flex-shrink: 0;
  width: 42%; max-width: 480px;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.hero-fruits img {
  width: 100%; height: 251px; object-fit: cover; object-position: center; display: block;
}

/* Vague jaune-verte en bas du hero */
.hero-wave {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 60px; overflow: hidden;
}
.hero-wave svg { display: block; width: 100%; height: 100%; }

/* ===== BANNIÈRE CONTACT ===== */
.contact-bar {
  background: var(--jaune);
  padding: 10px 5%;
  display: flex; align-items: center; justify-content: center; gap: 32px;
  flex-wrap: wrap;
}
.contact-bar span {
  font-size: 0.85rem; font-weight: 600; color: var(--vert-fonce);
  display: flex; align-items: center; gap: 6px;
}

/* ===== TITRES DE SECTION ===== */
.section-title { text-align: center; padding: 56px 5% 0; }
.section-title h2 {
  font-family: var(--font-title);
  font-size: 2rem; font-weight: 800;
  color: var(--vert-fonce); margin-bottom: 8px;
}
.section-title p  { color: var(--muted); font-size: 1rem; }
.section-title .line {
  width: 60px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--jaune));
  margin: 14px auto 0;
}

/* ===== ONGLETS CATÉGORIES ===== */
.cat-tabs {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; padding: 32px 5% 0;
}
.cat-tab {
  background: var(--white); border: 2px solid #e0e8de;
  border-radius: 50px; padding: 10px 22px;
  font-size: 0.92rem; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; gap: 8px; color: var(--text);
}
.cat-tab:hover  { border-color: var(--vert-fonce); color: var(--vert-fonce); }
.cat-tab.active {
  background: var(--vert-fonce); border-color: var(--vert-fonce);
  color: #fff; box-shadow: 0 3px 12px rgba(75,138,64,.25);
}
.cat-tab span { font-size: 1.1rem; }
.cat-img {
  width: 28px; height: 28px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(75,138,64,.2);
  flex-shrink: 0;
}

/* ===== GRILLE PRODUITS ===== */
.products-section { padding: 28px 5% 60px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px; margin-top: 22px;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow .25s, border-color .25s; cursor: pointer;
  display: flex; flex-direction: column;
  border: 1px solid rgba(75,138,64,.08);
  overflow: hidden;
  transform: translateZ(0); /* force GPU — fix overflow tous navigateurs */
  will-change: transform;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(75,138,64,.2);
}
.product-img {
  background: #f8faf7;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  width: 100%; height: 126px;
  overflow: hidden; flex-shrink: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #fff;
}
.product-photo {
  width: 100%; height: 126px;
  object-fit: contain; object-position: center;
  display: block; padding: 6px;
}
.product-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--orange); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 50px; text-transform: uppercase;
  z-index: 1;
}
.badge-local      { background: var(--vert-fonce); }
.badge-premium    { background: var(--bordeaux); }
.badge-tradition  { background: #7b5ea7; }
.badge-saison     { background: var(--vert-clair); }
.badge-populaire  { background: var(--orange); }
.badge-nouveau    { background: var(--rouge); }
.badge-rupture    { background: #999; }

.product-info { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.product-name {
  font-family: var(--font-title);
  font-size: 0.92rem; font-weight: 700;
  color: var(--vert-fonce); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-desc {
  font-size: 0.75rem; color: var(--muted); line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.variant-select { margin-bottom: 8px; }
.variant-qty-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 6px;
  margin-top: 10px;
}
.qty-stepper {
  display: flex; align-items: center; gap: 6px;
  background: #f0f4ef; border-radius: 50px;
  padding: 3px 8px;
}
.qty-step-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; font-weight: 700;
  color: var(--vert-fonce); width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background .15s;
}
.qty-step-btn:hover { background: var(--vert-fonce); color: #fff; }
.qty-step-val {
  font-weight: 800; font-size: 0.9rem;
  color: var(--vert-fonce); min-width: 20px; text-align: center;
}
.price-display { flex: 1; text-align: right; }
.variant-dd {
  width: 100%; padding: 6px 10px;
  border: 2px solid #e0e8de; border-radius: 8px;
  font-size: 0.78rem; font-weight: 600;
  color: var(--vert-fonce); background: #f8faf7;
  cursor: pointer; font-family: var(--font-body);
  outline: none;
}
.variant-dd:focus { border-color: var(--vert-fonce); }
.product-footer { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.price-line     { display: flex; align-items: baseline; gap: 2px; }
.simple-qty-row { display: flex; align-items: center; justify-content: space-between; }
.product-price  {
  font-family: var(--font-title);
  font-size: 1rem; font-weight: 800; color: var(--orange);
}
.product-unit   { font-size: 0.7rem; color: var(--muted); font-weight: 400; }
.btn-add {
  background: var(--vert-fonce); color: #fff; border: none;
  border-radius: 50px; width: 32px; height: 32px; font-size: 1.2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s; flex-shrink: 0;
}
.btn-add:hover { background: var(--orange); transform: scale(1.1); }

/* ===== PANIER DRAWER ===== */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 100%; max-width: 420px; background: #fff; z-index: 201;
  transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column;
  box-shadow: -6px 0 32px rgba(0,0,0,0.15);
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  padding: 18px 22px; border-bottom: 3px solid var(--jaune);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--vert-fonce);
}
.cart-header h3 {
  font-family: var(--font-title);
  font-size: 1.15rem; font-weight: 700; color: #fff;
}
.cart-close {
  background: rgba(255,255,255,.2); border: none;
  font-size: 1.1rem; cursor: pointer; color: #fff;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.cart-close:hover { background: rgba(255,255,255,.35); }
.cart-items { flex: 1; overflow-y: auto; padding: 14px 20px; }
.cart-empty  { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty  .empty-icon { font-size: 3.5rem; margin-bottom: 12px; }
.cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid #f0f0f0;
}
.cart-item-emoji { font-size: 2rem; width: 40px; text-align: center; }
.cart-item-info  { flex: 1; }
.cart-item-name  { font-weight: 600; font-size: 0.9rem; margin-bottom: 3px; color: var(--vert-fonce); }
.cart-item-price { color: var(--orange); font-weight: 700; font-size: 0.88rem; }
.cart-item-qty   { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  background: #f0f0f0; border: none; border-radius: 50%;
  width: 28px; height: 28px; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.qty-btn:hover { background: var(--vert-fonce); color: #fff; }
.qty-num { font-weight: 700; min-width: 20px; text-align: center; }
.cart-footer { padding: 18px 20px; border-top: 1px solid #f0f0f0; background: #fafaf8; }
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.cart-total span:first-child { font-weight: 600; color: var(--muted); }
.cart-total span:last-child {
  font-family: var(--font-title);
  font-weight: 800; color: var(--orange); font-size: 1.3rem;
}
.btn-checkout {
  width: 100%; background: var(--orange); color: #fff; border: none;
  border-radius: 50px; padding: 15px; font-size: 1rem; font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer; transition: background .2s;
  box-shadow: 0 4px 14px rgba(244,126,35,.35);
}
.btn-checkout:hover { background: #d96915; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--vert-fonce); color: #fff;
  padding: 12px 24px; border-radius: 50px; font-size: 0.9rem;
  font-weight: 600; z-index: 300; transition: transform .3s ease;
  pointer-events: none; display: flex; align-items: center; gap: 8px;
  border-left: 4px solid var(--jaune);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== FOOTER ===== */
footer {
  background: var(--vert-fonce); color: rgba(255,255,255,0.75);
  padding: 40px 5% 28px;
}
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; margin-bottom: 28px;
}
.footer-logo {
  height: 45px; width: auto; margin-bottom: 6px; object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer-brand .brand-name {
  font-family: var(--font-title);
  font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 4px;
}
.footer-brand .slogan {
  font-size: 0.85rem; color: var(--jaune); font-weight: 500;
}
.footer-contact { font-size: 0.88rem; line-height: 1.9; }
.footer-contact a { color: var(--jaune); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 20px; text-align: center;
  font-size: 0.82rem; color: rgba(255,255,255,.5);
}
.footer-bottom span { color: var(--jaune); font-weight: 600; }

/* ===== MISE EN AVANT ===== */
.featured-section {
  padding: 28px 5% 24px;
  background: #f8faf7;
}
.featured-inner { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.featured-title-bar { text-align: center; }
.featured-title-bar h2 {
  font-family: var(--font-title);
  font-size: 1.1rem; font-weight: 700;
  color: var(--vert-fonce); margin-bottom: 2px;
}
.featured-title-bar p { font-size: 0.8rem; color: var(--muted); }
.featured-cards {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  width: 100%; max-width: 860px;
}
.featured-card {
  background: #fff; border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,.09);
  border: 1px solid #e0e8de;
  display: flex; align-items: center; gap: 20px;
  padding: 20px 24px;
  flex: 1; min-width: 300px; max-width: 460px;
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.13);
}
.featured-card-ribbon {
  position: absolute; top: 14px; left: -2px;
  background: var(--orange); color: #fff;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 4px 14px 4px 10px;
  border-radius: 0 50px 50px 0;
  box-shadow: 2px 2px 6px rgba(244,126,35,.35);
}
.featured-card-img {
  width: 110px; height: 110px; flex-shrink: 0;
  border-radius: 12px; background: #f4f7f3;
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
  overflow: hidden;
}
.featured-card-img img {
  width: 100%; height: 100%; object-fit: contain; padding: 6px;
}
.featured-card-body { flex: 1; min-width: 0; }
.featured-card-promo {
  display: inline-block; background: var(--rouge); color: #fff;
  font-size: 0.7rem; font-weight: 800;
  padding: 3px 11px; border-radius: 50px; margin-bottom: 6px;
}
.featured-card-name {
  font-family: var(--font-title);
  font-size: 1.05rem; font-weight: 800;
  color: var(--vert-fonce); margin-bottom: 4px;
}
.featured-card-desc {
  font-size: 0.78rem; color: var(--muted);
  line-height: 1.5; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.featured-card-footer {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.featured-card-price {
  font-family: var(--font-title);
  font-size: 1.15rem; font-weight: 800; color: var(--orange);
}
.featured-card-unit { font-size: 0.72rem; color: var(--muted); }
.featured-stepper {
  display: flex; align-items: center; gap: 6px;
  background: #f0f4ef; border-radius: 50px; padding: 4px 10px;
}
.featured-step-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 700; color: var(--vert-fonce);
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.featured-step-btn:hover { background: var(--vert-fonce); color: #fff; }
.featured-step-val {
  font-weight: 800; font-size: 0.88rem;
  color: var(--vert-fonce); min-width: 20px; text-align: center;
}
/* Sélecteur contenance (jus) sur cartes mise en avant */
.featured-variant-row { margin: 6px 0 4px; }
.featured-variant-dd {
  width: 100%;
  padding: 7px 10px;
  border: 1.5px solid #d4e8d0;
  border-radius: 10px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  color: var(--vert-fonce);
  background: #f0f7ee;
  cursor: pointer;
  font-weight: 600;
  outline: none;
  transition: border-color .2s;
}
.featured-variant-dd:focus { border-color: var(--vert-fonce); }

.btn-featured {
  background: var(--vert-fonce); color: #fff; border: none;
  border-radius: 50px; padding: 9px 18px;
  font-size: 0.82rem; font-weight: 700; font-family: var(--font-body);
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-featured:hover { background: var(--orange); }
@media (max-width: 768px) {
  .featured-cards { flex-direction: column; }
  .featured-card { max-width: 100%; }
}

/* ===== BOUTON WHATSAPP FLOTTANT ===== */
.whatsapp-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  background: #25D366; color: #fff;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 16px;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  font-size: 0.92rem; font-weight: 700; font-family: var(--font-body);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.whatsapp-fab svg {
  width: 26px; height: 26px; flex-shrink: 0;
}
.whatsapp-fab:hover {
  background: #1ebe5d;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(37,211,102,.55);
}
@media (max-width: 768px) {
  .whatsapp-fab span { display: none; }
  .whatsapp-fab { padding: 14px; border-radius: 50%; bottom: 20px; right: 20px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; padding: 44px 5% 70px; text-align: center; }
  .hero-text h1 { font-size: 2rem; }
  .hero-fruits  { width: 100%; max-width: 100%; }
  .hero-fruits img { height: 220px; }
  .hero-cta     { justify-content: center; }
  .nav-links    { display: none; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 14px; }
  .product-img  { height: 110px; font-size: 3rem; }
  .contact-bar  { gap: 16px; }
}
