.navbar-header {
    padding: 15px 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0 0 10px 0;
}

.header-container {
    max-width: 1324px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-right-mobile {
    display: none;
}

.header-buttons-mobile {
    display: none;
}

.header-buttons-desktop {
    display: flex;
}

.navbar-brand {
    flex-shrink: 0;
    padding: 0;
}

.navbar-header img {
    height: 50px;
    width: auto;
}

.navbar-interactions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.navbar-toggler {
    display: flex !important;
    border: none !important;
    background: transparent;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    box-shadow: none !important;
}

.navbar-toggler:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.burger-icon {
    width: 24px;
    height: 18px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.burger-line {
    width: 100%;
    height: 2px;
    background-color: var(--black-color, #1b1b1b);
    border-radius: 10px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-toggler[aria-expanded="true"] .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .burger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.texte-header-button {
    position: relative;
}

#pendingCount {
    background-color: var(--primary);
    position: absolute !important;
    top: -9px !important;
    right: -9px !important;
    width: 25px;
    height: 25px;
    min-width: 25px;
    border-radius: 50% !important;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    margin-left: 0 !important;
    margin-top: 0 !important;
}

@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }

    .header-right-mobile {
        display: none !important;
    }

    .header-buttons-desktop {
        display: flex !important;
    }
}

@media (max-width: 991px) {
    .navbar-header img {
        height: 50px;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .navbar-brand {
        order: 1;
    }

    .header-right-mobile {
        display: flex;
        align-items: center;
        gap: 8px;
        order: 2;
    }

    .header-buttons-mobile {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .navbar-collapse {
        order: 4;
        width: 100%;
        flex-basis: 100%;
        margin-top: 0;
    }

    .header-buttons-desktop {
        display: none !important;
    }

    .header-subcontent {
        gap: 16px;
        width: 100%;
        flex-direction: column;
    }

    .header-subcontent i {
        box-sizing: border-box;
    }

    .navbar-header .texte-header {
        width: 100%;
        text-align: center;
    }

    .navbar-header .texte-header-button {
        white-space: nowrap;
    }

    .header-buttons-mobile .texte-header-icons {
        padding: 10px 13px;
    }

    .navbar {
        padding: 10px 0 0 0 !important;
    }

    .navbar-brand {
        padding: 5px 0 15px 20px;
    }

    .header-right-mobile {
        padding: 10px 20px 20px 0;
        gap: 20px;
    }

    .navbar-collapse.show {
        margin-top: 0;
    }

    .navbar-header {
        padding: 8px 0;
    }

    .header-container {
        padding: 0;
    }

    .navbar-interactions {
        gap: 12px;
        padding: 0;
    }

    .navbar-header .texte-header {
        padding: 20px;
    }

    .header-buttons-mobile .texte-header-button {
        padding: 8px 12px;
        white-space: nowrap;
    }

    .header-buttons-mobile .texte-header-icons {
        padding: 8px 10px;
    }

    .texte-header:hover {
        background-color: var(--secondary);
        color: var(--black-color);
    }

    .navbar-collapse.show {
        animation: slideDown 0.3s ease;
    }

    #navbarContent a:first-child{
        box-shadow: inset rgba(0, 0, 0, 0.1) 0 10px 10px -10px;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        padding: 11px 0 22px 5px;
    }

    .header-right-mobile {
        padding: 10px 10px 20px 0;
        gap: 8px;
    }

    .header-buttons-mobile {
        gap: 8px;
    }

    .navbar-header img {
        height: 34px;
    }
}

.texte-header-icons {
    display: flex;
    align-items: center;
    padding: 10px 13px;
}

.texte-header-icons i {
    font-size: 19px;
}

.texte-header {
    border-radius: 0 !important;
}

@media (min-width: 992px) {
    .subcategory {
        display: none;
        position: absolute;
        top: 50px;
        background-color: var(--white-color);
        border-bottom-right-radius: 12px;
        border-bottom-left-radius: 12px;
        cursor: pointer;
        padding-top: 30px;
        z-index: 50;
    }

    .subcategory::after {
        content: "";
        position: absolute;
        top: 30px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white-color);
        border-bottom-right-radius: 12px;
        border-bottom-left-radius: 12px;
        box-shadow: rgba(0, 0, 0, 0.1) 0 8px 16px -2px;
        pointer-events: none;
    }

    .subcategory a:last-child {
        border-bottom-right-radius: 12px;
        border-bottom-left-radius: 12px;
    }

    .subcategory a:first-child {
        box-shadow: inset rgba(0, 0, 0, 0.1) 0 10px 10px -10px;
    }

    .home-subcategory {
        transform: translateX(-160px);
    }

    .tarif-subcategory {
        transform: translateX(-70px);
    }

    .workplace-subcategory {
        transform: translateX(55px);
    }

    .subcategory a {
        display: block;
        padding: 15px;
        position: relative;
        z-index: 1;
    }

    .header-subcontent:has(.home-subcategory:hover) #home-header {
        color: var(--primary);
    }

    .header-subcontent:has(.tarif-subcategory:hover) #tarif-header {
        color: var(--primary);
    }

    .header-subcontent:has(.workplace-subcategory:hover) #workplace-header {
        color: var(--primary);
    }

    .header-subcontent:has(#home-header:hover) .home-subcategory {
        display: flex;
    }

    .header-subcontent:has(#tarif-header:hover) .tarif-subcategory {
        display: flex;
    }

    .header-subcontent:has(#workplace-header:hover) .workplace-subcategory {
        display: flex;
    }

    .subcategory:hover {
        display: flex;
    }

    .subcategory a:hover {
        background-color: var(--secondary);
        transition: background-color .4s;
    }
}

@media (max-width: 991.98px) {
    .subcategory {
        display: none;
    }
}