
/* =========================================================
   EASYCAR MANAGER - BLOC INSTALLATION PWA
   ========================================================= */

.ecm_pwa_promo {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 30px 0;
    padding: 24px 30px;
    background: linear-gradient(120deg, #f4f9ff, #ffffff);
    border: 1px solid #dceaff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 75, 160, 0.07);
    position: relative;
    overflow: hidden;
}

.ecm_pwa_promo.is-visible {
    display: flex;
    animation: ecmPwaAppear 0.5s ease both;
}

.ecm_pwa_icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 80, 180, 0.12);
}

.ecm_pwa_icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecm_pwa_text {
    flex: 1;
}

.ecm_pwa_text h2 {
    margin: 0 0 7px;
    color: #12345a;
    font-size: 20px;
    font-weight: 700;
}

.ecm_pwa_text p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

#ecm-pwa-install {
    flex-shrink: 0;
    border: none;
    border-radius: 9px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #0878e8, #0056c9);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(0, 100, 220, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#ecm-pwa-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 100, 220, 0.3);
}

#ecm-pwa-install span {
    margin-right: 7px;
    font-size: 18px;
}

/* =========================================================
   FENÊTRE EXPLICATIVE IPHONE
   ========================================================= */

.ecm_pwa_modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 30, 55, 0.55);
    backdrop-filter: blur(5px);
}

.ecm_pwa_modal.is-visible {
    display: flex;
}

.ecm_pwa_modal_content {
    position: relative;
    width: 100%;
    max-width: 390px;
    padding: 30px 25px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    animation: ecmPwaModalAppear 0.3s ease both;
}

.ecm_pwa_modal_content h3 {
    margin: 0 25px 15px 0;
    color: #12345a;
    font-size: 21px;
}

.ecm_pwa_modal_content p {
    color: #536477;
    font-size: 14px;
    line-height: 1.7;
}

.ecm_pwa_modal_content strong {
    color: #0878e8;
}

.ecm_pwa_modal_close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 27px;
    cursor: pointer;
}

.ecm_pwa_share_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 4px;
    border: 1px solid #dbeafe;
    border-radius: 7px;
    color: #0878e8;
    font-size: 20px;
    font-weight: bold;
}

@keyframes ecmPwaAppear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ecmPwaModalAppear {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
    .ecm_pwa_promo {
        flex-direction: column;
        text-align: center;
        padding: 24px 18px;
        gap: 14px;
    }

    .ecm_pwa_icon {
        width: 65px;
        height: 65px;
    }

    .ecm_pwa_text h2 {
        font-size: 18px;
    }

    #ecm-pwa-install {
        width: 100%;
        margin-top: 5px;
    }
}


/* POPUP INSTALLATION MOBILE */

.ecm_pwa_popup {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: rgba(10, 20, 40, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.ecm_pwa_popup.is-visible {
    display: flex;
    animation: ecmPopupFade .3s ease;
}

.ecm_pwa_popup_content {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,.25);
    animation: ecmPopupSlide .35s ease;
}

.ecm_pwa_popup_content img {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    margin-bottom: 15px;
}

.ecm_pwa_popup_content h3 {
    font-size: 21px;
    color: #172b4d;
    margin: 5px 0 12px;
}

.ecm_pwa_popup_content p {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 22px;
}

.ecm_pwa_popup_install {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0066ff, #00aaff);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.ecm_pwa_popup_later {
    display: block;
    margin-top: 17px;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
}

.ecm_pwa_popup_close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 29px;
    color: #64748b;
    cursor: pointer;
}

@keyframes ecmPopupFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ecmPopupSlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

