/* ================================================================
   NAV11 — Centered Split + Glossary Search + Auth + Dashboard
   One unified component for menus 11/12/13
   ================================================================ */
.nav11 {
    /* Scoped tokens — match menu.html mockup exactly on every page */
    --bg-card: #1a1612;
    --bg-deep: #0e0c08;
    --text-muted: #8a8070;
    --border-gold: rgba(212,175,55,.2);

    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-deep) 100%);
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 2px 12px rgba(0,0,0,.5);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    z-index: 1000;
}

/* TODO dropdown (admin) — positioned absolute top-left within nav11 */
.nav11 > .todo-dropdown {
    position: absolute;
    top: 6px;
    left: 1rem;
    z-index: 1001;
}
.nav11::after {
    content: ''; position: absolute; bottom: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,.2), transparent);
}

/* â”€â”€ Top bar â”€â”€ */
.nav11-main {
    display: flex; align-items: center; justify-content: center;
    height: 50px; padding: 0 2rem;
}
.nav11-links-left,
.nav11-links-right {
    display: flex; gap: 1.5rem; flex: 1;
}
.nav11-links-left { justify-content: flex-end; padding-right: 1.8rem; }
.nav11-links-right { justify-content: flex-start; padding-left: 1.8rem; }

/* â”€â”€ Brand â”€â”€ */
.nav11 .brand {
    font-family: var(--font-title); font-size: 1.25rem; font-weight: 700;
    color: var(--gold); display: flex; align-items: center; gap: .4rem;
    flex-shrink: 0; text-decoration: none;
}
.nav11 .brand:hover { color: var(--gold-light); }
.nav11 .brand .hex {
    width: 32px; height: 32px;
    background: linear-gradient(145deg, var(--gold), var(--gold-dark));
    clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
    display: flex; align-items: center; justify-content: center;
    position: relative; box-shadow: 0 0 10px rgba(212,175,55,.3);
    transition: box-shadow .3s;
}
.nav11 .brand:hover .hex {
    box-shadow: 0 0 20px rgba(212,175,55,.5);
}
.nav11 .brand .hex::before {
    content: ''; position: absolute; inset: 2px;
    background: var(--bg-deep);
    clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
}
.nav11 .brand .hex span {
    position: relative; z-index: 1; font-size: .7rem; font-weight: 700;
    color: var(--gold); text-shadow: 0 0 8px rgba(212,175,55,.4);
}

/* â”€â”€ Nav links â”€â”€ */
.nav11 .nlink {
    font-family: var(--font-title); font-size: .72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .1em; color: var(--text-sec);
    opacity: .8; transition: all .25s; position: relative; padding: .3rem 0;
    text-decoration: none; display: flex; align-items: center; gap: .35rem;
}
.nav11 .nlink:hover { color: var(--gold-light); opacity: 1; }
.nav11 .nlink::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0); transition: transform .25s;
}
.nav11 .nlink:hover::after { transform: scaleX(1); }

/* â”€â”€ Search bar row â”€â”€ */
.nav11-search-row {
    display: flex; justify-content: center; align-items: center;
    padding: .25rem 2rem .35rem;
    background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.2));
    border-top: 1px solid rgba(212,175,55,.06);
    position: relative;
}
.nav11-search-row::before,
.nav11-search-row::after {
    content: ''; flex: 1; height: 1px; max-width: 160px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,.15));
}
.nav11-search-row::after {
    background: linear-gradient(90deg, rgba(212,175,55,.15), transparent);
}

.nav11-searchbar {
    display: flex; align-items: center; gap: .7rem;
    width: 100%; max-width: 800px;
    padding: .35rem .9rem .35rem .65rem;
    border-radius: 8px;
    border: 1px solid rgba(212,175,55,.12);
    background: rgba(14,12,8,.6);
    position: relative;
    transition: border-color .25s, box-shadow .25s;
    margin: 0 1rem;
}
.nav11-searchbar::before {
    content: ''; position: absolute; inset: -1px;
    border-radius: 7px;
    background: linear-gradient(135deg, rgba(212,175,55,.08), transparent 40%, transparent 60%, rgba(212,175,55,.08));
    z-index: -1;
    opacity: 0; transition: opacity .25s;
}
.nav11-searchbar:focus-within {
    border-color: rgba(212,175,55,.3);
    box-shadow: 0 0 16px rgba(212,175,55,.06), inset 0 1px 4px rgba(0,0,0,.3);
}
.nav11-searchbar:focus-within::before { opacity: 1; }

