/* Mobile menu of the marketing site header. Shared by the home page, the blog and the manifesto.
   The button and the panel are built by nav-menu.js from the .navLinks / .btnGhost links already in the
   header, so each page only declares its links once. data-bp on .nav is the width at which the page's own
   header shows the links inline (1180 on the home page, 900 on the blog and the manifesto). */
.navBurger { display: none; width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 12px; background: transparent; color: var(--burger-color, #fff); cursor: pointer; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.navBurger:hover { background: rgba(127, 127, 127, 0.14); }
.navBurger svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.navBurger .x { display: none; }
.navBurger[aria-expanded="true"] .bars { display: none; }
.navBurger[aria-expanded="true"] .x { display: block; }

.navPanel { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #123C69; border-top: 1px solid rgba(255, 255, 255, 0.12); border-radius: 0 0 20px 20px; box-shadow: 0 24px 40px -16px rgba(8, 25, 48, 0.55); padding: 8px clamp(16px, 4vw, 64px) 14px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s; }
.navPanel.open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s; }
.navPanel a { display: flex; align-items: center; min-height: 48px; padding: 0 4px; color: #fff; text-decoration: none; font-size: 1.05rem; font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.navPanel a:last-child { border-bottom: 0; }
.navPanel a:hover { color: var(--lime, #9BE10B); }
.navPanel a:focus-visible { outline: 3px solid var(--lime, #9BE10B); outline-offset: -3px; border-radius: 8px; }
.navPanel a[aria-current="page"] { color: var(--lime, #9BE10B); }
.navPanel a.btnGhost { display: flex; border: 0; border-radius: 0; padding: 0 4px; background: none; font-size: 1.05rem; }
.navPanel a.btnGhost:hover { background: none; }

@media (prefers-reduced-motion: reduce) {
  .navPanel, .navPanel.open { transition: none; transform: none; }
}

/* Home page: links show inline from 1180px. The bar turns navy while the menu is open. */
@media (max-width: 1179px) {
  .nav[data-bp="1180"] .navBurger { display: inline-flex; }
  .nav[data-bp="1180"] .navPanel { display: block; }
  .nav[data-bp="1180"].menuOpen { background: #123C69; }
}
@media (min-width: 720px) {
  .nav[data-bp="1180"] .navPanel .btnGhost { display: none; } /* the bar still shows "Se connecter" here */
}
/* Blog and manifesto: links show inline from 900px. */
@media (max-width: 899px) {
  .nav[data-bp="900"] .navBurger { display: inline-flex; }
  .nav[data-bp="900"] .navPanel { display: block; }
}
/* Narrow phones: keep logo, button and burger on one line down to 320px. */
@media (max-width: 400px) {
  .nav[data-bp] .navIn { gap: 8px; }
  .nav[data-bp] .brand img { height: 24px; width: auto; }
  .nav[data-bp] .topActions { gap: 4px; }
  .nav[data-bp] .topActions .cta { padding: 10px 14px; }
}
