/**
 * Accueil — corps sous le slider (DA + responsive).
 *
 * Ne touche PAS le header #15718, le slider #3be76d2,
 * ni #place_order / #vdp_delivery_date / GTM.
 */

body.home {
  --vdp-bg: var(--vdp-background, #f7f6f3);
}

body.home .vdp-home-below {
  font-family: var(--vdp-font, Inter, system-ui, sans-serif) !important;
  color: var(--vdp-black, #111) !important;
  background: var(--vdp-background, #f7f6f3) !important;
  max-width: 100% !important;
  overflow-x: clip;
  box-sizing: border-box;
}

body.home .vdp-home-below *,
body.home .vdp-home-below *::before,
body.home .vdp-home-below *::after {
  box-sizing: border-box;
}

body.home .vdp-hb-wrap {
  width: min(100% - 32px, var(--vdp-container, 1200px)) !important;
  max-width: 100% !important;
  margin-inline: auto !important;
}

body.home .vdp-hb-intro,
body.home .vdp-hb-section,
body.home .vdp-hb-section--soft,
body.home .vdp-hb-why-section,
body.home .vdp-hb-journal {
  background: var(--vdp-background, #f7f6f3) !important;
}

body.home .vdp-hb-title,
body.home .vdp-hb-head .vdp-hb-title,
body.home .vdp-hb-journal__title,
body.home .vdp-hb-why__card-title {
  font-family: var(--vdp-font-display, "Cormorant Garamond", Georgia, serif) !important;
  font-weight: 600 !important;
  color: var(--vdp-black, #111) !important;
}

body.home .vdp-hb-kicker,
body.home .vdp-hb-link,
body.home .vdp-hb-sub,
body.home .vdp-hb-offer {
  font-family: var(--vdp-font, Inter, system-ui, sans-serif) !important;
}

body.home .vdp-hb-intro {
  padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem !important;
}

body.home .vdp-hb-section {
  padding: clamp(1.75rem, 4vw, 3.25rem) 0 !important;
}

body.home .vdp-hb-offer {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  max-width: 100%;
  min-height: 48px;
  padding: 0 1.25rem !important;
  border: 0 !important;
  border-radius: var(--vdp-radius, 8px) !important;
  background: var(--vdp-red, #a30e16) !important;
  color: var(--vdp-white, #fff) !important;
  box-shadow: none !important;
  white-space: normal;
  font-weight: 600 !important;
}

body.home .vdp-hb-offer:hover,
body.home .vdp-hb-offer:focus-visible {
  background: var(--vdp-red-dark, #7e0b10) !important;
  color: var(--vdp-white, #fff) !important;
}

/* Produits : 2 mobile / 4 dès tablette */
body.home .vdp-hb-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.home .vdp-hb-grid > * {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

body.home .vdp-hb-grid .vdp-product-card {
  border-radius: var(--vdp-radius-md, 10px) !important;
}

body.home .vdp-hb-grid .vdp-product-card__body {
  padding: 10px 12px 12px !important;
  gap: 4px !important;
}

body.home .vdp-hb-grid .vdp-product-card__title {
  font-size: 0.95rem !important;
  min-height: 2.4em;
}

body.home .vdp-hb-grid .vdp-product-card__price {
  font-size: 0.9rem !important;
}

body.home .vdp-hb-grid .vdp-product-card__actions .button,
body.home .vdp-hb-grid .vdp-product-card__btn {
  min-height: 40px !important;
  font-size: 0.75rem !important;
}

body.home .vdp-hb-slider .vdp-product-card {
  border-radius: var(--vdp-radius-md, 10px) !important;
}

body.home .vdp-hb-slider .vdp-product-card__title {
  font-size: 0.95rem !important;
  min-height: 2.4em;
}

body.home .vdp-hb-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

body.home .vdp-hb-link {
  white-space: nowrap;
}

body.home .vdp-hb-why__grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
}

body.home .vdp-hb-why__card {
  min-height: 0 !important;
  padding: 1.35rem 1.2rem !important;
  border-radius: var(--vdp-radius-md, 10px);
}

body.home .vdp-hb-why__btn {
  min-height: 48px;
  max-width: 100%;
  text-align: center;
  border-radius: var(--vdp-radius, 8px);
}

body.home .vdp-hb-recipes {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
}

body.home .vdp-hb-recipes > * {
  min-width: 0 !important;
  max-width: 100% !important;
}

body.home .vdp-hb-recipe__frame {
  max-width: 100%;
}

body.home .vdp-hb-recipe__label {
  overflow-wrap: anywhere;
}

@media (min-width: 600px) {
  body.home .vdp-hb-recipes {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 768px) {
  body.home .vdp-hb-wrap {
    width: min(100% - 40px, var(--vdp-container, 1200px)) !important;
  }

  body.home .vdp-hb-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  body.home .vdp-hb-grid .vdp-product-card__title {
    font-size: 1.05rem !important;
  }

  body.home .vdp-hb-why__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  body.home .vdp-hb-why__card {
    padding: 2rem 1.75rem 2.15rem !important;
  }
}

@media (min-width: 1024px) {
  body.home .vdp-hb-recipes {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  body.home .vdp-hb-recipe__frame {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 767px) {
  body.home .vdp-hb-head {
    flex-direction: column;
    align-items: flex-start;
  }

  body.home .vdp-hb-link {
    white-space: normal;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  body.home .vdp-hb-title--xl {
    font-size: clamp(1.65rem, 7vw, 2.15rem) !important;
  }

  body.home .vdp-hb-recipe__frame {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 359px) {
  body.home .vdp-hb-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Catégories — CategoryCard */
body.home .vdp-hb-cats {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.home .vdp-hb-cats > * {
  min-width: 0;
}

body.home .vdp-hb-section.vdp-hb-trust-section {
  padding: 10px 0 4px !important;
}

body.home .vdp-hb-trust-section .vdp-avantages {
  width: 100% !important;
}

body.home .vdp-hb-focus__card {
  display: grid;
  gap: 24px;
  align-items: center;
  background: var(--vdp-white, #fff);
  border: 1px solid var(--vdp-border, #e5e2de);
  border-radius: var(--vdp-radius-lg, 16px);
  overflow: hidden;
}

body.home .vdp-hb-focus__media {
  position: relative;
}

body.home .vdp-hb-focus__media > img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: 70% 40%;
  display: block;
}

body.home .vdp-hb-focus__badges {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  z-index: 2;
  pointer-events: none;
}

body.home .vdp-hb-focus__badges img,
body.home .vdp-hb-badge {
  width: auto !important;
  max-width: none;
  height: 68px;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

body.home .vdp-hb-badge--aop {
  height: 72px;
}

body.home .vdp-hb-badge--camargue {
  height: 76px;
}

body.home .vdp-hb-focus__copy {
  padding: 8px 20px 24px;
}

body.home .vdp-hb-focus__text {
  margin: 12px 0 20px;
  color: var(--vdp-text-secondary, #666);
  font-size: 16px;
  line-height: 1.65;
}

body.home .vdp-hb-focus__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--vdp-radius, 8px);
  background: var(--vdp-red, #a30e16);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
}

body.home .vdp-hb-producers__inner {
  max-width: none;
}

body.home .vdp-hb-producers__text {
  margin: 12px 0 16px;
  color: var(--vdp-text-secondary, #666);
  font-size: 16px;
  line-height: 1.65;
}

body.home .vdp-hb-news__box {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 20px;
  background: var(--vdp-white, #fff);
  border: 1px solid var(--vdp-border, #e5e2de);
  border-radius: var(--vdp-radius-lg, 16px);
}

body.home .vdp-hb-news__form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

body.home .vdp-hb-news__form input,
body.home .vdp-hb-news .mc4wp-form input[type="email"] {
  min-height: 50px;
  flex: 1 1 220px;
  padding: 0 14px;
  border: 1px solid var(--vdp-border, #e5e2de);
  border-radius: var(--vdp-radius, 8px);
  background: #fff;
}

body.home .vdp-hb-news__form button,
body.home .vdp-hb-news .mc4wp-form input[type="submit"],
body.home .vdp-hb-news .mc4wp-form button {
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--vdp-radius, 8px);
  background: var(--vdp-red, #a30e16);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

body.home .vdp-hb-news__legal {
  margin-top: 12px;
  font-size: 13px;
}

@media (min-width: 768px) {
  body.home .vdp-hb-cats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  body.home .vdp-hb-focus__card {
    grid-template-columns: 1.1fr 1fr;
  }

  body.home .vdp-hb-focus__copy {
    padding: 32px 32px 32px 8px;
  }

  body.home .vdp-hb-focus__media > img {
    max-height: 420px;
    object-position: 72% 38%;
  }

  body.home .vdp-hb-badge--aop {
    height: 84px;
  }

  body.home .vdp-hb-badge--camargue {
    height: 88px;
  }
}

@media (max-width: 479px) {
  body.home .vdp-hb-focus__badges {
    left: 8px;
    bottom: 8px;
    gap: 6px;
  }

  body.home .vdp-hb-badge--aop {
    height: 52px;
  }

  body.home .vdp-hb-badge--camargue {
    height: 56px;
  }
}
