/* ============================================================
   Popin Leads — formulaire d'inscription intégré (shortcode).
   Scopé .pl-embed, piloté par variables CSS (mêmes tokens que la popin).
   Défensif (!important) car les thèmes forcent souvent fond blanc /
   coins carrés / texte sombre sur les inputs et titres.
   ============================================================ */
.pl-embed{box-sizing:border-box;width:100%;max-width:540px;margin:18px 0;text-align:center;
  font-family:var(--wp--preset--font-family--sans, Montserrat, system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif);
  --pl-accent:#5ce0d8;--pl-accent2:#84ebad;--pl-bg:#0c1224;--pl-text:#f3f5f8;--pl-ink:#071018;--pl-radius:24px;
  background:var(--pl-bg);color:var(--pl-text);border-radius:var(--pl-radius);
  border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 48px -14px rgba(0,0,0,.45);
  padding:30px 28px;}
.pl-embed *{box-sizing:border-box;}

.pl-embed .pl-eyebrow{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;letter-spacing:.04em;
  color:var(--pl-accent);padding:6px 13px;border-radius:999px;margin:0 0 16px;
  background:rgba(255,255,255,.08); /* repli si color-mix non supporté */
  background:linear-gradient(135deg,color-mix(in srgb,var(--pl-accent) 8%,transparent),color-mix(in srgb,var(--pl-accent2) 8%,transparent));}
.pl-embed .pl-eyebrow .dot{width:7px;height:7px;border-radius:50%;background:var(--pl-accent);}

.pl-embed .pl-title{line-height:1.28;font-weight:800;margin:0 0 12px;font-size:23px;
  color:var(--pl-text)!important;-webkit-text-fill-color:var(--pl-text)!important;background:none!important;text-shadow:none!important;}
/* Neutralise les décorations de titres héritées du thème (barre/gradient à gauche via border, background ou ::before/::after). */
.pl-embed h2,.pl-embed .pl-title,.pl-embed .pl-done-title{
  border:0!important;box-shadow:none!important;padding:0!important;
  margin-left:0!important;margin-right:0!important;
  background:none!important;background-image:none!important;}
.pl-embed h2::before,.pl-embed h2::after,
.pl-embed .pl-title::before,.pl-embed .pl-title::after,
.pl-embed .pl-done-title::before,.pl-embed .pl-done-title::after{
  content:none!important;display:none!important;background:none!important;background-image:none!important;border:0!important;width:0!important;}
.pl-embed .pl-text{font-size:15px;line-height:1.55;color:var(--pl-text);opacity:.82;margin:0 0 18px;}

.pl-embed .pl-field{text-align:left;margin:0 0 13px;}
.pl-embed .pl-field label{display:block;font-size:12.5px;font-weight:600;margin:0 0 5px;opacity:.85;color:var(--pl-text);}
.pl-embed .pl-field input{width:100%!important;box-sizing:border-box!important;font-size:15px!important;height:auto!important;line-height:1.4!important;margin:0!important;
  color:var(--pl-text)!important;-webkit-text-fill-color:var(--pl-text)!important;-webkit-appearance:none!important;appearance:none!important;
  background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:12px!important;padding:12px 14px!important;
  outline:none!important;font-family:inherit!important;box-shadow:none!important;transition:border-color .15s ease,box-shadow .15s ease;}
.pl-embed .pl-field input::placeholder{color:var(--pl-text)!important;opacity:.4!important;}
.pl-embed .pl-field input:focus{border-color:var(--pl-accent)!important;box-shadow:0 0 0 3px rgba(255,255,255,.08)!important;background:rgba(255,255,255,.04)!important;}
/* Autofill Chrome : conserve le fond sombre au lieu du blanc imposé par le navigateur. */
.pl-embed .pl-field input:-webkit-autofill,
.pl-embed .pl-field input:-webkit-autofill:hover,
.pl-embed .pl-field input:-webkit-autofill:focus{
  -webkit-text-fill-color:var(--pl-text)!important;caret-color:var(--pl-text)!important;
  box-shadow:0 0 0 1000px var(--pl-bg) inset!important;transition:background-color 9999s ease-in-out 0s;}

