/* ================================================================
   PARIS T’AIME — ACCÈS RÉSERVÉ
   Page vidéo protégée
   ================================================================ */

body:has(.pt-video-gate) {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(100, 20, 34, .14), transparent 32rem),
    linear-gradient(135deg, #020018 0%, #05051b 48%, #020914 100%);
  color: #f6efe2;
}

/* Cette porte est volontairement autonome : pas de menu/footer autour. */
body:has(.pt-video-gate) .pt-site-header,
body:has(.pt-video-gate) .pt-site-footer {
  display: none !important;
}

body:has(.pt-video-gate) .pt-main {
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.pt-video-gate,
.pt-video-gate *,
.pt-video-gate *::before,
.pt-video-gate *::after {
  box-sizing: border-box;
}

.pt-video-gate {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding:
    clamp(28px, 4.5vw, 70px)
    clamp(18px, 4vw, 52px);
}

.pt-video-gate__card {
  width: min(100%, 650px);
  margin: auto;
  padding: clamp(34px, 4.4vw, 50px);
  border: 1px solid rgba(145, 26, 38, .52);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(40, 41, 82, .2), transparent 42%),
    linear-gradient(155deg, #15122e 0%, #0b0824 100%);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, .3),
    inset 0 1px 0 rgba(255, 255, 255, .025);
}

.pt-video-gate h1 {
  margin: 0;
  color: #fbf4e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
}

.pt-video-gate__intro {
  max-width: 31em;
  margin: 26px 0 0;
  color: #fbf4e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.7vw, 1.27rem);
  line-height: 1.7;
}

.pt-video-gate form {
  margin-top: 24px;
}

.pt-video-gate__input-wrap {
  position: relative;
}

.pt-video-gate input {
  display: block;
  width: 100%;
  min-height: 60px;
  padding: 0 58px 0 20px;
  border: 1px solid rgba(246, 239, 226, .2);
  border-radius: 17px;
  outline: 0;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  caret-color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.pt-video-gate input::placeholder {
  color: rgba(246, 239, 226, .48);
  opacity: 1;
}

.pt-video-gate input:focus {
  border-color: rgba(183, 56, 64, .85);
  background: rgba(255, 255, 255, .075);
  box-shadow: 0 0 0 3px rgba(183, 56, 64, .13);
}

.pt-video-gate__toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(246, 239, 226, .58);
  cursor: pointer;
  transform: translateY(-50%);
}

.pt-video-gate__toggle:hover,
.pt-video-gate__toggle:focus-visible {
  color: #fff;
  outline: none;
}

/* Deux états distincts :
   - mot de passe masqué : œil barré
   - mot de passe visible : œil ouvert */
.pt-video-gate__eye {
  position: relative;
  display: block;
  width: 21px;
  height: 14px;
  border: 1.7px solid currentColor;
  border-radius: 70% 0 70% 0;
  transform: rotate(45deg);
}

/* Pupille */
.pt-video-gate__eye::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
}

/* Barre = état masqué */
.pt-video-gate__eye::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 27px;
  height: 1.7px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center;
}

/* État visible : œil ouvert, sans barre */
.pt-video-gate__toggle[aria-pressed="true"] .pt-video-gate__eye::after {
  opacity: 0;
}

/* Léger renforcement quand le mot de passe est affiché */
.pt-video-gate__toggle[aria-pressed="true"] {
  color: rgba(246, 239, 226, .9);
}

.pt-video-gate__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  margin-top: 22px;
  padding: 0 24px;
  border: 0;
  border-radius: 17px;
  background: #9b0009;
  color: #fff;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(116, 0, 8, .2);
  transition:
    transform .18s ease,
    background .18s ease;
}

.pt-video-gate__submit:hover,
.pt-video-gate__submit:focus-visible {
  background: #b0000a;
  transform: translateY(-1px);
  outline: none;
}

.pt-video-gate__error {
  margin: 14px 0 0;
  color: #ff969c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.45;
}

.pt-video-gate__contact {
  margin: 28px 0 0;
  color: #fbf4e8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  line-height: 1.55;
}

.pt-video-gate__contact a {
  color: #fff;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.pt-video-gate__contact a:hover,
.pt-video-gate__contact a:focus-visible {
  color: #fff;
  text-decoration-thickness: 2px;
}

/* Mobile */
@media (max-width: 620px) {
  .pt-video-gate {
    place-items: center;
    padding: 18px 14px;
  }

  .pt-video-gate__card {
    padding: 30px 22px 34px;
    border-radius: 24px;
  }

  .pt-video-gate h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .pt-video-gate__intro {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .pt-video-gate input {
    min-height: 58px;
  }

  .pt-video-gate__submit {
    width: auto;
    min-height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pt-video-gate input,
  .pt-video-gate__submit {
    transition: none;
  }
}
