/* En-tête et pied de page de tout le site, pages du serveur (templates/fragments.html) et application (frontend/src/Site.tsx) :
   même HTML, même feuille. Jetons de tokens.css / pages.css (spec §13.1). Cibles tactiles de 44 px. */
.site-header { --site-pad: clamp(16px, 4vw, 56px); position: relative; z-index: 6; display: flex; flex-wrap: wrap; align-items: center;
  gap: 0 28px; padding: 8px var(--site-pad); background: var(--sky); border-bottom: 1px solid var(--line); font: 14px/1.4 var(--sans); }
.site-header .wordmark { margin-right: auto; display: inline-flex; align-items: center; min-height: 44px; font-size: 22px; line-height: 1;
  color: var(--text); text-decoration: none; white-space: nowrap; }
.site-header .wordmark:hover { color: var(--text); }
.site-header .site-nav { display: flex; gap: 0 24px; }
.site-header .site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.site-header .site-nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
/* Le seul bouton or de l'en-tête : il mène au tunnel. */
.site-header .site-offer { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--action); color: var(--sky);
  font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 150ms ease; }
.site-header .site-offer:hover { background: #E3C083; color: var(--sky); }
.site-header a:focus-visible { outline: 2px solid var(--data); outline-offset: 2px; }

/* Téléphone : le logo et le bouton sur la première ligne, les quatre liens sur la seconde, tous visibles (pas de menu à ouvrir). */
@media (max-width: 760px) {
  .site-header { gap: 0 12px; padding: 4px var(--site-pad) 0; }
  .site-header .wordmark { font-size: 18px; }
  .site-header .site-offer { padding: 0 12px; }
  .site-header .site-nav { order: 3; flex: 1 0 100%; justify-content: space-between; gap: 0 12px; margin: 0 -4px; overflow-x: auto; scrollbar-width: none; }
  .site-header .site-nav a { padding: 0 4px; }
}
@media (max-width: 340px) {
  .site-header .wordmark { font-size: 16px; }
  .site-header .site-nav { font-size: 13px; }
}

.site-footer { position: relative; padding: 28px clamp(20px, 5vw, 56px) 32px; font: 13px/1.6 var(--sans); background: var(--sky); border-top: 1px solid var(--line); color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 22px; margin-bottom: 10px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--data); }
.site-footer nav a:hover { color: var(--data-hover); }
.site-footer p { margin: 0; max-width: 72ch; }

@media print {
  .site-header .site-nav, .site-header .site-offer, .site-footer nav { display: none !important; }
}
