/* EHOP V12.2 sublanding refinements. Load after module-v12.css. */

#modulePage .m2-hero {
  padding-block: clamp(30px, 3.8vw, 52px);
}

#modulePage .m2-hero-media {
  aspect-ratio: 3 / 2;
  background: var(--v12-teal-soft);
}

#modulePage .m2-hero-media img,
#modulePage.m2-module-sleep .m2-hero-media img,
#modulePage.m2-module-stress .m2-hero-media img,
#modulePage.m2-module-nutrition .m2-hero-media img,
#modulePage.m2-module-sport .m2-hero-media img,
#modulePage.m2-module-exposure .m2-hero-media img,
#modulePage.m2-module-mental .m2-hero-media img {
  object-fit: cover;
  object-position: center;
  transform: none;
}

#modulePage .m2-hero-promise {
  margin-bottom: 14px;
}

#modulePage .m2-hero-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  width: 100%;
  margin: 12px 0 0;
  text-align: left;
}

#modulePage .m2-hero-offer .m2-price {
  align-items: flex-start;
  margin: 0;
}

#modulePage .m2-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

#modulePage .m2-hero-actions .m2-cta {
  margin: 0;
  text-align: center;
}

#modulePage .m2-hero-actions .m2-quiz {
  margin: 0;
  align-self: flex-start;
  text-align: left;
}

#modulePage .m2-method,
#modulePage .m2-value {
  padding-block: clamp(44px, 5vw, 68px);
}

#modulePage .m2-order {
  padding-block: clamp(44px, 5vw, 68px) 30px;
}

#modulePage .m2-preview-frame-wrap iframe {
  display: block;
  width: 100%;
  min-height: 570px;
  border: 0;
  background: #f4f8f7;
}

#modulePage .m2-preview-watermark {
  max-width: 92%;
  text-align: center;
}

@media (min-width: 1100px) {
  #modulePage .m2-complete-copy h3 {
    max-width: none;
    font-size: clamp(1.8rem, 2.15vw, 2.35rem);
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  #modulePage .m2-hero {
    padding-block: 20px 28px;
  }

  #modulePage .m2-hero-offer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 13px;
  }

  #modulePage .m2-hero-actions {
    min-width: 0;
  }

  #modulePage .m2-method,
  #modulePage .m2-value,
  #modulePage .m2-order {
    padding-block: 42px;
  }

  #modulePage .m2-preview-frame-wrap iframe {
    min-height: 500px;
    pointer-events: none;
  }
}

/* V12.2: compact Bio-Signature cards, inline cadence savings, straddling badge, Complete 360 actions */

/* Hero: slightly smaller media on desktop to trim empty space */
@media (min-width: 1100px) {
  #modulePage .m2-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.9fr);
    gap: clamp(16px, 1.6vw, 26px);
    align-items: center;
  }
}

/* Bio-Signature cards: identifying number moved to the top, tighter box */
#modulePage .m2-card {
  padding: 15px 16px 17px;
}

#modulePage .m2-card-number {
  position: static;
  order: -1;
  margin: 0 0 6px;
  text-align: center;
}

/* Cadence cards: "Payé a l'avance" + savings stacked to the right of the price */
#modulePage .m2-cadence-price .m2-cadence-aside {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  max-width: none;
  padding-bottom: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
}

/* Prices trimestriel/mensuel: "Payé a l'avance pour l'année" on ONE line, savings under */
#modulePage .m2-cadence-card .m2-cadence-price {
  font-size: clamp(1.9rem, 3.35vw, 2.85rem);
}

#modulePage .m2-cadence-price .m2-cadence-aside .m2-cadence-prepaid {
  white-space: nowrap;
}

#modulePage .m2-cadence-price .m2-cadence-aside > span {
  max-width: none;
  padding: 0;
}

#modulePage .m2-cadence-price .m2-cadence-prepaid {
  color: var(--v12-navy);
}

#modulePage .m2-cadence-price .m2-cadence-save {
  color: var(--v12-teal);
  font-weight: 800;
}

/* Recommended badge straddling the top edge of the card */
#modulePage .m2-cadence-card--recommended {
  position: relative;
  overflow: visible;
  padding-top: 30px;
}

#modulePage .m2-cadence-card--recommended .m2-recommended-badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  margin: 0;
  padding: 8px 20px;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(6, 26, 44, 0.18);
}

/* Complete 360: value + description lines, actions on one row */
#modulePage .m2-complete-copy .m2-cadence-price span {
  max-width: none;
  white-space: nowrap;
}

#modulePage .m2-complete-copy .m2-complete-value {
  max-width: none;
  margin: 4px 0;
  font-weight: 700;
}

#modulePage .m2-complete-copy .m2-complete-desc {
  max-width: none;
  margin: 0 0 4px;
}

#modulePage .m2-complete-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  width: 100%;
  margin-top: 16px;
}

#modulePage .m2-complete-copy .m2-complete-actions .m2-cta {
  margin: 0;
}

#modulePage .m2-complete-copy .m2-complete-actions .m2-return {
  margin: 0 0 0 auto;
}

@media (max-width: 767px) {
  #modulePage .m2-card {
    padding: 14px 16px 16px;
  }

  #modulePage .m2-complete-copy .m2-complete-actions .m2-return {
    margin-left: 0;
  }
}
