/**
 * PATRIX - Styles d'Installation PWA
 */

/* Bannière d'installation */
.install-banner {
    position: fixed;
    bottom: -150px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.install-banner.visible {
    bottom: 0;
}

.install-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.install-banner-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.install-banner-text {
    flex: 1;
    color: white;
}

.install-banner-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.install-banner-text span {
    font-size: 13px;
    opacity: 0.9;
}

.install-btn-primary {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    touch-action: manipulation;
    pointer-events: auto;
}

.install-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.install-btn-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    pointer-events: auto;
}

.install-btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Instructions iOS */
.ios-install-instructions {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.ios-install-instructions.hidden {
    display: none;
}

.ios-install-instructions.visible {
    opacity: 1;
}

.ios-instructions-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ios-instructions-content .install-btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
}

.ios-instructions-content h3 {
    color: white;
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
}

.ios-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ios-step {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
}

.ios-step-number {
    background: white;
    color: #667eea;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
}

.ios-step p {
    color: white;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.ios-step strong {
    color: #FFD700;
}

.ios-step svg {
    vertical-align: middle;
    margin: 0 3px;
}

/* Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .install-banner-content {
        flex-wrap: wrap;
        gap: 10px;
    }

    .install-banner-icon {
        font-size: 32px;
    }

    .install-banner-text strong {
        font-size: 14px;
    }

    .install-banner-text span {
        font-size: 12px;
    }

    .install-btn-primary {
        padding: 10px 20px;
        font-size: 13px;
    }

    .ios-instructions-content {
        padding: 20px;
    }

    .ios-instructions-content h3 {
        font-size: 20px;
    }

    .ios-step {
        gap: 12px;
        padding: 12px;
    }

    .ios-step-number {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .ios-step p {
        font-size: 14px;
    }
}
