:root {
    --bg-base: #0f172a;
    --bg-surface: #1e293b;
    --bg-elevated: #334155;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --header-height: 70px;
    --sidebar-width: 280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { background-color: var(--bg-base); color: var(--text-main); height: 100vh; overflow: hidden; display: flex; flex-direction: column; }

/* --- HEADER --- */
.app-header { height: var(--header-height); background-color: var(--bg-surface); border-bottom: 1px solid var(--bg-elevated); display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; flex-shrink: 0; z-index: 100; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--bg-elevated); object-fit: cover; }
.brand-text { font-size: 1.2rem; font-weight: 700; color: var(--text-main); letter-spacing: 0.5px; }
.top-nav { display: flex; gap: 2rem; }
.top-nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; display: flex; align-items: center; gap: 8px; padding: 0.5rem 0; }
.top-nav a:hover, .top-nav a.active { color: var(--text-main); }
.top-nav a.active { border-bottom: 2px solid var(--primary); }
.btn-bureau { background: rgba(59, 130, 246, 0.1); color: var(--primary); border: 1px solid rgba(59, 130, 246, 0.3); padding: 0.5rem 1rem; border-radius: 8px; font-weight: 600; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
.btn-bureau:hover { background: var(--primary); color: #fff; }

/* --- LAYOUT CENTRAL --- */
.app-body { display: flex; flex: 1; overflow: hidden; }
.filters-sidebar { width: var(--sidebar-width); background-color: var(--bg-base); border-right: 1px solid var(--bg-elevated); padding: 1.5rem; overflow-y: auto; flex-shrink: 0; }
.search-box { width: 100%; background: var(--bg-surface); border: 1px solid var(--bg-elevated); color: var(--text-main); padding: 0.8rem 1rem; border-radius: 8px; margin-bottom: 2rem; display: flex; align-items: center; gap: 10px; }

/* --- ZONE DE CONTENU --- */
.main-content { flex: 1; padding: 2rem 3rem; overflow-y: auto; background-color: var(--bg-base); scroll-behavior: smooth; }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.doc-card { background-color: var(--bg-surface); border: 1px solid var(--bg-elevated); border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    body { height: auto; overflow-y: auto; }
    .app-header { height: auto; flex-direction: column; padding: 1rem; }
    .top-nav { margin-top: 1rem; gap: 0.8rem; flex-wrap: wrap; justify-content: center; }
    .main-content { padding: 1.5rem 1rem; }
    .faq-container { width: 100%; padding: 0 5px; }
    .app-body { flex-direction: column; }
    .filters-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--bg-elevated); }
}