/* ==========================================================================
   Offres — page publique des offres du moment
   ========================================================================== */

.offers-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem 3.5rem;
}

/* ---- Hero ---------------------------------------------------------------- */
.offers-hero {
  margin: 1.6rem 0 2rem;
  padding: 2.4rem 1.8rem;
  border-radius: 22px;
  background: linear-gradient(135deg, #0f172a 0%, #312e81 55%, #6d28d9 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.offers-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(244, 114, 182, 0.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(56, 189, 248, 0.28), transparent 45%);
  pointer-events: none;
}
.offers-hero-inner { position: relative; z-index: 1; max-width: 680px; }
.offers-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.offers-hero-title {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0.9rem 0 0.6rem;
}
.offers-hero-sub {
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  margin: 0;
}

/* ---- Grille -------------------------------------------------------------- */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 270px));
  gap: 1.3rem;
  justify-content: center;
}

/* ---- Carte --------------------------------------------------------------- */
.offer-card {
  background: #fff;
  border: 1px solid #ece9f6;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px -14px rgba(45, 33, 80, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}
.offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 77, 255, 0.4);
  box-shadow: 0 16px 34px -18px rgba(124, 77, 255, 0.5);
}

.offer-card-media {
  position: relative;
  background: #f6f4ff;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
/* Pas d'image : on garde un cadre visible pour le placeholder */
.offer-card-media:has(.offer-card-media-placeholder) {
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: center;
  justify-content: center;
}
a.offer-card-media { cursor: pointer; }
.offer-card-media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.2s ease;
}
a.offer-card-media:hover img { transform: scale(1.04); }
.offer-card-media-placeholder {
  font-size: 2.4rem;
  color: #c4b5fd;
}
.offer-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(45deg, #e11d48, #f43f5e);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgba(225, 29, 72, 0.7);
}

/* Badges de reduction (-20%, -80%...) masques sur la LISTE des offres,
   sur PC comme sur mobile. Ils restent visibles sur la fiche detail
   de l'offre (.offer-detail .offer-ribbon). */
.offers-grid .offer-ribbon {
  display: none !important;
}

.offer-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 1.1rem 1.2rem;
  flex: 1 1 auto;
}
.offer-card-title {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1e293b;
  margin: 0;
}
.offer-card-title-link { color: inherit; text-decoration: none; }
.offer-card-title-link:hover { color: #7c4dff; }
.offer-card-subtitle {
  font-size: 0.86rem;
  font-weight: 600;
  color: #7c4dff;
  margin: 0;
}
.offer-card-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0.15rem 0 0;
}

/* Lot (multi-quantité) */
.offer-lot-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 800;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  margin: 0.1rem 0;
}

/* Pack combiné : liste des produits inclus */
.offer-bundle-list {
  list-style: none;
  margin: 0.2rem 0;
  padding: 0.55rem 0.7rem;
  background: #f6f4ff;
  border: 1px solid #e6e1f7;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.offer-bundle-list li {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.83rem;
  color: #334155;
  line-height: 1.35;
}
.offer-bundle-qty {
  flex: 0 0 auto;
  font-weight: 800;
  color: #7c4dff;
}

/* Économie réalisée */
.offer-savings {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 800;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  margin: 0.1rem 0;
}

