/* ==========================================================================
   ALERTS.HTML — feuille dédiée (refonte du 21/10/2026) : règles
   d'origine puis habillage « route de nuit ».
   ========================================================================== */


.sidebar-nav a { transition: all 0.3s ease; }
.sidebar-nav li.active a { border-left: 3px solid var(--accent-blue); }
.admin-badge {
            display: inline-block; padding: 1px 8px; background: rgba(var(--rgb-purple), 0.15); color: var(--accent-purple);
            border-radius: var(--radius-sm); font-size: var(--font-2xs); font-weight: var(--font-weight-bold); text-transform: uppercase; margin-left: auto;
        }
.page-header h1 { font-size: var(--font-5xl); font-weight: 800; color: var(--text-primary); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-header h1 span {
            background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        }
.page-header p { color: var(--text-secondary); font-size: var(--font-base); }
.header-badge {
            padding: 4px 14px; border-radius: var(--radius-xl); font-size: var(--font-md); font-weight: 800; background: rgba(var(--rgb-red), 0.15);
            color: var(--accent-red); border: 1px solid rgba(var(--rgb-red), 0.25); -webkit-text-fill-color: var(--accent-red);
        }
.header-badge.empty { background: rgba(var(--rgb-green), 0.12); color: var(--accent-green); border-color: rgba(var(--rgb-green), 0.25); -webkit-text-fill-color: var(--accent-green); }
/* ============ STATS ============ */
        .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 25px; }
.stat-card {
            background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 18px 20px;
            display: flex; align-items: center; gap: 14px; transition: all 0.3s ease; animation: rowIn 0.4s ease;
        }
.stat-card:hover { transform: translateY(-4px); border-color: rgba(var(--rgb-blue), 0.25); }
.stat-icon { width: 46px; height: 46px; border-radius: var(--radius-md); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: var(--font-3xl); }
.stat-icon.blue { background: rgba(var(--rgb-blue), 0.12); color: var(--accent-blue); }
.stat-icon.green { background: rgba(var(--rgb-green), 0.12); color: var(--accent-green); }
.stat-icon.orange { background: rgba(var(--rgb-orange), 0.12); color: var(--accent-orange); }
.stat-icon.purple { background: rgba(var(--rgb-purple), 0.12); color: var(--accent-purple); }
.stat-value { font-size: var(--font-4xl); font-weight: var(--font-weight-black); line-height: 1.2; }
.stat-label { font-size: var(--font-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: var(--font-weight-semibold); }
/* ============ TOOLBAR ============ */
        .toolbar { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 25px; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.filter-tab {
            padding: 8px 16px; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-xl); cursor: pointer;
            font-size: var(--font-sm); font-weight: var(--font-weight-semibold); color: var(--text-secondary); transition: all 0.3s ease; font-family: 'Inter', sans-serif;
        }
.filter-tab:hover { background: var(--bg-card-hover); color: var(--text-primary); transform: translateY(-2px); }
.filter-tab.active { background: var(--accent-blue); color: var(--bg-primary); border-color: var(--accent-blue); }
.toolbar-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 15px; }
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: var(--font-md); }
.search-input {
            width: 100%; padding: 11px 16px 11px 40px; background: var(--bg-input); color: var(--text-primary);
            border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: var(--font-md);
            font-family: 'Inter', sans-serif; transition: all 0.3s ease;
        }
.search-input:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(var(--rgb-blue), 0.1); }
.toolbar-select {
            padding: 11px 16px; background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border-color);
            border-radius: var(--radius-sm); font-size: var(--font-md); font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.3s ease;
        }
.toolbar-select:focus { outline: none; border-color: var(--accent-blue); }
.btn {
            padding: 11px 18px; border-radius: var(--radius-sm); cursor: pointer; font-size: var(--font-sm); font-weight: var(--font-weight-bold); font-family: 'Inter', sans-serif;
            border: 1px solid var(--border-color); background: var(--bg-input); color: var(--text-secondary); transition: all 0.3s ease;
            display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
        }
.btn:hover { background: var(--bg-card-hover); color: var(--text-primary); transform: translateY(-2px); }
.btn-blue { background: rgba(var(--rgb-blue), 0.12); color: var(--accent-blue); border-color: rgba(var(--rgb-blue), 0.25); }
.btn-blue:hover { background: rgba(var(--rgb-blue), 0.2); color: var(--accent-blue); }
.btn-green { background: rgba(var(--rgb-green), 0.12); color: var(--accent-green); border-color: rgba(var(--rgb-green), 0.25); }
.btn-green:hover { background: rgba(var(--rgb-green), 0.2); color: var(--accent-green); }
.btn-red { background: rgba(var(--rgb-red), 0.1); color: var(--accent-red); border-color: rgba(var(--rgb-red), 0.22); }
.btn-red:hover { background: rgba(var(--rgb-red), 0.2); color: var(--accent-red); }
.result-count { font-size: var(--font-sm); color: var(--text-muted); font-weight: var(--font-weight-semibold); margin-left: auto; }
.result-count strong { color: var(--accent-blue); }
/* ============ LAYOUT 2 COLONNES ============ */
        .notif-layout { display: grid; grid-template-columns: 1fr 320px; gap: 25px; align-items: start; }
