:root {
    --navy: #1f3864;
    --blue: #2e75b6;
    --soft: #deeaf6;
    --bg: #f4f6fa;
}
body { background: var(--bg); }
.plain-body { background: linear-gradient(160deg, #eaf1fb 0%, #f4f6fa 60%); min-height: 100vh; }
.bg-navy { background-color: var(--navy) !important; }
.text-navy { color: var(--navy) !important; }

/* Disposition */
.app-wrap { min-height: calc(100vh - 56px); }
.sidebar { --bs-offcanvas-width: 250px; width: 250px; flex-shrink: 0; }
.app-main { min-width: 0; }
.sidebar-group {
    font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
    color: #8a94a6; padding: .6rem 1.1rem .2rem; font-weight: 600;
}
.sidebar-link { color: #3b4658; padding: .45rem 1.1rem; display: flex; align-items: center; gap: .6rem; border-left: 3px solid transparent; }
.sidebar-link:hover { background: var(--bg); color: var(--navy); }
.sidebar-link.active { background: var(--soft); color: var(--navy); font-weight: 600; border-left-color: var(--blue); }

/* Cartes et statistiques */
.card { border: 0; box-shadow: 0 1px 3px rgba(31, 56, 100, .08); }
.stat-card .stat-icon {
    width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; background: var(--soft); color: var(--navy);
}
.stat-card .stat-value { font-size: 1.7rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat-card.danger .stat-icon { background: #fde4e4; color: #b42318; }
.stat-card.danger .stat-value { color: #b42318; }
.page-title { color: var(--navy); font-weight: 700; }

/* Tableaux */
.table thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .85rem; white-space: nowrap; }
.table-hover tbody tr:hover { background: #f0f5fb; }

/* Catalogue */
.book-card { transition: transform .15s, box-shadow .15s; }
.book-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(31, 56, 100, .15) !important; }
.book-cover {
    height: 190px; background: linear-gradient(135deg, var(--soft), #c9dcf0);
    display: flex; align-items: center; justify-content: center; color: var(--blue); font-size: 3rem;
    border-radius: .375rem .375rem 0 0; overflow: hidden;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-thumb { width: 42px; height: 56px; object-fit: cover; border-radius: 4px; background: var(--soft); }
.cover-large { max-width: 100%; max-height: 320px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }

.ratio-video iframe, .ratio-video video { width: 100%; height: 100%; border: 0; }
code.barcode { font-size: .85rem; background: #eef2f8; padding: .1rem .4rem; border-radius: 4px; color: var(--navy); }

@media print {
    .navbar, .sidebar, .no-print, .btn, form.no-print { display: none !important; }
    .app-main { padding: 0 !important; }
    body { background: #fff; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}
