/* En-tête du site (logo, navigation, langues, compte), partagé par les pages du site et la page /s/ de l'app (api/server.js). */
.site-head .wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.site-head .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-head a { text-decoration: none; }
.site-head .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 9999px; background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; }
.site-head .btn:hover { background: var(--primary-hover); color: #fff; }
/* En-tête */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 12px; padding-bottom: 12px; }
.site-head .logo img { height: 28px; display: block; }
.site-head nav { flex-grow: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.site-head nav a { height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: 9999px; color: var(--ink); text-decoration: none; font-size: 15px; }
.site-head nav a:hover { background: var(--bg); }
.site-head nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 9999px; background: var(--late-soft); color: var(--late-ink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 9999px; background: var(--bg); }
.langs a { height: 32px; display: flex; align-items: center; padding: 0 10px; border-radius: 9999px; font-size: 13px; color: var(--ink-soft); text-decoration: none; }
.langs a[aria-current="true"] { background: var(--ink); color: #fff; font-weight: 600; }
.site-head .install { height: 40px; padding: 0 18px; font-size: 14px; }
.menu-btn { display: none; }
/* En-tête : rond du compte et menu des raccourcis vers l'app. */
.acct { position: relative; }
.acct-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.acct.in .acct-btn { background: var(--primary-soft); color: var(--primary); border-color: transparent; font-weight: 700; font-size: 17px; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; display: flex; flex-direction: column; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); z-index: 30; }
.acct-menu[hidden] { display: none; }
.acct-menu .acct-name { margin: 4px 10px 8px; font-weight: 700; }
.acct-menu a { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.acct-menu a:hover { background: var(--bg); }
.acct-menu .acct-login { color: var(--primary); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
@media (max-width: 760px) { .site-head .acct { order: 1; } }
.acct-menu a[hidden] { display: none; }
/* Téléphone : logo, langues, compte et menu tiennent sur une ligne. */
.lang-pick .lang-list a { gap: 10px; }
.lang-pick summary .flag { width: 18px; height: 12px; }
.acct-menu .acct-cta a.btn { justify-content: center; height: 40px; padding: 0 16px; background: var(--primary); color: #fff; }
.acct-menu .acct-cta a.btn:hover { background: var(--primary-hover); color: #fff; }
@media (max-width: 760px) {
  .site-head .wrap { gap: 8px; }
  .site-head .langs a { padding: 0 8px; min-width: 0; font-size: 13px; }
  .acct-btn { width: 38px; height: 38px; }
  .menu-btn { width: 38px; }
}
@media (max-width: 370px) { .site-head .logo img { height: 22px; } }
.acct-menu .acct-name[hidden], .acct-menu .acct-cta[hidden] { display: none; }
.acct-cta { display: flex; flex-direction: column; gap: 6px; margin: 2px 2px 8px; padding: 12px; border-radius: 12px; background: var(--primary-soft); }
.acct-cta b { font-size: 15px; } .acct-cta span { font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
.acct-cta .btn { height: 40px; font-size: 15px; margin-top: 4px; color: #fff; }
.acct-menu { min-width: 250px; }
.flag { width: 20px; height: 14px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(20, 16, 40, .14); }
/* Sélecteur de langue : un bouton (globe, langue en cours), la liste des langues en dessous. */
.lang-pick { position: relative; padding: 0; }
.lang-pick summary { list-style: none; height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 9999px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick[open] summary svg:last-child { transform: rotate(180deg); }
.lang-pick .lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 180px; display: flex; flex-direction: column; padding: 6px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.lang-pick .lang-list a { height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 10px; font-size: 15px; color: var(--ink); text-decoration: none; background: none; }
.lang-pick .lang-list a:hover { background: var(--bg); }
.lang-pick .lang-list a[aria-current="true"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
@media (max-width: 760px) {
  .site-head .wrap { padding-left: 16px; padding-right: 16px; }
  .site-head .wrap { flex-wrap: wrap; }
  .site-head .logo { margin-right: auto; }
  .menu-btn { order: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 9999px; cursor: pointer; }
  .site-head .langs { order: 1; }
  .site-head nav { order: 3; display: none; width: 100%; flex-direction: column; gap: 2px; padding: 4px 0 8px; }
  .menu-toggle:checked ~ nav { display: flex; }
  .site-head nav a { height: 48px; font-size: 17px; padding: 0 12px; border-radius: 12px; }
  .site-head .install { display: none; }
}
