/* =========================================================
   ÉCLORYA — Modal promo première commande
   ========================================================= */

.eclorya-promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 999998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 14, 10, 0.68);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.eclorya-promo-overlay.is-visible {
  display: flex;
  animation: ecloryaPromoFade .28s ease both;
}

body.eclorya-promo-open {
  overflow: hidden;
}

.eclorya-promo-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  width: min(980px, calc(100vw - 48px));
  max-height: min(680px, calc(100vh - 48px));
  overflow: hidden;
  background: #f7f2e9;
  border: 1px solid rgba(176, 141, 87, .34);
  border-radius: 24px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .28);
  transform-origin: center;
  animation: ecloryaPromoRise .35s cubic-bezier(.2,.8,.2,1) both;
}

.eclorya-promo-visual {
  min-height: 520px;
  background: #17110d;
}

.eclorya-promo-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: 54% 52%;
}

.eclorya-promo-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 72px);
  text-align: center;
  color: #16130f;
  background:
    radial-gradient(circle at 14% 12%, rgba(211,182,141,.16), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.42), rgba(247,242,233,.86));
}

.eclorya-promo-kicker {
  margin: 0 0 16px;
  color: #9a6b28;
  font-family: "Work Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eclorya-promo-discount {
  margin: 0;
  color: #b07b28;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(72px, 8vw, 118px);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -.055em;
}

.eclorya-promo-subtitle {
  margin: 12px 0 0;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: clamp(25px, 3vw, 37px);
  font-style: italic;
  line-height: 1.12;
}

.eclorya-promo-message {
  max-width: 520px;
  margin: 24px auto 0;
  color: #4a4038;
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

.eclorya-promo-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 430px);
  margin: 25px auto 0;
  padding: 13px 18px;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(176,141,87,.65);
  color: #4a4038;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.eclorya-promo-code:hover,
.eclorya-promo-code:focus-visible {
  background: #fffaf1;
  border-color: #b08d57;
}

.eclorya-promo-code-label {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 18px;
  font-style: italic;
}

.eclorya-promo-code-value {
  color: #9a6b28;
  font-family: "Work Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .12em;
}

.eclorya-promo-copy-state {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.eclorya-promo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 430px);
  margin: 18px auto 0;
  padding: 15px 24px;
  background: #18140f;
  color: #fff8eb !important;
  border: 1px solid #18140f;
  font-family: "Work Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.eclorya-promo-cta:hover,
.eclorya-promo-cta:focus-visible {
  background: #b08d57;
  border-color: #b08d57;
  color: #16130f !important;
  transform: translateY(-1px);
}

.eclorya-promo-later {
  display: inline-block;
  margin: 16px auto 0;
  padding: 3px 6px;
  border: 0;
  background: transparent;
  color: #5a4b3e;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 16px;
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.eclorya-promo-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(247,242,233,.86);
  color: #16130f;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.eclorya-promo-close:hover,
.eclorya-promo-close:focus-visible {
  background: #fff;
  transform: rotate(4deg);
}

.eclorya-promo-close::before,
.eclorya-promo-close::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 1.5px;
  background: currentColor;
}
.eclorya-promo-close::before { transform: rotate(45deg); }
.eclorya-promo-close::after { transform: rotate(-45deg); }

@keyframes ecloryaPromoFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ecloryaPromoRise {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .eclorya-promo-overlay { padding: 14px; }

  .eclorya-promo-modal {
    grid-template-columns: 1fr;
    width: min(520px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    border-radius: 18px;
  }

  .eclorya-promo-visual {
    min-height: 190px;
    height: 30vh;
    max-height: 270px;
  }

  .eclorya-promo-visual img {
    min-height: 190px;
    object-position: 52% 57%;
  }

  .eclorya-promo-content { padding: 28px 22px 30px; }
  .eclorya-promo-discount { font-size: clamp(64px, 22vw, 92px); }
  .eclorya-promo-subtitle { font-size: 27px; }
  .eclorya-promo-message { margin-top: 16px; font-size: 14px; }
  .eclorya-promo-code { margin-top: 18px; }
  .eclorya-promo-close { top: 10px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .eclorya-promo-overlay,
  .eclorya-promo-modal { animation: none !important; }
}
