/* The site's header on the live demo (her 15/11/2026 16:05, remark 16: « no menu and no way back to the site »).
   Written by lab/site-menu.py; scoped to .site-* so the demo's style.css is untouched. It uses the demo's own colours
   (--bg, --ink, --line from style.css), so the « Thème » button themes it too. The demo's JS sets <html lang>, so
   only the menu in that language shows. A « Menu » fold below 768 px (a <details>, no script), the row above. */
html[lang="en"] .site-fr, html:not([lang="en"]) .site-en { display: none !important; }
.site-top { position: relative; border-bottom: 1px solid var(--line, #d5ddd9); background: var(--bg, #fff); color: var(--ink, #1f2a2e); }
.site-wrap { max-width: 78rem; margin: 0 auto; padding: 0 16px; min-height: 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-brand { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; color: inherit; text-decoration: none; font: 700 1rem/1 system-ui, sans-serif; letter-spacing: 0.14em; }
.site-brand img { width: 32px; height: 32px; }
.site-menu { display: none; }
.site-menu a, .site-fold nav a { color: inherit; text-decoration: none; font-weight: 600; }
.site-menu a[aria-current], .site-fold nav a[aria-current] { text-decoration: underline; text-underline-offset: 0.2em; }
.site-fold summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--line, #d5ddd9); border-radius: 999px; font-weight: 700; cursor: pointer; }
.site-fold summary::-webkit-details-marker { display: none; }
.site-fold summary::after { content: "▾"; margin-left: 0.4rem; font-size: 0.8em; }
.site-fold[open] summary::after { content: "▴"; }
.site-fold nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--bg, #fff);
  border-bottom: 1px solid var(--line, #d5ddd9); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); padding: 0 16px 0.5rem;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1rem; }
.site-fold:not([open]) nav { display: none; }   /* a closed fold takes no room (one browser still laid it out) */
.site-fold nav a { display: flex; align-items: center; min-height: 44px; border-top: 1px solid var(--line, #d5ddd9); }
@media (min-width: 48rem) {
  .site-fold { display: none !important; }
  .site-menu { display: flex; flex-wrap: wrap; gap: 0 1rem; }
  html[lang="en"] .site-menu.site-fr, html:not([lang="en"]) .site-menu.site-en { display: none !important; }
  .site-menu a { display: inline-flex; align-items: center; min-height: 44px; }
}
