/* -----------------------------------------------------
   HEADER PRIVÉ MINIMALISTE
----------------------------------------------------- */
.header-private {
    background: var(--primary);
    height: 56px;
    padding: 0 24px;
    color: var(--white);
    box-shadow: 0 2px 4px var(--shadow);
    position: relative;
    z-index: 50;

    display: flex;
    align-items: center;
}

/* Grille pour un centrage parfait */
.header-private .header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Titre du site */
.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--white);
}

/* -----------------------------------------------------
   AVATAR
----------------------------------------------------- */
.header-left {
    display: flex;
    align-items: center;
    z-index: 2;
}

.user-avatar-container {
    position: relative;
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--white);
    cursor: pointer;
    user-select: none;

    display: flex;
    justify-content: center;
    align-items: center;
}

.user-avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -----------------------------------------------------
   DROPDOWN USER
----------------------------------------------------- */
.user-dropdown {
    position: absolute;
    top: 48px;
    left: 0;

    background: var(--white);
    min-width: 170px;
    padding: 8px 0;
    border-radius: var(--radius);
    box-shadow: 0 4px 8px var(--shadow);

    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 100;
}

.user-dropdown.active {
    display: flex;
}

.user-dropdown form {
    display: contents;
}

/* Fix : on enlève all: unset; qui cassait le hover */
.user-dropdown button {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.user-dropdown .dropdown-item,
.user-dropdown button.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 5000000;
    text-align: left;
    text-decoration: none;
    color: var(--primary);
    border-radius: var(--radius);
}

.user-dropdown .dropdown-item:hover,
.user-dropdown button.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--white);
}

/* -----------------------------------------------------
   RESPONSIVE
----------------------------------------------------- */
@media (max-width: 820px) {
    .header-private {
        height: 52px;
        padding: 0 14px;
    }

    .user-avatar {
        width: 34px;
        height: 34px;
    }
}