.offer-card-prices {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.offer-price-now {
  font-size: 1.25rem;
  font-weight: 900;
  color: #e11d48;
}
.offer-price-old {
  font-size: 0.92rem;
  font-weight: 600;
  color: #9aa3b2;
  text-decoration: line-through;
}

.offer-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  align-self: flex-start;
  margin-top: 0.2rem;
}
.offer-countdown.is-over { color: #64748b; background: #f1f5f9; border-color: #e2e8f0; }

.offer-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.7rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: #7c4dff;
}
button.offer-card-cta {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  align-self: flex-start;
  text-align: left;
}
.offer-card-cta--add {
  margin-top: auto;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(45deg, #7c4dff, #9d6bff);
  box-shadow: 0 8px 18px -10px rgba(124, 77, 255, 0.8);
  transition: filter 0.18s ease, transform 0.12s ease;
}
.offer-card-cta--add:hover { filter: brightness(1.05); }
.offer-card-cta--add:active { transform: scale(0.98); }
.offer-card-cta i { transition: transform 0.18s ease; }
.offer-card:hover .offer-card-cta i { transform: translateX(3px); }
.offer-card:hover .offer-card-cta--add i { transform: none; }

/* Carte promo libre : cadre par défaut uniquement en l'absence d'image */
.offer-card--card .offer-card-media:has(.offer-card-media-placeholder) { aspect-ratio: 16 / 9; }

/* ---- Vide ---------------------------------------------------------------- */
.offers-empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: #fff;
  border: 1px solid #ece9f6;
  border-radius: 18px;
}
.offers-empty-state i { font-size: 2.6rem; color: #c4b5fd; }
.offers-empty-state h2 {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0.8rem 0 0.5rem;
  color: #1e293b;
}
.offers-empty-state p {
  font-size: 0.95rem;
  color: #64748b;
  max-width: 460px;
  margin: 0 auto 1.4rem;
  line-height: 1.55;
}
.offers-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #7c4dff;
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.18s ease;
}
.offers-empty-btn:hover { background: #6d28d9; }

/* ---- Mobile -------------------------------------------------------------- */
@media (max-width: 640px) {
  .offers-page .container { padding: 0 0.9rem 2.5rem; }
  .offers-hero { padding: 1.8rem 1.2rem; margin: 1.1rem 0 1.5rem; border-radius: 18px; }
  .offers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
  .offer-card-body { padding: 0.8rem 0.85rem 1rem; }
  .offer-card-title { font-size: 0.95rem; }
  .offer-price-now { font-size: 1.1rem; }
}

@media (max-width: 380px) {
  .offers-grid { grid-template-columns: 1fr; }
}

/* ---- Carousel "offre de la semaine" (sidebar accueil) -------------------- */
/* Slide 1 = offre 3+1 constante (bannière), puis les offres du moment.       */
#best-sellers .weekly-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#best-sellers .weekly-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
#best-sellers .weekly-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

/* On fige tout mouvement du bloc au survol (demande client) */
#best-sellers .weekly-offer-shell,
#best-sellers .weekly-offer-shell:hover {
  transform: none !important;
}
#best-sellers .weekly-offer-shell:hover {
  box-shadow: 0 30px 78px rgba(124, 92, 255, 0.22),
    0 18px 45px rgba(255, 79, 216, 0.12) !important;
}

/* ---- Slide offre = carte premium cohérente (sans coupure) ---------------- */
/* Accent de couleur propre à chaque type d'offre (variables CSS) */
#best-sellers .weekly-slide--offer {
  --wo-a1: #7c5cff;
  --wo-a2: #b44cff;
  --wo-tint: rgba(124, 92, 255, 0.16);
  --wo-ink: #4a1d8a;
  background: #ffffff;
}
#best-sellers .weekly-slide--offer[data-type="quantity"] {
  --wo-a1: #0ea5a4;
  --wo-a2: #22c55e;
  --wo-tint: rgba(16, 185, 164, 0.18);
  --wo-ink: #0b6b5f;
}
#best-sellers .weekly-slide--offer[data-type="bundle"] {
  --wo-a1: #ff5f9e;
  --wo-a2: #ff8a4c;
  --wo-tint: rgba(255, 95, 158, 0.18);
  --wo-ink: #b5295f;
}
#best-sellers .wo-offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(125% 58% at 50% 0%, var(--wo-tint) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
}
/* Chip de type (coin haut gauche) */
#best-sellers .wo-type-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 7;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wo-a1), var(--wo-a2));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 20px var(--wo-tint);
}
/* Zone visuelle : l'image flotte sur un halo teinté par type */
#best-sellers .wo-offer-media {
  position: relative;
  flex: 0 0 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 24px 4px;
}
#best-sellers .wo-offer-media::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--wo-tint) 0%, rgba(255, 255, 255, 0) 68%);
  pointer-events: none;
}
#best-sellers .wo-offer-media img {
  position: relative;
  z-index: 1;
  max-width: 78%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(60, 40, 120, 0.24));
}
/* Pastille -X% (coin haut droit, blanche, couleur du type) */
#best-sellers .wo-discount {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  padding: 7px 11px;
  border-radius: 14px;
  background: #fff;
  color: var(--wo-a1);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.5px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}
/* Corps : même surface que l'image, aucune cassure visuelle */
#best-sellers .wo-offer-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 7px;
  padding: 2px 20px 48px;
}
#best-sellers .wo-offer-title {
  position: relative;
  margin: 0;
  padding-bottom: 9px;
  font-size: 18.5px;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--wo-ink, #1b1233);
  font-family: "Outfit", Inter, Arial, sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Barre d'accent sous le nom, aux couleurs du type d'offre. */
