/* Navbar - Option A : Amélioration subtile */
.navbar {
    background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid #d4af37;
}

.nav-container {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0 1rem;
}

/* Zone gauche : TODO + Version */
.nav-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-right: 2rem;
}

/* Zone centrale : Brand + Links - pousse les liens à droite */
.nav-center {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
}

/* Badge de version */
.nav-version {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: system-ui, -apple-system, sans-serif;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #d4af37;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

.nav-brand:hover {
    color: #f0d68a;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.nav-brand:visited,
.nav-brand:active {
    color: #d4af37;
    text-decoration: none;
}

.brand-d20 {
    width: 36px;
    height: 36px;
    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;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.brand-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%);
}

.d20-number {
    position: relative;
    z-index: 1;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #d4af37;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.nav-brand:hover .brand-d20 {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transform: rotate(15deg);
}

.nav-brand:hover .d20-number {
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

.brand-icon {
    font-size: 1.8rem;
    color: #d4af37;
}

.brand-name {
    letter-spacing: 1px;
}

.navbar .nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
}

/* Navbar - Recherche Glossaire */
:root {
    --nav-height: var(--nav-height);
}

.nav-search {
    flex: 1;
    max-width: 520px;
    margin: 0 1.25rem;
    position: relative;
}

.nav-searchbar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-searchbar:focus-within {
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

.nav-searchbar i {
    color: rgba(212, 175, 55, 0.85);
    font-size: 0.95rem;
}

.nav-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: #e0e0e0;
    font-size: 0.9rem;
    min-width: 120px;
}

.nav-search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.nav-search-dropdown {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #2d2d2d 0%, #222 100%);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    z-index: 1200;
}

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

.nav-search-item,
.nav-search-status {
    display: flex;
    gap: 0.7rem;
    padding: 0.75rem 0.9rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
}

.nav-search-item:hover {
    background: rgba(212, 175, 55, 0.06);
}

.nav-search-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.10);
    color: rgba(212, 175, 55, 0.95);
    flex: 0 0 auto;
}

.nav-search-item-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
}

.nav-search-item-meta {
    margin-top: 0.15rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
}

.nav-search-status {
    color: rgba(255, 255, 255, 0.55);
}

.nav-search-status.is-error {
    color: rgba(231, 76, 60, 0.95);
    background: rgba(231, 76, 60, 0.06);
}

.nav-search-all {
    display: block;
    padding: 0.75rem 0.9rem;
    text-decoration: none;
    color: rgba(212, 175, 55, 0.95);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.18);
}

.nav-search-all:hover {
    background: rgba(212, 175, 55, 0.08);
    color: #f0d68a;
}

.navbar .nav-link {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.4rem 0;
    border-radius: 0;
    transition: color 0.2s ease, opacity 0.2s ease, background-size 0.2s ease;
    background-color: transparent;
    background-image: linear-gradient(90deg, transparent, #d4af37, transparent);
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 0% 2px;
    border: none;
    font-size: 0.9rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
    color: #f0d68a;
    opacity: 1;
    background-size: 100% 2px;
}

.navbar .nav-link:focus-visible {
    outline: none;
}

/* Dropdown */
.navbar .dropdown {
    position: relative;
}

.navbar .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.navbar .dropdown-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(212, 175, 55, 0.85);
    transition: transform 0.2s ease;
}

.navbar .dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.navbar .dropdown.active .dropdown-toggle {
    color: #f0d68a;
    opacity: 1;
    background-size: 100% 2px;
}

.navbar .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    background: rgba(26, 26, 26, 0.98);
    min-width: 200px;
    max-width: calc(100vw - 2rem);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
    border-radius: 8px;
    margin-top: 0.6rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    border: 1px solid rgba(212, 175, 55, 0.16);
    overflow: hidden;
    padding: 0.45rem 0.75rem;
}

.navbar .dropdown.align-right .dropdown-menu {
    left: auto;
    right: 0;
}

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

.navbar .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    color: #e0e0e0;
    text-decoration: none;
    text-align: left;
    padding: 0.55rem 0;
    transition: color 0.2s ease, background-size 0.2s ease, opacity 0.2s ease;
    background-color: transparent;
    background-image: linear-gradient(90deg, transparent, #d4af37, transparent);
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 0% 1px;
    border: none;
    font-size: 0.82rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

.navbar .dropdown-item i {
    color: #d4af37;
    opacity: 0.7;
    width: 16px;
    text-align: center;
}

.navbar .dropdown-item:hover {
    color: #f0d68a;
    opacity: 1;
    background-size: 100% 1px;
}

.navbar .dropdown-item:hover i {
    opacity: 1;
}

.navbar .dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.18), transparent);
    margin: 0.4rem 0;
}

/* Style pour liens désactivés */
.navbar .dropdown-item.disabled {
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
    background-image: none;
}

.navbar .dropdown-item.disabled:hover {
    background: none;
    color: #666;
}

.navbar .dropdown-item.disabled i {
    color: #555;
    opacity: 0.5;
}

.badge-soon {
    font-size: 0.65rem;
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    margin-left: auto;
    font-family: system-ui, -apple-system, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-vip {
    font-size: 0.6rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(155, 89, 182, 0.2));
    color: #3498db;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    margin-left: auto;
    font-family: system-ui, -apple-system, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* Style rouge pour déconnexion */
.navbar .dropdown-item-danger {
    color: #e74c3c;
    background-image: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.9), transparent);
}

.navbar .dropdown-item-danger:hover {
    color: #e74c3c;
    background-size: 100% 1px;
}

