/* =========================================
   INSTALL BANNER - Style Mlovia
   Bannière d'installation PWA
   ========================================= */

.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.96), rgba(20, 10, 20, 0.96));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(217, 30, 91, 0.25);
    padding: 18px 20px 22px;
    animation: installSlideUp 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
}

.install-banner.hidden {
    display: none !important;
}

@keyframes installSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.install-banner-content {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========== HEADER ========== */

.install-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.install-banner-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.install-banner-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    flex: 1;
}

.install-banner-title span {
    color: #E11D5E;
    font-style: italic;
}

.install-banner-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    line-height: 1;
}

.install-banner-close:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ========== BÉNÉFICES ========== */

.install-banner-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 4px 14px;
    padding: 2px 0;
}

.benefit-item {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefit-item .benefit-icon {
    font-size: 14px;
    flex-shrink: 0;
}

/* ========== BOUTON ========== */

.install-banner-actions {
    display: flex;
    gap: 12px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.install-btn {
    background: linear-gradient(135deg, #E11D5E, #8A0C3A);
    border: none;
    padding: 12px 28px;
    border-radius: 60px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(217, 30, 91, 0.3);
    flex: 1;
    justify-content: center;
    min-width: 150px;
}

.install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(217, 30, 91, 0.45);
    filter: brightness(1.05);
}

.install-btn:active {
    transform: scale(0.96);
}

.install-btn i {
    font-size: 14px;
}

/* Animation pulsation */
.install-btn-pulse {
    animation: btnPulse 2.5s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(217, 30, 91, 0.3);
    }
    50% {
        box-shadow: 0 4px 40px rgba(217, 30, 91, 0.55);
    }
}

/* ========== GUIDE iOS ========== */

.install-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.install-guide-modal.visible {
    opacity: 1;
}

.install-guide-modal.closing {
    opacity: 0;
}

.install-guide-content {
    background: linear-gradient(145deg, #1a1a2e, #2d1b2e);
    border-radius: 24px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(217, 30, 91, 0.2);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.install-guide-modal.visible .install-guide-content {
    transform: scale(1);
}

.install-guide-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 22px;
    cursor: pointer;
    transition: color 0.2s;
}

.install-guide-close:hover {
    color: rgba(255, 255, 255, 0.7);
}

.install-guide-icon {
    font-size: 44px;
    text-align: center;
    margin-bottom: 10px;
}

.install-guide-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 21px;
    color: white;
    text-align: center;
    margin-bottom: 18px;
}

.install-guide-content h3 span {
    color: #E11D5E;
    font-style: italic;
}

.install-guide-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.guide-step {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.04);
    padding: 11px 14px;
    border-radius: 12px;
}

.step-number {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #E11D5E, #8A0C3A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
}

.step-text {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.step-text strong {
    color: white;
}

.guide-btn {
    width: 100%;
    background: linear-gradient(135deg, #E11D5E, #8A0C3A);
    border: none;
    padding: 13px;
    border-radius: 60px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(217, 30, 91, 0.25);
}

.guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(217, 30, 91, 0.4);
}

.guide-btn:active {
    transform: scale(0.96);
}

/* ========== TOAST ========== */

.install-toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 24px;
    border-radius: 60px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    z-index: 99999;
    border-left: 4px solid #E11D5E;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: toastFadeIn 0.3s ease;
    max-width: 90vw;
    text-align: center;
}

.install-toast.success {
    border-left-color: #1A9E7A;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .install-banner {
        padding: 14px 16px 18px;
    }

    .install-banner-title {
        font-size: 17px;
    }

    .install-banner-icon {
        font-size: 24px;
    }

    .install-banner-benefits {
        grid-template-columns: 1fr 1fr;
        gap: 3px 10px;
    }

    .benefit-item {
        font-size: 11px;
    }

    .install-btn {
        padding: 11px 20px;
        font-size: 12px;
        min-width: 130px;
    }

    .install-guide-content {
        padding: 24px 18px;
        margin: 10px;
    }

    .install-guide-content h3 {
        font-size: 19px;
    }

    .guide-step {
        padding: 10px 12px;
    }

    .step-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .install-banner {
        padding: 12px 12px 16px;
        border-radius: 16px 16px 0 0;
    }

    .install-banner-title {
        font-size: 15px;
    }

    .install-banner-icon {
        font-size: 20px;
    }

    .install-banner-benefits {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .benefit-item {
        font-size: 10.5px;
    }

    .install-btn {
        padding: 11px 16px;
        font-size: 11.5px;
        min-width: 100%;
        flex: 1 1 100%;
    }

    .install-banner-close {
        font-size: 16px;
        padding: 0 4px;
    }

    .install-banner-actions {
        flex-direction: column;
    }

    .install-guide-content {
        padding: 18px 14px;
    }

    .install-guide-icon {
        font-size: 34px;
    }

    .install-guide-content h3 {
        font-size: 17px;
        margin-bottom: 14px;
    }

    .guide-step {
        padding: 8px 10px;
        gap: 10px;
    }

    .step-number {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .step-text {
        font-size: 11px;
    }

    .guide-btn {
        padding: 11px;
        font-size: 13px;
    }
}