.nav11-searchbar .search-icon-wrap {
    width: 22px; height: 22px; border-radius: 4px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(212,175,55,.08);
    border: 1px solid rgba(212,175,55,.1);
    transition: all .25s;
}
.nav11-searchbar:focus-within .search-icon-wrap {
    background: rgba(212,175,55,.14);
    border-color: rgba(212,175,55,.2);
}
.nav11-searchbar .search-icon-wrap i {
    color: var(--gold-dark); font-size: .7rem;
    transition: color .25s;
}
.nav11-searchbar:focus-within .search-icon-wrap i { color: var(--gold); }

.nav11-searchbar input {
    flex: 1; border: none; outline: none; background: transparent;
    color: var(--text); font-size: .78rem; min-width: 120px;
    font-family: var(--font-title); font-weight: 400;
    letter-spacing: .02em;
}
.nav11-searchbar input::placeholder {
    color: var(--text-muted); font-style: italic;
    font-family: var(--font-body); letter-spacing: 0;
}
.nav11-searchbar .search-label {
    font-family: var(--font-title); font-size: .65rem;
    text-transform: uppercase; letter-spacing: .1em;
    color: rgba(212,175,55,.3); flex-shrink: 0;
    border-left: 1px solid rgba(212,175,55,.08);
    padding-left: .5rem;
    line-height: 1;
}

/* â”€â”€ Search dropdown results â”€â”€ */
.nav11-search-dropdown {
    position: absolute;
    top: calc(100% + .5rem); left: 0; right: 0;
    background: var(--bg-card);
    border: 1px solid rgba(212,175,55,.15);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.2);
    overflow: hidden; z-index: 1200;
}
.nav11-search-dropdown::before {
    content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
    width: 12px; height: 12px; rotate: 45deg;
    background: var(--bg-card);
    border-left: 1px solid rgba(212,175,55,.15);
    border-top: 1px solid rgba(212,175,55,.15);
}

.nav11-search-dropdown .dropdown-header {
    padding: .45rem .8rem;
    font-family: var(--font-title); font-size: .6rem;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--gold-dark);
    background: rgba(0,0,0,.15);
    border-bottom: 1px solid rgba(212,175,55,.08);
}

/* Search results items */
.nav-search-results {
    max-height: 320px;
    overflow-y: auto;
}

.nav-search-item {
    display: flex; gap: .7rem; align-items: center;
    padding: .6rem .8rem;
    border-bottom: 1px solid rgba(255,255,255,.03);
    cursor: pointer; transition: all .15s;
    text-decoration: none; color: inherit;
}
.nav-search-item:last-of-type { border-bottom: none; }
.nav-search-item:hover {
    background: rgba(212,175,55,.05);
    padding-left: 1rem;
}
.nav-search-item .nav-search-item-icon {
    width: 30px; height: 30px; border-radius: 6px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(212,175,55,.07); color: var(--gold-muted); font-size: .75rem;
    border: 1px solid rgba(212,175,55,.06);
    transition: all .15s;
}
.nav-search-item:hover .nav-search-item-icon {
    color: var(--gold); background: rgba(212,175,55,.12);
    border-color: rgba(212,175,55,.15);
}
.nav-search-item .nav-search-item-title {
    font-family: var(--font-title); font-weight: 600; font-size: .8rem;
    color: var(--text);
}
.nav-search-item .nav-search-item-meta {
    font-size: .65rem; color: var(--text-muted); margin-top: .1rem;
    display: flex; align-items: center; gap: .4rem;
}

