@font-face {
  font-family: "Giftovo Display";
  src: url("giftovo-display-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Giftovo Display";
  src: url("giftovo-display-italic.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

.giftovo-reveal,
.giftovo-reveal * {
  box-sizing: border-box;
}

html:has(body.giftovo-app-page),
:where(
  body.giftovo-app-page,
  body:has(.giftovo-accueil),
  body:has(.giftovo-quiz),
  body:has(.giftovo-reveal)
) {
  min-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #061523 !important;
}

:where(
    body.giftovo-app-page,
    body:has(.giftovo-accueil),
    body:has(.giftovo-quiz),
    body:has(.giftovo-reveal)
  )
  > header,
:where(
    body.giftovo-app-page,
    body:has(.giftovo-accueil),
    body:has(.giftovo-quiz),
    body:has(.giftovo-reveal)
  )
  > footer,
:where(
    body.giftovo-app-page,
    body:has(.giftovo-accueil),
    body:has(.giftovo-quiz),
    body:has(.giftovo-reveal)
  )
  :is(
    .wp-site-blocks > header,
    header.wp-block-template-part,
    #site-header,
    #masthead,
    .site-header,
    .main-header,
    .elementor-location-header,
    .wp-site-blocks > footer,
    footer.wp-block-template-part,
    #site-footer,
    #colophon,
    .site-footer,
    .elementor-location-footer
  ) {
  display: none !important;
}

:where(
    body.giftovo-app-page,
    body:has(.giftovo-accueil),
    body:has(.giftovo-quiz),
    body:has(.giftovo-reveal)
  )
  :is(
    .wp-site-blocks,
    #page,
    .site,
    #content,
    .site-content,
    #primary,
    .content-area,
    main,
    article,
    .entry-content,
    .wp-block-post-content,
    .wp-block-group,
    .wp-block-group__inner-container,
    .elementor,
    .elementor-section,
    .elementor-container,
    .e-con
  ) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

:where(
    body.giftovo-app-page,
    body:has(.giftovo-accueil),
    body:has(.giftovo-quiz),
    body:has(.giftovo-reveal)
  )
  .wp-site-blocks,
:where(
    body.giftovo-app-page,
    body:has(.giftovo-accueil),
    body:has(.giftovo-quiz),
    body:has(.giftovo-reveal)
  )
  :is(.giftovo-accueil__shell, .giftovo-quiz__shell, .giftovo-reveal__shell) {
  min-height: 100svh !important;
}

:where(
    body.giftovo-app-page,
    body:has(.giftovo-accueil),
    body:has(.giftovo-quiz),
    body:has(.giftovo-reveal)
  )
  :is(.giftovo-accueil, .giftovo-quiz, .giftovo-reveal) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

body:has(.giftovo-reveal) :is(.entry-title, .wp-block-post-title) {
  display: none !important;
}

.giftovo-reveal {
  --gr-night: #04111c;
  --gr-navy: #08243a;
  --gr-navy-light: #0d3651;
  --gr-gold: #cf9344;
  --gr-gold-light: #f3d293;
  --gr-ivory: #fffaf0;
  --gr-muted: #ded7ca;
  --gr-border: rgba(232, 183, 105, 0.48);
  min-height: 100svh;
  color: var(--gr-ivory);
  background: var(--gr-night);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.giftovo-reveal a {
  text-decoration: none;
}

/* Écran de transition Quiz → Reveal.
   Le fond reprend strictement la couleur active de Reveal. */
.giftovo-reveal__loading {
  width: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  overflow: hidden;
  background: var(--gr-night);
}

.giftovo-reveal__loading-logo {
  display: block;
  width: min(82vw, 487px);
  height: auto;
  max-width: 100%;
}

.giftovo-reveal__shell {
  min-height: 100svh;
  overflow: hidden;
  background: var(--gr-night);
}

.giftovo-reveal__hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(34px, 6svh, 68px) 22px 28px;
  overflow: hidden;
  color: var(--gr-ivory);
  text-align: center;
  isolation: isolate;
}

.giftovo-reveal__hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(1, 8, 14, 0.08) 0%,
      rgba(1, 8, 14, 0.02) 38%,
      rgba(1, 8, 14, 0.04) 68%,
      rgba(1, 8, 14, 0.42) 100%
    ),
    url("giftovo-hero-v2.webp") center 48% / cover no-repeat;
  content: "";
}

.giftovo-reveal__hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 82% 52%, rgba(235, 178, 91, 0.2), transparent 23%),
    linear-gradient(90deg, rgba(2, 12, 20, 0.1), transparent 28% 72%, rgba(2, 12, 20, 0.1));
  content: "";
}

