/* Bandeau d'abonnement newsletter + fenêtre du formulaire Pipedrive. Feuille autonome : classes préfixées pmu-nlb, police héritée de la page. */

/* ---- Bandeau fermé : colonne par défaut, rangée quand le conteneur fait au moins 860 px ---- */
.pmu-nlb {
  container-type: inline-size;
  container-name: pmu-nlb;
  box-sizing: border-box;
  width: 100%;
  margin: 32px auto;
}
.pmu-nlb--no-bottom { margin-bottom: 0; }

.pmu-nlb .pmu-nlb__card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid #E7E8F1;
  border-radius: 36px;
  box-shadow: 0 0 6px rgba(78, 42, 222, .02), 0 6px 18px rgba(78, 42, 222, .02);
  text-align: center;
}

/* Visuel : trois SVG, mis à l'échelle par --s (taille de l'enveloppe) */
.pmu-nlb .pmu-nlb__visual,
.pmu-nlb-dlg .pmu-nlb__visual {
  --s: 128px;
  --bell-w: 60%;
  --bell-r: 81;
  position: relative;
  flex: none;
  width: var(--s);
  height: var(--s);
}
.pmu-nlb .pmu-nlb__visual { margin: 0 0 16px; }
.pmu-nlb .pmu-nlb__visual img,
.pmu-nlb-dlg .pmu-nlb__visual img { display: block; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; }
.pmu-nlb .pmu-nlb__img1,
.pmu-nlb-dlg .pmu-nlb__img1 { width: 100%; height: 100%; }
.pmu-nlb .pmu-nlb__img2,
.pmu-nlb-dlg .pmu-nlb__img2 { position: absolute; top: 0; left: calc(var(--s) * -28 / 220); width: 45%; height: auto; }
.pmu-nlb .pmu-nlb__img3,
.pmu-nlb-dlg .pmu-nlb__img3 { position: absolute; top: 50%; right: calc(var(--s) * var(--bell-r) / -220); width: var(--bell-w); height: auto; transform: translateY(-50%); }

/* Titre : sélecteur renforcé (3 classes) pour passer devant `.rich-text h2` (largeur maximale) et `.blog-post h2 { font-size: 1.6rem !important }` (taille) de Webflow dans les articles */
.pmu-nlb .pmu-nlb__text { width: 100%; min-width: 0; }
.pmu-nlb .pmu-nlb__text .pmu-nlb__title {
  max-width: none;
  margin: 0;
  color: #262B71;
  font-size: 18px !important;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: 0;
}
.pmu-nlb .pmu-nlb__sub {
  max-width: 560px;
  margin: 8px auto 0;
  color: #62668A;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 0;
}