.pl-embed .pl-field textarea{width:100%!important;box-sizing:border-box!important;font-size:15px!important;line-height:1.4!important;margin:0!important;min-height:80px;resize:vertical;
  color:var(--pl-text)!important;-webkit-text-fill-color:var(--pl-text)!important;-webkit-appearance:none!important;appearance:none!important;
  background:rgba(255,255,255,.04)!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:12px!important;padding:12px 14px!important;
  outline:none!important;font-family:inherit!important;box-shadow:none!important;}
.pl-embed .pl-field textarea::placeholder{color:var(--pl-text)!important;opacity:.4!important;}
.pl-embed .pl-field textarea:focus{border-color:var(--pl-accent)!important;box-shadow:0 0 0 3px rgba(255,255,255,.08)!important;}
.pl-embed .pl-req{color:var(--pl-accent);font-weight:700;}
.pl-embed .pl-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden;opacity:0;}

.pl-embed .pl-consent{display:flex;align-items:flex-start;gap:9px;text-align:left;margin:4px 0 16px;font-size:12.5px;line-height:1.5;opacity:.85;color:var(--pl-text);}
.pl-embed .pl-consent input{margin-top:2px;width:16px;height:16px;accent-color:var(--pl-accent);flex:none;}
.pl-embed .pl-consent a{color:var(--pl-accent);text-decoration:underline;}

.pl-embed .pl-error{display:none;text-align:left;font-size:13px;color:#ffb4b4;background:rgba(214,54,56,.12);border:1px solid rgba(214,54,56,.4);border-radius:10px;padding:9px 12px;margin:0 0 14px;}
.pl-embed .pl-error.is-shown{display:block;}
.pl-embed .pl-turnstile{display:flex;justify-content:center;margin:0 0 14px;}

.pl-embed .pl-cta{display:block;width:100%;box-sizing:border-box;text-decoration:none;font-size:16.5px;font-weight:700;
  color:var(--pl-ink)!important;-webkit-text-fill-color:var(--pl-ink)!important;padding:15px 22px;border-radius:999px;border:0;cursor:pointer;
  background:linear-gradient(135deg,var(--pl-accent),var(--pl-accent2));box-shadow:0 8px 28px -8px rgba(92,224,216,.45);
  transition:transform .2s cubic-bezier(.4,0,.2,1),filter .2s ease;}
.pl-embed .pl-cta:hover{transform:translateY(-2px);filter:brightness(1.06);}
.pl-embed .pl-cta:active{transform:translateY(0);}
.pl-embed .pl-cta[disabled]{opacity:.6;cursor:not-allowed;transform:none;filter:none;}
.pl-embed .pl-reassure{font-size:12px;color:var(--pl-text);opacity:.6;margin:14px 0 0;text-align:center;}

.pl-embed .pl-embed-done{text-align:center;padding:8px 0;}
.pl-embed .pl-done-icon{width:58px;height:58px;margin:4px auto 14px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.2);color:var(--pl-accent);font-size:28px;font-weight:800;line-height:1;}
.pl-embed .pl-done-title{font-size:21px;font-weight:800;margin:0 0 10px;
  color:var(--pl-text)!important;-webkit-text-fill-color:var(--pl-text)!important;background:none!important;text-shadow:none!important;}
.pl-embed .pl-done-text{font-size:14.5px;line-height:1.55;opacity:.82;margin:0;color:var(--pl-text);}

.pl-embed [hidden]{display:none!important;}
@media (max-width:480px){.pl-embed{padding:24px 18px;}.pl-embed .pl-title{font-size:21px;}}
@media (prefers-reduced-motion:reduce){.pl-embed .pl-cta{transition:none;}}
