/* assets/idp-content-unlocker.css */
.idp-unlock { position: relative; }
.idp-unlock__content.is-locked { max-height: none; overflow: visible; padding-bottom: var(--idp-unlock-gate-space, 190px); }
.idp-unlock__content.is-unlocked { max-height: none; overflow: visible; }

/* Affiche le flou et la card seulement après un peu de scroll */
.idp-unlock:not(.idp-unlock--engaged) .idp-unlock__blur,
.idp-unlock:not(.idp-unlock--engaged) .idp-unlock__gate.is-fixed{
  opacity: 0;
}

.idp-unlock.idp-unlock--engaged .idp-unlock__blur{
  opacity: 1;
}

.idp-unlock.idp-unlock--engaged .idp-unlock__gate.is-fixed{
  opacity: 1;
  transform: translateY(0);
}


.idp-unlock__blur{
  position: absolute;
  left: 0; right: 0;
  top: var(--idp-unlock-blur-after, 520px);
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
  -webkit-backdrop-filter: blur(var(--idp-unlock-blur, 10px));
  backdrop-filter: blur(var(--idp-unlock-blur, 10px));
  background: linear-gradient(to bottom,
    rgba(255,255,255,0.00) 0%,
    rgba(255,255,255,0.35) 18%,
    rgba(255,255,255,0.70) 45%,
    rgba(255,255,255,0.92) 75%,
    rgba(255,255,255,1.00) 100%
  );
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 22%, rgba(0,0,0,1) 100%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 22%, rgba(0,0,0,1) 100%);
}

.idp-unlock__overlay{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--idp-unlock-fade-height, 280px);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.92), rgba(255,255,255,1));
}


.idp-unlock__gate{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  padding: 18px 12px 12px;
}

.idp-unlock__card{
  width: min(560px, 100%);
}

.idp-unlock__title{
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.idp-unlock__subtitle{
  opacity: 0.8;
  margin-bottom: 12px;
}

.idp-unlock__input{
  width: 100%;
}

.idp-unlock__button{
  white-space: nowrap;
}

.idp-unlock__msg{
  grid-column: 1 / -1;
  font-size: 0.95rem;
  margin-top: 4px;
  min-height: 1.2em;
}

.idp-unlock__step{ display:none; }
.idp-unlock__step.is-active{ display:block; }

.idp-unlock__link{
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.85;
}


.idp-unlock__gate.is-fixed{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.idp-unlock__gate.is-fixed .idp-unlock__card{
  pointer-events: auto;
}
