/* === CSS: styles.css & home.css === */
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@500&display=swap');
*, ::before, ::after { box-sizing: border-box; margin: 0; padding: 0; }
@font-face { font-family: 'Coolvetica'; src: url('../fonts/coolvetica-rg.otf') format('opentype'); font-weight: lighter; }
html { background-color: #111; scroll-behavior: smooth; font-family: 'Coolvetica','Fira Sans',sans-serif; }

/* BUTTON BURGER */

.div_button {
    display: flex;
}

.box {
    width: 35px;
    height: 35px;
    border: none;
    position: relative;
    background: none;
    margin: 30px 0 30px 30px;
    z-index: 50;
    cursor: pointer;
}

.container-lignes {
    width: 25px;
    height: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ligne {
    position: absolute;
    border-radius: 3px;
    width: 25px;
    height: 2px;
    background-color: white;
}

.box .ligne:nth-child(1) {
    top: 0px;
}

.box .ligne:nth-child(2) {
    top: 10px;
}

.box .ligne:nth-child(3) {
    top: 20px;
}


/* ANIM burger */
.b1 .container-lignes {
    transition: transform 0.4s ease-in-out;
}

.b1.active .container-lignes {
    transition: transform 0.4s 0.4s ease-in-out;
    transform: translate(-50%, -50%) rotate(360deg);
}

.b1 .ligne:nth-child(1),
.ligne:nth-child(3) {
    transform: rotate(0deg);
    transition:
    transform 0.4s ease-in-out,
    top 0.4s 0.4s ease-in-out;
}

.b1 .ligne:nth-child(2) {
    transition: opacity 0.4s 0.4s ease-in-out;
}

.b1.active .ligne:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
    transition:
    top 0.4s ease-in-out,
    transform 0.4s 0.4s ease-in-out;
}

.b1.active .ligne:nth-child(2) {
    transition: opacity 0.4s ease-in-out;
    opacity: 0;
}

.b1.active .ligne:nth-child(3) {
    top: 50%;
    transform: rotate(-45deg);
    transition:
    top 0.4s ease-in-out,
    transform 0.4s 0.4s ease-in-out;
}

/* Nav bar */

nav {
    display: flex;
    justify-content: end;
    font-size: 16px;
    color: white;
    position: sticky;
    top: 15px;
    z-index: 50;
}

nav a {
    color: white;
    text-decoration: none;
}

.nav_link {
    display: flex;
    justify-content: end;
    list-style-type: none;
    flex-direction: row;
    align-items: center;
    padding-right: 30px;
}

@media screen and (min-width: 769px) {
    .nav_burger {
    display: none;
    }

    .Home:hover,
    .navProjets:hover,
    .navTimeline:hover {
    color: #999;
    }

    .Home .active:hover,
    .navProjets .active:hover {
    color: #999;
    }
}

@media screen and (max-width: 768px) {
    .nav_link {
    display: none;
    }

    nav {
    display: block;
    top: 0;
    width: 60vw;
    }

    .nav_link.show_list {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    margin-top: -100px;
    padding: 100px 30px;
    width: 60vw;
    background-color: #121212;
    height: 100.5vh;
    position: absolute;
    }

    .Home.show_list,
    .navProjets.show_list,
    .navTimeline.show_list {
    font-size: 20px;
    display: flex;
    margin: 15px 0;
    }
}

.Home,
.navProjets,
.navTimeline {
    margin-left: 25px;
    cursor: pointer;
}

.active {
    color: #186ca4;
}

/* FOOTER */
.footer-mentions{ position:relative; margin-top:30vh; color:#DBDBDB; }
.design, .copyright{ position:absolute; width:100%; display:flex; justify-content:center; font-size:12px; letter-spacing:1px; }
.design{ bottom:45px; }
.design a{ color:#DBDBDB; text-decoration:none; }
.design a:hover{ text-decoration:underline; }
.copyright{ bottom:20px; }

/* CHEVRON DOWN */
.chevron { text-decoration: none; font-size: 30px; position: absolute; bottom: 20px; left: 50%; transform: translate(-50%, 0); z-index: 50; }
.chevron a { color: white; }
.chevron a:hover { color: #999; cursor: pointer; }

/* BUTTUN UP */
.btn { display: none; height: 35px; width: 35px; font-size: 35px; color: white; position: fixed; right: 20px; bottom: 20px; cursor: pointer; z-index: 50; }
.btn:hover { color: #999; }