/* ═══════════════════════════════════════════
   Vacher Fruits Shop — Front CSS v2
   Couleurs Stan : #E2EFDA (vert clair) #A9D08E (vert moyen)
═══════════════════════════════════════════ */

:root {
  --vf-vert:     #3a5c2b;
  --vf-vert2:    #4e7a38;
  --vf-green-lt: #E2EFDA;
  --vf-green-md: #A9D08E;
  --vf-amber:    #d4860a;
  --vf-amber2:   #f0a832;
  --vf-brun:     #7a4f24;
  --vf-txt:      #2b2015;
  --vf-gris:     #6b6460;
  --vf-r:        10px;
  --vf-shadow:   0 2px 14px rgba(0,0,0,.08);
}

/* ── Familles ── */
.vf-famille { margin-bottom: 48px; }

.vf-famille-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 3px solid var(--vf-green-md);
}
.vf-famille-emoji { font-size: 28px; }
.vf-famille-titre { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--vf-vert); margin: 0; }

/* ── Grille ── */
.vf-produits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

/* ── Card ── */
.vf-produit-card {
  background: #fff;
  border-radius: var(--vf-r);
  box-shadow: var(--vf-shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.vf-produit-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.vf-produit-card.vf-indispo { opacity: .75; }
.vf-produit-card.vf-indispo:hover { transform: none; }

/* ── Image + badge ── */
.vf-produit-img {
  height: 130px; position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  overflow: hidden;
}
.vf-produit-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.vf-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: 13px; font-weight: 700; line-height: 1.4;
  padding: 10px;
  border-radius: 0;
}
.vf-badge-epuise {
  background: rgba(180, 50, 30, .82);
  color: #fff;
}
.vf-badge-dispo {
  background: rgba(58, 92, 43, .85);
  color: #fff;
  font-size: 12px;
}

/* ── Body ── */
.vf-produit-body    { padding: 14px 16px; }
.vf-produit-cat     { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--vf-amber); font-weight: 700; margin-bottom: 4px; }
.vf-produit-nom     { font-size: 15px; font-weight: 700; color: var(--vf-vert); margin: 0 0 4px; }
.vf-produit-desc    { font-size: 12px; color: var(--vf-gris); margin: 0 0 12px; line-height: 1.5; }
.vf-indispo-msg     { font-size: 12px; color: var(--vf-gris); font-style: italic; margin: 0; }

