/* header.css */

/* Header */
header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}

/* Bouton burger */
button.burger {
    order: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    border: none;
    cursor: pointer;
    background: transparent;
    margin-left: 20px;
}

button.burger:focus {
    outline: none;
}

.burger-bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Logo */
.logo-container {
    order: 1;
    max-height: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 250px;
    object-fit: contain;
}

/* Navigation */
nav.nav-links {
    order: 2;
    margin-left: auto;
    display: flex;
    align-items: center;
    padding: 0 4rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
    transition: color 0.3s;
}

nav a:hover {
    color: #00ffef;
}

/* Responsive mobile pour header */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .logo-container {
        order: 1;
        width: auto;
        display: flex;
        justify-content: flex-start;
    }

    .logo-container img {
        height: 200px;
    }

    /* Cacher nav par défaut */
    nav.nav-links {
        order: 3;
        width: 100%;
        display: none;
        flex-direction: column;
        background-color: #1f1f1f;
        border-top: 1px solid #333;
        padding-top: 0.5rem;
    }

    /* Afficher nav quand actif */
    nav.nav-links.active {
        display: flex;
    }

    nav.nav-links a {
        padding: 1rem;
        border-bottom: 1px solid #333;
    }

    button.burger {
        order: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 40px;
        height: 27px;
        border: none;
        cursor: pointer;
        background: transparent;
    }

    button.burger:focus {
        outline: none;
    }

    .burger-bar {
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
}

@media (min-width: 769px) {
    button.burger {
        display: none;
    }
    nav.nav-links {
        display: flex !important;
    }
    nav.nav-links a {
        border: none;
        padding: 0 1rem;
    }
}
