/* Encart « carte cadeau mariage » des pages film et photo, et coupon associé dans « Mes coupons ».
   Le générateur complet vit sur carte-cadeau-mariage.html. */
.gift-card-offer {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  width: min(940px, calc(100% - 32px));
  box-sizing: border-box;
  margin: 34px auto 46px;
  padding: 30px 34px;
  border: 1px solid rgba(111, 76, 255, 0.22);
  border-radius: 30px;
  background: linear-gradient(145deg, #fff 0%, #fbf8ff 62%, #fff6fb 100%);
  box-shadow: 0 16px 38px rgba(91, 61, 185, 0.1);
  text-align: left;
}

.gift-card-offer *,
.gift-card-offer *::before,
.gift-card-offer *::after {
  box-sizing: border-box;
}

/* Visuel : une carte qui flotte, avec un reflet qui passe de temps en temps. */
.gift-card-offer__visual {
  display: block;
  color: inherit;
  text-decoration: none;
  perspective: 900px;
}

.gift-card-mini {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr auto auto;
  width: 100%;
  aspect-ratio: 1.586;
  padding: 18px 18px 16px 20px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 255, 255, 0.24), transparent 38%),
    linear-gradient(135deg, #2a1650 0%, #5b3fe0 55%, #b25bd0 100%);
  box-shadow: 0 18px 34px rgba(72, 40, 150, 0.35);
  color: #fff;
  transform: rotate(-4deg);
  animation: gift-card-mini-float 5s ease-in-out infinite;
}

.gift-card-offer--photo .gift-card-mini {
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 255, 255, 0.26), transparent 38%),
    linear-gradient(135deg, #8e2a63 0%, #b04fa0 50%, #6b5cf0 100%);
  box-shadow: 0 18px 34px rgba(142, 42, 99, 0.3);
}

/* Logo brillant, comme sur la carte générée ; le halo du PNG déborde à gauche. */
.gift-card-mini__brand {
  display: block;
  grid-column: 1 / -1;
  width: 118px;
  max-width: 60%;
  height: auto;
  margin: -4px 0 -2px -7px;
}

.gift-card-mini__kind {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.gift-card-mini__to {
  grid-column: 1;
  align-self: end;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
}

.gift-card-mini__amount {
  grid-column: 1;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.gift-card-mini__amount--offer {
  font-size: 23px;
  letter-spacing: -0.01em;
}

.gift-card-mini__bonus {
  grid-column: 1;
  justify-self: start;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1.2;
}

.gift-card-mini__qr {
  grid-column: 2;
  grid-row: 3 / 6;
  align-self: end;
  width: 62px;
  height: 62px;
  padding: 3px;
  border-radius: 9px;
  background: #fff;
  color: #241638;
}

.gift-card-mini__qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.gift-card-mini__shine {
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  pointer-events: none;
  transform: rotate(18deg);
  animation: gift-card-mini-shine 4.8s ease-in-out infinite;
}

@keyframes gift-card-mini-float {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-6px); }
}

@keyframes gift-card-mini-shine {
  0%, 55% { left: -60%; }
  85%, 100% { left: 130%; }
}

/* Texte et actions */
.gift-card-offer__eyebrow {
  margin: 0;
  color: #6b5bb0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gift-card-offer h2 {
  margin: 6px 0 8px;
  color: #17131f;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.15;
}

.gift-card-offer__text {
  margin: 0 0 14px;
  color: #6f6780;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.gift-card-offer__amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.gift-card-offer__amounts a {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 8px 14px;
  border: 1px solid rgba(113, 83, 232, 0.3);
  border-radius: 999px;
  background: #fff;
  color: #4e367e;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.gift-card-offer__amounts a small {
  color: inherit;
  font-size: 11px;
  font-weight: 650;
  opacity: 0.75;
}

.gift-card-offer__amounts a:hover,
.gift-card-offer__amounts a:focus-visible {
  border-color: #6847ef;
  background: #6847ef;
  color: #fff;
  transform: translateY(-1px);
}

.gift-card-offer__bonus {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f5f1ff;
  color: #4e367e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.gift-card-offer__bonus strong {
  flex: none;
  padding: 5px 9px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff7aa8, #a254d2);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
}

.gift-card-offer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12.5px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6847ef, #9b53d8);
  box-shadow: 0 9px 22px rgba(88, 58, 184, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.gift-card-offer__cta:hover,
.gift-card-offer__cta:focus-visible {
  color: #fff;
  filter: brightness(1.05);
  box-shadow: 0 12px 26px rgba(88, 58, 184, 0.26);
  transform: translateY(-1px);
}

.gift-card-offer__amounts a:focus-visible,
.gift-card-offer__cta:focus-visible {
  outline: 3px solid rgba(139, 92, 246, 0.35);
  outline-offset: 3px;
}

.gift-card-offer__terms {
  margin: 10px 0 0;
  color: #7a7188;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.4;
}

.gift-card-offer__terms strong {
  color: #1f7a52;
  font-weight: 800;
}

[data-theme="dark"] .gift-card-offer__terms strong {
  color: #9ff0c8;
}

.gift-card-offer__terms a {
  color: #5b4ae8;
  font-weight: 750;
}

/* Thème sombre du site */
[data-theme="dark"] .gift-card-offer {
  border-color: rgba(167, 139, 250, 0.24);
  background: linear-gradient(145deg, rgba(40, 28, 59, 0.98), rgba(31, 23, 45, 0.98));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .gift-card-offer h2 { color: #fff; }
[data-theme="dark"] .gift-card-offer__eyebrow { color: #c4b5fd; }
[data-theme="dark"] .gift-card-offer__text,
[data-theme="dark"] .gift-card-offer__terms { color: rgba(249, 243, 255, 0.72); }
[data-theme="dark"] .gift-card-offer__terms a { color: #c4b5fd; }

[data-theme="dark"] .gift-card-offer__amounts a {
  border-color: rgba(196, 181, 253, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #f3eaff;
}

[data-theme="dark"] .gift-card-offer__bonus {
  background: rgba(167, 139, 250, 0.14);
  color: #f3eaff;
}

@media (max-width: 720px) {
  .gift-card-offer {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    margin: 26px auto 36px;
    padding: 26px 20px 24px;
    text-align: center;
  }

  .gift-card-offer__visual {
    width: min(300px, 88%);
    margin: 6px auto 0;
  }

  .gift-card-mini {
    text-align: left;
  }

  .gift-card-offer__amounts {
    justify-content: center;
  }

  .gift-card-offer__bonus {
    text-align: left;
  }

  .gift-card-offer__cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gift-card-mini,
  .gift-card-mini__shine {
    animation: none;
  }

  .gift-card-offer__amounts a,
  .gift-card-offer__cta {
    transition: none;
  }
}
