/* ------ Import des polices ------ */
@font-face {
    font-family: Megrim;
    src: url(../assets/fonts/Megrim/Megrim-Regular.ttf);
    font-display: swap;
}

@font-face {
    font-family:Lora;
    src: url(../assets/fonts/Lora/Lora-Regular.ttf);
    font-display: swap;
}

@font-face {
    font-family: Lora;
    src: url(../assets/fonts/Lora/Lora-Bold.ttf);
    font-weight: bold;
    font-display: swap;
}

/* Déclaration des variables */
:root {
    /* Couleurs */
    --primary: #000000;
    --secondary:#E6E1CD;
    --accent:#D1B05A;
    /* Polices */
    --title: Megrim;
    --text: Lora;
}

body {
    width:100vw;
    max-width:100vw;
    overflow-x: hidden;
    margin:0;
    padding:0;
    background-color: var(--primary);
    color: var(--secondary);
    font-family: var(--text);
    font-size: 18px;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition:.3s ease-in-out;
}

/* ------ NAVIGATION ------ */
nav {
    font-size: 1em;
    margin-top:3vh;
    margin-left: 3vw;
    text-transform: uppercase;
    letter-spacing:0.4em;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav li {
    margin-right:6vw;
}

nav li:nth-of-type(2), nav li:nth-of-type(3) {
    margin-bottom:-2vh;
}

.logo {
    font-family: var(--title);
    color: var(--accent);
    font-size: 5em;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: var(--secondary);
    margin: 0 1em;
    transition:.3s ease-in-out;
}

nav a:hover {
    color: var(--accent);
}

.active-page {
    color: var(--accent);
    padding-bottom:33px;
    border-bottom:4px solid var(--accent);
}

.hr-intro {
    border: 0.8px solid var(--accent);
    width: 100%;
    margin: 0;
}

/* ------ FOOTER ------ */

footer {
    display:flex;
    justify-content:space-between;
    align-items:center;
    width:100%;
    height:10vh;
    font-size: .8em;
}

footer p {
    letter-spacing: .3em;
}

footer p:first-of-type {
    margin-left: 5vw;
}

footer p:last-of-type {
    margin-right: 2vw;
}

footer a:hover {
    filter:brightness(1.3);
    text-decoration: underline;
}

/* ------ MOBILE ------ */
@media screen and (max-width: 650px) {
    body {
        font-size: 14px;
    }
    nav li {
        font-size: 0.8em;
    }
    nav li:nth-of-type(2), nav li:nth-of-type(3) {
        margin-bottom:0vh;
    }
    .logo {
        font-size: 4em;
        margin-left:4vw;
    }
    .active-page {
        padding-bottom:17px;
    }
    footer p {
        font-size: 1.2em;
    }
  }