.nav-search-status {
    padding: .75rem .8rem;
    color: var(--text-muted); font-size: .8rem;
}
.nav-search-status.is-error {
    color: rgba(231, 76, 60, .95);
    background: rgba(231, 76, 60, .06);
}

.nav11-search-all {
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .6rem .8rem;
    background: rgba(0,0,0,.2); color: var(--gold-dark);
    font-family: var(--font-title); font-size: .72rem;
    letter-spacing: .03em;
    border-top: 1px solid rgba(212,175,55,.06);
    transition: all .2s; text-decoration: none;
}
.nav11-search-all i { font-size: .6rem; transition: transform .2s; }
.nav11-search-all:hover {
    background: rgba(212,175,55,.06); color: var(--gold-light);
}
.nav11-search-all:hover i { transform: translateX(3px); }

/* â”€â”€ Account dropdown (shared 11/13) â”€â”€ */
.nav11-account {
    position: relative;
}
.nav11-account .account-trigger {
    font-family: var(--font-title); font-size: .78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .1em; color: var(--text-sec);
    opacity: .8; transition: all .25s; padding: .3rem 0;
    cursor: pointer; background: none; border: none;
    display: flex; align-items: center; gap: .35rem;
}
.nav11-account .account-trigger i.fa-chevron-down {
    font-size: .5rem; transition: transform .25s; color: var(--text-muted);
}
.nav11-account:hover .account-trigger,
.nav11-account.open .account-trigger { color: var(--gold-light); opacity: 1; }
.nav11-account.open .account-trigger i.fa-chevron-down { transform: rotate(180deg); }

.nav11-account-dd {
    display: none; position: absolute; top: calc(100% + .6rem); right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid rgba(212,175,55,.15);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    overflow: hidden; z-index: 1500;
}
.nav11-account-dd::before {
    content: ''; position: absolute; top: -5px; right: 16px;
    width: 10px; height: 10px; rotate: 45deg;
    background: var(--bg-card);
    border-left: 1px solid rgba(212,175,55,.15);
    border-top: 1px solid rgba(212,175,55,.15);
}
.nav11-account.open .nav11-account-dd { display: block; }
.nav11-account-dd .dd-user {
    padding: .7rem .8rem; border-bottom: 1px solid rgba(212,175,55,.08);
    display: flex; align-items: center; gap: .6rem;
}
.nav11-account-dd .dd-user .avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(212,175,55,.1); border: 1px solid rgba(212,175,55,.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: .8rem;
}
.nav11-account-dd .dd-user .uname {
    font-family: var(--font-title); font-size: .8rem; font-weight: 600; color: var(--text);
}
.nav11-account-dd .dd-user .urole {
    font-size: .6rem; color: var(--text-muted);
}
.nav11-account-dd .dd-link {
    display: flex; align-items: center; gap: .6rem;
    padding: .55rem .8rem; color: var(--text-sec);
    font-size: .78rem; transition: all .15s; cursor: pointer;
    text-decoration: none;
}
.nav11-account-dd .dd-link i { width: 16px; text-align: center; color: var(--gold-muted); font-size: .7rem; }
.nav11-account-dd .dd-link:hover {
    background: rgba(212,175,55,.05); color: var(--gold-light);
}
.nav11-account-dd .dd-link:hover i { color: var(--gold); }
.nav11-account-dd .dd-sep {
    height: 1px; margin: .2rem .6rem;
    background: rgba(212,175,55,.06);
}
.nav11-account-dd .dd-link.danger { color: #c0392b; }
.nav11-account-dd .dd-link.danger i { color: #c0392b; }
.nav11-account-dd .dd-link.danger:hover {
    background: rgba(192,57,43,.06); color: #e74c3c;
}
.nav11-account-dd .dd-link.danger:hover i { color: #e74c3c; }

/* -- #12 Non-connecte: auth buttons as nav links -- */
.nav12-auth-link {
    font-family: var(--font-title); font-size: .78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .1em;
    padding: .3rem 0; transition: all .25s;
    display: flex; align-items: center; gap: .35rem;
    text-decoration: none;
}
.nav12-auth-link.login {
    color: var(--text-sec); opacity: .8;
    margin-right: 1.8rem;
}
.nav12-auth-link.login:hover { color: var(--gold-light); opacity: 1; }
.nav12-auth-link.register {
    color: var(--gold);
    margin-left: 1.8rem;
    position: relative;
}
.nav12-auth-link.register:hover { color: var(--gold-light); }
.nav12-auth-link.register::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0); transition: transform .25s;
}
.nav12-auth-link.register:hover::after { transform: scaleX(1); }

/* â”€â”€ #12 Auth Modals â”€â”€ */
.auth12-overlay {
    /* Scoped tokens — match menu.html mockup exactly */
    --text-muted: #8a8070;

    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(212,175,55,.06) 0%, transparent 60%),
        rgba(0,0,0,.88);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    opacity: 0; visibility: hidden;
    transition: opacity .35s, visibility .35s;
}
.auth12-overlay.active { opacity: 1; visibility: visible; }

