/*!
 * BC Popin : Pack 42 capsules en abonnement (Spring, LP Z2)
 * Styles only. Voir pack42-popin.js pour le markup + la logique.
 */
#bcp42-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  align-items: flex-end;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  color: #1a1a1a;
}
#bcp42-overlay.bcp42-open { display: flex; }
@media (min-width: 480px) {
  #bcp42-overlay { align-items: center; padding: 1rem; }
}

#bcp42-card {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 460px;
  max-height: 94vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 1.25rem 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
  animation: bcp42-up 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@media (min-width: 480px) {
  #bcp42-card {
    border-radius: 20px;
    padding: 1.75rem 1.75rem 1.25rem;
    animation: bcp42-pop 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
  }
}
@keyframes bcp42-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes bcp42-pop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Pastille parfum */
.bcp42-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef4ff;
  color: #3A8DFF;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 0.75rem;
}
.bcp42-pill strong { font-weight: 700; }

.bcp42-title {
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 0.4rem;
  color: #1a1a1a;
}
@media (min-width: 480px) { .bcp42-title { font-size: 25px; } }
.bcp42-sub {
  font-size: 14px;
  color: #555;
  margin: 0 0 1rem;
}
.bcp42-sub strong { color: #3A8DFF; }

/* Étiquette de la carte grand format */
.bcp42-ribbon {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #FCEA54;
  color: #1a1a1a;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 999px;
  padding: 3px 10px;
}

/* CTA + réassurance (partagé) */
.bcp42-cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #FCEA54;
  color: #1a1a1a;
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 16px;
  box-shadow: 0 4px 0 #e2cf3a;
  transition: transform 0.1s;
}
.bcp42-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 #e2cf3a; }
.bcp42-reassure {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 0;
  margin: 0.6rem 0 0.4rem;
  font-size: 11.5px;
  color: #555;
}
.bcp42-reassure li { display: inline-flex; align-items: center; gap: 4px; }
.bcp42-reassure svg { color: #2AB2A6; width: 13px; height: 13px; }
.bcp42-skip {
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 13px;
  color: #888;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px;
}

/* Cursor hint desktop */
#bcp42-cursor-hint {
  position: fixed;
  z-index: 1000000;
  pointer-events: none;
  display: none;
  align-items: center;
  gap: 6px;
  background: #1a1a1a;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  border-radius: 999px;
  padding: 6px 12px;
  transform: translate(14px, 14px);
}
#bcp42-cursor-hint.bcp42-hint-visible { display: inline-flex; }
.bcp42-hint-x { font-weight: 700; }

