/* =========================================================
   HEADER
========================================================= */

.main-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: rgba(15, 23, 42, .98);

    border-bottom: 1px solid rgba(255, 255, 255, .07);

    box-shadow:
        0 5px 22px rgba(0, 0, 0, .12);
}

.navbar-container {
    width: min(1180px, calc(100% - 40px));

    min-height: 76px;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}


/* LOGO */

.navbar-brand {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: #fff;

    font-size: 22px;
    font-weight: 800;

    letter-spacing: -.5px;

    white-space: nowrap;
}

.brand-logo {
    width: 38px;
    height: 38px;

    object-fit: contain;

    flex-shrink: 0;
}

.navbar-brand > span > span {
    color: var(--orange);
}


/* DESKTOP MENU */

.desktop-navigation {
    display: flex;
    align-items: center;

    gap: 4px;
}

.desktop-link {
    position: relative;

    min-height: 44px;

    padding: 8px 13px;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    border-radius: 9px;

    color: rgba(255,255,255,.76);

    font-size: 15.5px;
    font-weight: 600;

    transition:
        color .2s ease,
        background .2s ease;
}

.desktop-link i {
    font-size: 16px;
}

.desktop-link:hover {
    color: #fff;

    background:
        rgba(255,255,255,.06);
}

.desktop-link.active {
    color: #fff;
}

.desktop-link.active::after {
    content: "";

    position: absolute;

    left: 12px;
    right: 12px;
    bottom: 1px;

    height: 3px;

    border-radius: 20px;

    background: var(--orange);
}


/* CONNEXION */

.login-button {
    min-height: 44px;

    padding: 8px 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: 1px solid var(--orange);
    border-radius: 10px;

    background: var(--orange);

    color: #fff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.login-button:hover {
    background: var(--orange-dark);

    color: #fff;

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(238,129,44,.25);
}


/* MOBILE BUTTON */

.mobile-menu-button {
    display: none;

    width: 45px;
    height: 45px;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;

    background: rgba(255,255,255,.06);

    color: #fff;

    font-size: 24px;

    cursor: pointer;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu-overlay {
    position: fixed;
    inset: 0;

    z-index: 1080;

    background: rgba(2,6,23,.62);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.mobile-side-menu {
    position: fixed;

    top: 0;
    right: 0;

    z-index: 1090;

    width: min(390px, 82vw);
    height: 100dvh;

    padding: 22px;

    background: #fff;

    box-shadow:
        -20px 0 50px rgba(0,0,0,.18);

    transform: translateX(105%);

    transition:
        transform .32s cubic-bezier(.22,.61,.36,1);

    overflow-y: auto;
}

body.menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

body.menu-open .mobile-side-menu {
    transform: translateX(0);
}


/* MOBILE HEADER */

.mobile-side-header {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--border);
}

.mobile-brand {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    color: var(--navy);

    font-size: 19px;
    font-weight: 800;
}

.mobile-brand img {
    width: 36px;
    height: 36px;

    object-fit: contain;
}

.mobile-brand > span > span {
    color: var(--orange);
}

.mobile-menu-close {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: #fff;

    color: var(--navy);

    cursor: pointer;
}

.mobile-menu-close:hover {
    color: var(--orange);

    border-color:
        rgba(238,129,44,.4);
}


/* NAV MOBILE */

.mobile-navigation {
    display: flex;
    flex-direction: column;

    gap: 6px;

    padding: 24px 0;
}

.mobile-nav-link {
    min-height: 56px;

    display: grid;

    grid-template-columns:
        30px
        1fr
        18px;

    align-items: center;

    gap: 12px;

    padding: 10px 14px;

    border-radius: 12px;

    color: var(--text);

    font-size: 16px;
    font-weight: 600;

    transition:
        background .2s ease,
        color .2s ease;
}

.mobile-nav-icon {
    width: 30px;

    display: flex;
    justify-content: center;

    color: var(--orange);

    font-size: 18px;
}

.mobile-nav-arrow {
    color: #94a3b8;

    font-size: 12px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--orange-light);

    color: var(--orange-dark);
}


/* MOBILE LOGIN */

.mobile-login-area {
    padding-top: 15px;

    border-top: 1px solid var(--border);
}

.mobile-login {
    width: 100%;
}