.auth12-modal {
    position: relative;
    width: 92%; max-width: 400px;
    background: linear-gradient(160deg, #1e1b14 0%, #141210 100%);
    border: 1px solid rgba(212,175,55,.18);
    border-radius: 16px;
    padding: 2.2rem 2rem 1.8rem;
    box-shadow:
        0 30px 80px rgba(0,0,0,.6),
        0 0 0 1px rgba(0,0,0,.3),
        inset 0 1px 0 rgba(255,255,255,.04);
    transform: translateY(20px) scale(.96);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.auth12-overlay.active .auth12-modal {
    transform: translateY(0) scale(1);
}

.auth12-modal::before {
    content: ''; position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 50%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
}

.auth12-close {
    position: absolute; top: .8rem; right: .8rem;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
    color: var(--text-muted); font-size: .85rem;
    cursor: pointer; transition: all .2s;
}
.auth12-close:hover {
    background: rgba(212,175,55,.12); border-color: rgba(212,175,55,.25);
    color: var(--gold);
}

.auth12-header { text-align: center; margin-bottom: 1.6rem; }
.auth12-icon {
    width: 56px; height: 56px; margin: 0 auto .8rem;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle, rgba(212,175,55,.1) 0%, transparent 70%);
    border-radius: 50%; border: 1px solid rgba(212,175,55,.08);
}
.auth12-icon i {
    font-size: 1.5rem; color: var(--gold);
    text-shadow: 0 0 18px rgba(212,175,55,.3);
}
.auth12-header h2 {
    font-family: var(--font-title); font-size: 1.4rem; font-weight: 700;
    color: var(--text); margin: 0 0 .2rem; letter-spacing: .02em;
}
.auth12-header p {
    font-size: .78rem; color: var(--text-muted); margin: 0;
    letter-spacing: .04em; font-style: italic;
}

.auth12-form { display: flex; flex-direction: column; gap: .85rem; }

.auth12-field {
    position: relative; display: flex; align-items: center;
}
.auth12-field i.field-icon {
    position: absolute; left: .85rem;
    color: rgba(255,255,255,.2); font-size: .8rem;
    transition: color .2s; pointer-events: none;
}
.auth12-field input {
    width: 100%; padding: .7rem .85rem .7rem 2.5rem;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px; color: var(--text);
    font-size: .85rem; font-family: inherit;
    transition: all .2s;
}
.auth12-field input::placeholder { color: rgba(255,255,255,.25); }
.auth12-field input:focus {
    outline: none; border-color: var(--gold);
    background: rgba(0,0,0,.45);
    box-shadow: 0 0 0 3px rgba(212,175,55,.08);
}
.auth12-field:focus-within i.field-icon { color: var(--gold); }

.auth12-field .toggle-pw {
    position: absolute; right: .7rem;
    background: none; border: none;
    color: rgba(255,255,255,.2); font-size: .75rem;
    cursor: pointer; transition: color .2s;
}
.auth12-field .toggle-pw:hover { color: var(--gold-light); }

.auth12-check {
    display: flex; align-items: center; gap: .5rem;
    padding: .15rem 0;
}
.auth12-check input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: var(--gold);
    cursor: pointer; flex-shrink: 0;
}
.auth12-check label {
    font-size: .78rem; color: var(--text-muted); cursor: pointer;
}

