/* Encart Esprit Campagne – bandeau horizontal pleine largeur (ordinateur) */
.ec-promo {
  --ec-forest: #1f2e22;
  --ec-forest-2: #2c3f2f;
  --ec-cream: #f4efe4;
  --ec-muted: #c9c2b2;
  --ec-orange: #e2702a;
  --ec-orange-dark: #c55d1d;
  display: none; /* visible une fois placé sous le bloc produit */
  margin: 2rem 0 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(31, 46, 34, .18);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ec-promo.ec-promo--placed { display: block; }
.ec-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 46, 34, .28);
}
.ec-promo__link,
.ec-promo__link:hover,
.ec-promo__link:focus {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  height: 190px;
  color: var(--ec-cream);
  text-decoration: none;
  background: linear-gradient(120deg, var(--ec-forest-2) 0%, var(--ec-forest) 100%);
}
.ec-promo__link:focus-visible { outline: 3px solid var(--ec-orange); outline-offset: 2px; }
.ec-promo__media {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.ec-promo__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 35%;
  transition: transform .6s ease;
}
.ec-promo:hover .ec-promo__media img { transform: scale(1.05); }
.ec-promo__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(31,46,34,0) 60%, rgba(31,46,34,.9) 100%);
}
.ec-promo__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 4px 10px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ec-orange);
  border-radius: 999px;
}
.ec-promo__body {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto 1fr;
  column-gap: 2rem;
  align-content: center;
  padding: 1.1rem 2rem;
}
.ec-promo__kicker {
  grid-column: 1;
  margin: 0 0 .15rem;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ec-muted);
}
.ec-promo__title {
  grid-column: 1;
  margin: 0 0 .35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ec-cream);
}
.ec-promo__text {
  grid-column: 1;
  margin: 0 0 .6rem;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--ec-cream);
}
.ec-promo__tags {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ec-promo__tags li {
  padding: 2px 10px;
  font-size: .75rem;
  color: var(--ec-cream);
  border: 1px solid rgba(244, 239, 228, .35);
  border-radius: 999px;
}
.ec-promo__cta {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  padding: .8rem 1.4rem;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  background: var(--ec-orange);
  border-radius: 6px;
  transition: background .2s ease;
}
.ec-promo:hover .ec-promo__cta { background: var(--ec-orange-dark); }

/* Écrans moyens : le bouton passe sous le texte */
@media (max-width: 991px) {
  .ec-promo__link, .ec-promo__link:hover, .ec-promo__link:focus { height: auto; min-height: 190px; }
  .ec-promo__body { grid-template-columns: 1fr; padding: 1rem 1.25rem; }
  .ec-promo__cta { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .7rem; }
}

/* Sur téléphone : le petit bandeau photo prend le relais */
@media (max-width: 767px) {
  .ec-promo, .ec-promo.ec-promo--placed { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ec-promo, .ec-promo__media img { transition: none; }
  .ec-promo:hover, .ec-promo:hover .ec-promo__media img { transform: none; }
}

/* Petit bandeau mobile – sous le bouton panier, photo en fond */
.ec-mini { display: none; }
@media (max-width: 767px) {
  .ec-mini,
  .ec-mini:hover,
  .ec-mini:focus {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 96px;
    margin: 12px 0;
    padding: 12px 14px;
    overflow: hidden;
    font-size: .9rem;
    line-height: 1.3;
    color: #f4efe4;
    text-decoration: none;
    background: #1f2e22;
    border-left: 4px solid #e2702a;
    border-radius: 6px;
  }
  .ec-mini__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 35%;
  }
  .ec-mini::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(31,46,34,.92) 0%, rgba(31,46,34,.7) 55%, rgba(31,46,34,.15) 100%);
  }
  .ec-mini__text,
  .ec-mini__arrow { position: relative; z-index: 1; }
  .ec-mini__text strong {
    display: block;
    margin-top: 2px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    color: #fff;
  }
  .ec-mini__arrow {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    font-weight: 700;
    color: #fff;
    background: #e2702a;
    border-radius: 50%;
  }
}
