/* Mova Design — pop-up « Audit gratuit » (V3)
   Ordinateur : fenêtre centrée. Mobile (≤ 640 px) : feuille qui monte du bas, glisser vers le bas pour fermer. */
.ap { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px; }
.ap[hidden] { display: none; }
.ap__bg { position: absolute; inset: 0; background: rgba(11,11,15,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.ap.is-open .ap__bg { opacity: 1; }
.ap__card {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain;
  box-sizing: border-box; background: #fff; color: #0b0b0f; border-radius: 28px; padding: 30px 30px 26px;
  box-shadow: 0 30px 80px -20px rgba(11,11,15,.45);
  opacity: 0; transform: translateY(24px) scale(.98); transition: transform .5s var(--ease-out), opacity .35s;
  font-family: var(--f-sans);
}
.ap.is-open .ap__card { opacity: 1; transform: none; }
.ap__grab { display: none; }
.ap__x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #f5f5f4; color: #0b0b0f; border: 0; cursor: pointer; transition: background .2s; }
.ap__x:hover { background: #ececed; }
.ap__x svg { width: 18px; height: 18px; }

/* Margot */
.ap__me { display: flex; align-items: center; gap: 12px; padding-right: 48px; margin-bottom: 18px; }
.ap__me img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--nova); }
.ap__me p { display: grid; gap: 2px; margin: 0; line-height: 1.25; }
.ap__me b { font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.ap__me span { color: #55555f; font-size: 13.5px; }

.ap__t { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.045em; line-height: 1.05; }
.ap__t em { font-style: normal; color: var(--nova); }
.ap__s { margin: 10px 0 0; color: #55555f; font-size: 16px; line-height: 1.45; }
.ap__s strong { color: #0b0b0f; font-weight: 600; }

/* Formulaire */
.ap__form { display: grid; gap: 14px; margin-top: 22px; }
.ap__f { display: grid; gap: 7px; }
.ap__l { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; }
.ap__l i { font-style: normal; font-family: var(--f-mono); font-size: 11px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--lilac); color: var(--nova); flex: none; }
.ap__f input {
  width: 100%; box-sizing: border-box; height: 54px; padding: 0 16px; border-radius: 14px;
  border: 1px solid rgba(11,11,15,.14); background: #f9f9f8; color: #0b0b0f;
  font: 16px/1 var(--f-sans); /* 16 px : pas de zoom automatique sur iPhone */
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.ap__f input::placeholder { color: #9a9aa3; }
.ap__f input:focus { outline: none; border-color: var(--nova); background: #fff; box-shadow: 0 0 0 4px rgba(75,60,240,.14); }
.ap__f.is-bad input { border-color: #c0262f; box-shadow: 0 0 0 4px rgba(192,38,47,.1); }
.ap__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ap__err { margin: 0; color: #c0262f; font-size: 14px; line-height: 1.4; }
.ap__err:empty { display: none; }
.ap__form .btn { margin-top: 4px; justify-content: center; }
.ap__form .btn[disabled] { opacity: .7; pointer-events: none; }
.ap__note { margin: 0; text-align: center; color: #55555f; font-size: 13px; }

/* Confirmation */
.ap__done { display: none; text-align: center; justify-items: center; gap: 0; padding-top: 6px; }
.ap.is-sent .ap__step { display: none; }
.ap.is-sent .ap__done { display: grid; }
.ap__done:focus { outline: none; }
.ap__ok { width: 64px; height: 64px; margin-bottom: 16px; }
.ap__ok circle { fill: var(--lilac); }
.ap__ok path { fill: none; stroke: var(--nova); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.ap.is-sent .ap__ok path { animation: apCk .7s .2s var(--ease-out) forwards; }
@keyframes apCk { to { stroke-dashoffset: 0; } }
.ap__pill { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 6px 11px; border-radius: 999px; background: var(--lilac); color: var(--nova); font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.ap__pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ap__done .ap__s { max-width: 34ch; }
.ap__next { width: 100%; box-sizing: border-box; margin-top: 22px; padding: 18px; border-radius: 20px; background: #f5f5f4; text-align: left; display: grid; gap: 14px; }
.ap__next p { margin: 0; font-size: 15px; line-height: 1.45; color: #55555f; }
.ap__next p b { display: block; color: #0b0b0f; font-weight: 600; font-size: 16.5px; letter-spacing: -.015em; margin-bottom: 2px; }
.ap__next .btn { justify-content: center; }
.ap__later { margin-top: 12px; background: none; border: 0; padding: 8px 12px; color: #55555f; font: 14px var(--f-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ap__later:hover { color: #0b0b0f; }

html.ap-lock, html.ap-lock body { overflow: hidden; }

/* Mobile : feuille du bas */
@media (max-width: 640px) {
  .ap { place-items: end stretch; padding: 0; }
  .ap__card {
    max-width: none; max-height: 92dvh; border-radius: 26px 26px 0 0;
    padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
    opacity: 1; transform: translateY(100%); transition: transform .5s var(--ease-out);
    box-shadow: 0 -10px 40px -10px rgba(11,11,15,.3);
  }
  .ap.is-open .ap__card { transform: translateY(var(--drag, 0px)); }
  .ap.is-dragging .ap__card { transition: none; }
  .ap__grab { display: block; width: 40px; height: 5px; border-radius: 99px; background: #d9d9de; margin: 0 auto 14px; touch-action: none; }
  .ap__x { top: 10px; right: 12px; width: 36px; height: 36px; }
  .ap__me { margin-bottom: 14px; }
  .ap__me img { width: 42px; height: 42px; }
  .ap__t { font-size: 26px; }
  .ap__s { font-size: 15.5px; }
  .ap__form { margin-top: 18px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ap__card, .ap__bg { transition: none; }
  .ap.is-sent .ap__ok path { animation: none; stroke-dashoffset: 0; }
}