.auth12-check.important {
    background: rgba(212,175,55,.04);
    border: 1px solid rgba(212,175,55,.1);
    border-radius: 8px; padding: .6rem .7rem;
    margin-top: .2rem;
}
.auth12-check.important label { color: var(--text-sec); line-height: 1.35; }
.auth12-check.important label i { color: var(--gold-muted); margin-right: .2rem; }

.auth12-submit {
    display: flex; align-items: center; justify-content: center;
    gap: .5rem; width: 100%; padding: .75rem;
    margin-top: .3rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none; border-radius: 8px;
    color: #1a1612; font-family: var(--font-title);
    font-size: .88rem; font-weight: 700; letter-spacing: .03em;
    cursor: pointer; transition: all .25s;
    box-shadow: 0 4px 16px rgba(212,175,55,.18);
}
.auth12-submit:hover {
    background: linear-gradient(135deg, #e0bc4a 0%, #b8993a 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212,175,55,.28);
}
.auth12-submit:active { transform: translateY(0); }
.auth12-submit i { font-size: .85rem; }

.auth12-forgot {
    text-align: center; margin-top: .5rem;
}
.auth12-forgot a {
    font-size: .75rem; color: var(--gold-muted);
    text-decoration: none; transition: color .2s;
}
.auth12-forgot a:hover { color: var(--gold-light); text-decoration: underline; }

.auth12-switch {
    text-align: center; margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.05);
    font-size: .8rem; color: var(--text-muted);
}
.auth12-switch a {
    color: var(--gold); text-decoration: none;
    font-weight: 600; margin-left: .2rem;
    transition: color .2s;
}
.auth12-switch a:hover { color: var(--gold-light); text-decoration: underline; }

.auth12-divider {
    display: flex; align-items: center; gap: .7rem;
    margin: .3rem 0;
    font-size: .7rem; color: rgba(255,255,255,.18);
    text-transform: uppercase; letter-spacing: .1em;
}
.auth12-divider::before, .auth12-divider::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,.1), transparent);
}

/* Auth alert errors/success */
.auth12-modal .alert {
    padding: .8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}
