/**
 * Viandes des Prés — layout header / footer
 *
 * N’altère pas la structure Elementor #15718 / #7185.
 * N’a pas d’effet sur #place_order, #vdp_delivery_date, ni le dataLayer.
 */

/* Header : cibles tactiles ≥ 44px, sans changer la grille */
body.vdp-header-harmony .elementor-15718 {
  --vdp-hh-height: 44px;
}

body.vdp-header-harmony .elementor-15718 .vdp-header-action,
body.vdp-header-harmony .elementor-15718 .elementor-element-c1c6370 .fkcart-shortcode-container {
  min-height: 44px !important;
  min-width: 44px !important;
}

@media (max-width: 1024px) {
  body.vdp-header-harmony.vdp-mobile-mega-open .elementor-15718 #vdp-menu .e-n-menu-title-container,
  body.vdp-header-harmony.vdp-mobile-mega-open .elementor-15718 #vdp-menu .e-n-menu-title-container.e-link {
    min-height: 48px !important;
  }

  body.vdp-header-harmony .elementor-15718 .elementor-element-vdp0mobsearch .dgwt-wcas-search-wrapp,
  body.vdp-header-harmony .elementor-15718 .elementor-element-vdp0mobsearch .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
    min-height: 44px !important;
    height: 44px !important;
  }
}

