header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    height: 80px;
    width: 100%;
    top: 0;
    left: 0;
    padding: 10px 40px;
    background-color: white;
    z-index: 1000;
    box-sizing: border-box;
    transition: top 0.8s, background-color 0.3s, color 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    background-color: white;
    color: #081548;
}

header img {
    height: 70px;
}

header h1 {
    color: #081548;
    margin: 0;
    font-size: 18px;
    text-transform: uppercase;
}

header.scrolled h1 {
    color: #081548;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #081548;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 15px 20px;
    position: relative;
}

nav ul li a:hover {
    color: #081548;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 20px;
    width: 0;
    height: 2px;
    background-color: #cf9903;
    transition: width 0.6s ease-in-out;
}

nav ul li a:hover::after {
    width: calc(100% - 40px);
    left: 20px;
    right: auto;
}

header.scrolled nav ul li a {
    color: #081548;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #081548;
    margin: 5px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {

    header img {
        height: 50px;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 80px;
        left: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    nav ul li {
        margin: 15px 0; /* Ajout d'espace vertical en mobile */
        text-align: center; /* Centrage du texte */
    }

    nav ul li a {
        padding: 10px 0;
        display: block; /* Pour que le lien prenne toute la largeur */
    }

    nav ul.show {
        display: flex;
    }

    .burger {
        display: block;
    }
}