
        /* ── Wrapper fixed ── */
        .nb-wrap {
          position: fixed; top: 0; left: 0; right: 0;
          z-index: 1000; padding: 14px 20px; pointer-events: none;
        }

        /* ── Nav pill ── */
        /* Refonte 2026-08 : capsule flottante en verre depoli, comme les cartes du theme. */
        .nb-nav {
          pointer-events: all;
          max-width: 1180px; margin: 0 auto;
          display: flex; align-items: center; height: 60px;
          padding: 0 10px 0 22px; border-radius: 999px;
          border: 1px solid rgba(255,255,255,.09);
          background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.012)), rgba(12,12,17,.72);
          backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
          box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 18px 44px rgba(0,0,0,.5);
          transition: background .3s cubic-bezier(.22,.61,.36,1), border-color .3s, box-shadow .3s;
        }
        .nb-nav--scrolled {
          background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)), rgba(10,10,14,.9);
          border-color: rgba(255,255,255,.14);
          box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 20px 50px rgba(0,0,0,.65);
        }

        /* ── Logo ── */
        .nb-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
        .nb-logo-text {
          font-size: 1.06rem; font-weight: 600; letter-spacing: -.03em; line-height: 1;
          background: linear-gradient(135deg, #fff 20%, #777 110%);
          -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        }

        /* ── Desktop nav links ── */
        .nb-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
        .nb-link {
          display: inline-flex; align-items: center;
          padding: 6px 12px; border-radius: 8px;
          font-size: .82rem; font-weight: 500;
          color: rgba(255,255,255,.45); text-decoration: none;
          transition: color .15s, background .15s; white-space: nowrap;
        }
        .nb-link:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.06); }
        .nb-link--active { color: #fff !important; background: rgba(255,255,255,.09); }

        /* ── Right ── */
        .nb-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
        .nb-icon {
          position: relative; width: 34px; height: 34px;
          display: flex; align-items: center; justify-content: center;
          border-radius: 9px; background: transparent; border: none;
          color: rgba(255,255,255,.4); font-size: .88rem; cursor: pointer;
          transition: color .15s, background .15s;
        }
        .nb-icon:hover { color: #fff; background: rgba(255,255,255,.08); }
        .nb-icon--rel { position: relative; }
        .nb-badge {
          position: absolute; top: 2px; right: 2px;
          min-width: 14px; height: 14px; padding: 0 3px; border-radius: 99px;
          background: rgba(255,255,255,0.92); color: #000; font-size: .58rem; font-weight: 700;
          display: flex; align-items: center; justify-content: center;
          animation: nb-pulse 2s infinite;
        }
        @keyframes nb-pulse {
          0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
          70%  { box-shadow: 0 0 0 5px rgba(255,255,255,0); }
          100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
        }
        .nb-login { padding: 6px 13px; border-radius: 8px; font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.5); text-decoration: none; transition: color .15s; }
        .nb-login:hover { color: #fff; }
        /* Le CTA herite du verre liquide partage (voir theme-beta-legacy.css).
           Ici on ne garde que sa geometrie. */
        .nb-logout {
          padding: 9px 20px;
          border-radius: 999px;
          font-size: .82rem;
          font-weight: 600;
          letter-spacing: -.012em;
          cursor: pointer;
          text-decoration: none;
          display: inline-flex; align-items: center; gap: 6px;
          white-space: nowrap;
        }

        /* ── Mobile right (in topbar) ── */
        .nb-mobile-right { display: none; align-items: center; gap: 4px; margin-left: auto; }

        /* ── Burger (3 lines) ── */
        .nb-burger {
          width: 36px; height: 36px; border-radius: 9px;
          background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
          display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
          cursor: pointer; padding: 0; transition: background .15s;
        }
        .nb-burger:hover { background: rgba(255,255,255,.12); }
        .nb-burger-line {
          width: 14px; height: 1.5px; background: rgba(255,255,255,.75); border-radius: 2px;
          transition: transform .2s, opacity .2s;
        }
        .nb-burger-line--open:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
        .nb-burger-line--open:nth-child(2) { opacity: 0; }
        .nb-burger-line--open:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

        /* ── Drawer backdrop ── */
        .nb-drawer-backdrop {
          position: fixed; inset: 0; z-index: 1099;
          background: rgba(0,0,0,.5);
          opacity: 0; pointer-events: none; transition: opacity .25s, visibility .25s;
          visibility: hidden;
        }
        .nb-drawer-backdrop--open { opacity: 1; pointer-events: all; visibility: visible; }

        /* ── Drawer panel ── */
        .nb-drawer {
          position: fixed; top: 0; right: 0; bottom: 0; z-index: 1100;
          width: min(330px, 90vw);
          /* memes matieres que les cartes du site : nappe claire en haut qui s'eteint,
             au lieu du #0a0a0a plat qui faisait tache a cote du reste */
          background: linear-gradient(168deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.012) 40%, rgba(255,255,255,.004) 100%), #0a0a0e;
          border-left: 1px solid rgba(255,255,255,.1);
          display: flex; flex-direction: column;
          transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
          box-shadow: -16px 0 48px rgba(0,0,0,.6);
          overflow-y: auto;
        }
        .nb-drawer--open { transform: translateX(0); }

        /* Header */
        .nb-drawer-hdr {
          display: flex; align-items: center; gap: 10px;
          padding: 16px 14px; border-bottom: 1px solid rgba(255,255,255,.07); flex-shrink: 0;
        }
        /* Les actions de compte occupent la place la plus accessible du pouce, en haut
           du tiroir. Le nom du site descend en pied : il est deja affiche dans la barre
           juste derriere, le repeter ici n'apprenait rien. */
        .nb-drawer-auth { display: flex; gap: 8px; flex: 1; min-width: 0; }
        .nb-drawer-auth-btn {
          flex: 1; min-width: 0;
          display: inline-flex; align-items: center; justify-content: center;
          height: 42px; padding: 0 10px; border-radius: 999px;
          border: 1px solid rgba(255,255,255,.14);
          background: rgba(255,255,255,.05);
          color: rgba(255,255,255,.82);
          font-size: .82rem; font-weight: 600; text-decoration: none;
          white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
          transition: background .25s ease, border-color .25s ease, color .25s ease;
        }
        .nb-drawer-auth-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
        .nb-drawer-auth-btn--primary {
          background: #fff; border-color: #fff; color: #08080b;
          box-shadow: 0 8px 22px rgba(0,0,0,.45), 0 0 20px rgba(255,255,255,.12);
        }
        .nb-drawer-auth-btn--primary:hover { background: #f0f0f2; color: #08080b; }
        .nb-drawer-user { flex: 1; }
        .nb-drawer-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
        .nb-drawer-avatar {
          width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
          background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
          display: flex; align-items: center; justify-content: center;
          color: rgba(255,255,255,.4); font-size: .9rem; overflow: hidden;
        }
        .nb-drawer-userinfo { min-width: 0; }
        .nb-drawer-username { font-size: .9rem; font-weight: 650; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .nb-drawer-email { font-size: .72rem; color: rgba(255,255,255,.3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .nb-drawer-logo { font-size: 1.1rem; font-weight: 750; color: #fff; letter-spacing: -.02em; }
        .nb-drawer-close {
          width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
          background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09);
          color: rgba(255,255,255,.5); font-size: .78rem; cursor: pointer;
          display: flex; align-items: center; justify-content: center; transition: background .12s;
        }
        .nb-drawer-close:hover { background: rgba(255,255,255,.12); color: #fff; }

        /* Sections */
        .nb-drawer-section { padding: 12px 10px 4px; }
        .nb-drawer-section-label {
          font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .7px;
          color: rgba(255,255,255,.22); padding: 0 8px 8px;
        }
        .nb-drawer-link {
          display: flex; align-items: center; gap: 12px;
          width: 100%; padding: 12px 12px; border-radius: 10px;
          font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.55);
          text-decoration: none; background: none; border: none; cursor: pointer;
          transition: color .12s, background .12s; text-align: left;
          position: relative;
        }
        .nb-drawer-link:hover { color: #fff; background: rgba(255,255,255,.06); }
        .nb-drawer-link--active { color: #fff; background: rgba(255,255,255,.08); }
        .nb-drawer-link--rel { position: relative; }
        .nb-drawer-link-icon { width: 16px; text-align: center; color: rgba(255,255,255,.3); font-size: .82rem; flex-shrink: 0; }
        .nb-drawer-badge {
          margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
          border-radius: 99px; background: rgba(255,255,255,0.92); color: #000;
          font-size: .62rem; font-weight: 700;
          display: flex; align-items: center; justify-content: center;
        }

        /* Footer */
        .nb-drawer-footer {
          margin-top: auto; padding: 14px 16px 18px;
          border-top: 1px solid rgba(255,255,255,.07); flex-shrink: 0;
          display: flex; flex-direction: column; gap: 12px;
        }
        /* la marque en signature de bas de tiroir */
        .nb-drawer-brand { display: flex; flex-direction: column; gap: 2px; }
        .nb-drawer-brand-name {
          font-size: 1.05rem; font-weight: 750; letter-spacing: -.025em; color: #fff;
        }
        .nb-drawer-brand-sub {
          font-size: .66rem; letter-spacing: .04em; color: rgba(255,255,255,.32);
        }
        .nb-drawer-logout {
          display: flex; align-items: center; justify-content: center; gap: 8px;
          width: 100%; padding: 12px; border-radius: 10px;
          background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
          color: rgba(255,255,255,.7); font-size: .85rem; font-weight: 600;
          cursor: pointer; transition: background .12s, color .12s;
        }
        .nb-drawer-logout:hover { background: rgba(255,255,255,.12); color: #fff; }

        /* ── Mirror badge (desktop) ── */
        .nb-mirror-badge {
          display: inline-flex; align-items: center; gap: 5px;
          margin-left: 8px; padding: 3px 9px; border-radius: 99px;
          font-size: .68rem; font-weight: 600; letter-spacing: .01em;
          color: rgba(255,255,255,.35); text-decoration: none;
          border: 1px solid rgba(255,255,255,.1);
          background: rgba(255,255,255,.04);
          transition: color .15s, background .15s, border-color .15s;
          flex-shrink: 0; white-space: nowrap;
        }
        .nb-mirror-badge:hover {
          color: rgba(255,255,255,.75); background: rgba(255,255,255,.08);
          border-color: rgba(255,255,255,.18);
        }
        /* ── Mirror link (mobile drawer) ── */
        .nb-drawer-mirror {
          display: flex; align-items: center; gap: 8px; justify-content: center;
          margin-bottom: 10px; padding: 9px 12px; border-radius: 10px;
          font-size: .78rem; color: rgba(255,255,255,.35);
          background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
          text-decoration: none; transition: color .12s, background .12s;
        }
        .nb-drawer-mirror:hover { color: rgba(255,255,255,.65); background: rgba(255,255,255,.07); }
        .nb-drawer-mirror strong { color: rgba(255,255,255,.55); font-weight: 600; }

        /* ── Responsive ── */
        .nb-desktop { display: flex !important; }
        .nb-mobile-only { display: none !important; }

        @media (max-width: 900px) {
          .nb-desktop  { display: none !important; }
          .nb-mobile-only { display: flex !important; }
          .nb-wrap { padding: 8px 12px; }
          .nb-nav { padding: 0 14px; height: 50px; border-radius: 12px; }
        }
      