@import 'css/main.css';

/* ----------------------------------- */
/* Bouton traduction */
/* ----------------------------------- */

.traduction {
    display: none;
}

/* ----------------------------------- */
/* Header */
/* ----------------------------------- */

.myHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 20px var(--paddingHeadFoot) 25px var(--paddingHeadFoot);
    box-sizing: border-box;
    width: 100%;
    /* Pour le roll back on scroll up */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    transition: all 0.25s ease-in-out;
}

/* Pour le roll back on scroll up */
.scroll-down .myHeader {
    transform: translate3d(0, -100%, 0);
}

.scroll-up .myHeader {
    transform: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.30);
    background-color: var(--white);
}

.logo {
    height: 30px;
    z-index: 1001;
}

.logo img {
    height: 80%;
    padding-top: 5px;
    width: auto;
}

.menuHeader ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menuHeader p {
    margin: 0;
    padding: 0;
}

.menuHeader li {
    margin: 0;
    padding: 0;
    padding-top: 8px;
    margin-left: 30px;
    height: 30px;
    box-sizing: border-box;
}

.myHeader button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    font-weight: 700;
    font-size: 1rem;
    margin-left: 25px;
    padding: 0;
    padding-top: 5px;
}

.boxHeader {
    display: flex;
    justify-content: flex-end;
}

.menuHeader a {
    color: var(--black);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    /* Pour descendre le soulignement */
    padding-bottom: 2px;
}

/* ----------------------------------- */
/* Burger Menu */
/* ----------------------------------- */

.burger {
    display: inline-block;
    cursor: pointer;
}

.bar1,
.bar2,
.bar3 {
    width: 31px;
    height: 2px;
    background-color: var(--black);
    margin: 10px 0;
    transition: 0.4s;
}

/* Display none par défault */
.burger {
    display: none;
}

.overlayMob {
    display: none;
}

/* ------------ANIM---------------- */

.change .bar1 {
    transform: translate(0, 12px) rotate(-45deg);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: translate(0, -12px) rotate(45deg);
}

/* ----------------------------------- */
/* M E D I A   Q U E R I E S */
/* ----------------------------------- */

@media (max-width: 768px) {

    /*-------------BURGER-------------*/

    .burger {
        display: block;
        z-index: 1000;
        position: absolute;
        right: 20px;
        top: 15px;
    }

    /*-------------CLASSIC MENU-------------*/

    .menuHeader {
        display: none;
    }

    /*-------------OVERLAY-------------*/

    .overlayMob {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 0;
        height: 100%;
        top: 0;
        right: 0;
        z-index: 100;
        position: fixed;
        overflow-x: hidden;
        overflow-y: hidden;
        overflow: hidden;
        background-color: var(--white);
        transition: width 0.4s ease-in-out;
        padding-top: 20%;
        padding-bottom: 10%;
        box-sizing: border-box;
    }

    /*------------OVERLAY CONTENT-------------*/

    .mobileContent {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        text-align: center;
        height: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    /*-----------------LINKS------------------*/

    .overlayMob .links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .overlayMob .links a {
        color: var(--black);
        text-decoration: none;
        text-transform: uppercase;
        font-weight: 500;
        font-size: 1.9rem;
        margin: 0;
        padding: 0;
        margin-top: 50px;
        width: fit-content;
    }

    /*-----------------MAIL------------------*/

    .overlayMob p {
        margin: 0;
        padding: 0;
    }

    .overlayMob p {
        font-size: 1.1rem;
        font-weight: 400;
    }

    /*-----------------ACTIVE------------------*/

    .overlayMob.active {
        width: 100%;
    }

    /*------------TRADUCTION BUTTON------------*/

    .traduction {
        margin-right: 60px;
    }
}

@media (max-width: 450px) {

    .overlayMob {
        padding-top: 35%;

    }
}

@media (min-width: 1920px) {

    :root {
        font-size: 18px;
    }

    main {
        padding: 70px 30px 90px 30px;
    }
}