
/* =========================================================
   BEN'S LINE DANCE
   HEADER — VERSION PROPRE
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    width: calc(100% - 32px);
    max-width: 1400px;
    min-height: 68px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

/* =========================================================
   LOGO
   ========================================================= */

.brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    flex: 0 0 auto;
    width: auto;
    height: auto;

    margin: 0;
    padding: 0;

    text-decoration: none;
}

.brand-logo {
    display: block;

    width: 120px;
    height: 80px;

    max-width: 120px;
    max-height: 80px;

    object-fit: contain;
}

/* =========================================================
   MENU DESKTOP
   ========================================================= */

.desktop-nav {
    display: none;

    align-items: center;
    justify-content: flex-end;

    gap: 4px;

    margin-left: auto;
}

.desktop-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 12px;

    border-radius: 10px;

    color: var(--muted);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.desktop-nav a:hover {
    background: var(--red-light);
    color: var(--red);
    transform: translateY(-1px);
}

.desktop-nav a.active {
    background: var(--red);
    color: #fff;
    font-weight: 700;
}

/* séparateur | */

.desktop-nav .nav-separator {
    padding: 0 4px;
    color: var(--border);
}

/* =========================================================
   HAMBURGER
   ========================================================= */

.menu-button {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    margin-left: auto;
    padding: 0;

    border: 0;
    border-radius: 12px;

    background: transparent;

    cursor: pointer;
}

.menu-button span {
    display: block;

    width: 21px;
    height: 2px;

    border-radius: 10px;

    background: var(--dark);
}

.menu-button:hover {
    background: var(--red-light);
}

/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 992px) {

    .site-header {
        min-height: 76px;
    }

    .header-inner {
        min-height: 76px;
        width: calc(100% - 48px);
    }

    .brand-logo {
        width: 120px;
        height: 80px;
    }

    .desktop-nav {
        display: flex;
    }

    .menu-button {
        display: none;
    }
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 991px) {

    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: flex;
    }

    .brand-logo {
        width: 120px;
        height: 80px;
    }
}

/* =========================================================
   PETIT MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .header-inner {
        width: calc(100% - 20px);
        min-height: 64px;
    }

    .brand-logo {
        width: 100px;
        height: 68px;
    }

    .menu-button {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}


/* =========================================================
   MENU DESKTOP — NOUVELLE VERSION
   ========================================================= */

@media (min-width: 992px) {

    .desktop-nav {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;

        gap: 6px;

        margin-left: auto;
        margin-right: 0;

        flex-shrink: 0;
    }

    .desktop-nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        padding: 10px 12px;

        border-radius: 10px;

        color: var(--muted);

        font-size: 14px;
        font-weight: 600;

        text-decoration: none;
        white-space: nowrap;

        transition:
            background .2s ease,
            color .2s ease,
            transform .2s ease;
    }

    .desktop-nav a:hover {
        background: var(--red-light);
        color: var(--red);
        transform: translateY(-1px);
    }

    .desktop-nav a.active {
        background: var(--red);
        color: #fff;
        font-weight: 700;
    }

    /* Le | entre Contact et Inscription */

    .desktop-nav > .nav-separator {
        color: var(--border);
        padding: 0 5px;
        pointer-events: none;
    }

}

/* =========================================================
   NOUVEAU MENU DESKTOP
   Indépendant de l'ancien .desktop-nav
   ========================================================= */

.desktop-menu-new {
    display: none;
}


/* =========================================================
   DESKTOP UNIQUEMENT
   ========================================================= */

@media (min-width: 992px) {

    .desktop-menu-new {

        display: flex;

        align-items: center;
        justify-content: flex-end;

        gap: 4px;

        margin-left: auto;

        flex: 0 0 auto;
    }


    .desktop-menu-new a {

        display: inline-flex;

        align-items: center;
        justify-content: center;

        min-height: 42px;

        padding: 9px 12px;

        border-radius: 10px;

        color: var(--muted);

        font-size: 14px;
        font-weight: 600;

        text-decoration: none;

        white-space: nowrap;

        transition:
            background-color .2s ease,
            color .2s ease,
            transform .2s ease;
    }


    .desktop-menu-new a:hover {

        background: var(--red-light);

        color: var(--red);

        transform: translateY(-1px);
    }


    .desktop-menu-new a.active {

        background: var(--red);

        color: #ffffff;

        font-weight: 700;
    }


    .desktop-menu-new .nav-separator {

        display: inline-flex;

        align-items: center;
        justify-content: center;

        padding: 0 5px;

        color: var(--border);

        pointer-events: none;
    }

}