* {
	margin: 0;
	padding: 0;
	font-family: sans-serif;
}

/* General styles */
header {
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    background-color: #fff;
    box-shadow: 0px 4px 4px #8a8a8a;
    padding: 0 20px;
    position: relative;
}

#logo-container {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

#nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

#nav a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 500;
}

#action-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

#search-form {
    display: flex;
    align-items: center;
    background: #D9D9D9;
    border-radius: 5px;
    padding: 6px 10px;
}

#search-form input {
    border: none;
    background: none;
    outline: none;
    font-size: 14px;
    color: #000;
    width: 150px;
}

#search-form button {
    background: none;
    border: none;
    cursor: pointer;
}

#account-container, #cart-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

/* Hamburger menu styles */
.hamburger {
    display: flex; /* Toujours visible */
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    margin-left: 20px; /* Ajustement pour l'alignement */
}

.hamburger span {
    display: block;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger open state */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hamburger menu */
#hamburger-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
}

#hamburger-menu a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 500;
}

/* Show hamburger menu when active */
#hamburger-menu.active {
    display: flex;
}

.sticky {
    position: sticky;
    top: 0;
    background: #fff;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    #nav {
        display: none;
    }

    #nav.active {
        display: flex;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 10px 0;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }

    #action-container {
        gap: 10px;
    }

    #search-form input {
        width: 100px;
    }

        #account-container p,
    #cart-container p {
        display: none; /* Masque les textes */
    }
}

/* Responsive styles for larger tablets */
@media screen and (max-width: 1024px) {
    #search-form input {
        width: 120px;
    }
    
}

@media (max-width: 430px) {
    header {
        padding: 0;
    }

    .hamburger {
        margin: 0;
    }

    #logo-container {
        width: 15vw;
        margin: 0;
    }

    #action-container {
        gap: 0;
    }
}