/* ============================================================
   MonBonVTC — Navigation
   Header fixe + menu dépliable + bottom bar actions rapides
   ============================================================ */

/* === HEADER FIXE === */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: white;
    border-bottom: 1px solid var(--border2);
    z-index: 1000;
}

.nav-header__inner {
    max-width: 900px;
    margin: 0 auto;
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-header__logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.3px;
}
.nav-header__logo span { color: var(--gold); }

.nav-header__right {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Cloche notifications */
.nav-header__notif-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    color: var(--text2);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.nav-header__notif-btn:hover { background: var(--bg2); color: var(--text); }
.nav-header__notif-btn svg { width: 20px; height: 20px; }

.nav-header__notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--danger-text);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

/* Bouton menu compte */
.nav-header__menu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 6px;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    background: white;
    cursor: pointer;
    font-family: var(--font);
    transition: border-color 0.15s, background 0.15s;
}
.nav-header__menu-btn:hover { border-color: var(--gold); background: var(--gold-bg); }

.nav-header__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-header__chevron {
    width: 14px;
    height: 14px;
    color: var(--text3);
    transition: transform 0.2s;
}
.nav-header__menu-btn[aria-expanded="true"] .nav-header__chevron {
    transform: rotate(180deg);
}

/* === MENU DÉPLIABLE === */
.nav-dropdown {
    position: fixed;
    top: 56px;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}
.nav-dropdown.ouvert {
    pointer-events: auto;
    opacity: 1;
}

/* Fond semi-transparent */
.nav-dropdown::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}

.nav-dropdown__inner {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 260px;
    background: white;
    border: 1px solid var(--border2);
    border-radius: var(--r-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    overflow: hidden;
    transform: translateY(-6px);
    transition: transform 0.15s;
}
.nav-dropdown.ouvert .nav-dropdown__inner {
    transform: translateY(0);
}

.nav-dropdown__user {
    padding: 14px 16px 12px;
}
.nav-dropdown__user-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
}
.nav-dropdown__user-meta {
    font-size: 0.75rem;
    color: var(--text3);
    margin-top: 2px;
}
.nav-dropdown__plan-badge {
    background: var(--gold-bg);
    color: var(--gold);
    font-weight: 600;
    padding: 1px 6px;
    border-radius: var(--r-full);
    font-size: 0.6875rem;
}

.nav-dropdown__sep {
    border: none;
    border-top: 1px solid var(--border2);
    margin: 4px 0;
}

.nav-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: var(--text2);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.1s, color 0.1s;
}
.nav-dropdown__item:hover { background: var(--bg2); color: var(--text); }
.nav-dropdown__item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text3); }
.nav-dropdown__item--admin { color: var(--info-text); }
.nav-dropdown__item--admin svg { color: var(--info-text); }
.nav-dropdown__item--danger { color: var(--danger-text); }
.nav-dropdown__item--danger svg { color: var(--danger-text); }
.nav-dropdown__item--danger:hover { background: var(--danger-bg); }

/* === BOTTOM BAR ACTIONS === */
.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: white;
    border-top: 1px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 900;
    padding: 0 4px;
}

.nav-bottom__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text3);
    font-size: 0.5625rem;
    font-weight: 500;
    padding: 4px 8px;
    flex: 1;
    min-width: 0;
    border-radius: var(--r-md);
    transition: color 0.15s, background 0.15s;
}
.nav-bottom__item:hover { color: var(--text2); }
.nav-bottom__item.actif { color: var(--gold); }
.nav-bottom__item svg {
    width: 20px;
    height: 20px;
}
.nav-bottom__item span:not(.nav-bottom__notif-badge) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.nav-bottom__btn-central {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gold);
    color: white;
    text-decoration: none;
    transform: translateY(-12px);
    box-shadow: 0 4px 12px rgba(200,168,75,0.45);
    flex-shrink: 0;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.nav-bottom__btn-central:hover {
    background: var(--gold-light);
    box-shadow: 0 6px 18px rgba(200,168,75,0.55);
    transform: translateY(-14px);
}
.nav-bottom__btn-central svg { width: 26px; height: 26px; }

.nav-bottom__notif-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--danger-text);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}
