/* ===========================================
   OFFRE DU MOMENT — Page promo SEO
   Hero (calqué tuile préco) + grille articles
   Charte 7R : rouge flat #B62F2E, pas de dark mode
   v1.0 — 3 juin 2026
   =========================================== */

.offre-wrap {
  --offre-rk: #A0C500; /* couleur royaume, surchargée inline */
  font-family: 'Nunito', sans-serif;
  max-width: 820px;
  margin: 0 auto;
  color: #2b2b2b;
}

/* ===================== HERO ===================== */

.offre-hero {
  margin: 0 0 32px;
}

/* Hero calqué sur la carte préco (.pc-card) : header collé + bannière image
   plein cadre + overlay (dates bas-gauche, compteur+pill bas-droite). */
.offre-hero-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  overflow: hidden;
}
.offre-hero-head {
  padding: 11px 14px 11px 18px;
  background: #fafafa;
  border-left: 5px solid var(--offre-rk);
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.offre-hero-head .offre-hero-title {
  margin: 0;
  font-size: 1.08em;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
  min-width: 0;
}
.offre-hero-banner {
  position: relative;
  display: block;
  height: 280px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  background: var(--offre-rk);
}
.offre-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}
.offre-hero-actions {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.offre-jx {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .4);
  box-sizing: border-box;
}
.offre-jx-top {
  width: 100%;
  text-align: center;
  background: #B62F2E;
  color: #fff;
  font-weight: 700;
  font-size: 0.62em;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 5px 0;
}
.offre-jx-num {
  font-size: 1.9em;
  font-weight: 800;
  line-height: 1;
  color: #222;
  padding: 10px 0;
}
.offre-jx-bot {
  font-size: 0.62em;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
  padding: 5px 0;
}
.offre-intro {
  margin: 18px 0 0;
  padding: 16px 22px;
  background: #fafafa;
  border-left: 3px solid var(--offre-rk);
  border-radius: 0 8px 8px 0;
  font-size: .98em;
  line-height: 1.7;
  color: #3a3a3a;
}
.offre-intro p { margin: 0 0 10px; }
.offre-intro p:last-child { margin: 0; }

/* ===================== GRILLE ===================== */

.offre-grid-section { margin-top: 28px; }

.offre-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 12px;
}
@media (max-width: 900px) { .offre-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .offre-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .offre-grid { grid-template-columns: 1fr; } }

/* Carte calquée sur .pc-prochainement-card (préco) : pas de bord coloré sur
   la carte ; la couleur royaume vit UNIQUEMENT sur le header gris. */
.offre-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: transform .15s, box-shadow .15s;
}
.offre-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* Header gris + filet couleur royaume à gauche (border-left sur le header) */
.offre-card-head {
  padding: 8px 12px;
  background: #fafafa;
  border-left: 4px solid var(--offre-rk);
  border-bottom: 1px solid #f0f0f0;
}
.offre-card-head h3 {
  margin: 0;
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.offre-card-head h3 a,
.offre-card-head h3 a:visited {
  color: #222;
  text-decoration: none;
}
.offre-card-head h3 a:hover { text-decoration: underline; }
.offre-card-price {
  font-size: 0.74em;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
}

/* Image : wrap carré, fond gris clair, centrée h+v (calqué préco) */
.offre-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f7f7f7;
  overflow: hidden;
}
.offre-card-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.offre-card-pub {
  margin: 0;
  padding: 6px 12px 0;
  font-size: 0.72em;
  color: #999;
  text-align: center;
}
/* Footer gris (comme le header) avec un bouton coloré centré, façon
   « Voir le produit » préco : compact, texte blanc, assombrissement au survol. */