body.vdp-header-harmony.vdp-mobile-mega-open .vdp-mobile-nav-foot {
  flex-wrap: wrap !important;
  border-color: var(--vdp-border, #e5e2de) !important;
}

body.vdp-header-harmony.vdp-mobile-mega-open .vdp-mobile-nav-foot a {
  min-height: 48px !important;
  border-radius: var(--vdp-radius, 8px) !important;
}

body.vdp-header-harmony.vdp-mobile-mega-open .vdp-mobile-nav-foot a.vdp-mobile-nav-foot__shop {
  background: var(--vdp-red, #a30e16) !important;
}

body.vdp-header-harmony.vdp-mobile-mega-open .vdp-mobile-nav-foot a.vdp-mobile-nav-foot__account {
  background: var(--vdp-white, #fff) !important;
  color: var(--vdp-black, #111) !important;
  border: 1px solid var(--vdp-border, #e5e2de) !important;
}

body.vdp-header-harmony.vdp-mobile-mega-open .vdp-mobile-nav-foot a.vdp-mobile-nav-foot__tel {
  flex: 1 1 100% !important;
  background: var(--vdp-background-soft, #f2f0ec) !important;
  color: var(--vdp-black, #111) !important;
  border: 1px solid var(--vdp-border, #e5e2de) !important;
}

/* Footer HTML widget .footer-vdp — override du CSS inline Montserrat */
.elementor-location-footer .footer-vdp,
.footer-vdp {
  width: min(var(--vdp-container, 1200px), calc(100% - 40px)) !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: var(--vdp-space-7, 64px) 0 var(--vdp-space-5, 32px) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)) !important;
  gap: var(--vdp-space-5, 32px) var(--vdp-space-6, 48px) !important;
  justify-content: stretch !important;
  align-items: start !important;
  background: var(--vdp-background, #f7f6f3) !important;
  font-family: var(--vdp-font, Inter, system-ui, sans-serif) !important;
  position: relative !important;
  box-sizing: border-box !important;
  overflow-x: clip;
}

.footer-vdp .footer-col {
  min-width: 0 !important;
  max-width: none !important;
  flex: none !important;
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
  align-items: flex-start !important;
}

.footer-vdp .footer-partenaire {
  margin-top: 16px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--vdp-text-secondary, #666) !important;
  cursor: default !important;
}

.footer-vdp .footer-pro-in-col {
  margin-top: 8px !important;
  width: 100% !important;
}

.footer-vdp .footer-col h3 {
  margin: 0 0 var(--vdp-space-3, 16px) !important;
  font-family: var(--vdp-font-display, "Cormorant Garamond", Georgia, serif) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: var(--vdp-black, #111) !important;
  line-height: 1.2 !important;
}

.footer-vdp__blurb,
.footer-vdp__pay {
  margin: 0 0 12px !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--vdp-text-secondary, #666) !important;
}

.footer-vdp__news,
.footer-vdp__news-form {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 12px auto 16px !important;
  max-width: 480px !important;
}

.footer-vdp__news-form input,
.footer-communaute-vdp .mc4wp-form input[type="email"] {
  min-height: 48px !important;
  flex: 1 1 200px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: var(--vdp-radius, 8px) !important;
}

.footer-vdp__news-form button,
.footer-communaute-vdp .mc4wp-form input[type="submit"],
.footer-communaute-vdp .mc4wp-form button {
  min-height: 48px !important;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: var(--vdp-radius, 8px) !important;
  background: var(--vdp-red, #a30e16) !important;
  color: #fff !important;
  font-weight: 600 !important;
}

.footer-vdp .footer-col ul {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

.footer-vdp .footer-col li {
  margin: 0 0 8px !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.footer-vdp .footer-col a {
  color: var(--vdp-text-secondary, #666) !important;
  text-decoration: none !important;
  font-family: var(--vdp-font, Inter, system-ui, sans-serif) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.footer-vdp .footer-col a:hover,
.footer-vdp .footer-col a:focus-visible {
  color: var(--vdp-red, #a30e16) !important;
  text-decoration: none !important;
}

.footer-vdp .btn-pro {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  margin-top: var(--vdp-space-3, 16px) !important;
  padding: 0 16px !important;
  border-radius: var(--vdp-radius, 8px) !important;
  background: var(--vdp-red, #a30e16) !important;
  color: var(--vdp-white, #fff) !important;
  font-family: var(--vdp-font, Inter, system-ui, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-decoration: none !important;
}

.footer-vdp .btn-pro:hover {
  background: var(--vdp-red-dark, #7e0b10) !important;
  color: var(--vdp-white, #fff) !important;
}

.footer-communaute-vdp {
  background: var(--vdp-black-soft, #1a1a1a) !important;
  color: var(--vdp-white, #fff) !important;
  padding: var(--vdp-space-5, 32px) 20px !important;
  text-align: center !important;
  font-family: var(--vdp-font, Inter, system-ui, sans-serif) !important;
}

.footer-communaute-vdp .footer-texte-vdp {
  font-family: var(--vdp-font-display, "Cormorant Garamond", Georgia, serif) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  margin: 16px 0 !important;
}

.footer-bas-vdp {
  background: var(--vdp-black, #111) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  padding: 16px 20px 24px !important;
  font-family: var(--vdp-font, Inter, system-ui, sans-serif) !important;
  font-size: 13px !important;
  text-align: center !important;
}

.footer-bas-vdp a {
  color: var(--vdp-white, #fff) !important;
  text-decoration: none !important;
}

.footer-bas-vdp a:hover {
  color: var(--vdp-white, #fff) !important;
  text-decoration: underline !important;
}

.elementor-location-footer,
.elementor-7185 .elementor-element-a1084fc,
.elementor-7185 .elementor-element-a1084fc > .elementor-container {
  background: var(--vdp-background, #f7f6f3) !important;
  overflow-x: clip;
}

.elementor-location-footer .elementor-widget-container,
.elementor-7185 .elementor-element-8322542 .elementor-widget-container {
  max-width: 100% !important;
  overflow-x: clip;
}

.footer-communaute-vdp .footer-logos-row,
.footer-payments-logos,
.footer-logos-vdp,
.footer-bas-main,
.footer-bas-links {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  max-width: 100% !important;
}

.footer-payments-logos img,
.footer-payments-logos img.logo-chronofresh {
  height: auto !important;
  max-height: 48px !important;
  width: auto !important;
  max-width: min(210px, 42vw) !important;
  margin: 0 !important;
  object-fit: contain !important;
  background: var(--vdp-white, #fff) !important;
  border-radius: var(--vdp-radius, 8px) !important;
  padding: 4px 10px !important;
  box-sizing: border-box !important;
}

.footer-logos-vdp .icon-footer {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  background: var(--vdp-white, #fff) !important;
  border-radius: 50% !important;
  padding: 6px !important;
  box-sizing: border-box !important;
}

.footer-bas-main {
  gap: 8px 18px !important;
}

@media (max-width: 1024px) {
  .footer-vdp {
    grid-template-columns: 1fr 1fr !important;
    width: calc(100% - 32px) !important;
    max-width: 100% !important;
    gap: 32px 24px !important;
    padding: 48px 0 24px !important;
  }
}

@media (max-width: 600px) {
  .footer-vdp {
    grid-template-columns: 1fr !important;
    width: calc(100% - 32px) !important;
    padding: 40px 0 24px !important;
    gap: 28px !important;
  }

  .footer-vdp .footer-col {
    width: 100% !important;
    max-width: 100% !important;
  }

  .footer-vdp .footer-col h3 {
    font-size: 22px !important;
  }

  .footer-vdp .footer-col a,
  .footer-vdp .footer-col li {
    font-size: 15px !important;
  }

  .footer-vdp .footer-col a {
    display: inline-flex !important;
    min-height: 44px !important;
    align-items: center !important;
  }

  .footer-vdp .btn-pro {
    width: 100% !important;
    max-width: 100% !important;
  }

  .footer-communaute-vdp {
    padding: 28px 16px !important;
  }

  .footer-communaute-vdp .footer-texte-vdp {
    font-size: 18px !important;
    line-height: 1.3 !important;
    margin: 12px 0 !important;
    padding: 0 8px !important;
  }

  .footer-payments-logos img,
  .footer-payments-logos img.logo-chronofresh {
    max-width: min(160px, 70vw) !important;
    max-height: 40px !important;
  }

  .footer-bas-vdp {
    padding: 16px 16px 24px !important;
  }

  .footer-bas-main {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .footer-bas-slogan {
    padding: 0 8px;
  }
}
