/* Popup offre de bienvenue — aligné design system D.Majin */

.wo-popup {
  position: fixed;
  inset: 0;
  z-index: 100600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) 1rem max(12px, env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 50% 40%, rgba(0, 245, 212, 0.12), transparent 55%),
    rgba(4, 6, 10, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease, ease), visibility 0.35s var(--ease, ease);
}

.wo-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wo-popup__panel {
  position: relative;
  width: min(22rem, 92vw);
  max-height: min(92vh, 40rem);
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 212, 0.32);
  background:
    linear-gradient(165deg, rgba(18, 24, 34, 0.98) 0%, rgba(10, 12, 16, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 245, 212, 0.06) inset,
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(0, 245, 212, 0.14);
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.wo-popup.is-open .wo-popup__panel {
  transform: scale(1);
  opacity: 1;
}

.wo-popup__kicker {
  margin: 1.15rem 1.25rem 0.3rem;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turquoise, #00f5d4);
}

.wo-popup__title {
  margin: 0 1.25rem 0.85rem;
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: clamp(1.65rem, 5vw, 2.1rem);
  letter-spacing: 0.05em;
  line-height: 1.05;
  color: var(--blanc, #f8f9fa);
  text-shadow: 0 0 24px rgba(0, 245, 212, 0.2);
}

.wo-popup__art-wrap {
  margin: 0 1.15rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 245, 212, 0.28);
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 245, 212, 0.12), transparent 62%),
    var(--noir-2, #121214);
  box-shadow:
    0 0 22px rgba(0, 245, 212, 0.12),
    inset 0 0 40px rgba(0, 0, 0, 0.35);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wo-popup__art {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

.wo-popup__text {
  margin: 1rem 1.25rem 0.4rem;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(248, 249, 250, 0.92);
}

.wo-popup__hint {
  margin: 0 1.25rem 1.15rem;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--gris, #6b7280);
}

.wo-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0 1.25rem 1.25rem;
}

.wo-popup__actions .btn {
  width: 100%;
}

.wo-popup__actions a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.wo-popup .hidden {
  display: none !important;
}

.wo-em {
  color: var(--turquoise, #00f5d4);
  font-weight: 700;
}

.wo-popup__howto .wo-popup__title {
  margin-bottom: 0.5rem;
}

.wo-popup__steps {
  list-style: none;
  margin: 0 1.15rem 0.9rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wo-popup__steps li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 245, 212, 0.18);
  background: rgba(0, 245, 212, 0.05);
}

.wo-step-num {
  flex: 0 0 1.55rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--noir, #0a0a0b);
  background: linear-gradient(135deg, var(--turquoise, #00f5d4), #00c9b7);
}

.wo-step-body {
  flex: 1;
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.92rem;
  line-height: 1.4;
  color: rgba(248, 249, 250, 0.94);
}

.wo-popup__howto-note {
  margin: 0 1.25rem 1rem;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(254, 228, 64, 0.28);
  background: rgba(254, 228, 64, 0.08);
  font-family: var(--font-body, 'Outfit', sans-serif);
  font-size: 0.84rem;
  line-height: 1.4;
  color: rgba(248, 249, 250, 0.92);
}

body.wo-popup-open {
  overflow: hidden;
}