.giftovo-reveal__hero-copy {
  display: flex;
  width: min(100%, 680px);
  flex-direction: column;
  align-items: center;
}

.giftovo-reveal__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--gr-gold-light) !important;
  font-family: "Giftovo Display", Palatino, Georgia, serif;
  font-size: clamp(36px, 8vw, 54px);
  line-height: 1;
  letter-spacing: 0.025em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.72);
}

.giftovo-reveal__brand-gift {
  color: var(--gr-gold);
  font-family: Georgia, serif;
  font-size: 0.68em;
}

.giftovo-reveal__eyebrow {
  margin: 24px 0 10px;
  color: var(--gr-gold-light) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.giftovo-reveal__title,
.giftovo-reveal__results-header h2,
.giftovo-reveal__result-card h2,
.giftovo-reveal__state h2 {
  color: var(--gr-ivory) !important;
  font-family: "Giftovo Display", Palatino, Georgia, serif;
  font-weight: 400 !important;
}

.giftovo-reveal__title {
  max-width: 680px;
  margin: 0;
  font-size: clamp(40px, 9vw, 68px);
  line-height: 1.01;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.82);
}

.giftovo-reveal__intro {
  max-width: 560px;
  margin: 17px auto 0;
  color: #fff8eb !important;
  font-family: "Giftovo Display", Palatino, Georgia, serif;
  font-size: clamp(18px, 4.4vw, 24px);
  line-height: 1.36;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
}

.giftovo-reveal__hero-bottom {
  display: flex;
  width: min(100%, 600px);
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.giftovo-reveal__context {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.giftovo-reveal__context li {
  padding: 7px 12px;
  border: 1px solid rgba(243, 210, 147, 0.55);
  border-radius: 999px;
  background: rgba(4, 17, 28, 0.68);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  color: #fff7e8;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.giftovo-reveal__scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 19px;
  border: 1px solid rgba(243, 210, 147, 0.62);
  border-radius: 999px;
  background: rgba(4, 17, 28, 0.78);
  color: var(--gr-gold-light) !important;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(9px);
}

.giftovo-reveal__results {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  padding: 52px 18px 42px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(229, 178, 91, 0.18), transparent 28%),
    radial-gradient(circle at 8% 34%, rgba(207, 147, 68, 0.08), transparent 21%),
    radial-gradient(circle at 92% 62%, rgba(243, 210, 147, 0.06), transparent 23%),
    linear-gradient(180deg, #071a28 0%, #03111c 52%, #020a12 100%);
}

.giftovo-reveal__results::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 238, 203, 0.025) 50%, transparent),
    linear-gradient(180deg, rgba(3, 15, 24, 0), rgba(3, 15, 24, 0.32) 38%, rgba(2, 10, 17, 0.5));
  pointer-events: none;
  content: "";
}

.giftovo-reveal__results-header,
.giftovo-reveal__result-list,
.giftovo-reveal__restart {
  position: relative;
  z-index: 1;
}

.giftovo-reveal__results-header {
  width: min(100%, 680px);
  margin: 0 auto 28px;
  text-align: center;
}

.giftovo-reveal__results-header .giftovo-reveal__eyebrow {
  margin-top: 0;
}

.giftovo-reveal__results-header h2 {
  margin: 0;
  font-size: clamp(37px, 8vw, 56px);
  line-height: 1.02;
  text-wrap: balance;
}

.giftovo-reveal__results-header > p:last-child {
  max-width: 520px;
  margin: 12px auto 0;
  color: var(--gr-muted);
  font-family: "Giftovo Display", Palatino, Georgia, serif;
  font-size: 17px;
  line-height: 1.35;
}

