/* Haut de page commun (assets/entete.js) : chargé par toutes les pages, après la feuille de style de la page.
   Les valeurs de secours reprennent la palette claire de style.css pour les pages qui ne la chargent pas (concordance.html). */
.topbar {
  background: var(--surface, #fff); border-bottom: 1px solid var(--line, #dde2ea);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  font: 15px/1.55 var(--f-body, "Public Sans", "Segoe UI", system-ui, sans-serif);
  font-variant-numeric: tabular-nums; color: var(--ink, #161b26);
}
.topbar .wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; gap: 16px; padding-block: 10px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink, #161b26); }
.brand b { font-family: var(--f-display, "Archivo", "Helvetica Neue", Arial, sans-serif); font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.brand span { font-size: 12px; color: var(--muted, #5a6376); text-transform: uppercase; letter-spacing: .08em; }
.brand-logo { width: 40px; height: 40px; border-radius: 9px; flex: none; }
.topnav { display: flex; gap: 4px; flex-wrap: wrap; }
.topnav a { font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--muted, #5a6376); padding: 5px 10px; border-radius: 999px; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--accent, #1f3a8a); background: var(--accent-soft, #e3e9f8); }
.status { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted, #5a6376); }
.status strong { color: var(--ink, #161b26); font-weight: 700; }
.countdown strong { color: var(--accent, #1f3a8a); font-family: var(--f-display, "Archivo", "Helvetica Neue", Arial, sans-serif); font-size: 15px; }
.status-link { color: inherit; text-decoration: none; }
.status-link:hover { color: var(--accent, #1f3a8a); }
.topbar a:focus-visible { outline: 2px solid var(--accent, #1f3a8a); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 520px) {
  .brand-logo { width: 34px; height: 34px; }
  .brand span { display: none; }
  .brand b { white-space: nowrap; }
  .topnav a { padding: 4px 8px; }
  .status { margin-left: 0; gap: 12px; }
}
@media print { .topbar { display: none; } }