.vf-produit-footer  { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.vf-produit-prix    { font-weight: 700; font-size: 15px; color: var(--vf-brun); }

/* ── Bouton panier ── */
.vf-btn-panier {
  background: var(--vf-vert); color: #fff;
  border: none; border-radius: 5px; padding: 7px 13px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background .2s;
}
.vf-btn-panier:hover { background: var(--vf-amber); }
.vf-btn-panier.added { background: var(--vf-amber2); }

/* ── Variantes ── */
.vf-variantes { display: flex; flex-wrap: wrap; gap: 7px; width: 100%; }
.vf-btn-variante {
  flex: 1; min-width: 120px;
  background: var(--vf-green-lt);
  color: var(--vf-vert);
  border: 1.5px solid var(--vf-green-md);
  border-radius: 5px; padding: 7px 10px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background .2s, color .2s;
  text-align: center;
}
.vf-btn-variante:hover { background: var(--vf-vert); color: #fff; border-color: var(--vf-vert); }
.vf-btn-variante.added { background: var(--vf-amber2); color: #fff; border-color: var(--vf-amber2); }

/* ════════════════════════════════════════
   PANIER FLOTTANT
════════════════════════════════════════ */
.vf-panier {
  position: fixed; top: 140px; right: 20px; width: 275px;
  background: #fff; border-radius: 14px;
  box-shadow: 0 6px 30px rgba(0,0,0,.15);
  border-top: 4px solid var(--vf-vert);
  z-index: 9000; font-size: 13px; overflow: hidden;
}
.vf-panier-header {
  background: var(--vf-vert); color: #fff;
  padding: 11px 16px; display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 13px;
}
.vf-panier-nb {
  background: var(--vf-amber); border-radius: 50%;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.vf-panier-items { max-height: 240px; overflow-y: auto; padding: 10px 14px; border-bottom: 1px solid var(--vf-green-lt); }
.vf-panier-vide  { color: var(--vf-gris); font-size: 12px; text-align: center; padding: 10px 0; margin: 0; }

.vf-panier-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f0ebe0; font-size: 12px; }
.vf-panier-item:last-child { border-bottom: none; }
.vf-panier-item-info { flex: 1; }
.vf-panier-item-nom  { font-weight: 700; color: var(--vf-txt); display: block; }
.vf-panier-item-prix { font-weight: 700; color: var(--vf-brun); white-space: nowrap; }

.vf-qty-wrap { display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.vf-qty-btn  { background: var(--vf-green-lt); border: 1px solid var(--vf-green-md); border-radius: 3px; width: 20px; height: 20px; cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1; color: var(--vf-vert); transition: background .15s; }
.vf-qty-btn:hover { background: var(--vf-green-md); }
.vf-qty-val  { font-size: 12px; font-weight: 700; min-width: 16px; text-align: center; }

.vf-panier-item-del { background: none; border: none; color: #ccc; cursor: pointer; font-size: 14px; padding: 2px; transition: color .15s; }
.vf-panier-item-del:hover { color: #e05050; }

.vf-panier-total { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--vf-green-lt); font-weight: 700; font-size: 14px; }
.vf-panier-total-montant { color: var(--vf-amber); font-size: 16px; }

.vf-btn-commander {
  display: block; width: calc(100% - 28px); margin: 12px 14px;
  background: var(--vf-amber); color: #fff; border: none; border-radius: 6px;
  padding: 12px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; letter-spacing: .3px; transition: background .2s;
}
.vf-btn-commander:hover { background: var(--vf-amber2); }

/* ════════════════════════════════════════
   MODAL
════════════════════════════════════════ */
.vf-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.vf-modal {
  background: #fff; border-radius: 16px; padding: 34px 36px;
  max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto;
  position: relative; box-shadow: 0 12px 50px rgba(0,0,0,.2);
}
.vf-modal h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--vf-vert); margin: 0 0 6px; }
.vf-modal-sub { font-size: 13px; color: var(--vf-gris); margin: 0 0 20px; }
.vf-modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 18px; cursor: pointer; color: var(--vf-gris); transition: color .15s; }
.vf-modal-close:hover { color: var(--vf-txt); }

.vf-recap-articles { background: var(--vf-green-lt); border-radius: 8px; padding: 14px 16px; margin-bottom: 20px; font-size: 13px; }
.vf-recap-articles h4 { font-size: 12px; color: var(--vf-gris); margin: 0 0 8px; text-transform: uppercase; letter-spacing: 1px; }
.vf-recap-row   { display: flex; justify-content: space-between; padding: 4px 0; }
.vf-recap-total { border-top: 1px solid var(--vf-green-md); margin-top: 8px; padding-top: 8px; font-weight: 700; }

/* ════════════════════════════════════════
   FORMULAIRES
════════════════════════════════════════ */
.vf-form { }
.vf-form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vf-form-group  { margin-bottom: 14px; }
.vf-form-group label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--vf-gris); margin-bottom: 5px; }
.vf-form-group input,
.vf-form-group textarea,
.vf-form-group select {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid #ddd; border-radius: 7px;
  font-size: 14px; font-family: inherit; color: var(--vf-txt);
  background: #fff; transition: border-color .2s; box-sizing: border-box;
}
.vf-form-group input:focus,
.vf-form-group textarea:focus,
.vf-form-group select:focus { outline: none; border-color: var(--vf-vert); }
.vf-form-group textarea { resize: vertical; }

.vf-btn-submit {
  width: 100%; background: var(--vf-vert); color: #fff;
  border: none; border-radius: 7px; padding: 14px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: background .2s; margin-top: 4px;
}
.vf-btn-submit:hover    { background: var(--vf-amber); }
.vf-btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.vf-form-feedback { padding: 12px 16px; border-radius: 7px; margin-bottom: 14px; font-size: 14px; font-weight: 700; }
.vf-form-feedback.success { background: var(--vf-green-lt); color: #2a6020; border: 1px solid var(--vf-green-md); }
.vf-form-feedback.error   { background: #fce8e8; color: #a02020; border: 1px solid #e0a0a0; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 767px) {
  .vf-panier { position: fixed; bottom: 0; left: 0; right: 0; top: auto; width: 100%; border-radius: 16px 16px 0 0; }
  .vf-produits-grid { grid-template-columns: 1fr 1fr; }
  .vf-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .vf-produits-grid { grid-template-columns: 1fr; }
}