.giftovo-reveal__result-list {
  display: grid;
  width: min(100%, 760px);
  gap: 34px;
}

.giftovo-reveal__result-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(241, 196, 119, 0.68);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(10, 31, 45, 0.99), rgba(2, 13, 22, 0.995));
  box-shadow:
    0 26px 68px rgba(0, 0, 0, 0.5),
    0 0 34px rgba(212, 151, 68, 0.12),
    inset 0 1px rgba(255, 245, 222, 0.1);
}

.giftovo-reveal__result-card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 42px rgba(222, 173, 93, 0.045);
  pointer-events: none;
  content: "";
}

.giftovo-reveal__result-visual {
  position: relative;
  display: flex;
  min-height: 0;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(241, 196, 119, 0.52);
  background:
    radial-gradient(ellipse at 50% 58%, rgba(243, 196, 117, 0.25), transparent 38%),
    linear-gradient(155deg, #0c2b3d, #04131f 72%);
}

.giftovo-reveal__result-ribbon {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 50%;
  max-width: calc(100% - 40px);
  padding: 8px 17px;
  border: 1px solid rgba(243, 210, 147, 0.6);
  border-radius: 999px;
  background: rgba(4, 17, 28, 0.82);
  color: var(--gr-gold-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  backdrop-filter: blur(7px);
}

.giftovo-reveal__product-image {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.giftovo-reveal__product-image--landscape {
  width: 100%;
}

.giftovo-reveal__product-image--portrait {
  width: auto;
  max-height: min(78vh, 820px);
}

.giftovo-reveal__result-copy {
  position: relative;
  z-index: 1;
  padding: 28px clamp(20px, 6vw, 42px) 30px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(208, 148, 68, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(7, 27, 40, 0.99), rgba(2, 13, 22, 0.995));
  text-align: center;
}

.giftovo-reveal__path-summary {
  max-width: 540px;
  margin: 0 auto 11px;
  color: #f1d9b1;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.giftovo-reveal__result-card h2 {
  margin: 0;
  font-size: clamp(34px, 7.5vw, 50px);
  line-height: 1.02;
  text-wrap: balance;
}

.giftovo-reveal__price {
  margin: 6px 0 0;
  color: var(--gr-gold-light);
  font-family: "Giftovo Display", Palatino, Georgia, serif;
  font-size: 24px;
}

.giftovo-reveal__price--pending {
  font-size: 16px;
}

.giftovo-reveal__product-name {
  max-width: 540px;
  margin: 7px auto 0;
  color: #d9e1e6;
  font-size: 12px;
  line-height: 1.45;
}

.giftovo-reveal__product-name span {
  display: block;
  margin-bottom: 2px;
  color: #9ba9b2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.giftovo-reveal__ornament {
  display: block;
  margin: 8px 0 4px;
  color: var(--gr-gold);
}

.giftovo-reveal__why-label {
  margin: 0;
  color: #fff6e7;
  font-family: "Giftovo Display", Palatino, Georgia, serif;
  font-size: 16px;
}

.giftovo-reveal__why {
  max-width: 540px;
  margin: 8px auto 14px;
  color: #e7e1d7;
  font-size: 15px;
  line-height: 1.52;
}

.giftovo-reveal__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 0 0 17px;
  padding: 0;
  list-style: none;
}

.giftovo-reveal__tags li {
  padding: 5px 10px;
  border: 1px solid rgba(243, 210, 147, 0.34);
  border-radius: 999px;
  background: rgba(207, 147, 68, 0.12);
  color: #f7dfb8;
  font-size: 11px;
  font-weight: 700;
}

.giftovo-reveal__button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border: 1px solid rgba(255, 226, 166, 0.7);
  border-radius: 999px;
  background: linear-gradient(110deg, #b8782d 0%, #dfa64f 48%, #f5d486 100%);
  box-shadow:
    0 13px 35px rgba(0, 0, 0, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.3);
  color: #07111a !important;
  font-family: "Giftovo Display", Palatino, Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}

.giftovo-reveal__button:hover,
.giftovo-reveal__button:focus-visible {
  filter: brightness(1.07);
  transform: translateY(-2px);
}

.giftovo-reveal__button--disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.giftovo-reveal__commercial-note {
  margin: 10px 0 0;
  color: #9ba9b2;
  font-size: 10px;
}

.giftovo-reveal__restart {
  margin-top: 28px;
  padding: 10px 16px;
  color: var(--gr-gold-light) !important;
  font-size: 14px;
  font-weight: 800;
}

.giftovo-reveal__state {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background:
    radial-gradient(circle at 50% 28%, rgba(216, 151, 66, 0.2), transparent 28%),
    linear-gradient(155deg, #0c324b, #04111c 72%);
  color: var(--gr-ivory);
  text-align: center;
}

.giftovo-reveal__state-mark {
  color: var(--gr-gold-light);
  font-size: 42px;
}

.giftovo-reveal__state h2 {
  margin: 12px 0 8px;
  font-size: clamp(31px, 8vw, 48px);
}

.giftovo-reveal__state p {
  max-width: 520px;
  margin: 0 0 22px;
  color: var(--gr-muted);
}

.giftovo-reveal__state .giftovo-reveal__button {
  max-width: 380px;
}

@media (min-width: 760px) {
  .giftovo-reveal__hero {
    padding-right: 8vw;
    padding-left: 8vw;
  }

  .giftovo-reveal__hero::before {
    background-position: center 50%;
  }

  .giftovo-reveal__results {
    padding-top: 72px;
    padding-bottom: 64px;
  }
}

@media (min-width: 900px) {
  .giftovo-reveal__hero {
    min-height: max(720px, 100svh);
    align-items: flex-start;
    justify-content: center;
    padding: 72px 8vw 54px;
    text-align: left;
  }

  .giftovo-reveal__hero::before {
    background:
      linear-gradient(
        90deg,
        rgba(1, 8, 14, 0.96) 0%,
        rgba(1, 8, 14, 0.88) 32%,
        rgba(1, 8, 14, 0.45) 54%,
        rgba(1, 8, 14, 0.08) 73%,
        rgba(1, 8, 14, 0.34) 100%
      ),
      url("giftovo-hero-v2.webp") 80% bottom / auto 116% no-repeat,
      linear-gradient(135deg, #020b13, #071d2c 72%, #03101a);
  }

  .giftovo-reveal__hero::after {
    background:
      radial-gradient(circle at 79% 47%, rgba(235, 178, 91, 0.16), transparent 24%),
      linear-gradient(180deg, transparent 62%, rgba(1, 8, 14, 0.38));
  }

  .giftovo-reveal__hero-copy,
  .giftovo-reveal__hero-bottom {
    width: min(46vw, 660px);
    align-items: flex-start;
  }

  .giftovo-reveal__brand {
    justify-content: flex-start;
  }

  .giftovo-reveal__title,
  .giftovo-reveal__intro {
    margin-left: 0;
    text-align: left;
  }

  .giftovo-reveal__context {
    justify-content: flex-start;
  }

  .giftovo-reveal__scroll-cue {
    align-self: flex-start;
  }

  .giftovo-reveal__results-header,
  .giftovo-reveal__result-list {
    width: min(100%, 800px);
  }

}

@media (max-width: 520px) {
  .giftovo-reveal__hero {
    padding-right: 17px;
    padding-left: 17px;
  }

  .giftovo-reveal__title {
    font-size: clamp(38px, 11.6vw, 54px);
  }

  .giftovo-reveal__intro {
    max-width: 360px;
    font-size: 18px;
  }

  .giftovo-reveal__results {
    padding-right: 12px;
    padding-left: 12px;
  }

  .giftovo-reveal__result-list {
    gap: 20px;
  }

  .giftovo-reveal__result-card {
    border-radius: 22px;
  }

  .giftovo-reveal__product-image--portrait {
    width: 100%;
    max-height: none;
  }

  .giftovo-reveal__result-copy {
    padding-right: 19px;
    padding-left: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.giftovo-app-page),
  .giftovo-reveal *,
  .giftovo-reveal *::before,
  .giftovo-reveal *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
