/* Concerne le CSS + responsive du 'body', de la 'navbar', du 'main' et du 'footer' */

@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
/* FONTS */
--main-font: "Michroma", sans-serif;
--secondary-font: "Montserrat", sans-serif;
/* COLORS */
--black-color: #000000;
--white-color: #fff;
--orange-color: #ED7507;
--gradient-color: #7C3B00;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #000000;
    color: var(--white-color);
}

/* NAVBAR */

/* La navbar en entier */
.navbar {
    height: 8rem;
    width: 100vw;
    position: fixed;
    top: 0;
    background-color: var(--black-color);
    border-bottom: solid 1px var(--white-color);
}

/* La partie de la navbar avec le logo */
.navbar-first-part {
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Le logo de la navbar */
.navbar-logo {
    width: 10rem;
    margin-top: 1rem;
}

/* La partie de la navbar avec les liens */
.navbar-second-part {
    height: 5rem;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: scroll;
}

/* Chaque lien de la navbar */
.navbar-link {
    color: var(--white-color);
    font-family: var(--secondary-font);
    text-decoration: none;
    font-weight: 450;
    margin: 0 1rem;
}

/* L'effet sur un lien si on se trouve sur une des pages de son CRUD */
.active-link {
    color: var(--orange-color);
}

/* La navbar si personne n'est connecté */
.navbar-not-logged {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

/* Le logo de la navbar si personne n'est connecté */
.navbar-logo-not-logged {
    height: 4rem;
}

/* MAIN */

/* La balise 'main' qui comprend tout ce qui est entre la navbar et le footer */
.main {
    flex: 1;
    padding-top: 8rem;
}

/* HOMEPAGE */

/* La page d'accueil du site '/' */
.homepage {
    height: calc(100vh - (8rem + 6vh));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* La vidéo sur la page d'accueil du site */
.homepage-video {
    height: 25rem;
    padding-right: 3.5rem;
    padding-top: 1rem;
}

/* LOGIN FORM */

/* Le bloc comprenant tout le formulaire de connexion */
.login-form-container {
    height: calc(100vh - (8rem + 6vh));
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Le formulaire de connexion */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Le titre du formulaire de connexion */
.login-title {
    background: -webkit-linear-gradient(70deg, var(--orange-color), var(--gradient-color));
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--main-font);
    font-size: 1.5rem;
    text-align: center;
    padding-bottom: 3rem;
}

/* Les label du formulaire */
.login-label {
    font-family: var(--main-font);
    font-size: 1rem;
    padding-bottom: 1.5rem;
}

/* Les input de formulaire */
.login-input {
    width: 60%;
    outline: none;
    font-family: var(--secondary-font);
    border: solid 2px var(--white-color);
    border-radius: 5px;
    padding: 0.5rem 1rem;
    margin-bottom: 2.5rem;
}

/* L'effet au focus d'un input */
.login-input:focus {
    border: solid 2px var(--orange-color);
}

/* Le bouton de soumission du formulaire */
.login-submit-button {
    color: var(--white-color);
    font-family: var(--main-font);
    background-color: var(--orange-color);
    border: none;
    border-radius: 0.5rem;
    height: 2.5rem;
    width: 7.5rem;
    padding: 0.5rem;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* ERROR */

/* Le bloc comprenant les messages d'erreur */
.error-container {
    height: calc(100vh - (8rem + 6vh));
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Le message d'erreur */
.error-title {
    background: -webkit-linear-gradient(70deg, var(--orange-color), var(--gradient-color));
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--main-font);
    text-align: center;
    font-size: 1.5rem;
}

/* FOOTER */

/* Le footer en entier */
.footer {
    height: 6vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: solid 1px var(--white-color);
  }

/* Chaque lien du footer */
.footer-link {
    color: var(--white-color);
    font-family: var(--secondary-font);
    text-decoration: none;
    font-weight: 450;
}

/*  RESPONSIVE */

@media (min-width: 640px) {    
    .navbar-link {
        margin: 0 1.5rem;
    }

    .navbar-link:hover, .footer-link:hover {
        color: var(--orange-color);
    }

    .login-form-container {
        padding: 0 4rem;
    }
    
    .login-title {
        font-size: 2rem;
        padding-bottom: 4rem;
    }
    
    .login-label {
        font-size: 1.1rem;
        padding-bottom: 2rem;
    }
    
    .login-input {
        width: 50%;
        padding: 0.75rem 1.25rem;
        margin-bottom: 3rem;
    }
    
    .login-submit-button {
        height: 3rem;
        width: 8rem;
        padding: 0.75rem;
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }

    .error-title {
        font-size: 1.75rem;
    }
}

@media (min-width: 768px) {
    .navbar-second-part {
        justify-content: space-evenly;
    }
}

@media (min-width: 1024px) {
    .navbar {
        height: 7rem;
        display: flex;
        align-items: center;
    }

    .navbar-first-part {
        height: 7rem;
    }

    .navbar-logo {
        margin-top: 0;
        margin-left: 2rem;
    }

    .navbar-second-part {
        height: 7rem;
    }

    .navbar-link {
        margin: 0;
    }

    .main {
        padding-top: 7rem;
    }

    .homepage {
        height: calc(100vh - (7rem + 6vh));
    }
    
    .homepage-video {
        height: 30rem;
        padding-right: 4rem;
        padding-top: 2rem;
    }

    .login-form-container, .error-container {
        height: calc(100vh - (7rem + 6vh));
    }

    .error-title {
        font-size: 2rem;
    }
}

@media (min-width: 1200px) {
    .navbar-logo {
        width: 12rem;
        margin-left: 3rem;
    }

    .navbar-link {
        font-size: 1.1rem;
    }

    .login-form-container {
        padding: 0 5rem;
    }
    
    .login-title {
        font-size: 2.5rem;
        padding-bottom: 4rem;
    }
    
    .login-label {
        font-size: 1.2rem;
        padding-bottom: 2.5rem;
    }
    
    .login-input {
        width: 50%;
        padding: 1rem 1.5rem;
        margin-bottom: 4rem;
    }
    
    .login-submit-button {
        height: 3.5rem;
        width: 9rem;
        padding: 1rem;
        font-size: 1rem;
        margin-top: 2rem;
    }

    .error-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1400px) {
    .navbar-logo {
        width: 13rem;
        margin-left: 4rem;
    }

    .navbar-link {
        font-size: 1.2rem;
    }

    .homepage-video {
        height: 35rem;
        padding-right: 5rem;
        padding-top: 3rem;
    }

    .error-title {
        font-size: 2.5rem;
    }
}