/*
 * Menu mobile des pages publiques.
 *
 * Sous 900 px les repères de la barre disparaissaient sans rien pour les
 * remplacer : depuis un téléphone, aucune section n'était atteignable. Ce
 * panneau les rétablit. Feuille partagée par la landing et les cinq pages
 * secondaires, qui portent la même barre.
 *
 * Les cibles tactiles passent toutes à 44 px de hauteur minimum, la valeur
 * recommandée. On les agrandit par le rembourrage, jamais par la taille de
 * police : l'échelle typographique de la page ne bouge pas.
 */

/* ── Le bouton, visible seulement quand les repères disparaissent ────── */
.nav-burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  padding: 0; border: 0; cursor: pointer;
  background: none;
  color: var(--text-dim);
  transition: color .16s var(--ease);
}
.nav-burger:hover { color: var(--text); }
.nav-burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r8); }
.nav-burger span {
  position: absolute; left: 12px;
  width: 20px; height: 1.5px; border-radius: 1px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .16s var(--ease);
}
.nav-burger span:nth-child(1) { top: 18px; }
.nav-burger span:nth-child(2) { top: 25px; }
.nav-burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded='true'] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ── Le panneau ─────────────────────────────────────────────────────── */
.nav-mobile {
  position: fixed; inset: 64px 0 0; z-index: 90;
  display: none;
  padding: 8px 24px 32px;
  background: var(--ground);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-mobile[data-ouvert='true'] { display: block; }
.nav-mobile a {
  display: flex; align-items: center;
  min-height: 52px; padding: 4px 0;
  border-bottom: 1px solid var(--border-1);
  font-size: 1.0625rem; font-weight: 510; letter-spacing: -.012em;
  color: var(--text-dim); text-decoration: none;
  transition: color .16s var(--ease);
}
.nav-mobile a:hover, .nav-mobile a:focus-visible { color: var(--text); }
.nav-mobile-act {
  display: grid; gap: 10px; margin-top: 26px;
}
.nav-mobile-act a {
  justify-content: center; min-height: 48px;
  border-bottom: 0; border-radius: var(--r8);
  font-size: .9375rem; font-weight: 590;
}
.nav-mobile-act .nav-mobile-cta {
  background: var(--accent); color: #08130e;
  box-shadow:
    inset 0 1px 0 #ffffff45,
    var(--shadow-stack),
    0 4px 20px rgba(62, 207, 142, .14);
}
.nav-mobile-act .nav-mobile-log {
  color: var(--text-dim); font-weight: 510;
  box-shadow: inset 0 0 0 1px var(--border-1);
}

/* Le corps ne défile plus derrière le panneau ouvert. */
body[data-menu='ouvert'] { overflow: hidden; }

@media (max-width: 900px) {
  .nav-burger { display: block; }
  /* Les deux actions restent dans le panneau, la barre ne garde que la
     marque et le bouton : à 320 px, trois éléments ne tenaient pas. */
  .nav-right { display: none; }
}

/* ── Cibles tactiles, toutes pages ──────────────────────────────────── */
@media (max-width: 900px) {
  .nav .mark { min-height: 44px; }
  .fo-l { padding: 9px 0; margin-bottom: 2px; }
  .fo-bas a, .au-pied a, .rp-pied a, .nf-pied a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-burger span { transition: none; }
}
