/* [MASTERPROMPT P0] Sticky CTA blog — styles de la barre de conversion.
 * Injectée par assets/article-sticky-cta.js. Discrète, bas d'écran, sans CLS
 * (position:fixed, apparait en translation), contrastes AA, 44px min touch.
 */
.mg-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  transform: translateY(110%);
  transition: transform .28s ease, opacity .28s ease;
  opacity: 0;
  pointer-events: none;
  /* Zone de sécurité iOS */
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mg-sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mg-sticky-cta__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto 10px;
  padding: 10px 12px 10px 18px;
  border-radius: 16px;
  background: rgba(23, 19, 47, .96);
  box-shadow: 0 14px 44px -12px rgba(23, 19, 47, .55);
  color: #fff;
}

.mg-sticky-cta__txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}

.mg-sticky-cta__txt strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mg-sticky-cta__txt span {
  font-size: 11.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, .72);
}

.mg-sticky-cta__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6254f4, #8b3dff);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}

.mg-sticky-cta__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(139, 61, 255, .8);
}

.mg-sticky-cta__close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .8);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.mg-sticky-cta__close:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

@media (max-width: 640px) {
  .mg-sticky-cta__inner {
    margin: 0 8px 8px;
    gap: 8px;
    padding: 8px 8px 8px 14px;
  }
  .mg-sticky-cta__txt strong {
    font-size: 12.5px;
    max-width: 38vw;
  }
  .mg-sticky-cta__txt span {
    font-size: 10.5px;
  }
  .mg-sticky-cta__btn {
    padding: 9px 12px;
    font-size: 12.5px;
  }
  .mg-sticky-cta__close {
    width: 30px;
    height: 30px;
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mg-sticky-cta {
    transition: none;
  }
}