/* =====================================
   POPUP PREMIUM – MOBILE ONLY
===================================== */

@media (max-width: 768px) {

  /* Correction Elementor / transform */
  html, body {
    transform: none !important;
  }

  /* CONTENEURS POPUP */
  .popup-maxi,
  .popup-mini {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;

    /* ✅ CORRECTION iOS : PAS DE 100vw */
    width: auto !important;
    max-width: none !important;

    margin: 0 !important;
    padding-bottom: env(safe-area-inset-bottom);

    transform: translate3d(0, 100%, 0);
    transition: transform 0.55s cubic-bezier(0.25, 0.8, 0.25, 1);

    z-index: 2147483647;
    background: transparent;
    pointer-events: auto;
  }

  /* ÉTAT ACTIF */
  .popup-maxi.active,
  .popup-mini.active {
    transform: translate3d(0, 0, 0);
  }

  /* LIEN & IMAGE */
  .popup-link {
    display: block;
    width: 100%;
  }

  .popup-link img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  /* CROIX FERMETURE (MAXI) */
  .popup-close {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 25px;
    height: 25px;

    background: rgba(0, 0, 0, 0.85);
    color: #fff;

    font-size: 18px;
    line-height: 25px;
    text-align: center;

    border-radius: 50%;
    cursor: pointer;

    z-index: 2;
  }
}

/* DESKTOP : DÉSACTIVÉ */
@media (min-width: 769px) {
  .popup-maxi,
  .popup-mini {
    display: none !important;
  }
}