#best-sellers .wo-offer-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46px;
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--wo-a1), var(--wo-a2));
  opacity: 0.9;
}
#best-sellers .wo-offer-subtitle {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: #6b6480;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Avantage : lot (quantity) */
#best-sellers .wo-feature {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--wo-tint);
  color: var(--wo-ink);
  font-size: 12.5px;
  font-weight: 800;
}
/* Avantage : contenu du pack (bundle) */
#best-sellers .wo-bundle {
  list-style: none;
  margin: 1px 0;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--wo-tint);
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  max-width: 250px;
  font-size: 12px;
  line-height: 1.2;
  color: #3c3552;
}
#best-sellers .wo-bundle li {
  display: flex;
  align-items: baseline;
  gap: 5px;
  justify-content: center;
}
#best-sellers .wo-bundle-qty {
  color: var(--wo-a1);
  font-weight: 950;
}
#best-sellers .wo-bundle-more {
  font-weight: 700;
  color: var(--wo-ink);
  opacity: 0.85;
}
/* Prix */
#best-sellers .wo-offer-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.55rem;
  margin: 3px 0 0;
}
#best-sellers .wo-price-now {
  color: var(--wo-a1);
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -0.6px;
  font-family: "Outfit", Inter, Arial, sans-serif;
}
#best-sellers .wo-price-old {
  color: #a59fb8;
  text-decoration: line-through;
  font-size: 14px;
  font-weight: 600;
}
/* Économie mise en avant */
#best-sellers .wo-savings {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--wo-a1), var(--wo-a2));
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 10px 22px var(--wo-tint);
}
#best-sellers .wo-offer-cta {
  margin-top: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c5cff 0%, #6d4aff 100%);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.2px;
  box-shadow: 0 6px 16px rgba(109, 74, 255, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
#best-sellers .wo-offer-cta::after {
  content: "→";
  font-size: 13px;
  transition: transform 0.18s ease;
}
#best-sellers .wo-offer-card:hover .wo-offer-cta {
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(109, 74, 255, 0.4);
}
#best-sellers .wo-offer-card:hover .wo-offer-cta::after { transform: translateX(3px); }

/* ---- Puces de navigation (pastille flottante, jamais masquée) ------------ */
#best-sellers .weekly-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(60, 40, 120, 0.16);
}
#best-sellers .weekly-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(124, 92, 255, 0.35);
  transition: width 0.22s ease, background 0.22s ease;
}
#best-sellers .weekly-dot.is-active {
  width: 20px;
  background: linear-gradient(135deg, #7c5cff, #b44cff);
}

/* ---- Petits ecrans : on compacte la carte d'offre pour qu'elle tienne ---- */
/* entierement dans le shell (ratio 2:3) sans troncature du contenu.          */
@media (max-width: 420px) {
  #best-sellers .wo-offer-media {
    flex-basis: 42%;
    padding: 16px 20px 2px;
  }
  #best-sellers .wo-offer-media::before {
    width: 170px;
    height: 170px;
  }
  #best-sellers .wo-offer-body {
    gap: 5px;
    padding: 2px 16px 40px;
  }
  #best-sellers .wo-offer-title {
    font-size: 16px;
  }
  #best-sellers .wo-price-now {
    font-size: 22px;
  }
  #best-sellers .wo-offer-cta {
    margin-top: 6px;
    padding: 7px 16px;
  }
}

/* ==========================================================================
   Offre — page dédiée d'une offre (/offre/<id>), générée dynamiquement
   ========================================================================== */
