.jab-rentree-popup {
  --jab-popup-red: #e8152a;
  --jab-popup-red-dark: #bd1021;
  position: fixed;
  z-index: 920;
  right: clamp(24px, 2.2vw, 32px);
  bottom: clamp(24px, 2.2vw, 32px);
  width: min(500px, calc(100vw - 48px));
  color: #fff;
  background: #111318;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
  overflow: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(.985);
  transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
}

.jab-rentree-popup[hidden] { display: none !important; }

.jab-rentree-popup.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.jab-rentree-media {
  position: relative;
  aspect-ratio: 16 / 6;
  background: #24272d;
  overflow: hidden;
}

.jab-rentree-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(17, 19, 24, .82));
  pointer-events: none;
}

.jab-rentree-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}

.jab-rentree-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: #fff;
  background: rgba(8, 9, 12, .82);
  font: 400 27px/1 Arial, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, transform .2s ease;
}

.jab-rentree-close:hover { background: var(--jab-popup-red); transform: scale(1.04); }

.jab-rentree-close:focus-visible,
.jab-rentree-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.jab-rentree-content { padding: 22px 26px 26px; }

.jab-rentree-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #ff596a;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.jab-rentree-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jab-popup-red);
  box-shadow: 0 0 0 5px rgba(232, 21, 42, .16);
}

.jab-rentree-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.38rem, 2.2vw, 1.72rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 900;
}

.jab-rentree-subtitle {
  margin: 10px 0 0;
  color: #fff;
  font-size: .9rem;
  line-height: 1.35;
  font-weight: 800;
}

.jab-rentree-description {
  margin: 9px 0 0;
  color: #cfd2d9;
  font-size: .88rem;
  line-height: 1.5;
}

.jab-rentree-proof {
  margin: 13px 0 15px;
  color: #fff;
  font-size: .82rem;
  line-height: 1.35;
  font-weight: 800;
}

.jab-rentree-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  padding: 13px 20px;
  border: 2px solid var(--jab-popup-red);
  border-radius: 10px;
  color: #fff;
  background: var(--jab-popup-red);
  box-shadow: 0 14px 30px rgba(232, 21, 42, .25);
  font-size: .94rem;
  font-weight: 900;
  letter-spacing: .025em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.jab-rentree-cta:hover {
  color: #fff;
  background: var(--jab-popup-red-dark);
  border-color: var(--jab-popup-red-dark);
  transform: translateY(-1px);
}

@media (min-width: 769px) and (max-width: 1023px) {
  .jab-rentree-popup {
    right: 5vw;
    bottom: 24px;
    width: min(600px, 90vw);
  }
  .jab-rentree-media { aspect-ratio: 16 / 5; }
}

@media (max-width: 768px) {
  body.jab-rentree-open .mcta-bar { grid-template-columns: 1fr 1fr; }
  body.jab-rentree-open .mcta-eval { display: none; }

  .jab-rentree-popup {
    z-index: 940;
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-height: min(62svh, 480px);
    border-radius: 20px;
    overflow: hidden;
    transform: translateY(24px);
  }

  .jab-rentree-popup.is-visible { transform: translateY(0); }

  .jab-rentree-media {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 86px;
    height: 86px;
    aspect-ratio: 1;
    border-radius: 12px;
  }

  .jab-rentree-media::after { display: none; }
  .jab-rentree-media img { object-position: center; }

  .jab-rentree-close { top: 14px; right: 14px; }

  .jab-rentree-content {
    display: flex;
    flex-direction: column;
    max-height: min(62svh, 480px);
    padding: 0;
  }

  .jab-rentree-copy {
    min-height: 0;
    padding: 14px 14px 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .34) transparent;
  }

  .jab-rentree-badge,
  .jab-rentree-title { margin-left: 98px; margin-right: 46px; }

  .jab-rentree-badge { min-height: 16px; margin-bottom: 5px; }
  .jab-rentree-title { min-height: 60px; font-size: clamp(1.05rem, 4.8vw, 1.3rem); line-height: 1.08; }
  .jab-rentree-subtitle { margin-top: 10px; font-size: .81rem; }
  .jab-rentree-description { margin-top: 5px; font-size: .78rem; line-height: 1.38; }
  .jab-rentree-proof { margin: 7px 0 8px; font-size: .75rem; }

  .jab-rentree-cta {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: auto;
    min-height: 52px;
    margin: 0 14px 12px;
    padding: 11px 14px;
    font-size: .84rem;
    box-shadow: 0 -10px 28px #111318, 0 10px 24px rgba(232, 21, 42, .24);
  }
}

@media (max-width: 380px) {
  .jab-rentree-popup {
    right: 10px;
    left: 10px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    max-height: min(64svh, 460px);
  }

  .jab-rentree-content { max-height: min(64svh, 460px); }
  .jab-rentree-media { width: 82px; height: 82px; }
  .jab-rentree-badge,
  .jab-rentree-title { margin-left: 92px; }
  .jab-rentree-title { min-height: 56px; font-size: 1rem; }
  .jab-rentree-description { font-size: .74rem; }
  .jab-rentree-proof { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .jab-rentree-popup,
  .jab-rentree-close,
  .jab-rentree-cta { transition: none !important; }
}

/* Mobile polish: pricing section only */
@media (max-width: 768px) {
  #tarifs .section-header {
    margin-bottom: 28px;
  }

  #tarifs .intro {
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
    font-size: .98rem;
    line-height: 1.55;
  }

  #tarifs .price-accroche {
    display: block;
    width: fit-content;
    max-width: min(340px, calc(100% - 24px));
    margin: 16px auto 0;
    padding: 12px 20px 14px;
    border-radius: 999px;
    font-size: .84rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    box-shadow: 0 6px 16px rgba(232, 21, 42, .16);
  }

  #tarifs .price-accroche span {
    display: inline;
    font-size: 1rem;
    line-height: inherit;
  }

  #tarifs .pricing-grid {
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    gap: 16px;
  }

  #tarifs .price-card {
    width: 100%;
    padding: 22px 20px;
    border-radius: 18px;
  }

  #tarifs .price-cat {
    margin-bottom: 16px;
    font-size: 1rem;
  }

  #tarifs .price-rows {
    gap: 12px;
  }

  #tarifs .price-row {
    gap: 12px;
    padding-bottom: 12px;
  }

  #tarifs .price-row span {
    min-width: 0;
    font-size: .92rem;
    line-height: 1.35;
  }

  #tarifs .price-row small {
    font-size: .76rem;
    line-height: 1.3;
  }

  #tarifs .price-row b {
    font-size: 1.3rem;
  }

  #tarifs .price-hint {
    margin-top: 16px;
    font-size: .8rem;
    line-height: 1.5;
  }

  #tarifs .price-foot {
    margin-top: 18px;
    padding: 0 6px;
    font-size: .8rem;
    line-height: 1.45;
  }
}

@media (max-width: 380px) {
  #tarifs .price-card {
    padding: 20px 16px;
  }

  #tarifs .price-row b {
    font-size: 1.2rem;
  }

  #tarifs .price-accroche {
    max-width: calc(100% - 16px);
    padding: 11px 16px 13px;
    font-size: .8rem;
  }
}