/**
 * Audit premium — badges confiance, panier, filtres, PDP, accessibilité tactile
 */

picture {
  display: block;
  width: 100%;
  height: 100%;
}

picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Badges de confiance (avant footer) ——— */
.hb-trust-strip {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(28px, 4vw, 40px) clamp(16px, 4vw, 32px);
  background: #faf8f4;
  border-top: 1px solid rgba(155, 124, 55, 0.12);
}

.hb-trust-strip__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.hb-trust-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 12px 8px;
}

.hb-trust-strip__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.hb-trust-strip__title {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #141210;
}

.hb-trust-strip__sub {
  font-size: 0.72rem;
  color: #6e6458;
  line-height: 1.4;
}

/* ——— Barre progression panier ——— */
.cart-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 14px;
  padding: 0 4px;
}

.cart-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 18, 16, 0.38);
  transition: color 0.35s ease;
}

.cart-progress__step span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(155, 124, 55, 0.25);
  font-size: 0.7rem;
  font-weight: 600;
  background: #fff;
}

.cart-progress__step.is-active,
.cart-progress__step.is-done {
  color: #9b7c37;
}

.cart-progress__step.is-active span,
.cart-progress__step.is-done span {
  border-color: #9b7c37;
  background: rgba(196, 169, 98, 0.15);
  color: #141210;
}

.cart-progress__step.is-done span::after {
  content: '✓';
}

.cart-progress__step.is-done span {
  font-size: 0;
}

.cart-progress__line {
  flex: 1 1 auto;
  height: 1px;
  margin: 0 6px;
  margin-bottom: 18px;
  background: rgba(155, 124, 55, 0.2);
  transition: background 0.35s ease;
}

.cart-progress__line.is-done {
  background: #c4a962;
}

/* ——— Filtre prix slider ——— */
.price-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: min(280px, 100%);
}

.price-filter__label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted, #6e6458);
}

.price-filter__values {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text, #141210);
  letter-spacing: 0.02em;
}

.price-filter__track {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.price-filter__track input[type="range"] {
  position: absolute;
  width: 100%;
  height: 4px;
  margin: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

.price-filter__track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #9b7c37;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  cursor: pointer;
}

.price-filter__track input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #9b7c37;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  cursor: pointer;
}

.price-filter__track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 2px;
  background: rgba(155, 124, 55, 0.2);
}

/* ——— Fiche produit : livraison + partage ——— */
.pd-delivery-estimate {
  margin: 14px 0 0;
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted, #6e6458);
  background: rgba(196, 169, 98, 0.08);
  border: 1px solid rgba(155, 124, 55, 0.15);
}

.pd-delivery-estimate strong {
  color: var(--text, #141210);
  font-weight: 500;
}

.pd-share-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 12px 18px;
  border: 1px solid rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.08);
  color: #1a6b3c;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s ease;
}

.pd-share-wa:hover {
  background: rgba(37, 211, 102, 0.16);
  border-color: rgba(37, 211, 102, 0.65);
}

/* ——— CLS : dimensions images PDP / culture ——— */
#pd-main-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.pd-maison-thumb img,
.product-modal-thumb img {
  width: 64px;
  height: 80px;
  object-fit: cover;
}

.culture-slider .slide-media,
.culture-slider .slide-media-bg {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.journal-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ——— Accessibilité tactile mobile (44px min) ——— */
@media (max-width: 768px) {
  .hb-trust-strip__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-btn,
  .shop-chip,
  .icon-btn,
  .nav-toggle,
  .btn-or,
  .btn-primary,
  .product-modal-qty button,
  .product-modal-tab,
  .pd-share-wa,
  .pd-zoom-btn,
  .cart-progress__step span {
    min-height: 44px;
    min-width: 44px;
  }

  .filter-btn,
  .shop-chip,
  .btn-or,
  .btn-primary,
  .product-modal-tab,
  .pd-share-wa {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .product-modal-qty button {
    width: 44px;
    height: 44px;
  }
}

/* ——— Politique de confidentialité (page + modal) ——— */
.hb-legal-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 1.5rem) clamp(3rem, 8vw, 5rem);
}

.hb-legal-text,
.modal--legal .hb-legal-text {
  line-height: 1.75;
  font-size: 0.9375rem;
  color: var(--text-muted, #5c5348);
}

.hb-privacy-policy h3 {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #2c2416);
  margin: 1.5em 0 0.5em;
}

.hb-privacy-policy h3:first-of-type {
  margin-top: 0.75em;
}

.hb-privacy-policy__updated {
  margin-bottom: 1.25em;
  font-size: 0.875rem;
}

.hb-privacy-policy p {
  margin: 0 0 1em;
}

.hb-privacy-policy p:last-child {
  margin-bottom: 0;
}

.modal--legal {
  max-height: min(90vh, 720px);
  overflow-y: auto;
}
