/* ==========================================
   CONTACT OVERLAY — version simple & stable
   ========================================== */

/* Overlay plein écran */
.jk-contact-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 90px 32px 32px; /* décollé du header et du bord droit */
  background: rgba(0, 0, 0, 0.22);
  z-index: 2000;
}

.jk-contact-overlay.is-visible {
  display: flex;
}

/* bloquer le scroll derrière */
html.has-contact-open {
  overflow: hidden;
}

/* Mobile : on recentre la carte */
@media (max-width: 768px) {
  .jk-contact-overlay {
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
}

/* =======================
   Carte modale
   ======================= */

.jk-contact-modal {
  position: relative;
  max-width: 360px;
  width: 100%;
  transform: translateY(-8px) scale(0.96);
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
  z-index: 2;
}

/* petite anim : la carte pop en douceur */
.jk-contact-overlay.is-visible .jk-contact-modal {
  transform: translateY(0) scale(1.05);
  opacity: 1;
}

/* bouton fermer (croix) */
.jk-contact-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

/* ===================
   Carte postale airmail
   =================== */

.jk-contact-wrap {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 20px 16px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.03);
  z-index: 1;
}

/* bordure airmail épaisse */
.jk-contact-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 6px;
  background:
    repeating-linear-gradient(
      135deg,
      #e63946 0,
      #e63946 12px,
      #ffffff 12px,
      #ffffff 22px,
      #1d3557 22px,
      #1d3557 32px,
      #ffffff 32px,
      #ffffff 42px
    );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

/* =========================
   Contenu centré
   ========================= */

.jk-contact-inner--centered {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  max-width: 260px;
  margin: 0 auto;
}

.jk-contact-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #bbb;
  margin: 0;
}

#jk-contact-title {
  font-size: 19px;
  font-weight: 600;
  color: #111;
  margin: 4px 0 4px;
}

.jk-contact-lead {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  max-width: 28ch;
  margin: 0 0 6px;
}

/* Avatar */

.jk-contact-avatar {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid #f4f4f4;
  margin-bottom: 4px;
}

.jk-contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Boutons */

.jk-contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.jk-contact-actions .jk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1.6px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.jk-contact-actions .jk-btn--primary {
  background: #000;
  color: #fff;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  min-width: 210px;
}

.jk-contact-actions .jk-btn--ghost {
  background: transparent;
  color: #000;
  padding: 8px 20px;
  font-size: 13px;
  border-color: #aaa;
  min-width: 210px;
}

.jk-contact-helper {
  font-size: 11.5px;
  color: #999;
  margin-top: 6px;
  max-width: 32ch;
}