/* ElectroPlace — Offres & packs : compte à rebours, packs promo, bundles fiche produit */

/* ============ 1. Compte à rebours compact (barre d'annonce, en-tête de section) ============ */
.yc-notice .content { flex-wrap: wrap; }

.ep-notice-countdown {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.countdown-wrapper--bar {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
}
.countdown-wrapper--bar .message { font-size: inherit; font-weight: 700; }
.countdown-wrapper--bar .message p { margin: 0; display: inline; }

.countdown-wrapper--bar .countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}
.countdown-wrapper--bar .countdown .day,
.countdown-wrapper--bar .countdown .hour,
.countdown-wrapper--bar .countdown .min,
.countdown-wrapper--bar .countdown .sec {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 3px;
}
.countdown-wrapper--bar .countdown .num {
  display: inline-block;
  height: auto;
  width: auto;
  min-width: 27px;
  padding: 2px 5px;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, .2);
  color: inherit;
  font-size: 1em;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.countdown-wrapper--bar .countdown .word { display: none; }
.countdown-wrapper--bar .countdown .day .word { display: inline; font-size: .72em; opacity: .85; }
.countdown-wrapper--bar .countdown .dots { margin: 0; font-size: 1em; font-weight: 800; opacity: .65; }

/* Moins d'un jour restant : on masque « 00 jour : » */
.countdown.no-days > .day,
.countdown.no-days > .day + .dots { display: none; }

.countdown-wrapper.is-ended .countdown { font-weight: 700; opacity: .75; }

/* ============ 2. Section « Packs promo » ============ */
.ep-packs-head { text-align: center; margin-bottom: 18px; }
.ep-packs-sub { margin: 6px 0 0; color: #5b6478; font-size: 15px; }
.ep-packs-timer { display: flex; justify-content: center; margin-top: 12px; color: #16265C; }
.ep-packs-timer .countdown-wrapper--bar .num { background: #16265C; color: #fff; }
.ep-packs-timer .countdown-wrapper--bar .message { font-size: 15px; }

.ep-packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.ep-pack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e6e8ef;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(16, 27, 61, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ep-pack:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 27, 61, .12); }

.ep-pack__badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: #c2410c;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.ep-pack__media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 150px;
  padding: 14px;
  border-radius: 12px;
  background: #f6f7fb;
}
.ep-pack__figure { flex: 1 1 0; display: flex; justify-content: center; }
.ep-pack__figure img { width: auto; max-width: 100%; max-height: 130px; object-fit: contain; }
.ep-pack__plus {
  flex: 0 0 30px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #16265C;
  color: #fff;
  font-weight: 800;
}

.ep-pack__title { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 700; color: #16265C; }
.ep-pack__title a { color: inherit; text-decoration: none; }
.ep-pack__title-plus { margin: 0 2px; color: #c2410c; font-weight: 800; }

.ep-pack__prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: auto; }
.ep-pack__was { width: 100%; font-size: 13px; color: #6b7280; }
.ep-pack__now { font-size: 22px; font-weight: 800; color: #c2410c; }
.ep-pack__save {
  padding: 3px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
}
.ep-pack__line { font-size: 15px; font-weight: 700; color: #16265C; }
.ep-pack__cta { width: 100%; justify-content: center; text-align: center; }

/* ============ 3. Bloc « Packs & accessoires » sur la fiche produit ============ */
.ep-bundles {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #f3d9c4;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff8f1, #fff);
  scroll-margin-top: 90px;
}
.ep-bundles__title { margin: 0 0 2px; font-size: 18px; font-weight: 800; color: #16265C; }
.ep-bundles__sub { margin: 0 0 12px; font-size: 13px; color: #6b7280; }

.ep-bundle-save-amount {
  padding: 3px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .ep-packs-grid { grid-template-columns: 1fr; }
  .countdown-wrapper--bar .countdown .num { min-width: 24px; padding: 1px 4px; }
}
