/* ───────────────────────────────────────────────────────────────────
   Composant cloche notifications (admin-header)
   Injecté automatiquement par notifications.js, comme entity-switch.js
   ─────────────────────────────────────────────────────────────────── */

.notif-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-200);
    border-radius: 999px;
    background: var(--bg-0);
    cursor: pointer;
    color: var(--ink-700);
    font-size: 18px;
    transition: background var(--motion-fast) var(--ease-standard),
                border-color var(--motion-fast) var(--ease-standard);
}

.notif-bell:hover {
    background: var(--ot-burgundy-50);
    border-color: var(--ot-burgundy-300);
    color: var(--brand-secondary);
}

.notif-bell:focus-visible {
    outline: 2px solid var(--focus-ring-bordeaux, var(--brand-secondary));
    outline-offset: 2px;
}

.notif-bell .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--brand-secondary, #601010);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-display);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(110, 29, 28, 0.35);
    pointer-events: none;
}

.notif-bell.has-urgent .badge {
    animation: notif-pulse 1.8s ease-in-out infinite;
}

@keyframes notif-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}

.notif-bell .badge[hidden] { display: none; }

/* Dropdown — fermé par défaut, ouvert via .open */
.notif-dropdown {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    width: 380px;
    max-height: 480px;
    overflow-y: auto;
    background: var(--surface-elev, #fff);
    border: 1px solid var(--line-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,0.12));
    z-index: 1000;
    padding: var(--sp-2) 0;
}
.notif-dropdown.open { display: block; }

.notif-dropdown header {
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--line-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notif-dropdown header h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-14);
    text-transform: uppercase;
    letter-spacing: var(--tracking-caps);
    color: var(--ink-900);
}

.notif-dropdown header .refresh-time {
    font-size: var(--fs-12);
    color: var(--fg-3);
}

.notif-list { list-style: none; margin: 0; padding: 0; }

.notif-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--line-100);
    color: var(--ink-900);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--motion-fast) var(--ease-standard);
}

.notif-item:last-child { border-bottom: none; }
.notif-item:hover      { background: var(--bg-1, #FAFAFA); }

.notif-item .icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
}

.notif-item[data-severity="info"]   .icon { background: var(--ox-sky-700, #2E6480); }
.notif-item[data-severity="warn"]   .icon { background: #b85c00; }
.notif-item[data-severity="urgent"] .icon { background: var(--brand-secondary, #601010); }

.notif-item .body { flex: 1; min-width: 0; }
.notif-item .label {
    font-size: var(--fs-14);
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.35;
}
.notif-item .meta {
    font-size: var(--fs-12);
    color: var(--fg-3);
    margin-top: 2px;
}

.notif-empty {
    padding: var(--sp-5) var(--sp-4);
    text-align: center;
    color: var(--fg-3);
    font-size: var(--fs-14);
}

@media (max-width: 600px) {
    .notif-dropdown {
        width: calc(100vw - 32px);
        right: -8px;
    }
}
