.bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: var(--text-color);
    margin: 6px 0;
    transition: 0.4s;
}

.change .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
    transform: translate(0, -11px) rotate(45deg);
}

#menu-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    align-self: center;
    max-width: 80%;
    width: 100%;
    background-color: var(--main-bg-color);
    opacity: var(--main-opacity);
    padding: 10px;
    border-radius: var(--main-border-radius);
    border-color: transparent;
}

.menu-item {
    font-size: 20px;
    text-decoration: none;
    color: var(--text-color);
}

#site-name {
    font-size: 2em;
    font-weight: bold;
    margin-left: 1em;
    margin-top: 1em;
}



@media (max-width:768px) {
    #menu {
        display: none; /* Masquer le menu avec les titres de section */
        opacity: 0;
    }

    #burger-container {
        display: inline-block; /* Afficher le menu hamburger */
        cursor: pointer;
        z-index: 20;
    }

    #menu.visible {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10;
        background-color: var(--main-bg-color);
        opacity: 1;
        display: flex;
        flex-direction: column;
        padding: 2em;
    }
    .menu-item {
        font-size: 30px;
        color: var(--text-color);
    }

    #menu-header {
        z-index: 20;
    }
}

/* Styles pour écrans de taille supérieure à 768 pixels (ordinateurs) */
@media (min-width: 769px) {
    #menu {
        display: flex;
        flex-direction: row;
        justify-content: end;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
        gap: 2em;
    }

    #burger-container {
        display: none;
    }
}