.auth12-modal .alert p {
    margin: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: .8rem;
}
.auth12-modal .alert-error {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}
.auth12-modal .alert-success {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

/* â”€â”€ #13 Dashboard icon-button flush right on main row â”€â”€ */
.nav13-main-wrap {
    position: relative;
}
.nav13-dash-btn {
    position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 6px; flex-shrink: 0;
    background: rgba(212,175,55,.06);
    border: 1px solid rgba(212,175,55,.1);
    color: var(--gold-muted); font-size: .8rem;
    cursor: pointer; transition: all .25s;
    text-decoration: none;
}
.nav13-dash-btn:hover {
    background: rgba(212,175,55,.12); border-color: rgba(212,175,55,.22);
    color: var(--gold); box-shadow: 0 0 8px rgba(212,175,55,.08);
}
.nav13-dash-btn .notif-dot,
.nav13-dash-btn .todo-badge {
    position: absolute; top: 5px; right: 5px;
    min-width: 6px; height: 6px; border-radius: 50%; background: #e74c3c;
    box-shadow: 0 0 4px rgba(231,76,60,.5);
    font-size: 0; padding: 0;
}

/* â”€â”€ Mobile burger toggle (hidden on desktop) â”€â”€ */
.nav11-burger {
    display: none; background: none; border: none;
    color: var(--gold-muted); font-size: 1.1rem;
    cursor: pointer; padding: .3rem; transition: color .2s;
}
.nav11-burger:hover { color: var(--gold); }
.nav11-mob-right { display: none; }

/* â”€â”€ Drawer (mobile only, hidden desktop) â”€â”€ */
.nav11-drawer-overlay { display: none; }
.nav11-drawer { display: none; }

/* Cacher la navbar en mode wizard */
.navbar-hidden,
.nav11.navbar-hidden {
    display: none !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESPONSIVE — Tablet (≤ 900px)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 900px) {
    .nav11-links-left,
    .nav11-links-right { gap: .8rem; }
    .nav11-links-left { padding-right: 1rem; }
    .nav11-links-right { padding-left: 1rem; }
    .nav11 .nlink { font-size: .65rem; letter-spacing: .06em; }
    .nav11 .nlink i { display: none; }
    .nav11-search-row { padding: .25rem 1rem .35rem; }
    .nav11-searchbar { margin: 0 .5rem; }
    .nav13-dash-btn { right: .6rem; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESPONSIVE — Mobile (≤ 768px)
   slide-in drawer from left, overlay backdrop
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 768px) {
    /* Hide desktop link rows */
    .nav11-links-left,
    .nav11-links-right { display: none !important; }
    .nav11-search-row { display: none !important; }

    /* Show mobile elements */
    .nav11-burger {
        display: flex; align-items: center; justify-content: center;
        background: none; border: none;
        width: 36px; height: 36px; border-radius: 8px;
        font-size: 1rem; color: var(--text-sec);
        cursor: pointer; transition: all .2s; flex-shrink: 0;
    }
    .nav11-burger:hover { background: rgba(212,175,55,.08); color: var(--gold); }
    .nav11-mob-right { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

    /* Top bar: burger | brand | right-action */
    .nav11-main {
        display: flex; align-items: center;
        height: 46px; padding: 0 .6rem;
        justify-content: space-between;
    }
    .nav11 .brand {
        font-size: .95rem; gap: .35rem;
        position: absolute; left: 50%; transform: translateX(-50%);
    }
    .nav11 .brand .hex { width: 26px; height: 26px; }
    .nav11 .brand .hex span { font-size: .6rem; }
    .nav11-main { position: relative; }

    /* â”€â”€ Overlay backdrop â”€â”€ */
    .nav11-drawer-overlay {
        display: block;
        position: fixed; inset: 0; z-index: 9998;
        background: rgba(0,0,0,.6);
        backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
        opacity: 0; visibility: hidden;
        transition: opacity .3s, visibility .3s;
    }
    .nav11-drawer-overlay.open { opacity: 1; visibility: visible; }

    /* â”€â”€ Slide-in drawer panel â”€â”€ */
    .nav11-drawer {
        display: flex; flex-direction: column;
        position: fixed; top: 0; left: 0; bottom: 0;
        width: 280px; max-width: 80vw; z-index: 9999;
        background: linear-gradient(180deg, #1a1612 0%, #0e0c08 100%);
        border-right: 1px solid rgba(212,175,55,.12);
        box-shadow: 4px 0 24px rgba(0,0,0,.5);
        transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.4,0,.2,1);
        overflow-y: auto; overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    .nav11-drawer.open { transform: translateX(0); }

    /* Drawer header */
    .nav11-drawer-head {
        display: flex; align-items: center; justify-content: space-between;
        padding: .8rem 1rem;
        border-bottom: 1px solid rgba(212,175,55,.1);
        background: rgba(0,0,0,.15);
        flex-shrink: 0;
    }
    .nav11-drawer-head .drawer-brand {
        font-family: var(--font-title); font-size: .9rem;
        font-weight: 700; color: var(--gold);
        display: flex; align-items: center; gap: .4rem;
    }
    .nav11-drawer-head .drawer-brand .hex {
        width: 24px; height: 24px;
        background: linear-gradient(145deg, var(--gold), var(--gold-dark));
        clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
        display: flex; align-items: center; justify-content: center;
        position: relative;
    }
    .nav11-drawer-head .drawer-brand .hex::before {
        content: ''; position: absolute; inset: 2px;
        background: var(--bg-deep);
        clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
    }
    .nav11-drawer-head .drawer-brand .hex span {
        position: relative; z-index: 1; font-size: .55rem;
        color: var(--gold);
    }
    .nav11-drawer-close {
        background: none; border: none;
        width: 30px; height: 30px; border-radius: 6px;
        display: flex; align-items: center; justify-content: center;
        color: var(--text-muted); font-size: .85rem;
        cursor: pointer; transition: all .2s;
    }
    .nav11-drawer-close:hover { background: rgba(212,175,55,.1); color: var(--gold); }

    /* Drawer user card */
    .nav11-drawer-user {
        display: flex; align-items: center; gap: .7rem;
        padding: .8rem 1rem;
        border-bottom: 1px solid rgba(212,175,55,.06);
        background: rgba(212,175,55,.02);
    }
    .nav11-drawer-user .d-avatar {
        width: 36px; height: 36px; border-radius: 50%;
        background: rgba(212,175,55,.1); border: 1px solid rgba(212,175,55,.15);
        display: flex; align-items: center; justify-content: center;
        color: var(--gold); font-size: .85rem; flex-shrink: 0;
    }
    .nav11-drawer-user .d-name {
        font-family: var(--font-title); font-size: .82rem;
        font-weight: 600; color: var(--text);
    }
    .nav11-drawer-user .d-role {
        font-size: .6rem; color: var(--text-muted);
    }

    /* Drawer search */
    .nav11-drawer-search {
        padding: .6rem .8rem;
        border-bottom: 1px solid rgba(212,175,55,.06);
        position: relative;
    }
    .nav11-drawer-search input {
        width: 100%; padding: .5rem .7rem .5rem 2rem;
        background: rgba(0,0,0,.3);
        border: 1px solid rgba(255,255,255,.06);
        border-radius: 6px; color: var(--text);
        font-size: .78rem; font-family: var(--font-title);
    }
    .nav11-drawer-search input::placeholder { color: var(--text-muted); font-style: italic; }
    .nav11-drawer-search input:focus {
        outline: none; border-color: rgba(212,175,55,.3);
        box-shadow: 0 0 0 2px rgba(212,175,55,.06);
    }
    .nav11-drawer-search i {
        position: absolute; left: 1.4rem; top: 50%; transform: translateY(-50%);
        font-size: .65rem; color: var(--gold-muted); pointer-events: none;
    }

    /* Drawer section label */
    .nav11-drawer-label {
        padding: .5rem 1rem .25rem;
        font-family: var(--font-title); font-size: .55rem;
        text-transform: uppercase; letter-spacing: .12em;
        color: var(--gold-dark); opacity: .6;
    }

    /* Drawer nav items */
    .nav11-drawer .d-link {
        display: flex; align-items: center; gap: .7rem;
        padding: .65rem 1rem; color: var(--text-sec);
        font-size: .8rem; transition: all .15s;
        border-left: 3px solid transparent;
        text-decoration: none;
    }
    .nav11-drawer .d-link i {
        width: 18px; text-align: center;
        font-size: .7rem; color: var(--gold-muted);
        transition: color .15s;
    }
    .nav11-drawer .d-link:hover {
        background: rgba(212,175,55,.05);
        color: var(--gold-light);
        border-left-color: rgba(212,175,55,.25);
    }
    .nav11-drawer .d-link:hover i { color: var(--gold); }
    .nav11-drawer .d-link.danger { color: #c0392b; }
    .nav11-drawer .d-link.danger i { color: #c0392b; }
    .nav11-drawer .d-link.danger:hover {
        background: rgba(192,57,43,.05); color: #e74c3c;
        border-left-color: rgba(231,76,60,.3);
    }

    .nav11-drawer .d-sep {
        height: 1px; margin: .3rem 1rem;
        background: rgba(212,175,55,.06);
    }

    /* Drawer footer */
    .nav11-drawer-footer {
        margin-top: auto; padding: .6rem 1rem;
        border-top: 1px solid rgba(212,175,55,.06);
        font-size: .6rem; color: var(--text-muted); text-align: center;
    }

    /* â”€â”€ #12 mobile: compact top bar â”€â”€ */
    .nav11--guest .nav11-burger { display: none; }
    .nav11--guest .nav11-mob-right { display: none; }
    .nav12-main-mobile {
        display: flex; align-items: center;
        justify-content: space-between;
        padding: 0 .6rem;
    }
    .nav12-main-mobile .brand {
        position: absolute; left: 50%; transform: translateX(-50%);
    }
    .nav12-auth-link { font-size: .62rem; gap: .2rem; letter-spacing: .06em; }
    .nav12-auth-link i { font-size: .55rem; }
    .nav12-auth-link.register::after { display: none; }

    /* â”€â”€ #13 dashboard btn in mobile top bar â”€â”€ */
    .nav13-dash-desktop { display: none !important; }
    .nav13-dash-btn {
        position: static; transform: none;
        width: 30px; height: 30px; font-size: .7rem;
    }
    .nav13-dash-btn .notif-dot,
    .nav13-dash-btn .todo-badge { top: 3px; right: 3px; width: 5px; height: 5px; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESPONSIVE — Small mobile (≤ 480px)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 480px) {
    .nav11-main { height: 42px; padding: 0 .4rem; }
    .nav11 .brand { font-size: .85rem; }
    .nav11 .brand .hex { width: 22px; height: 22px; }
    .nav11-burger { width: 32px; height: 32px; font-size: .9rem; }
    .nav11-drawer { width: 260px; }

    /* Auth modals */
    .auth12-modal { padding: 1.5rem 1.1rem 1.3rem; border-radius: 12px; }
    .auth12-header { margin-bottom: 1.2rem; }
    .auth12-header h2 { font-size: 1.15rem; }
    .auth12-header p { font-size: .7rem; }
    .auth12-icon { width: 44px; height: 44px; margin-bottom: .6rem; }
    .auth12-icon i { font-size: 1.1rem; }
    .auth12-field input { font-size: .78rem; padding: .55rem .7rem .55rem 2.1rem; }
    .auth12-field i.field-icon { font-size: .7rem; left: .7rem; }
    .auth12-submit { font-size: .8rem; padding: .6rem; }
    .auth12-check label { font-size: .72rem; }
    .auth12-switch { font-size: .72rem; margin-top: 1rem; padding-top: .8rem; }
    .auth12-forgot a { font-size: .68rem; }
    .nav12-auth-link { font-size: .56rem; }
}

/* ============================================
   WIZARD MODE - Menu intégré
   ============================================ */

/* Cacher la navbar en mode wizard */
.navbar-hidden {
    display: none !important;
}

/* Menu intégré dans le breadcrumb */
.wizard-menu {
    position: relative;
}

.btn-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%);
    border: 2px solid #d4af37;
    border-radius: 25px;
    padding: 0.4rem 1rem 0.4rem 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #d4af37;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.85rem;
}

.btn-menu:hover {
    background: linear-gradient(145deg, #3d3d3d 0%, #2a2a2a 100%);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.menu-d20 {
    width: 28px;
    height: 28px;
    background: linear-gradient(145deg, #d4af37 0%, #8b7023 50%, #d4af37 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.menu-d20::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 100%);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.menu-d20 .d20-number {
    position: relative;
    z-index: 1;
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #d4af37;
}

.menu-label {
    letter-spacing: 0.5px;
}

/* Dropdown du menu wizard */
.wizard-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
    border: 1px solid #d4af37;
    border-radius: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
    overflow: hidden;
    z-index: 10000;
}

.wizard-menu.active .wizard-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wizard-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: #e0e0e0;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.wizard-menu-item:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
}

.wizard-menu-item i {
    width: 20px;
    text-align: center;
    color: #d4af37;
    font-size: 0.85rem;
}

.wizard-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    margin: 0.25rem 0;
}

.wizard-menu-quit {
    color: #e74c3c;
}

.wizard-menu-quit:hover {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.wizard-menu-quit i {
    color: #e74c3c;
}
}