.pmu-nlb .pmu-nlb__btn {
  box-sizing: border-box;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin: 16px 0 0;
  padding: 0 32px;
  background: #EB1763;
  border: 0;
  border-radius: 28px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.pmu-nlb .pmu-nlb__btn:focus-visible,
.pmu-nlb-dlg .pmu-nlb-dlg__close:focus-visible,
.pmu-nlb-dlg .pmu-nlb-dlg__fallback a:focus-visible {
  outline: 3px solid #262B71;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #FFFFFF;
}

/* Sans JavaScript, le bouton n'ouvre rien : seul le lien du <noscript> reste */
@media (scripting: none) {
  .pmu-nlb button.pmu-nlb__btn { display: none; }
}

/* Colonne étroite (mobile) : enveloppe 88 px, avion 45 %, cloche 45 % */
@container pmu-nlb (max-width: 479px) {
  .pmu-nlb .pmu-nlb__visual { --s: 88px; --bell-w: 45%; --bell-r: 27; }
}

/* Rangée : bandeau d'au moins 860 px de large */
@container pmu-nlb (min-width: 860px) {
  .pmu-nlb .pmu-nlb__card { flex-direction: row; padding: 28px 40px; text-align: left; }
  .pmu-nlb .pmu-nlb__visual { margin: 0 56px 0 16px; }
  .pmu-nlb .pmu-nlb__text { flex: 1 1 0; width: auto; }
  .pmu-nlb .pmu-nlb__text .pmu-nlb__title { font-size: 24px !important; line-height: 33px; }
  .pmu-nlb .pmu-nlb__sub { margin: 12px 0 0; font-size: 16px; line-height: 27px; }
  .pmu-nlb .pmu-nlb__btn { width: auto; height: 52px; margin: 0 0 0 32px; }
}

/* Repli si les container queries ne sont pas gérées : mêmes règles sur la largeur de la fenêtre */
@supports not (container-type: inline-size) {
  @media (max-width: 479px) {
    .pmu-nlb .pmu-nlb__visual { --s: 88px; --bell-w: 45%; --bell-r: 27; }
  }
  @media (min-width: 768px) {
    .pmu-nlb .pmu-nlb__card { flex-direction: row; padding: 28px 40px; text-align: left; }
    .pmu-nlb .pmu-nlb__visual { margin: 0 56px 0 16px; }
    .pmu-nlb .pmu-nlb__text { flex: 1 1 0; width: auto; }
    .pmu-nlb .pmu-nlb__text .pmu-nlb__title { font-size: 24px !important; line-height: 33px; }
    .pmu-nlb .pmu-nlb__sub { margin: 12px 0 0; font-size: 16px; line-height: 27px; }
    .pmu-nlb .pmu-nlb__btn { width: auto; height: 52px; margin: 0 0 0 32px; }
  }
}

/* ---- Fenêtre (créée au premier clic, ajoutée au <body>) ---- */
body.pmu-nlb-lock { overflow: hidden; padding-right: var(--pmu-nlb-sbw, 0px); }

.pmu-nlb-dlg {
  box-sizing: border-box;
  width: 480px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 72px);
  max-height: calc(100dvh - 72px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: #FFFFFF;
  color: #62668A;
  box-shadow: 0 24px 64px rgba(38, 43, 113, .25);
  overflow: hidden;
  overscroll-behavior: contain;
}
.pmu-nlb-dlg[open] { display: flex; flex-direction: column; }
.pmu-nlb-dlg::backdrop { background: rgba(38, 43, 113, .55); }

.pmu-nlb-dlg .pmu-nlb-dlg__head {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
  padding: 20px 68px 4px 28px;
}
.pmu-nlb-dlg .pmu-nlb__visual { --s: 88px; margin: 0 24px 0 6px; }
.pmu-nlb-dlg .pmu-nlb-dlg__title {
  margin: 0;
  color: #262B71;
  font-size: 22px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: 0;
}
.pmu-nlb-dlg .pmu-nlb-dlg__sub {
  margin: 6px 0 0;
  color: #62668A;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0;
}
.pmu-nlb-dlg .pmu-nlb-dlg__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  background: #F3F4F9;
  border: 0;
  border-radius: 50%;
  color: #262B71;
  cursor: pointer;
}
.pmu-nlb-dlg .pmu-nlb-dlg__close svg { display: block; width: 18px; height: 18px; }

.pmu-nlb-dlg .pmu-nlb-dlg__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 28px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pmu-nlb-dlg .pmu-nlb-dlg__sentinel {
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
  outline: none;
}
.pmu-nlb-dlg .pipedriveWebForms { min-height: 120px; }
.pmu-nlb-dlg .pmu-nlb-dlg__fallback {
  padding: 16px 0;
  color: #262B71;
  font-size: 16px;
  line-height: 24px;
}
.pmu-nlb-dlg .pmu-nlb-dlg__fallback[hidden] { display: none; }
.pmu-nlb-dlg .pmu-nlb-dlg__fallback p { margin: 0 0 12px; }
.pmu-nlb-dlg .pmu-nlb-dlg__fallback a { color: #C2104F; font-weight: 700; text-decoration: underline; }

/* Mobile : feuille du bas */
@media (max-width: 767px) {
  .pmu-nlb-dlg {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 28px 28px 0 0;
  }
  .pmu-nlb-dlg .pmu-nlb-dlg__head { padding: 20px 64px 4px 20px; }
  .pmu-nlb-dlg .pmu-nlb__visual { --s: 64px; margin: 0 20px 0 4px; }
  .pmu-nlb-dlg .pmu-nlb-dlg__title { font-size: 20px; line-height: 28px; }
  .pmu-nlb-dlg .pmu-nlb-dlg__sub { display: none; }
  .pmu-nlb-dlg .pmu-nlb-dlg__body { padding: 8px 20px 20px; }
}
@media (max-width: 479px) {
  .pmu-nlb-dlg .pmu-nlb__visual { --bell-w: 45%; --bell-r: 27; }
}
