/* =============================================
   BANDEAU INSTALLATION PWA
   À ajouter à la fin de budget.css
   ============================================= */

#pwa-banner {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2.5rem);
    max-width: 600px;
    z-index: 999;
    animation: pwa-slide-up 0.3s ease;
}

@keyframes pwa-slide-up {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.pwa-banner-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.pwa-banner-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
}

.pwa-banner-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.pwa-banner-sub {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pwa-btn-install {
    background-color: #4f46e5;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.pwa-btn-install:hover { background-color: #4338ca; }

.pwa-btn-dismiss {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.pwa-btn-dismiss:hover {
    background-color: #f3f4f6;
    color: #6b7280;
}

@media (max-width: 420px) {
    .pwa-banner-sub { display: none; }
    .pwa-btn-install { padding: 7px 12px; }
}
