/* Homepage block of the « Couple et parents » vertical (template/homepage/section_parents.php): the shape of
   the quiz teaser, the evening of the vertical's pages, calmer than the game's. */
.parents-teaser {
  padding: clamp(28px, 6vw, 56px) 16px;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.parents-teaser *,
.parents-teaser *::before,
.parents-teaser *::after {
  box-sizing: border-box;
}

.parents-teaser__inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas: "copy cards" "cta cards";
  align-items: center;
  gap: 22px clamp(20px, 4vw, 48px);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(24px, 4.5vw, 48px);
  border-radius: 32px;
  background:
    radial-gradient(70% 60% at 8% 6%, rgba(247, 37, 133, .3), transparent 70%),
    radial-gradient(60% 70% at 100% 100%, rgba(139, 44, 246, .32), transparent 70%),
    linear-gradient(160deg, #2a0f33 0%, #3b163f 48%, #4a1d6e 100%);
  box-shadow: 0 24px 70px rgba(42, 15, 51, .28);
}

/* The lamp of the evening, breathing slowly. */
.parents-teaser__inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -45%;
  left: -12%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 176, 120, .28) 0%, rgba(247, 37, 133, .12) 45%, transparent 70%);
  animation: parents-teaser-breathe 7s ease-in-out infinite;
  pointer-events: none;
}

.parents-teaser__copy {
  grid-area: copy;
  align-self: end;
}

.parents-teaser__kicker {
  margin: 0 0 10px;
  color: #ffd1e3;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.parents-teaser h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.9rem, 4.6vw, 2.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.parents-teaser__lead {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  font-weight: 600;
  line-height: 1.55;
}

.parents-teaser__cards {
  grid-area: cards;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.parents-teaser__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  color: #2a142d;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(16, 4, 24, .25);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease;
}

.parents-teaser__card:hover,
.parents-teaser__card:focus-visible {
  color: #2a142d;
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(16, 4, 24, .32);
}

/* The icons of the vertical (static/images/couple-parents/icons.svg), one colour of the evening per card. */
.parents-teaser__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: linear-gradient(145deg, #8b2cf6, #e91e75);
  color: #fff;
  font-size: 21px;
}

.parents-teaser__cards li:nth-child(2) .parents-teaser__icon {
  background: linear-gradient(145deg, #ff9f4a, #f72585);
}

.parents-teaser__cards li:nth-child(3) .parents-teaser__icon {
  background: linear-gradient(145deg, #ff6f91, #b5179e);
}

.parents-teaser__cards li:nth-child(4) .parents-teaser__icon {
  background: linear-gradient(145deg, #4a1d6e, #34123c);
}

.parents-teaser .cp-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
}

.parents-teaser__card strong {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
}

.parents-teaser__sub {
  color: #6f5a71;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.4;
}

.parents-teaser__cta {
  grid-area: cta;
  align-self: start;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #e91e75, #8b2cf6);
  box-shadow: 0 14px 30px rgba(233, 30, 117, .3);
  font-size: 1.04rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.parents-teaser__cta:hover,
.parents-teaser__cta:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(233, 30, 117, .38);
}

.parents-teaser__card:focus-visible,
.parents-teaser__cta:focus-visible {
  outline: 3px solid rgba(255, 185, 56, .9);
  outline-offset: 3px;
}

@keyframes parents-teaser-breathe {
  0%, 100% { opacity: .72; scale: .95; }
  50% { opacity: 1; scale: 1.05; }
}

@media (max-width: 760px) {
  .parents-teaser__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "cards" "cta";
    border-radius: 24px;
  }

  .parents-teaser__cta {
    justify-self: stretch;
  }
}

@media (max-width: 380px) {
  .parents-teaser__card {
    padding: 14px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .parents-teaser__inner::before {
    animation: none;
  }

  .parents-teaser__card,
  .parents-teaser__cta {
    transition: none;
  }
}
