/* ================================================================
   IBD.ATLAS.MII — CSS commun (topnav, variables, reset, typographie)
   Inclus dans toutes les pages via <link rel="stylesheet" href="common.css">
   ================================================================ */

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

/* ── Variables de couleurs partagées ── */
:root {
    --blue-900: #0c1d36;
    --blue-700: #1a3a5c;
    --blue-600: #2d6a9f;
    --blue-300: #93c5fd;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-800: #1e293b;
}

/* ── Typographie de base ── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── Topnav ── */
.topnav {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 0 32px;
    display: flex;
    align-items: center;
    height: 56px;
    gap: 32px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.topnav-logo {
    font-weight: 800;
    font-size: 1rem;
    color: var(--blue-700);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.topnav-logo span { color: var(--blue-600); }
.topnav-links { display: flex; gap: 4px; }
.topnav-link {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s;
}
.topnav-link:hover { background: var(--gray-50); color: var(--gray-800); }
.topnav-link.active { background: rgba(26,58,92,0.08); color: var(--blue-700); font-weight: 600; }

/* ── Topnav responsive (mobile) ── */
@media (max-width: 700px) {
    .topnav { padding: 0 12px; gap: 12px; height: 42px; }
    .topnav-logo { font-size: 0.88rem; }
    .topnav-links {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 2px;
        flex-shrink: 1;
    }
    .topnav-link { font-size: 0.72rem; padding: 4px 8px; white-space: nowrap; }
}
