/* === HEADER === */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    background: transparent;
}

#header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition: all 0.3s ease-in-out;
    z-index: -1;
    pointer-events: none;
}

#header.scrolled::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(62, 61, 85, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
    pointer-events: none;
}

.header {
    position: relative;
    font-family: 'Lato', sans-serif;
    color: white;
    max-width: 100%;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    align-items: center;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
}

.header__logo {
    height: 45px;
}

/* === NAVIGATION === */
.header-nav__list,
.header-nav__list-int {
    display: flex;
    flex-direction: column;
    padding: 30px;
    align-items: start;
    gap: 35px;
    margin: 0;
    font-weight: normal;
}

.header-nav__list-int {
    padding: 0;
    gap: 30px;
}

.header-nav__item {
    width: fit-content;
}

.header-nav__group-btn {
    display: flex;
    gap: 20px;
}

.header-nav__btn--demo,
.header-nav__btn--contact {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    background: radial-gradient(at 0% 0%, #F6A136 0%, #EA6060 50%, #B2235C 100%);
    color: white;
    font-weight: bold;
    border-radius: 50px;
    font-size: 17px;
    will-change: transform;
    transform: translateZ(0);
    transition: 0.3s ease-in-out;
    user-select: none;
}

.header-nav__btn--demo {
    background: none;
    padding: 9px 22px 9px 25px;
    gap: 8px;
    border: 2px solid #EA6060;
}

.header-nav__btn--contact {
    display: none;
}

.header-nav__btn--demo:hover,
.header-nav__btn--contact:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* === HEADER CONTACT === */
.header-contact--mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 5%;
    padding-top: 25px;
    background: linear-gradient(90deg, #191251 0%, #913479 40%, #B2235C 100%);
    color: #fff;
    transition: all 0.3s ease;
}

.header-contact__social-list {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    gap: 22px;
}

.header-contact__social-icon {
    width: 25px;
    height: 25px;
    transition: all 0.3s ease;
}

.header-contact__social-icon:hover {
    transform: scale(1.05);
}

/* Contact Button */
.header-contact__btn {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    background: radial-gradient(310% 140% at -80% 0%, #7831A4 0%, #C8145C 50%, #FA1E5A 80%, #FA5354 100%);
    color: #fff;
    font-weight: bold;
    border-radius: 50px;
    font-size: 17px;
    will-change: transform;
    transform: translateZ(0);
    transition: all 0.3s ease;
    user-select: none;
}

.header-contact__btn:hover {
    transform: scale(1.03);
    cursor: pointer;
}

.header-contact__btn-text {
    flex-wrap: nowrap;
}

.header-contact__btn-arrow,
.header-nav__btn-arrow {
    width: 14px;
    height: 14px;
    margin-top: 3px;
}

/* === HAMBURGER MENU === */
.header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s ease;
}

.hamburger__line {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Animation du hamburger en croix */
.header__hamburger.open .hamburger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 8px);
}

.header__hamburger.open .hamburger__line:nth-child(2) {
    opacity: 0;
}

.header__hamburger.open .hamburger__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -8px);
}

/* === RESPONSIVE === */
@media (min-width: 640px) {
    .header__logo {
        height: 50px;
    }
}

@media (min-width: 768px) {
    .header-nav__btn--demo,
    .header-nav__btn--contact,
    .header-contact__btn {
        font-size: 18px;
    }

    .header-contact__btn {
        padding: 11px 20px;
    }

    .header-contact__social-list {
        gap: 25px;
        margin-left: 15px;
    }

    .header__logo {
        height: 60px;
    }
}

@media (max-width: 1200px) {
    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(28, 27, 57, 0.98);
        flex-direction: column;
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transform: translateX(200%);
        transition: opacity 0.3s ease, transform 0.4s ease;
    }

    /* Affichage du menu avec animation */
    .header__nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        z-index: 998;
    }

    /* Affichage du menu hamburger */
    .header__hamburger {
        display: flex;
    }
}

@media (min-width: 1200px) {
    .header__nav {
        display: flex;
        align-items: center;
        gap: 25px;
    }

    .header-contact--mobile {
        display: none;
    }

    .header-nav__list,
    .header-nav__list-int {
        flex-direction: row;
        align-items: center;
        padding: 0;
    }

    .header-nav__btn--contact {
        display: inline-flex;
        font-size: 17px;
    }

    .header-nav__btn--demo {
        padding: 10px 27px 10px 30px;
        font-size: 17px;
    }
}

@media (min-width: 1280px) {
    .header__logo {
        height: 70px;
    }
}

@media (min-width: 1536px) {
    .header {
        padding: 15px 100px;
    }
}