/**
 * Styles du Widget de Notification Web Push (Alertes Flash Info)
 */
.push-bell-widget {
    position: fixed;
    bottom: 24px;
    z-index: 995;
    font-family: inherit;
}
.push-bell--ltr {
    left: 24px;
}
.push-bell--rtl {
    right: 24px;
}

/* Bouton Cloche */
.push-bell-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #c8102e;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.push-bell-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(200, 16, 46, 0.45);
}
.push-bell-btn.is-active {
    background: #059669;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
}

/* Pastille animée */
.push-bell-pulse {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #facc15;
    border: 2px solid #ffffff;
    animation: pushPulse 2s infinite;
}
.push-bell-check {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #10b981;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pushPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(250, 204, 21, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
}

/* Popover */
.push-bell-popover {
    position: absolute;
    bottom: 60px;
    width: 290px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px;
    animation: pushFadeIn 0.25s ease forwards;
}
.push-bell--ltr .push-bell-popover {
    left: 0;
}
.push-bell--rtl .push-bell-popover {
    right: 0;
    text-align: right;
}

@keyframes pushFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.push-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}
.push-popover-head strong {
    font-size: 13.5px;
    color: #0f172a;
    font-weight: 700;
}
.push-popover-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.push-popover-desc {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.45;
    margin: 0 0 14px 0;
}
.push-popover-actions {
    display: flex;
    gap: 8px;
}
.push-btn-allow {
    flex: 1;
    background: #c8102e;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.push-btn-allow:hover {
    background: #a50d25;
}
.push-btn-later {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}
.push-btn-later:hover {
    background: #e2e8f0;
}

/* Toast */
.push-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #0f172a;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}
.push-toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.push-toast--error {
    background: #dc2626;
}

@media (max-width: 640px) {
    .push-bell-widget {
        bottom: 74px; /* Au-dessus de la barre de navigation mobile si existante */
    }
    .push-bell--ltr {
        left: 16px;
    }
    .push-bell--rtl {
        right: 16px;
    }
    .push-bell-popover {
        width: 270px;
    }
}
