/* Sim France, site v3 — la feuille de l'en-tête (entete-v3.js), la seule : chargée par chaque page qui le porte, la page v3 (app/index.html)
   comme le mode Expert (app/expert/) ; v3.css n'en garde aucune règle. Les règles du gabarit (docs/handoff-site-v3, LISEZ-MOI section 2 : la
   section « En-tête », la colonne .wrap, le focus visible, .tnav sous 640 px), chaque sélecteur préfixé par header.top pour ne toucher à rien
   d'autre sur la page qui la charge ; les jetons de couleur, de police et de mise en page qu'elles lisent sont posés sur header.top, aux
   valeurs de v3.css (calib/test_site_v3_expert.py les compare). Seule la hauteur est posée sur :root, sous un nom à elle, écrite ici seulement :
   v3.css la lit (--header) et le mode Expert fait passer dessous ses éléments collants et ses ancres. */

:root { --entete-v3: 58px }

header.top {
  --table: #15255E; --table-fonce: #111D4D; --table-ink: #E7ECFA; --brand: #2450D6; --link-on-table: #9DB7FF; --mint: #7FE0C7;
  --display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, sans-serif;
  --r-pill: 999px; --wrap: 1120px; --header: var(--entete-v3);
  font-family: var(--body); font-size: 15px; line-height: 1.4; color: var(--table-ink)
}
header.top, header.top *, header.top *::before, header.top *::after { box-sizing: border-box }
header.top :focus-visible { outline: 3px solid var(--mint); outline-offset: 3px }
header.top .wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)) }

/* ---------- En-tête ---------- */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; background: var(--table-fonce); border-bottom: 1px solid rgba(255, 255, 255, .08) }   /* (handoff de l'accueil) la bande foncée */
header.top .wrap { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 12px }
header.top .brand { display: flex; align-items: center; gap: 10px; color: #FFFFFF; font-family: var(--display); font-size: 24px; font-weight: 600; text-decoration: none; min-height: 44px }
header.top .brand b { font-weight: 600; color: var(--link-on-table) }
header.top .tnav { display: flex; align-items: center; gap: 8px }
header.top .tnav a { color: #FFFFFF; text-decoration: none; font-weight: 800; font-size: 16px; padding: 8px 12px; border-radius: var(--r-pill); min-height: 44px; display: inline-flex; align-items: center }
header.top .tnav a:hover { background: rgba(255, 255, 255, .08) }
header.top .tnav a.on { background: rgba(255, 255, 255, .14) }
header.top .tnav a.tcta { background: var(--brand); color: #FFFFFF; margin-left: 8px; padding: 0 18px }
header.top .burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #FFFFFF; align-items: center; justify-content: center; cursor: pointer }
header.top .tnav a.tcta.on { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5) }

/* entre le téléphone et le bureau : les quatre liens et la marque tiennent dans la bande */
@media (max-width: 960px) {
  header.top .brand { font-size: 21px }
  header.top .tnav { gap: 2px }
  header.top .tnav a { font-size: 15px; padding: 8px 9px }
}

/* ---------- Téléphone (handoff de l'accueil, 720 px) : la marque et le bouton « Menu », qui déplie les liens sous la bande ---------- */
@media (max-width: 720px) {
  header.top .brand { font-size: 21px }
  header.top .burger { display: flex }
  header.top .tnav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px max(16px, env(safe-area-inset-left, 0px)) 14px; background: var(--table-fonce); border-bottom: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 14px 24px rgba(3, 8, 30, .35) }
  header.top.ouvert .tnav { display: flex }
  header.top .tnav a { justify-content: flex-start }
  header.top .tnav a.tcta { margin: 6px 0 0; justify-content: center }
}
