/* Pop-up « nom complet + e-mail » ouverte par les boutons CTA. Style épuré inspiré des fenêtres Apple :
   fond flouté, carte très arrondie, champs simples, une seule action. Sur mobile : feuille qui monte du bas. */
.lead-popup {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.lead-popup[hidden] { display: none; }
.lead-popup.is-open { opacity: 1; visibility: visible; }

.lead-popup__box {
  position: relative; width: 100%; max-width: 420px;
  padding: 36px 32px 28px;
  background: #fff; border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Open Sans", Arial, sans-serif;
  color: #1d1d1f; text-align: center;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lead-popup.is-open .lead-popup__box { transform: none; }

.lead-popup__close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: #e8e8ed; color: #6e6e73; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.lead-popup__close:hover { background: #dcdce1; }
.lead-popup__close svg { width: 12px; height: 12px; }

.lead-popup__title {
  margin: 0 0 6px; font-family: inherit;
  font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: 0.009em; color: #1d1d1f;
}
.lead-popup__sub { margin: 0 0 22px; font-size: 15px; line-height: 1.4; color: #6e6e73; }

.lead-popup__field {
  display: block; width: 100%; height: 52px; margin: 0 0 10px;
  padding: 0 16px; border: 1px solid #d2d2d7; border-radius: 12px;
  font-family: inherit; font-size: 17px; line-height: 1.2; color: #1d1d1f; background: #fff;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lead-popup__field::placeholder { color: #86868b; }
.lead-popup__field:focus { outline: none; border-color: #0071e3; box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16); }
.lead-popup__field.is-invalid { border-color: #e30000; box-shadow: 0 0 0 4px rgba(227, 0, 0, 0.1); }

.lead-popup__case {
  display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; min-height: 52px; padding: 12px 14px;
  border: 1px solid #d2d2d7; border-radius: 12px; background: #fff;
  font-size: 15px; line-height: 1.35; color: #1d1d1f; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
  transition: border-color .15s, background .15s;
}
.lead-popup__case:has(input:checked) { border-color: #0071e3; background: #f0f6ff; }
.lead-popup__case input {
  flex: none; width: 22px; height: 22px; margin: 0;
  accent-color: #0071e3; cursor: pointer;
}
.lead-popup__case a { color: #0071e3; text-decoration: none; }
.lead-popup__case strong { color: #1d1d1f; font-weight: 600; }
.lead-popup__case a:hover { text-decoration: underline; }
.lead-popup__case.is-invalid { color: #e30000; border-color: #e30000; background: #fff5f5; }
.lead-popup__case.is-invalid input { outline: 2px solid #e30000; outline-offset: 1px; border-radius: 3px; }
.lead-popup__error { min-height: 18px; margin: 0 0 6px; font-size: 13px; line-height: 18px; color: #e30000; }
.lead-popup .btn { width: 100%; margin: 0; color: #fff; padding: 14px 16px; font-size: 17px; }
/* Bouton sur deux lignes + flèche (landings /us/lp7, attribut data-bouton-sous) : pop-up et boutons de la page */
.btn.btn-2l {
  display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 22px;
  border-radius: 18px; text-align: left; line-height: 1.2; color: #fff;
}
.btn-2l__texte { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.btn-2l__titre { font-size: 19px; font-weight: 700; }
.btn-2l__sous { font-size: 14px; font-weight: 400; opacity: .9; letter-spacing: 0; }
.btn-2l__fleche {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px; background: rgba(255, 255, 255, .18);
}
.btn-2l__fleche svg { width: 22px; height: 22px; }
.lead-popup__accord { margin: 12px 0 0; font-size: 12px; line-height: 1.45; color: #6e6e73; text-align: center; }
.lead-popup__accord a { color: #0071e3; text-decoration: none; }
.lead-popup__fine { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: #86868b; }
.lead-popup__fine svg { width: 11px; height: 11px; vertical-align: -1px; margin-right: 4px; }

html.lead-popup-open { overflow: hidden; }

/* Mobile : feuille qui monte du bas, comme sur iPhone */
@media (max-width: 767px) {
  .lead-popup { align-items: flex-end; padding: 0; }
  .lead-popup__box {
    max-width: none; border-radius: 20px 20px 0 0;
    padding: 30px 20px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .lead-popup__box::before { /* poignée */
    content: ""; position: absolute; top: 8px; left: 50%; margin-left: -18px;
    width: 36px; height: 5px; border-radius: 3px; background: #d2d2d7;
  }
  .lead-popup__title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .lead-popup, .lead-popup__box { transition: none; }
}

/* « Did you mean …@gmail.com? » : un clic corrige l'adresse */
.lead-popup__suggestion { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Téléphone : indicatif (pré-choisi selon le pays) + numéro */
.lead-popup__tel { display: flex; gap: 8px; }
.lead-popup__tel .lead-popup__field { margin-bottom: 10px; }
.lead-popup__indicatif { flex: 0 0 auto; width: 118px; padding: 0 28px 0 12px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2386868b' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 12px center; }
.lead-popup__tel input { flex: 1; min-width: 0; }

/* Boutons de la page sur deux lignes (LP7, LP8) : passent devant les règles de lp.css
   (.lp a.btn.btn--full : contenu centré, 76 px de marge de chaque côté), sinon la flèche recouvre le texte. */
.lp a.btn.btn--full.btn-2l {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  width: max-content; min-width: 340px; max-width: 100%; min-height: 66px;
  padding: 9px 9px 9px 30px; border-radius: 999px; white-space: nowrap; text-align: left;
}
.lp a.btn-2l .btn-2l__titre { font-size: 20px; }
.lp a.btn-2l .btn-2l__fleche { border-radius: 999px; }
@media (max-width: 767px) {
  .lp a.btn.btn--full.btn-2l { width: 100%; min-width: 0; padding-left: 22px; }
  .lp a.btn-2l .btn-2l__titre { font-size: 18px; }
}
