/* =========================================================
   POPUP "SEND A BRIEF" — popup.css
   Chargé sur toutes les pages via functions.php
   ========================================================= */

/* ── Overlay + boîte ── */
.na-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Caché par défaut */
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.na-popup.is-open {
  opacity: 1;
  pointer-events: all;
}

/* Fond sombre */
.na-popup__bg {
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,.72);
  cursor: pointer;
}

/* Boîte blanche */
.na-popup__box {
  position: relative;
  z-index: 1;
  background: #fff;
  width: 640px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 80px);
  overflow: hidden;          /* scroll géré par __inner */
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transform: translateY(12px);
  transition: transform .22s ease;
}
.na-popup.is-open .na-popup__box {
  transform: translateY(0);
}

/* Strip sticky avec le bouton fermer — reste visible en scrollant */
.na-popup__top {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 16px 0;
  background: #fff;
}

/* Zone scrollable */
.na-popup__inner {
  overflow-y: auto;
  flex: 1;
  padding: 8px 48px 48px;
}

/* Bouton ✕ */
.na-popup__x {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #737373;
  padding: 0;
  border-radius: 2px;
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.na-popup__x:hover { background: rgba(13,13,13,.06); color: #404040; }
.na-popup__x:focus,
.na-popup__x:focus-visible,
.na-popup__x:active  { outline: none; background: rgba(13,13,13,.08); color: #0d0d0d; }

/* Titre */
.na-popup__h {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  color: #0d0d0d;
  margin: 0 0 8px;
}

/* Intro */
.na-popup__i {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: #737373;
  margin: 0;
}

/* Séparateur */
.na-popup__hr {
  border: none;
  border-top: 1px solid rgba(13,13,13,.1);
  margin: 24px 0;
}

/* Champs */
.na-fld {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.na-fld:last-child { margin-bottom: 0; }

.na-fld label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: .08em;
  color: #737373;
}

.na-fld input,
.na-fld select,
.na-fld textarea {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: #0d0d0d;
  border: 1px solid rgba(13,13,13,.2);
  border-radius: 3px;
  padding: 10px 14px;
  background: #fff;
  outline: none;
  transition: border-color .15s;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}
.na-fld input:focus,
.na-fld select:focus,
.na-fld textarea:focus {
  border-color: #0d0d0d;
}
.na-fld textarea { resize: vertical; min-height: 96px; }

/* Grille 2 colonnes */
.na-f2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* Bouton submit */
.na-popup__submit {
  width: 100%;
  height: 52px;
  font-size: 14px;
  margin-top: 24px;
  justify-content: center;
}

/* Notice RGPD */
.na-popup__notice {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 16px;
  color: #aaa;
  text-align: center;
  margin: 12px 0 0;
}

/* Message de succès */
.na-popup__success {
  text-align: center;
  padding: 32px 0;
}
.na-popup__success-t {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #0d0d0d;
  margin: 0 0 8px;
}
.na-popup__success-s {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #737373;
  margin: 0 0 24px;
}

/* Bloquer scroll body quand popup ouvert */
body.na-popup-open { overflow: hidden; }

@media (max-width: 680px) {
  .na-popup__box { padding: 32px 24px; }
  .na-f2 { grid-template-columns: 1fr; }
}