.side-column { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 25px; }
.side-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 20px; }
.side-card h3 { font-size: var(--font-base); font-weight: var(--font-weight-bold); margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.side-card h3 i { color: var(--accent-blue); }
/* Préférences */
        .pref-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(var(--rgb-border), 0.5); }
.pref-row:last-child { border-bottom: none; }
.pref-label { flex: 1; font-size: var(--font-sm); color: var(--text-secondary); font-weight: var(--font-weight-medium); }
.switch { position: relative; display: inline-block; width: 42px; height: 23px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-xl); transition: 0.3s; }
.slider::before {
            content: ''; position: absolute; height: 15px; width: 15px; left: 3px; bottom: 3px; background: var(--text-muted);
            border-radius: 50%; transition: 0.3s;
        }
.switch input:checked + .slider { background: rgba(var(--rgb-green), 0.25); border-color: var(--accent-green); }
.switch input:checked + .slider::before { transform: translateX(19px); background: var(--accent-green); }
/* Répartition par type */
        .breakdown-row { margin-bottom: 13px; }
.breakdown-head { display: flex; justify-content: space-between; font-size: var(--font-sm); margin-bottom: 5px; }
.breakdown-head span:first-child { color: var(--text-secondary); font-weight: var(--font-weight-semibold); }
.breakdown-head span:last-child { color: var(--text-muted); font-weight: var(--font-weight-bold); }
.breakdown-bar { height: 7px; background: var(--bg-input); border-radius: var(--radius-xs); overflow: hidden; }
.breakdown-fill { height: 100%; border-radius: var(--radius-xs); transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
/* ============ LISTE NOTIFICATIONS ============ */
        .notif-list { display: flex; flex-direction: column; gap: 9px; }
.date-group { margin-bottom: 6px; }
.date-separator {
            display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; font-size: var(--font-xs); font-weight: 800;
            text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted);
        }
.date-separator::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }
.date-separator .group-count { padding: 2px 9px; border-radius: var(--radius-sm); background: var(--bg-input); font-size: var(--font-2xs); letter-spacing: 0; color: var(--text-secondary); }
.notif-item {
            position: relative; display: flex; gap: 14px; padding: 16px 18px; background: var(--bg-card);
            border: 1px solid var(--border-color); border-radius: var(--radius-md); transition: all 0.3s ease; cursor: pointer;
            animation: rowIn 0.35s ease; border-left: 3px solid transparent;
        }
.notif-item:hover { background: var(--bg-card-hover); transform: translateX(4px); }
.notif-item.unread { border-left-color: var(--accent-blue); background: rgba(var(--rgb-blue), 0.05); }
.notif-item.unread.type-success { border-left-color: var(--accent-green); background: rgba(var(--rgb-green), 0.05); }
.notif-item.unread.type-warning { border-left-color: var(--accent-orange); background: rgba(var(--rgb-orange), 0.05); }
.notif-item.unread.type-error { border-left-color: var(--accent-red); background: rgba(var(--rgb-red), 0.05); }
.notif-item.just-added { animation: popIn 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes popIn {
            0% { opacity: 0; transform: translateY(-18px) scale(0.97); box-shadow: 0 0 0 rgba(var(--rgb-blue), 0); }
            60% { box-shadow: 0 0 26px rgba(var(--rgb-blue), 0.35); }
            100% { opacity: 1; transform: translateY(0) scale(1); box-shadow: 0 0 0 rgba(var(--rgb-blue), 0); }
        }
.notif-pastille { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: var(--font-xl); }
.pastille-success { background: rgba(var(--rgb-green), 0.13); color: var(--accent-green); }
.pastille-info { background: rgba(var(--rgb-blue), 0.13); color: var(--accent-blue); }
.pastille-warning { background: rgba(var(--rgb-orange), 0.13); color: var(--accent-orange); }
.pastille-error { background: rgba(var(--rgb-red), 0.13); color: var(--accent-red); }
.notif-body { flex: 1; min-width: 0; }
.notif-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 3px; }
.notif-title { font-size: var(--font-base); font-weight: var(--font-weight-bold); color: var(--text-primary); }
.notif-item.unread .notif-title { color: #fff; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-blue); flex-shrink: 0; box-shadow: 0 0 8px rgba(var(--rgb-blue), 0.8); }
.cat-tag {
            padding: 2px 9px; border-radius: var(--radius-sm); font-size: var(--font-2xs); font-weight: var(--font-weight-bold);
            text-transform: uppercase; letter-spacing: 0.4px;
            background: var(--bg-input); color: var(--text-secondary);
        }
.notif-message { font-size: var(--font-md); color: var(--text-secondary); margin-bottom: 8px; }
.notif-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: var(--font-xs); color: var(--text-muted); }
.notif-meta i { margin-right: 4px; }
.notif-open { color: var(--accent-blue); text-decoration: none; font-weight: var(--font-weight-bold); font-size: var(--font-sm); display: inline-flex; align-items: center; gap: 5px; transition: all 0.3s ease; }
.notif-open:hover { color: var(--accent-purple); gap: 9px; }
.notif-actions { display: flex; flex-direction: column; gap: 6px; opacity: 0; transition: opacity 0.3s ease; }
.notif-item:hover .notif-actions { opacity: 1; }
.action-btn {
            width: 30px; height: 30px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); background: var(--bg-input);
            color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: var(--font-sm); transition: all 0.25s ease;
        }
