/* =========================
   HEADER
========================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 25px;

    border-bottom: 1px solid rgba(255,255,255,0.08);

    position: sticky;
    top: 0;
    z-index: 1000;

    background:
        linear-gradient(
            180deg,
            #070b12 0%,
            #0d1420 100%
    );
}

/* =========================
   LOGO
========================= */

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left .logo {
    height: 90px;
    transition: transform 0.3s ease;
}

.header-left .logo:hover {
    transform: scale(1.05);
}

/* =========================
   TITRE
========================= */

.header-center {
    flex: 1;
    text-align: center;
}

.header-center h1 {
    margin: 0;

    font-size: 32px;
    font-weight: 700;

    color: #ffffff;

    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =========================
   NAVIGATION DESKTOP
========================= */

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* =========================
   GROUPES NAV
========================= */

.nav-group {
    position: relative;
}

/* =========================
   BOUTONS MENU
========================= */

.nav-button {
    background: rgba(255,255,255,0.05);

    border: 1px solid rgba(255,255,255,0.08);

    color: white;

    padding: 12px 18px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 15px;
    font-weight: 600;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.nav-button:hover {
    background: rgba(0,170,255,0.12);

    border-color: rgba(0,170,255,0.4);

    transform: translateY(-2px);

    box-shadow:
        0 5px 15px rgba(0,0,0,0.3),
        0 0 12px rgba(0,170,255,0.15);
}

/* Bouton compte */

.account-button {
    background: rgba(0,170,255,0.15);

    border-color: rgba(0,170,255,0.4);
}

/* =========================
   DROPDOWN DESKTOP
========================= */

.dropdown-menu {
    display: none;

    position: absolute;

    top: calc(100% + 10px);
    left: 0;

    min-width: 240px;

    background: #1a212b;

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 15px 35px rgba(0,0,0,0.45);

    animation: dropdownFade 0.25s ease;

    z-index: 1000;
}

.nav-group:hover .dropdown-menu {
    display: flex;
    flex-direction: column;
}

/* =========================
   LIENS MENU
========================= */

.dropdown-menu a {
    color: #d7e0ea;

    text-decoration: none;

    padding: 14px 18px;

    font-size: 14px;

    transition:
        background 0.2s ease,
        padding-left 0.2s ease,
        color 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(0,170,255,0.12);

    color: #ffffff;

    padding-left: 24px;
}

/* =========================
   MENU MOBILE
========================= */

.menu-toggle {
    display: none;

    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;

    border-radius: 10px;

    background: rgba(255,255,255,0.05);

    border: 1px solid rgba(255,255,255,0.08);

    cursor: pointer;

    color: white;

    font-size: 28px;
    font-weight: bold;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.menu-toggle:hover {
    background: rgba(0,170,255,0.12);

    border-color: rgba(0,170,255,0.4);

    transform: scale(1.05);
}

/* =========================
   NAV MOBILE
========================= */

.mobile-nav {
    display: block;
    flex-direction: column;

    position: fixed;

    top: 0;
    right: -100%;

    width: 320px;
    height: 100vh;

    background:
        linear-gradient(
            180deg,
            #070b12 0%,
            #0d1420 100%
    );

    border-left: 1px solid rgba(255,255,255,0.08);

    padding: 25px;

    overflow-y: auto;

    transition: right 0.3s ease;

    z-index: 2000;
}

.mobile-nav.active {
    right: 0;
}

/* =========================
   GROUPES MOBILE
========================= */

.mobile-nav-group {
    margin-bottom: 25px;
}

.mobile-nav-title {
    color: white;

    font-size: 18px;
    font-weight: bold;

    margin-bottom: 12px;

    padding-bottom: 8px;

    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav a {
    display: block;

    color: #d7e0ea;

    text-decoration: none;

    padding: 12px 0;

    font-size: 15px;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.mobile-nav a:hover {
    color: #ffffff;

    padding-left: 8px;
}

.mobile-nav-close {
    display: flex;
    justify-content: flex-end;

    color: white;

    font-size: 30px;

    cursor: pointer;

    margin-bottom: 20px;

    transition: 0.2s ease;
}

.mobile-nav-close:hover {
    color: #00aaff;
}

.mobile-dropdown-toggle {

    width: 100%;

    background: none;
    justify-content: space-between;
    align-items: center;

    color: white;

    font-size: 20px;
    font-weight: bold;

    padding: 15px 0;

    cursor: pointer;

    border-bottom: 1px solid rgba(255, 255, 255, 0.404);
}

.mobile-submenu {

    max-height: 0;

    overflow: hidden;

    transition: max-height 0.3s ease;
}

.mobile-submenu.active {

    max-height: 500px;
}

.arrow {

    transition: transform 0.25s ease;

    display: inline-block;
}

.arrow.active {

    transform: rotate(90deg);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 950px) {

    .header-right {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-center h1 {
        font-size: 22px;
    }

    .header-left .logo {
        height: 65px;
    }
}

/* =========================
   ANIMATION
========================= */

@keyframes dropdownFade {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}