/* =============================================================================
   GED Force Ouvrière — Base styles
   ============================================================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #c8102e;
    --color-primary-dark: #a30d25;
    --color-primary-light: #df2e2b;
    --color-text: #333;
    --color-text-light: #6c757d;
    --color-bg: #f5f5f5;
    --color-white: #fff;
    --color-border: #dee2e6;
    --color-border-light: #e9ecef;
    --color-hover: #f8f9fa;
    --radius: 6px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: 0.2s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
}

/* --- Header --- */

.header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0 1.5rem;
    height: 48px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-white);
}

.header-logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.header-title {
    font-weight: 400;
    font-size: 0.9rem;
    opacity: 0.9;
}

.header-nav {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.15);
}

/* --- Main content --- */

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* --- Utilities --- */

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
}

.badge-type {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-section {
    background: #fce4ec;
    color: #c62828;
}

.badge-thematique {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-collection {
    background: #fff3e0;
    color: #ef6c00;
}

.badge-pages {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-extension {
    background: #e9ecef;
    color: #495057;
}

/* --- Responsive --- */

@media (max-width: 768px) {
    .header {
        padding: 0 1rem;
    }

    .main-content {
        padding: 1rem;
    }
}