.offer-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 1rem;
  font-size: 0.85rem;
  color: #64748b;
}
.offer-detail-breadcrumb a { color: #6d28d9; text-decoration: none; font-weight: 600; }
.offer-detail-breadcrumb a:hover { text-decoration: underline; }
.offer-detail-breadcrumb i { font-size: 0.9rem; color: #94a3b8; }
.offer-detail-breadcrumb span[aria-current] { color: #0f172a; font-weight: 700; }

.offer-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  background: #fff;
  border: 1px solid #ece8f7;
  border-radius: 22px;
  padding: 1.6rem;
  margin-top: 2.2rem;
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.06);
  /* Allow the composer's slot dropdowns to overflow the card frame. */
  overflow: visible;
}
/* Fiche detail : pas de deplacement au survol (contrairement aux cartes). */
.offer-detail:hover { transform: none; }
.offer-detail-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6f1ff 0%, #ffffff 100%);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.offer-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.offer-detail-media-placeholder { font-size: 3rem; color: #c4b5fd; }
.offer-detail .offer-ribbon {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #7c3aed, #b44cff);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}

.offer-detail-body { display: flex; flex-direction: column; gap: 0.7rem; }
.offer-detail-type {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6d28d9;
  background: #f3ecff;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}
.offer-detail-title {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0.2rem 0 0;
  color: #0f172a;
}
.offer-detail-subtitle { font-size: 1.02rem; color: #475569; margin: 0; line-height: 1.5; }
.offer-detail-desc { font-size: 0.96rem; color: #475569; line-height: 1.6; margin: 0.3rem 0; }

.offer-detail-prices { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.3rem; }
.offer-detail-prices .offer-price-now { font-size: 1.9rem; font-weight: 900; color: #0f172a; }
.offer-detail-prices .offer-price-old { font-size: 1.1rem; color: #94a3b8; text-decoration: line-through; }
.offer-detail-discount {
  font-size: 0.85rem;
  font-weight: 800;
  color: #dc2626;
  background: #fee2e2;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
}

.offer-detail-includes { margin-top: 0.6rem; }
.offer-detail-includes-title { font-size: 1rem; font-weight: 800; color: #0f172a; margin: 0 0 0.6rem; }
.offer-detail-products { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.offer-detail-product-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem;
  border: 1px solid #ece8f7;
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.offer-detail-product-link:hover { border-color: #c4b5fd; background: #faf7ff; }
.offer-detail-product-thumb {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #f6f1ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.offer-detail-product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.offer-detail-product-info { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.offer-detail-product-name { font-weight: 700; color: #0f172a; font-size: 0.95rem; }
.offer-detail-product-qty { color: #6d28d9; font-weight: 800; margin-right: 0.35rem; }
.offer-detail-product-price { font-size: 0.82rem; color: #64748b; }
.offer-detail-product-arrow { color: #b0a5cf; font-size: 1.1rem; }

.offer-detail-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.offer-detail-cta { font-size: 1rem; }
.offer-detail-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #6d28d9;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}
.offer-detail-secondary:hover { text-decoration: underline; }

/* --- Composeur : sélection interactive des saveurs / articles --- */
.offer-composer { margin-top: 1rem; border: 1px solid #ece8f7; border-radius: 16px; padding: 1rem 1.1rem 1.1rem; background: #fbfaff; }
.offer-composer-head { margin-bottom: 0.8rem; }
.offer-composer-title { font-size: 1.05rem; font-weight: 800; color: #0f172a; margin: 0 0 0.25rem; }
.offer-composer-hint { font-size: 0.86rem; color: #64748b; margin: 0; }

/* Emplacements : un champ de recherche par article du pack */
.offer-composer-slots { display: flex; flex-direction: column; gap: 0.6rem; }
.offer-slot { display: flex; align-items: center; gap: 0.7rem; }
.offer-slot-num {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: #ede9fe; color: #6d28d9; font-weight: 800; font-size: 0.85rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.offer-slot-body { position: relative; flex: 1; min-width: 0; }
.offer-slot-search { position: relative; }
.offer-slot-input {
  width: 100%; box-sizing: border-box; padding: 0.7rem 0.9rem;
  border: 1px solid #d6cff0; border-radius: 12px; background: #fff;
  font-size: 0.95rem; color: #0f172a; font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.offer-slot-input:focus { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.22); }
.offer-slot-results {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 300px; overflow-y: auto; background: #fff;
  border: 1px solid #e5e0f5; border-radius: 12px;
  box-shadow: 0 12px 30px rgba(76, 29, 149, 0.14); padding: 0.3rem;
}
.offer-composer-result {
  display: flex; align-items: center; gap: 0.7rem; width: 100%;
  padding: 0.45rem 0.55rem; border: none; background: none; border-radius: 9px;
  cursor: pointer; text-align: left; font-family: inherit;
  transition: background 0.13s ease;
}
.offer-composer-result:hover { background: #f5f1ff; }
.ocr-thumb {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 8px; overflow: hidden;
  background: #f6f1ff; display: flex; align-items: center; justify-content: center;
}
.ocr-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ocr-name { flex: 1; min-width: 0; font-weight: 600; color: #0f172a; font-size: 0.9rem; }
.ocr-price { flex: none; font-size: 0.82rem; color: #64748b; font-weight: 700; }
.offer-composer-noresult { padding: 0.7rem 0.6rem; color: #64748b; font-size: 0.88rem; }

/* Article choisi dans un emplacement */
.offer-slot-picked {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0.6rem; border: 1px solid #c4b5fd; border-radius: 12px;
  background: #fff; box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.2);
}
.offer-slot-picked[hidden] { display: none; }
.offer-slot-search[hidden] { display: none; }
.offer-slot-thumb {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 9px; overflow: hidden;
  background: #f6f1ff; display: flex; align-items: center; justify-content: center;
}
.offer-slot-thumb img { width: 100%; height: 100%; object-fit: contain; }
.offer-slot-name { flex: 1; min-width: 0; font-weight: 700; color: #0f172a; font-size: 0.9rem; }
.offer-slot-price { flex: none; font-size: 0.82rem; color: #64748b; font-weight: 700; }
.offer-slot-clear {
  flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1px solid #e5e0f5;
  background: #fff; color: #94a3b8; cursor: pointer; font-size: 0.9rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.offer-slot-clear:hover { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.offer-composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 0.9rem; }
.offer-composer-counter { font-weight: 700; color: #0f172a; font-size: 0.95rem; }
.offer-composer-counter .occ-count { color: #6d28d9; }
.offer-composer-add:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 520px) {
  .offer-slot-picked { flex-wrap: wrap; }
  .offer-slot-name { flex: 1 1 60%; }
}

.offer-detail-back { margin: 2.2rem 0 0.5rem; }
.offer-detail-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.5rem;
  border: 2px solid #ddd6fe;
  border-radius: 999px;
  background: #fff;
  color: #6d28d9;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(109, 40, 217, 0.08);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.offer-detail-back a:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #fff;
  box-shadow: 0 12px 26px rgba(109, 40, 217, 0.24);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .offer-detail {
    grid-template-columns: 1fr;
    gap: 1.3rem;
    padding: 1.1rem;
  }
  /* Images d'offre carrées (800×800) : on garde un cadre carré en mobile
     pour que l'image remplisse toute la largeur sans bandes grises. */
  .offer-detail-media { aspect-ratio: 1 / 1; }
  /* Badge de reduction plus discret sur mobile pour ne pas couvrir l'image. */
  .offer-detail .offer-ribbon {
    top: 8px;
    left: 8px;
    font-size: 0.64rem;
    padding: 0.16rem 0.45rem;
    box-shadow: 0 4px 10px -6px rgba(15, 23, 42, 0.55);
  }
}



/* ===== Section SEO (contenu redige + FAQ) de la page /offres ===== */
.offers-seo {
  max-width: 900px;
  margin: 40px auto 8px;
  padding: 30px 32px;
  border-radius: 20px;
  border: 1px solid rgba(124, 92, 255, 0.20);
  background:
    radial-gradient(circle at 92% 6%, rgba(180, 76, 255, 0.10), transparent 42%),
    radial-gradient(circle at 4% 96%, rgba(56, 189, 248, 0.08), transparent 40%),
    linear-gradient(180deg, #faf7ff 0%, #f6f2ff 100%);
}
.offers-seo-title {
  margin: 0 0 10px;
  font-size: 1.32rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #7c3aed 0%, #b026d3 55%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #8b23c9;
}
.offers-seo-title:not(:first-child) { margin-top: 26px; }
.offers-seo p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.72;
  color: #4a3d86;
}
/* Encadre "codes promo non cumulables" : mis en avant en couleur. */
.offers-seo-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px !important;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid rgba(236, 72, 153, 0.28);
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.08), rgba(124, 58, 237, 0.07));
  color: #6b2a8c;
  font-size: 0.93rem !important;
  line-height: 1.62 !important;
}
.offers-seo-note i {
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #ec4899;
  margin-top: 1px;
}
.offers-seo-note strong { color: #b0248f; font-weight: 800; }
.offers-faq { margin-top: 8px; }
.offers-faq-item {
  border: 1px solid rgba(124, 92, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  margin-top: 10px;
  overflow: hidden;
}
.offers-faq-item[open] {
  border-color: rgba(180, 38, 211, 0.35);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.05), rgba(255, 255, 255, 0.85));
}
.offers-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 44px 14px 16px;
  position: relative;
  font-size: 0.96rem;
  font-weight: 700;
  color: #6d28d9;
}
.offers-faq-item summary::-webkit-details-marker { display: none; }
.offers-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: #ec4899;
}
.offers-faq-item[open] summary::after { content: "\2013"; }
.offers-faq-item p {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #574c86;
}
@media (max-width: 640px) {
  .offers-seo { padding: 20px 18px; border-radius: 16px; margin-top: 28px; }
  .offers-seo-title { font-size: 1.14rem; }
}