.action-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); transform: scale(1.1); }
.action-btn.danger:hover { background: rgba(var(--rgb-red), 0.15); color: var(--accent-red); border-color: rgba(var(--rgb-red), 0.3); }
/* État vide */
        .empty-state { text-align: center; padding: 60px 25px; background: var(--bg-card); border: 1px dashed var(--border-color); border-radius: var(--radius-lg); }
.empty-state .empty-emoji { font-size: var(--font-9xl); display: block; margin-bottom: 16px; }
.empty-state h3 { font-size: var(--font-2xl); font-weight: 800; margin-bottom: 8px; }
.empty-state p { font-size: var(--font-md); color: var(--text-muted); margin-bottom: 20px; }
/* ============ NOTIFICATIONS (toasts) ============ */ .notification { border: 1px solid rgba(var(--rgb-white), 0.05); max-width: 400px; font-size: var(--font-base); font-weight: var(--font-weight-medium); }
.notification.warning { background: rgba(var(--rgb-orange), 0.15); border-color: rgba(var(--rgb-orange), 0.2); color: var(--accent-orange); }
.notif-icon { font-size: var(--font-2xl); }
@keyframes slideIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(50px); } }
/* ============ RESPONSIVE ============ */
        @media (max-width: 1100px) {
            .notif-layout { grid-template-columns: 1fr; }
            .side-column { position: static; }
        }
@media (max-width: 768px) {
            .sidebar { width: 60px; }
            .sidebar-header h2, .vtc-tagline, .sidebar-nav a span:not(.icon),
            .user-details, .logout-btn span:not(.icon), .admin-badge { display: none; }
            .sidebar-nav a { justify-content: center; padding: 12px; border-radius: 0; }
            .sidebar-nav .icon { margin: 0; font-size: var(--font-3xl); }
            .main-content { margin-left: 60px; padding: 15px; }
            .stats-grid { grid-template-columns: 1fr; }
            .toolbar-row { flex-direction: column; align-items: stretch; }
            .result-count { margin-left: 0; text-align: center; }
            .notif-item { padding: 14px; gap: 11px; }
            .notif-pastille { width: 36px; height: 36px; font-size: var(--font-lg); }
            .notif-actions { opacity: 1; flex-direction: row; }
            .page-header h1 { font-size: var(--font-3xl); }
            .notification { bottom: 15px; right: 15px; left: 15px; max-width: none; font-size: var(--font-md); }
        }
    

/* ============================================
   Lot 1 de la refonte CSS — états et finitions
   Ajouts uniquement : aucune propriété de mise en page.
   ============================================ */
/* Focus clavier visible et homogène (anneau du socle). */
button.filter-tab:focus-visible,
button.btn:focus-visible,
button.action-btn:focus-visible,
input.search-input:focus-visible,
select.toolbar-select:focus-visible,
a.notif-open:focus-visible {
    outline: var(--focus-ring-outline);
    outline-offset: 2px;
}

/* Éléments désactivés : lisibles et clairement inactifs. */
button.btn:disabled,
button.action-btn:disabled,
input.search-input:disabled,
select.toolbar-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Survol discret là où il manquait. */
a.notif-open:hover {
    background: rgba(var(--rgb-white), 0.05);
}

/* Transitions douces sur les états interactifs. */
a.notif-open {
    transition: background-color var(--transition-rapide),
                border-color var(--transition-rapide),
                color var(--transition-rapide),
                box-shadow var(--transition-rapide);
}

/* Cartes de statistiques : ombre sobre et survol cohérent. */
.stat-card { box-shadow: var(--shadow-sm); }
.stat-card:hover { box-shadow: var(--shadow-md); }

.page-header h1, h1 { font-family: 'Barlow Condensed','Inter',sans-serif; text-transform: uppercase; font-weight: 800; color: var(--text-primary); }
.stat-card, .alert-card, .card, section { border-radius: var(--radius-xl); border-color: rgba(var(--rgb-white), .07); }
.stat-card { position: relative; overflow: hidden; }
.stat-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent-ambre), transparent); }
.breakdown-fill { border-radius: var(--radius-xs); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
