/* Bandeau hors-ligne / mode résilience PWA */
.as-offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: linear-gradient(90deg, #005BBB 0%, #1e3a5f 50%, #0a0c12 100%);
    color: #fef3c7;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.as-offline-banner.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}

.as-offline-banner.is-online {
    background: linear-gradient(90deg, #166534, #22c55e);
    color: #fff;
}

.as-offline-banner__icon {
    font-size: 16px;
    flex-shrink: 0;
}

body.as-offline-banner-visible {
    padding-top: 44px;
}

.as-pwa-install-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 9998;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 18px;
    background: #111827;
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 14px;
    color: #f8fafc;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.as-pwa-install-hint.is-visible {
    transform: translateX(-50%) translateY(0);
}

.as-pwa-install-hint button {
    margin-top: 10px;
    margin-right: 8px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

.as-pwa-install-hint .as-pwa-install-btn {
    background: #FFD700;
    color: #111;
}

.as-pwa-install-hint .as-pwa-install-dismiss {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.offline-shell-page {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    color: #e2e8f0;
}

.offline-shell-page h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(24px, 4vw, 36px);
    color: #FFD700;
    margin: 0 0 16px;
}

.offline-shell-page p {
    max-width: 520px;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0 0 24px;
}

.offline-shell-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.offline-shell-links a {
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(0, 91, 187, 0.35);
    border: 1px solid rgba(255, 215, 0, 0.25);
    color: #fef3c7;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.offline-shell-links a:hover {
    background: rgba(0, 91, 187, 0.55);
}

.work-comments-offline,
.chat-offline-notice {
    padding: 16px;
    border-radius: 10px;
    background: rgba(0, 91, 187, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: #cbd5e1;
    font-size: 14px;
    text-align: center;
}