.offre-card-foot {
  padding: 8px 12px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.offre-card-cta,
.offre-card-cta:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #222;
  color: #fff;
  border-left: 5px solid #999;
  border-radius: 3px;
  padding: 4px 9px 4px 7px;
  font-size: 0.7em;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
  transition: background .15s ease, border-left-width .15s ease;
}
.offre-card-cta:hover,
.offre-card-cta:focus,
.offre-card-cta:active {
  background: #111 !important;
  color: #fff !important;
  border-left-width: 7px;
}
/* Couleur du bouton selon l'état (charte e-shop : vert/orange/rouge) */
.offre-card-cta--in_stock,
.offre-card-cta--in_stock:visited,
.offre-card-cta--in_stock:hover,
.offre-card-cta--in_stock:focus,
.offre-card-cta--in_stock:active     { border-left-color: #A0C500 !important; }
.offre-card-cta--backorder,
.offre-card-cta--backorder:visited,
.offre-card-cta--backorder:hover,
.offre-card-cta--backorder:focus,
.offre-card-cta--backorder:active    { border-left-color: #FF9933 !important; }
.offre-card-cta--out_of_stock,
.offre-card-cta--out_of_stock:visited,
.offre-card-cta--out_of_stock:hover,
.offre-card-cta--out_of_stock:focus,
.offre-card-cta--out_of_stock:active { border-left-color: #B62F2E !important; }

/* État vide / fallback : aucune offre en cours (page jamais vide) */
.offre-empty {
  max-width: 560px;
  margin: 24px auto;
  padding: 28px 24px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  text-align: center;
}
.offre-empty-title {
  margin: 0 0 8px;
  font-size: 1.12em;
  font-weight: 700;
  color: #333;
}
.offre-empty-text {
  margin: 0 0 18px;
  color: #666;
  font-size: .95em;
  line-height: 1.5;
}
.offre-empty-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.offre-empty-link {
  display: inline-block;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #B62F2E;
  font-size: .9em;
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow .15s, transform .15s;
}
.offre-empty-link:hover,
.offre-empty-link:focus {
  color: #B62F2E !important;
  text-decoration: none;
}
@media (hover: hover) {
  .offre-empty-link:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    transform: translateY(-1px);
  }
}

@media (max-width: 600px) {
  .offre-hero-head .offre-hero-title { font-size: .98em; }
  .offre-hero-banner { height: 240px; }
  .offre-hero-actions { display: none; }
}
@media (max-width: 430px) {
  .offre-hero-banner { height: 190px; }
}

/* ===== PILLS multi-offres (onglets façon filtre préco : bande couleur + nom noir + type) ===== */
.offre-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 22px;
}
.offre-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: #fff;
  border: 1px solid #eee;
  border-left: 5px solid var(--pill-rk, #B62F2E);
  border-radius: 4px;
  padding: 8px 16px 8px 13px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: transform .15s, box-shadow .15s, border-left-width .15s;
}
/* tuer le hover/focus bleu Kadence sur les <button> */
.offre-pill:hover,
.offre-pill:focus,
.offre-pill:active {
  background: #fff !important;
  border-color: #eee !important;
  border-left-color: var(--pill-rk, #B62F2E) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08) !important;
  outline: none !important;
  color: inherit !important;
}
.offre-pill:hover .offre-pill-name,
.offre-pill:focus .offre-pill-name,
.offre-pill:active .offre-pill-name {
  color: #222 !important;
}
.offre-pill:hover .offre-pill-type,
.offre-pill:focus .offre-pill-type,
.offre-pill:active .offre-pill-type {
  color: #666 !important;
}
.offre-pill-name {
  color: #222;
  font-weight: 700;
  font-size: 0.86em;
  line-height: 1.25;
  white-space: nowrap;
}
.offre-pill-type {
  color: #666;
  font-weight: 400;
  font-size: 0.76em;
  line-height: 1.25;
  white-space: nowrap;
}

@media (hover: hover) {
  .offre-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .13) !important;
  }
}

/* ===== BASCULE multi-offres ===== */
.offre-campaign[hidden] { display: none; }
.offre-pill--active,
.offre-pill--active:hover,
.offre-pill--active:focus {
  border-left-width: 7px !important;
  padding-left: 11px !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .15) !important;
}
