/* =========================================================
   LPROJECT WEB - HEADER
========================================================= */

/* Masque complètement le header Astra */
#masthead,
.ast-primary-header-bar {
    display: none !important;
}

/* Header custom */
.lp-site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    background: rgba(9, 9, 11, .30);
    border-bottom: 1px solid transparent;

    transition:
        background .35s ease,
        border-color .35s ease,
        backdrop-filter .35s ease,
        box-shadow .35s ease;
}

.lp-site-header.lp-scrolled {
    background: rgba(9, 9, 11, .88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom-color: rgba(255,255,255,.08);

    box-shadow:
        0 10px 40px rgba(0,0,0,.22);
}

/* Si connecté à WordPress */
body.admin-bar .lp-site-header {
    top: 32px;
}

.lp-header-inner {
    width: min(1420px, calc(100% - 70px));
    height: 86px;

    margin: 0 auto;

    display: flex;
    align-items: center;
}

/* Logo + nom */
.lp-header-brand {
    display: flex;
    align-items: center;
    gap: 13px;

    color: #fff !important;
    text-decoration: none !important;

    flex-shrink: 0;
}

.lp-header-logo {
    display: block;

    width: auto;
    height: 46px;

    object-fit: contain;
}

.lp-header-symbol {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background:
        linear-gradient(135deg, #ff5a00, #ff8a00);

    color: #fff;

    font-size: 23px;
    font-weight: 900;

    box-shadow:
        0 8px 26px rgba(255,106,0,.25);
}

.lp-header-brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1;
}

.lp-header-brand-text strong {
    color: #fff;

    font-size: 15px;
    font-weight: 800;

    letter-spacing: .03em;
}

.lp-header-brand-text small {
    margin-top: 6px;

    color: rgba(255,255,255,.48);

    font-size: 8px;
    font-weight: 600;

    letter-spacing: .13em;
}

/* Navigation */
.lp-main-nav {
    margin-left: auto;
    margin-right: 38px;

    display: flex;
    align-items: center;
    gap: 38px;
}

.lp-main-nav a {
    position: relative;

    padding: 32px 0;

    color: rgba(255,255,255,.72) !important;
    text-decoration: none !important;

    font-size: 13px;
    font-weight: 600;

    transition: color .25s ease;
}

.lp-main-nav a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 22px;

    width: 0;
    height: 1px;

    background:
        linear-gradient(90deg, #ff6200, #ff9700);

    transform: translateX(-50%);

    transition: width .25s ease;
}

.lp-main-nav a:hover {
    color: #fff !important;
}

.lp-main-nav a:hover::after {
    width: 100%;
}

/* CTA */
.lp-header-cta {
    height: 46px;

    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    border: 1px solid rgba(255,106,0,.7);
    border-radius: 999px;

    color: #fff !important;
    text-decoration: none !important;

    font-size: 12px;
    font-weight: 700;

    background: rgba(255,106,0,.035);

    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.lp-header-cta span {
    color: #ff7500;

    font-size: 17px;

    transition: transform .25s ease;
}

.lp-header-cta:hover {
    transform: translateY(-1px);

    border-color: #ff7500;

    background: rgba(255,106,0,.10);

    box-shadow:
        0 10px 30px rgba(255,106,0,.12);
}

.lp-header-cta:hover span {
    transform: translateX(3px);
}

/* Burger */
.lp-menu-toggle {
    display: none;

    width: 46px;
    height: 46px;

    padding: 0;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;

    background: rgba(255,255,255,.035);

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;

    cursor: pointer;
}

.lp-menu-toggle span {
    display: block;

    width: 19px;
    height: 1px;

    background: #fff;

    transition:
        transform .3s ease,
        opacity .3s ease;
}

.lp-menu-toggle.lp-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.lp-menu-toggle.lp-open span:nth-child(2) {
    opacity: 0;
}

.lp-menu-toggle.lp-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Menu mobile */
.lp-mobile-menu {
    display: none;
}

/* Le hero passe derrière le header */
.home .lp-hero {
    padding-top: 150px;
}


/* =========================================================
   RESPONSIVE HEADER
========================================================= */

@media (max-width: 1100px) {

    .lp-header-inner {
        width: min(100% - 40px, 1420px);
    }

    .lp-main-nav {
        gap: 22px;
        margin-right: 22px;
    }

    .lp-header-brand-text {
        display: none;
    }

}

@media (max-width: 850px) {

    .lp-header-inner {
        height: 72px;

        width: calc(100% - 32px);
    }

    body.admin-bar .lp-site-header {
        top: 46px;
    }

    .lp-main-nav,
    .lp-header-cta {
        display: none;
    }

    .lp-menu-toggle {
        display: flex;

        margin-left: auto;
    }

    .lp-header-logo {
        height: 40px;
    }

    .lp-header-brand-text {
        display: flex;
    }

    .lp-mobile-menu {
        position: absolute;

        top: 72px;
        left: 16px;
        right: 16px;

        display: flex;
        flex-direction: column;

        padding: 14px;

        opacity: 0;
        visibility: hidden;

        transform: translateY(-12px);

        border: 1px solid rgba(255,255,255,.08);
        border-radius: 18px;

        background: rgba(12,12,14,.96);

        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        box-shadow:
            0 25px 70px rgba(0,0,0,.4);

        transition:
            opacity .3s ease,
            visibility .3s ease,
            transform .3s ease;
    }

    .lp-mobile-menu.lp-open {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .lp-mobile-menu > a:not(.lp-mobile-cta) {
        padding: 15px 15px;

        color: rgba(255,255,255,.78) !important;

        border-bottom:
            1px solid rgba(255,255,255,.055);

        text-decoration: none !important;

        font-size: 15px;
        font-weight: 600;
    }

    .lp-mobile-menu > a:hover {
        color: #ff7500 !important;
    }

    .lp-mobile-cta {
        margin-top: 12px;

        min-height: 50px;

        padding: 0 17px;

        display: flex;
        align-items: center;
        justify-content: space-between;

        border-radius: 12px;

        background:
            linear-gradient(135deg, #ff6000, #ff8c00);

        color: #fff !important;

        text-decoration: none !important;

        font-size: 13px;
        font-weight: 700;
    }

    .home .lp-hero {
        padding-top: 115px;
    }

}
