@import "/./src/assets/scss/variables.scss";
@import "/./src/assets/scss/mixins.scss";
@import "/./src/assets/scss/icons.scss";
@import "/./src/assets/scss/input.scss";
@import "/./src/assets/scss/breakpoints.scss";

.ng-header {
    padding-right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: $z-index-sticky;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);

    @include respond-to('md') {
        height: 50px;
    }
    
    @include respond-below('md') {
        height: 60px;
        padding-right: 15px;
        padding-left: 15px;
    }

    &__left {
        flex-grow: 1;
        min-width: 200px;
        padding-left: 20px;
        
        .hello {
            margin: 0;
            font-size: 16px;
            color: $green;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            
            @include respond-to('md') {
                font-size: 18px;
            }
            
            @include respond-below('lg') {
                font-size: 14px;
                min-width: 150px;
            }
        }
        
        @include respond-below('md') {
            display: none;
        }
    }

    &__right {
        padding: 0 20px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;

        @include respond-to('md') {
            padding: 0;
        }
        
        @include respond-below('md') {
            padding: 0;
            width: 100%;
            justify-content: flex-end;
        }
    }
}

.search-wrap {
    position: relative;
}

.icon-search {
    position: absolute;
    top: 19px;
    left: 20px;
    color: $green;
}

.logo {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 217px;
    padding: 30px 0 50px;
}

.header-icons {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    li {
        margin-left: 45px;
        font-size: 21px;
        color: $green;
        cursor: pointer;
        transition: all 0.5s linear;
        position: relative;

        @include respond-below('md') {
            margin-left: 20px;
            font-size: 18px;
        }
        
        @include respond-below('sm') {
            margin-left: 15px;
            font-size: 16px;
        }

        &:first-child {
            margin-left: 0;

            @include respond-to('lg') {
                margin-left: 45px;
            }
            
            @include respond-below('md') {
                margin-left: 0;
            }
        }

        &:hover {
            color: $green-dark;
            transform: scale(1.1);
        }

        &:focus {
            color: $green-press;
        }
        
        // Tooltip pour mobile
        @include respond-below('sm') {
            &:hover::after {
                content: attr(data-tooltip);
                position: absolute;
                bottom: -30px;
                left: 50%;
                transform: translateX(-50%);
                background: rgba(0,0,0,0.8);
                color: white;
                padding: 4px 8px;
                border-radius: 4px;
                font-size: 12px;
                white-space: nowrap;
                z-index: $z-index-tooltip;
            }
        }
    }
}

.search {
    margin: 0 0 20px;

    @media only screen and (min-width: $lg) {
        margin: 0
    }
}

::ng-deep {
.logout-pop {
        .mat-dialog-container {
            height: auto;
            width: auto;
            padding: 24px;
        }
    }
}
// Menu mobile hamburger
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: $green;
    cursor: pointer;
    margin-right: 15px;
    
    @include respond-below('md') {
        display: block;
    }
    
    &:hover {
        color: $green-dark;
    }
}