.navbar .dropdown-item-danger i {
    color: #e74c3c;
}

/* Navbar Toggle (Burger) */
:root {
    --nav-height: var(--nav-height);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: #e0e0e0;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animation burger -> X */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Modal Generic */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #2d2d2d;
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #3d3d3d;
}

.modal-header h2 {
    color: #f0c674;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #f0c674;
}

.modal-section-title {
    color: #e0e0e0;
    border-bottom: 1px solid #3d3d3d;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ============================================
   AUTH MODAL - Epic D&D Style
   ============================================ */
.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 50% 30%, rgba(139, 38, 53, 0.15) 0%, transparent 60%),
        rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.auth-modal-content {
    position: relative;
    z-index: 1;
    background: 
        linear-gradient(145deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 1px solid #3d3d3d;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 1px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: authModalIn 0.3s ease-out;
}

@keyframes authModalIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.auth-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-modal-close:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    color: #d4af37;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-modal-icon i {
    font-size: 2rem;
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.auth-modal-header h2 {
    font-family: 'Cinzel', 'Times New Roman', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #e0e0e0;
    margin: 0 0 0.3rem;
    letter-spacing: 0.02em;
}

.auth-modal-subtitle {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    letter-spacing: 0.05em;
}

.auth-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-group i {
    position: absolute;
    left: 1rem;
    color: #666;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    pointer-events: none;
}

.auth-input-group input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #3d3d3d;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.auth-input-group input::placeholder {
    color: #666;
}

.auth-input-group input:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.auth-input-group input:focus + i,
.auth-input-group:focus-within i {
    color: #d4af37;
}

.auth-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.auth-checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #d4af37;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-checkbox-group label {
    font-size: 0.85rem;
    color: #999;
    cursor: pointer;
    line-height: 1.4;
}

.auth-checkbox-important {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
}

.auth-checkbox-important label {
    color: #bbb;
}

.auth-checkbox-important label i {
    color: #d4af37;
    margin-right: 0.3rem;
}

.auth-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, #d4af37 0%, #a68929 100%);
    border: none;
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #e0bc4a 0%, #b8993a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn i {
    font-size: 1rem;
}

.auth-forgot-container {
    text-align: center;
    margin-top: 0.9rem;
    font-size: 0.85rem;
}

.auth-forgot-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.auth-forgot-link:hover {
    color: #e0bc4a;
    text-decoration: underline;
}

.auth-switch-container {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #888;
}

.auth-switch-container a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.3rem;
    transition: all 0.2s ease;
}

.auth-switch-container a:hover {
    color: #e0bc4a;
    text-decoration: underline;
}

/* Auth Modal Alerts */
.auth-modal .alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.auth-modal .alert p {
    margin: 0.3rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-modal .alert-error {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.auth-modal .alert-success {
    background: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

/* Auth Modal Responsive */
@media (max-width: 480px) {
    .auth-modal-content {
        padding: 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .auth-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .auth-modal-icon {
        width: 56px;
        height: 56px;
    }
    
    .auth-modal-icon i {
        font-size: 1.6rem;
    }
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
        height: auto;
        min-height: var(--nav-height);
    }

    .nav-container {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto auto auto;
        align-items: center;
        column-gap: 0.75rem;
        row-gap: 0.75rem;
        padding: 1rem 0;
        position: relative;
    }

    .nav-toggle {
        display: flex;
        order: 2;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .nav-brand {
        order: 1;
        justify-content: center;
    }

    .nav-search {
        display: flex;
        order: 3;
        width: 100%;
        margin-top: 0;
    }

    .nav-searchbar {
        width: 100%;
    }

    .nav-search-input {
        width: 100%;
    }

    .nav-center {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        grid-column: 1;
        grid-row: 1 / 3;
        gap: 0.75rem;
    }

    .nav-left {
        grid-column: 1 / -1;
        grid-row: 3;
        margin-right: 0;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-brand .brand-name {
        font-size: 1.1rem;
    }

    /* Menu mobile déroulant */
    .navbar .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #3d3d3d;
        order: 4;
        grid-column: 1 / -1;
        grid-row: 4;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navbar .nav-links.active {
        display: flex;
    }

    /* Liens du menu mobile */
    .navbar .nav-link {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem;
        text-align: left;
        background: none;
        background-image: none;
        background-size: 0 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        transform: none;
        border-bottom: 1px solid #3d3d3d;
        font-size: 1rem;
        letter-spacing: 0.04em;
        text-transform: none;
        opacity: 1;
    }

    .navbar .nav-link:last-child {
        border-bottom: none;
    }

    /* Dropdown mobile */
    .navbar .dropdown {
        width: 100%;
    }

    .navbar .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #3d3d3d;
    }

    .navbar .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0;
        background-color: #252525;
        box-shadow: none;
        border-radius: 0;
        border: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        transition: none;
    }

    .navbar .dropdown.active .dropdown-menu {
        display: block;
    }

    .navbar .dropdown-item {
        padding: 0.9rem 2rem;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid #3a3a3a;
        background-image: none;
        background-size: 0 0;
        font-size: 0.9rem;
        letter-spacing: 0.03em;
        text-transform: none;
        opacity: 1;
    }

    .navbar .dropdown-item:first-child,
    .navbar .dropdown-item:last-child {
        border-radius: 0;
    }

    /* TODO dropdown mobile */
    .todo-dropdown {
        order: 1;
    }
}

/* ============================================
   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;
}
}

