/* Lockpit preview-kit — badge + overlay (thème lock-pit.com) */

.lk-chantier-badge {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f5863f;
  color: #0d2032;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 32px rgba(240, 119, 46, 0.55);
  animation: lk-chantier-live 1.8s ease-in-out infinite;
}

.lk-chantier-badge:hover,
.lk-chantier-badge:focus-visible {
  color: #0d2032;
  filter: brightness(1.08);
  animation-play-state: paused;
}

@keyframes lk-chantier-live {
  0%, 100% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0.72;
    transform: translateY(-3px);
  }
}

body.lk-preview-gate-active {
  overflow: hidden;
}

body.lk-preview-gate-active > *:not(.lk-preview-gate):not(.lk-chantier-badge) {
  filter: blur(22px);
}

.lk-preview-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lk-preview-gate-in 0.35s ease;
}

.lk-preview-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(28px) saturate(1.05);
  -webkit-backdrop-filter: blur(28px) saturate(1.05);
  background: rgba(13, 32, 50, 0.72);
}

.lk-preview-gate.is-closing {
  animation: lk-preview-gate-out 0.28s ease forwards;
}

@keyframes lk-preview-gate-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lk-preview-gate-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

.lk-preview-gate__close {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid #21384b;
  border-radius: 50%;
  background: #102536;
  color: #f4f0ea;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lk-preview-gate__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  text-align: center;
  padding: clamp(28px, 5vw, 44px) clamp(20px, 4vw, 36px);
}

.lk-preview-gate__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #f5863f;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lk-preview-gate__lead {
  margin: 0 auto 28px;
  max-width: 34ch;
  color: #f4f0ea;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  font-weight: 500;
  line-height: 1.5;
}

.lk-preview-gate__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 clamp(28px, 6vw, 48px);
  border-radius: 999px;
  background: #f5863f;
  color: #0d2032 !important;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 12px 32px rgba(240, 119, 46, 0.55);
  animation: lk-chantier-live 1.8s ease-in-out infinite;
}

.lk-preview-gate__cta:hover,
.lk-preview-gate__cta:focus-visible {
  filter: brightness(1.08);
  color: #0d2032 !important;
}

@media (prefers-reduced-motion: reduce) {
  .lk-chantier-badge,
  .lk-preview-gate,
  .lk-preview-gate__cta {
    animation: none;
  }
}

@media (max-width: 720px) {
  .lk-preview-gate__cta {
    width: 100%;
  }
}