/* ── A2 : comparatif + frise de durée ── */
.bcp42-design-a2 #bcp42-card { max-width: 440px; }
.bcp42-design-a2 .bcp42-pill { margin-bottom: 0.6rem; }
.bcp42-design-a2 .bcp42-title { margin-bottom: 0.3rem; }
.bcp42-title mark {
  background: linear-gradient(transparent 58%, #FCEA54 58%, #FCEA54 92%, transparent 92%);
  color: inherit;
  padding: 0 2px;
}
.bcp42-design-a2 .bcp42-sub { margin-bottom: 1.1rem; }

.bcp42-cmp {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 10px;
  align-items: end;
  margin-bottom: 0.9rem;
}
.bcp42-cmp-card {
  position: relative;
  border-radius: 16px;
  padding: 8px 8px 10px;
}
.bcp42-cmp-card--trial { background: #f4f4f4; }
.bcp42-cmp-card--pack {
  background: #fff;
  border: 2px solid #3A8DFF;
  box-shadow: 0 10px 28px rgba(58, 141, 255, 0.2);
  padding-top: 14px;
}
.bcp42-cmp-img {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
  background: #ebebeb;
}
.bcp42-cmp-img img { display: block; width: 100%; object-fit: cover; }
.bcp42-cmp-card--trial .bcp42-cmp-img { background: transparent; aspect-ratio: 1.15; display: flex; align-items: center; justify-content: center; }
.bcp42-cmp-card--trial .bcp42-cmp-img img { width: 62%; aspect-ratio: 1; border-radius: 8px; filter: saturate(0.5); opacity: 0.9; }
.bcp42-cmp-card--pack .bcp42-cmp-img img { aspect-ratio: 1.15; }
.bcp42-cmp-plus {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: #3A8DFF;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 8px;
}
.bcp42-cmp-name { font-size: 10.5px; color: #888; text-transform: uppercase; letter-spacing: 0.05em; }
.bcp42-cmp-qty { font-size: 15px; font-weight: 800; line-height: 1.25; }
.bcp42-cmp-card--pack .bcp42-cmp-qty { font-size: 17px; }
.bcp42-cmp-price { font-size: 15px; font-weight: 700; color: #666; margin-top: 2px; }
.bcp42-cmp-card--pack .bcp42-cmp-price { color: #1a1a1a; }
.bcp42-cmp-price s { font-size: 12px; font-weight: 500; color: #999; }
.bcp42-cmp-price strong { font-size: 19px; font-weight: 800; }
.bcp42-cmp-off {
  display: inline-block;
  vertical-align: 3px;
  background: #FCEA54;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 6px;
  padding: 1px 5px;
}

/* Frise */
.bcp42-tl {
  background: #f7f9fc;
  border-radius: 14px;
  padding: 10px 12px 8px;
  margin-bottom: 1rem;
  text-align: left;
}
.bcp42-tl-cap { font-size: 12px; color: #666; margin-bottom: 8px; }
.bcp42-tl-cap strong { color: #1a1a1a; }
.bcp42-tl-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}
.bcp42-tl-lab {
  font-size: 12px;
  font-weight: 800;
  color: #999;
  text-align: right;
}
.bcp42-tl-lab--pack { color: #3A8DFF; }
.bcp42-tl-track {
  position: relative;
  height: 22px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #e6e9ee 0 calc(12.5% - 2px), transparent calc(12.5% - 2px) 12.5%);
}
.bcp42-tl-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.bcp42-tl-fill--trial { width: 37.5%; background: #c9ced6; }
.bcp42-tl-fill--pack { width: 100%; background: #3A8DFF; }
.bcp42-tl-fill--pack span {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding-left: 10px;
}
.bcp42-tl-stop {
  position: absolute;
  left: calc(37.5% + 8px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 700;
  color: #e0533d;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.bcp42-tl-stop::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0533d;
  box-shadow: 0 0 0 3px rgba(224, 83, 61, 0.18);
}
.bcp42-tl-truck {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FCEA54;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bcp42-tl-truck svg { width: 11px; height: 11px; }
.bcp42-tl-axis {
  position: relative;
  height: 14px;
  margin-left: 34px;
  font-size: 10px;
  color: #999;
}
.bcp42-tl-axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
/* 2 reperes : fin du pack d'essai (3 sem. = 37,5 % de 8 sem.) et livraison suivante (2 mois) */
.bcp42-tl-axis span:nth-child(1) { left: 37.5%; }
.bcp42-tl-axis span:nth-child(2) { right: 0; left: auto; transform: none; }

/* Apparition : les barres se remplissent à l'ouverture (rejoué à chaque ouverture,
   l'overlay repasse de display:none à flex) */
.bcp42-open .bcp42-tl-fill--trial { animation: bcp42-fill-trial 0.7s ease-out 0.25s both; }
.bcp42-open .bcp42-tl-fill--pack { animation: bcp42-fill-pack 1.2s cubic-bezier(0.25, 0.8, 0.3, 1) 0.35s both; }
.bcp42-open .bcp42-tl-stop { animation: bcp42-fade 0.3s ease-out 0.95s both; }
.bcp42-open .bcp42-tl-truck { animation: bcp42-truck 0.35s cubic-bezier(0.34, 1.6, 0.64, 1) 1.45s both; }
.bcp42-open .bcp42-tl-fill--pack span { animation: bcp42-fade 0.3s ease-out 1.1s both; }
@keyframes bcp42-fill-trial { from { width: 0; } to { width: 37.5%; } }
@keyframes bcp42-fill-pack { from { width: 0; } to { width: 100%; } }
@keyframes bcp42-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bcp42-truck { from { transform: translateY(-50%) scale(0); } to { transform: translateY(-50%) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .bcp42-open .bcp42-tl-fill--trial,
  .bcp42-open .bcp42-tl-fill--pack,
  .bcp42-open .bcp42-tl-stop,
  .bcp42-open .bcp42-tl-truck,
  .bcp42-open .bcp42-tl-fill--pack span { animation: none; }
}

/* CTA sur 2 lignes */
.bcp42-cta--2l { padding: 11px 16px 10px; line-height: 1.2; }
.bcp42-cta--2l small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  margin-top: 3px;
  color: #3a3a1a;
}
.bcp42-design-a2 .bcp42-reassure { margin: 0.55rem 0 0.2rem; }

/* Mobile : la bulle cookies Axeptio (bas gauche) passe au-dessus de l'overlay,
   on garde le lien "Non merci" hors de sa zone */
@media (max-width: 479px) {
  #bcp42-card { padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px)); }
}

/* Petits écrans (iPhone SE, Safari avec barres) : on garde le bouton ET le refus visibles */
@media (max-width: 479px) and (max-height: 740px) {
  .bcp42-design-a2 .bcp42-pill { margin-bottom: 0.4rem; padding: 4px 10px; }
  .bcp42-design-a2 .bcp42-title { font-size: 20px; }
  .bcp42-design-a2 .bcp42-sub { margin-bottom: 0.9rem; font-size: 13px; }
  .bcp42-design-a2 .bcp42-cmp-card--pack .bcp42-cmp-img img,
  .bcp42-design-a2 .bcp42-cmp-card--trial .bcp42-cmp-img { aspect-ratio: 1.6; }
  .bcp42-design-a2 .bcp42-cmp-card--trial .bcp42-cmp-img img { width: 46%; }
  .bcp42-design-a2 .bcp42-cmp { margin-bottom: 0.7rem; }
  .bcp42-design-a2 .bcp42-tl { margin-bottom: 0.75rem; padding-top: 8px; }
  .bcp42-design-a2 #bcp42-card { padding-top: 1rem; padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px)); }
}

/* ══ A3 : A2 aux règles du brand book Spring (avril 2026) ══════════════════
   Fira Sans (Medium titres, Regular texte). Couleurs principales Nero #262626,
   White, Calamansi #FCFCA4 ; fond secondaire Crystal Cut #F7F4ED. CTA primaire
   = rectangle Nero, texte blanc Regular. Interface à angles droits et filets
   fins, comme la fiche produit wespring.com. */
.bcp42-dot { display: none; }
#bcp42-overlay.bcp42-bb {
  font-family: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #262626;
  background: rgba(38, 38, 38, 0.5);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.bcp42-bb #bcp42-card {
  border-radius: 12px 12px 0 0;
  box-shadow: none;
  text-align: left;
  padding: 22px 20px 16px;
}
@media (min-width: 480px) {
  .bcp42-bb #bcp42-card { border-radius: 12px; padding: 28px 28px 20px; }
}

/* Surtitre parfum */
.bcp42-bb .bcp42-pill {
  background: none;
  color: #262626;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.bcp42-bb .bcp42-pill > svg { display: none; }
.bcp42-bb .bcp42-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 2px;
}
.bcp42-bb .bcp42-pill strong { font-weight: 500; }

.bcp42-bb .bcp42-title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #262626;
}
.bcp42-bb .bcp42-title mark {
  background: linear-gradient(transparent 55%, #FCFCA4 55%, #FCFCA4 95%, transparent 95%);
  padding: 0 1px;
}
.bcp42-bb .bcp42-sub { font-size: 15px; color: rgba(38, 38, 38, 0.72); }
.bcp42-bb .bcp42-sub strong { color: #262626; font-weight: 500; }

/* Cartes */
.bcp42-bb .bcp42-cmp { gap: 8px; }
.bcp42-bb .bcp42-cmp-card { border-radius: 0; padding: 8px 8px 12px; }
.bcp42-bb .bcp42-cmp-card--trial { background: #F7F4ED; }
.bcp42-bb .bcp42-cmp-card--pack {
  background: #fff;
  border: 1px solid #262626;
  box-shadow: none;
  padding-top: 14px;
}
.bcp42-bb .bcp42-cmp-img,
.bcp42-bb .bcp42-cmp-card--trial .bcp42-cmp-img img { border-radius: 0; }
.bcp42-bb .bcp42-cmp-card--trial .bcp42-cmp-img img { filter: saturate(0.4); opacity: 0.85; }
.bcp42-bb .bcp42-ribbon {
  left: 8px;
  transform: none;
  top: -10px;
  background: #FCFCA4;
  color: #262626;
  border-radius: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
}
.bcp42-bb .bcp42-cmp-plus {
  background: #262626;
  border-radius: 0;
  font-weight: 500;
  font-size: 11px;
  padding: 3px 7px;
}
.bcp42-bb .bcp42-cmp-name { font-size: 11px; color: rgba(38, 38, 38, 0.6); letter-spacing: 0.08em; }
.bcp42-bb .bcp42-cmp-qty { font-weight: 500; font-size: 15px; }
.bcp42-bb .bcp42-cmp-card--pack .bcp42-cmp-qty { font-size: 17px; }
.bcp42-bb .bcp42-cmp-price { font-weight: 400; color: rgba(38, 38, 38, 0.7); font-size: 15px; }
.bcp42-bb .bcp42-cmp-card--pack .bcp42-cmp-price { color: #262626; }
.bcp42-bb .bcp42-cmp-price s { color: rgba(38, 38, 38, 0.5); font-weight: 400; }
.bcp42-bb .bcp42-cmp-price strong { font-weight: 500; font-size: 20px; }
.bcp42-bb .bcp42-cmp-off {
  background: #FCFCA4;
  border-radius: 0;
  font-weight: 500;
  font-size: 11px;
  padding: 2px 5px;
}

/* Frise */
.bcp42-bb .bcp42-tl { background: #F7F4ED; border-radius: 0; padding: 12px 14px 8px; }
.bcp42-bb .bcp42-tl-cap { font-size: 13px; color: rgba(38, 38, 38, 0.72); }
.bcp42-bb .bcp42-tl-cap strong { font-weight: 500; color: #262626; }
.bcp42-bb .bcp42-tl-lab { font-weight: 500; color: rgba(38, 38, 38, 0.45); }
.bcp42-bb .bcp42-tl-lab--pack { color: #262626; }
.bcp42-bb .bcp42-tl-track {
  border-radius: 0;
  background: repeating-linear-gradient(90deg, #E9E4D8 0 calc(12.5% - 2px), transparent calc(12.5% - 2px) 12.5%);
}
.bcp42-bb .bcp42-tl-fill { border-radius: 0; }
.bcp42-bb .bcp42-tl-fill--trial { background: #CFC9BC; }
.bcp42-bb .bcp42-tl-fill--pack { background: #262626; }
.bcp42-bb .bcp42-tl-fill--pack span { font-weight: 500; font-size: 12px; }
.bcp42-bb .bcp42-tl-stop { color: #262626; font-weight: 500; font-size: 12px; }
.bcp42-bb .bcp42-tl-stop::before { background: #AF4A4A; box-shadow: none; }
.bcp42-bb .bcp42-tl-truck { background: #FCFCA4; color: #262626; border-radius: 0; }
.bcp42-bb .bcp42-tl-axis { color: rgba(38, 38, 38, 0.5); font-size: 11px; }

/* CTA primaire du brand book */
.bcp42-bb .bcp42-cta {
  background: #262626;
  color: #fff;
  border-radius: 0;
  box-shadow: none;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.01em;
  padding: 15px 16px 13px;
  transition: background 0.15s;
}
.bcp42-bb .bcp42-cta:hover { background: #000; }
.bcp42-bb .bcp42-cta:active { transform: none; box-shadow: none; }
.bcp42-bb .bcp42-cta--2l small { color: rgba(255, 255, 255, 0.72); font-size: 12.5px; font-weight: 400; margin-top: 4px; }

.bcp42-bb .bcp42-reassure { justify-content: center; font-size: 12.5px; color: rgba(38, 38, 38, 0.75); gap: 4px 14px; }
.bcp42-bb .bcp42-reassure svg { color: #262626; width: 15px; height: 15px; }
.bcp42-bb .bcp42-skip { display: block; margin: 2px auto 0; font-size: 13px; color: rgba(38, 38, 38, 0.6); }

.bcp42-bb ~ #bcp42-cursor-hint { font-family: 'Fira Sans', system-ui, sans-serif; border-radius: 0; background: #262626; }

/* Mobile : garder "Non merci" hors de la bulle cookies Axeptio (cf. plus haut) */
@media (max-width: 479px) {
  .bcp42-bb #bcp42-card { padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 479px) and (max-height: 740px) {
  .bcp42-bb .bcp42-title { font-size: 22px; }
  .bcp42-bb #bcp42-card { padding-top: 16px; padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px)); }
}
