#header-content {
    background-color:white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 6;
}

.header-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    background-color: white;
    width: 100%;
}

.header-new .logo-icons-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap; /* Allow wrapping of content */
}

.header-new .logo img {
    width: 180px;
}

.header-new .search {
    display: flex;
    align-items: center;
    flex: 2;
    margin: 0 10px;
    position:relative;
}

.header-new .search-input {
    width: 100%;
    padding: 8px 40px 8px 10px; /* Add padding to the right for the icon */
    border: 1px solid #ccc;
    border-radius: 20px; /* Make the input rounded */
}

.header-new .search-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute; /* Position the button */
    right: 10px; /* Align to the right */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Adjust position */
}

.header-new .search-btn img {
    width: 20px;
    height: 20px;
}

.header-new .icons {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.header-new .menu-mobile {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.header-new .icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    font-size: 12px;
    color: #333;
    position: relative;
    opacity: 0.75;
}

.header-new .icon:hover{
    opacity: 1;
}

.header-new .icon img {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
}

.header-new .icon span.title {
    color: #494949;
    font-size: 12px;
    text-decoration: none !important;
}

.header-new .logo-icons-wrapper .icons .tooltip-bm, .header-new .logo-icons-wrapper .icons #tooltip-compte {
    display: none;
}

.header-new .badge {
    position: absolute;
    bottom: 5px;
    right: -2px;
    width: 15px;
    height: 15px;
    background-color: #F77F72;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 0;
}

/* Mobile view */
@media (max-width: 991px) {

    #header-picto-container{
        display: none;
    }
    #header-content #full-header {
        z-index:999;
    }
    #header-content.fixed #full-header {
        position:fixed;
    }

    #header-content.fixed #header-picto-container
    {
        display:none;
    }


    .header-new .logo-icons-wrapper {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .header-new .icon{
        opacity: 1;
    }

    /* Hide the spans under icons in mobile view */
    .header-new .icon span.title {
        display: none;
    }

    /* Force the search bar to be on a new line */
    .header-new .search {
        width: 90%;
        order: 4;
        display: block; /* Forces it to take full line */
        margin-top: 10px;
    }

    .header-new .search-input {
        width: 100%; /* Full width search bar in mobile */
    }

    /* Ensure the logo and icons are in a row */
    .header-new .logo {
        order: 1;
        width:60%;
    }

    .header-new .icons {
        order: 2;
        width:40%;
    }

    .header-new .menu-mobile {
        order: 3;
        width:10%;
    }
}

/* Desktop view */
@media (min-width: 991px) {
    .header-new {
        max-width: 1200px;
        margin: 0 auto 0 auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    #header-content.fixed #full-header {
        width:100%;
    }

    #header-content.fixed{
        position: fixed;
        z-index: 6;
        width:100%
    }
    #header-content.fixed #header-picto-container{
        display:none;
    }

    #header-content.fixed > #nav-position {
        top: 0 !important;
    }

    #header-content.fixed .header-new .icon span.title{
        display:none;
    }


    #header-content.fixed .tooltip-bm{
        top:30px;
    }

    #header-content.fixed .header-new #bloc-panier .icon span.badge{
        right:0px;
        bottom:-2px;
    }

    .header-new .logo-icons-wrapper {
        flex-direction: row;
    }

    /* Hide the spans under icons in mobile view */
    .header-new .icon span.badge {
        display: none;
    }

    .header-new #bloc-panier .icon span.badge {
        display: block;
        text-align:center;
        bottom: 17px;
        right: 3px;
    }

    .header-new .logo {
        width:230px;
    }
    .header-new .logo img {
        width:230px;
    }

    .header-new .search-input {
        width: 100%; /* Make the search bar larger on desktop */
    }

    .header-new .icons {
        gap: 20px;
    }

    .header-new .icons #bloc-compte,
    .header-new .icons #bloc-panier{
        position:relative;
    }

    .header-new .icons #bloc-compte:hover #tooltip-compte,
    .header-new .icons #bloc-panier:hover #tooltip-panier
    {
        display:block;
        z-index: 50;
    }


    .header-new .logo-icons-wrapper .icons #bloc-compte #tooltip-compte
    {
        right: -100px;
    }

    .header-new .logo-icons-wrapper .icons #bloc-panier #tooltip-panier{
        width: 290px;
        border: none;
        overflow-y: auto;
        padding: 0px 0px 0px 0px !important;
    }

    .header-new .logo-icons-wrapper .icons #bloc-panier #tooltip-panier .items{
        min-height:91px !important;
        overflow-y: auto;
        max-height: 300px;
    }

    .header-new .logo-icons-wrapper .icons #bloc-panier #tooltip-panier .items .item{
        height:91px !important;
    }

    .header-new .logo-icons-wrapper .icons .tooltip-bm {
        position: absolute;
        display: none;
        border: 1px solid #e5e5e5;
        background-color: #fff;
        z-index: 2;
        top: 48px;
        right: 0px;
        padding: 20px 40px 15px 40px !important;
        text-align: center;
    }

    .header-new .logo-icons-wrapper .menu-mobile{
        display:none;
    }
}
