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

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #0d5091;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Logo --- */
.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.header__logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.header__logo-text {
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

/* --- Navigation desktop --- */
.header__nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__nav-link {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition:
        color 0.2s,
        border-color 0.2s;
}

.header__nav-link:hover,
.header__nav-link--active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* --- Burger button --- */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.header__burger-bar {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition:
        transform 0.3s,
        opacity 0.3s;
}

/* Animation burger → croix */
.header__burger.is-open .header__burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header__burger.is-open .header__burger-bar:nth-child(2) {
    opacity: 0;
}

.header__burger.is-open .header__burger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =============================
   RESPONSIVE MOBILE
   ============================= */

@media (max-width: 768px) {
    /* Affiche le burger */
    .header__burger {
        display: flex;
    }

    /* Cache la nav desktop */
    .header__nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #0d5091;
        padding: 16px 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    /* Nav ouverte */
    .header__nav.is-open {
        display: block;
    }

    .header__nav-list {
        flex-direction: column;
        gap: 0;
    }

    .header__nav-link {
        display: block;
        padding: 14px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 16px;
    }

    .header__nav-link:last-child {
        border-bottom: none;
    }
}
