/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/*
    Created on : 4 déc. 2020, 10:32:10
    Author     : louiscarrese
*/

.main-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;

    padding: 0.7em;
    position: sticky;
    top: 0;
    z-index: 500;
    background-color: white;


    --main-header--margin: 1em;
}

@media only screen and (max-width : 1024px) {
    .main-header {
        --main-header--margin: 0.5vw;

        padding: 2vw;
    }
}

.header-left {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}
.header-center {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}
.header-right {
    grid-row: 1 / 2;
    grid-column: 3 / 4;
}

.header-left > div,
.header-right > div {
    display: flex;
    align-items: center;
}

.main-logo, nav#block-principal, .canalb-player {
    margin: 0 var(--main-header--margin);
    height: var(--height-header);
    width: auto;
}

.main-logo-small {
    display: none;
}

.canalb-player {
    margin-left: 0;
}

.canalb-header-search-form {
    margin-left: auto;
}

#block-playeraudiocanalb {
    flex: 1;
    max-width: 35em;
}

#block-recherche {
    margin-left: auto;
    margin-right: 2em;
}

#block-menuducomptedelutilisateur {
    position: absolute;
    top: 0;
    right: 0;
}

@media only screen and (max-width : 59em) {
    #block-recherche {
        display: none;
    }
}

@media only screen and (max-width : 56em) {
    .fixed-header {
        position: fixed;
        top: 0;
        z-index: 10;
        background: white;
        width: 100%;
        left: 0;
        padding: 2vw;
    }
    .main-logo-large {
        display: none;
    }
    .main-logo-small {
        display: block;
    }

    .main-header {
        grid-template-columns: 1fr 1fr;
        row-gap: 1em;
        position: unset;
        top: unset;
    }

    .header-center {
        grid-row: 1 / 2;
        grid-column: 1 / 2;

        margin-left: auto;
    }
    .header-left {
        grid-row: 2 / 3;
        grid-column: 1 / -1;
    }
    .header-right {
        grid-row: 1 / 2;
        grid-column: 2 / 3;

        display: grid; /* Easy vertical centering */
    }
    #block-playeraudiocanalb {
        width: 100%;
        max-width: unset;
    }
}

@media only screen and (max-width: 38em) {
    nav#block-principal {
        font-size: 3.4vw;
        height: 100%;
    }
}
