/* ═══════════════════════════════════════
   NAV — Commun à toutes les pages
   ═══════════════════════════════════════ */

/* Fonts */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans-SemiBold.ttf') format('truetype');
  font-weight: 600; font-style: normal;
}

#topnav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 38px;
    background: #f7f9fc;
    border-bottom: 1px solid #d4dae8;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 20px;
    z-index: 9999;
    font-family: 'DM Sans', sans-serif;
}

#topnav::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #002395 33.3%, #fff 33.3%, #fff 66.6%, #ed2939 66.6%);
}

#topnav .nav-brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    color: #a0b4cc;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-right: 16px;
    padding-left: 8px;
}

#topnav a {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 2px;
    text-decoration: none;
    color: #7a90aa;
    border: 1px solid transparent;
    transition: color .15s, background .15s;
    letter-spacing: .01em;
}

#topnav a:hover {
    color: #2d6ab0;
    background: #e8eef7;
}

#topnav a.active {
    color: #2d6ab0;
    background: #dce8f5;
    border-color: #8aadd4;
    font-weight: 600;
}

body { padding-top: 38px; }
