/* EVO FA — styles du bloc authentification (nav + page compte) */

.nav-auth {
    display: flex;
    align-items: center;
}

/* Hamburger partagé (pages nav.top : compte, tickets, ticket, staff) */
.nav-hamb {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}
.nav-hamb span { width: 24px; height: 3px; background: #ff6b00; border-radius: 2px; }

@media (max-width: 820px) {
    nav.top .nav-container { position: relative; flex-wrap: nowrap; }
    nav.top .nav-hamb { display: flex; }
    nav.top .nav-links.collapsible {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #0a0a0a;
        border-top: 2px solid #ff6b00;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    nav.top .nav-links.collapsible.open {
        max-height: 75vh;
        overflow-y: auto;
    }
    nav.top .nav-links.collapsible > li {
        width: 100%;
        border-bottom: 1px solid #2a2a2a;
    }
    nav.top .nav-links.collapsible > li > a {
        display: block;
        padding: 1rem 1.5rem;
    }
    nav.top .nav-links.collapsible .nav-auth {
        padding: 0.9rem 1.5rem;
        justify-content: flex-start;
    }
    nav.top .nav-links.collapsible .auth-user { flex-wrap: wrap; gap: 0.5rem; }
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ff6b00;
    color: #0a0a0a;
    border: 0;
    border-radius: 6px;
    padding: 0.5rem 0.9rem;
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.82rem;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.auth-btn:hover {
    background: #ff8c1a;
}

.auth-btn.ghost {
    background: transparent;
    color: #d0d0d0;
    border: 1px solid #4a4a4a;
    font-weight: 600;
}

.auth-btn.ghost:hover {
    background: transparent;
    border-color: #ff6b00;
    color: #fff;
}

.auth-user {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.auth-user-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    padding: 0.2rem 0.35rem;
    transition: background 0.15s ease;
}

.auth-user-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.auth-user-link:hover .auth-name {
    color: #ff6b00;
}

.auth-avatar {
    border-radius: 50%;
    display: block;
}

.auth-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Page compte.html */
.account-card {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1rem 0 1.5rem;
}

.account-avatar {
    border-radius: 50%;
    flex: 0 0 auto;
}

.account-fields p {
    display: flex;
    flex-direction: column;
    margin: 0.45rem 0;
}

.account-fields span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7a7a7a;
}

.account-fields strong {
    color: #fff;
    font-size: 0.95rem;
    word-break: break-all;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.sync-note {
    font-size: 0.85rem;
    line-height: 1.45;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
}

.sync-note.ok {
    color: #a7e6c6;
    border-color: rgba(61, 214, 140, 0.4);
    background: rgba(61, 214, 140, 0.08);
}

.sync-note.ko {
    color: #ff9b9d;
    border-color: rgba(229, 72, 77, 0.45);
    background: rgba(229, 72, 77, 0.09);
}

@media (max-width: 768px) {
    .nav-auth {
        padding: 1rem 2rem;
        border-bottom: 1px solid #2a2a2a;
    }

    .account-card {
        flex-direction: column;
        text-align: center;
    }
}
