/* ==========================================================
   Styles Spécifiques PWA & Mode Hors-Ligne (Thème Clair)
   ========================================================== */

/* Bannière d'installation PWA */
.pwa-banner {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
    border-radius: 1rem;
    padding: 0.85rem 1.25rem;
    z-index: 9999;
    align-items: center;
    gap: 1rem;
    max-width: 92vw;
    width: 440px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.pwa-banner.visible {
    display: flex;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.pwa-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pwa-banner-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pwa-banner-content {
    flex: 1;
}

.pwa-banner-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.pwa-banner-desc {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.3;
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pwa-btn-install {
    background: #0284c7;
    color: #ffffff;
    border: 1px solid #0369a1;
    border-radius: 9999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background-color 0.15s ease;
}

.pwa-btn-install:hover {
    background: #0369a1;
}

.pwa-btn-close {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background-color 0.15s;
}

.pwa-btn-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

@media (max-width: 640px) {
    .pwa-banner {
        bottom: 1rem;
        width: calc(100vw - 2rem);
        padding: 0.75rem 1rem;
    }
}
