/* nav.css — nouvelle navigation (audit Jack, 22/11/2026, chap. 8.6).
   Palette A « Bouclier néon ». Les polices Space Grotesk / Inter
   retomberont sur les polices système tant qu'elles ne sont pas
   hébergées localement. */
.hdr,.sheet{--bg:#070B1F;--surface:#111A36;--line:#22305A;--text:#E8EEF9;--muted:#9AA7C2;--brand:#34D399;--on-brand:#04121F}
.hdr{position:sticky;top:0;z-index:50;height:60px;display:flex;align-items:center;gap:10px;padding:0 16px;background:rgba(7,11,31,.92);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;margin-right:auto;color:var(--text);text-decoration:none}
.brand{min-width:0}.brand-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lang-btn,.menu-btn{flex:none}
.brand img{border-radius:9px}.brand-name{font:700 18px "Space Grotesk",Inter,system-ui,sans-serif}
.nav-desktop{display:none}
.lang-btn,.menu-btn{height:44px;min-width:44px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text);font:600 15px Inter,system-ui,sans-serif;display:inline-flex;align-items:center;gap:8px;padding:0 14px;white-space:nowrap;cursor:pointer}
.menu-btn{background:var(--brand);color:var(--on-brand);border-color:transparent}
.burger{width:18px;height:12px;position:relative;display:inline-block}.burger::before,.burger::after,.burger i{content:"";position:absolute;left:0;right:0;height:2px;background:currentColor;border-radius:2px}
.burger::before{top:0}.burger i{top:5px}.burger::after{bottom:0}
.scrim{position:fixed;inset:0;background:rgba(2,6,20,.6);z-index:60}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:70;background:var(--surface);color:var(--text);border-radius:24px 24px 0 0;padding:10px 18px calc(22px + env(safe-area-inset-bottom));max-height:88vh;overflow:auto;animation:up .22s ease}
@keyframes up{from{transform:translateY(100%)}to{transform:none}}
@media (prefers-reduced-motion:reduce){.sheet{animation:none}}
.grab{width:44px;height:5px;border-radius:9px;background:var(--line);margin:4px auto 14px}
.sheet h4{margin:14px 4px 6px;font:700 12px Inter,system-ui,sans-serif;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted)}
.tile{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;min-height:48px;color:var(--text);text-decoration:none;font-weight:600}
.tile:hover,.tile:focus-visible,.tile[aria-current=page]{background:rgba(52,211,153,.12)}
.tile small{display:block;color:var(--muted);font-weight:400;font-size:13px}
.ico{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(52,211,153,.16);flex:none}
.sheet .tile-logo{width:34px;height:34px;border-radius:10px;object-fit:cover;flex:none}
.g2{display:grid;grid-template-columns:1fr 1fr;gap:2px}
.seg{display:flex;background:var(--bg);border:1px solid var(--line);border-radius:999px;padding:4px;margin:16px 0 12px}
.seg button{flex:1;height:40px;border:0;border-radius:999px;background:transparent;color:var(--text);font:600 15px Inter,system-ui,sans-serif;cursor:pointer}
.seg button[aria-pressed=true]{background:var(--brand);color:var(--on-brand)}
.cta{display:flex;justify-content:center;align-items:center;height:52px;border-radius:14px;background:var(--brand);color:var(--on-brand);font:700 16px Inter,system-ui,sans-serif;text-decoration:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid #22D3EE;outline-offset:2px}
@media (min-width:1024px){
  .hdr{height:72px;padding:0 48px}
  .nav-desktop{display:none}
  .nav-desktop a,.dd-btn{padding:10px 14px;border-radius:10px;font:600 15px Inter,system-ui,sans-serif;color:var(--muted);background:none;border:0;text-decoration:none;cursor:pointer}
  .nav-desktop a:hover,.dd-btn[aria-expanded=true]{color:var(--text);background:var(--surface)}
  .sheet{left:auto;right:48px;top:80px;bottom:auto;width:440px;border-radius:18px;animation:none}
}
