:root {
    /* Palette de couleur */
    --brand-orange: #FF8C00;
    --brand-dark: #333333;
    --white: #FFFFFF;

    /* Role */
    --primary: var(--brand-orange);
    --secondary: #d37400; /* primary hover */
    --background: #F2F2F2;
    --bg-light: var(--white);

    /* Text  Color*/
    --text-primary: var(--brand-dark);
    --text-secondary: #636363;

    /* Font families */
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace; /* Pour le jeu */

    /* Font bold */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 800;

    /* Hover color */
    --text-hover: #000000;
    --light-bg-hover-active: #e5e7eb;
    --dark-bg--hover-active: #484848;

}

body {
    font-family: var(--font-main);
    font-weight: var(--fw-regular);
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

i {
    font-family:'Franklin Gothic Medium', 'Arial Narrow', 'Arial', 'sans-serif';
}

a {
    text-decoration: none;
    color: var(--brand-dark)
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 15px;
}

.logo span {
    font-size: 26px;
    font-weight: var(--fw-bold);
}

.logo-icon {
    margin-right: auto;
    height: 40px;
}


/* NAVBAR SECTION */

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    height: 60px;
    font-size: 1rem;
}

nav .left {
    display: flex;
    gap: 1rem;
    margin-right: auto;
}

nav .right {
    display: flex;
    gap: 1rem;
}


.nav-link {
    padding: 10px 20px;
}


.nav-link:not(.register):hover {
    color: var(--text-hover);
}


nav .menu {
    display: none;
}


/* HERO SECTION */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    margin-bottom: 13rem;
}

.hero-container .hero-title {
    width: clamp(280px, 80vw, 700px);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: var(--fw-bold);
    
}

.hero-container .hero-lead {
    width: clamp(260px, 70vw, 400px);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.hero-container .hero-cta {
    color: var(--background);
    padding: 8px 25px;
    background-color: var(--primary);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: var(--fw-medium);
}


.bouton {
    z-index: 1000;
    position: relative;
    cursor: pointer;
    padding: 7px;
    font-size: 1.5rem;
}


.open {
    position: fixed;
    display: flex;
    z-index: 100;
    left: 0;
    top: 70px;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    flex-direction: column;
    align-items: center;
}

.close {
    display: none;
}


.nav-menu {
    height: 500px;
}


.nav-menu :is(.login-section, .other) {
    display: flex;
    flex-direction: column;
}

.nav-menu span {
    cursor: pointer;
}


.login-section {
    padding: 0 20px;
    width: 100%;
    gap: 20px;
}

.login-section a {
    text-align: center;
    padding: 10px;
}


.register {
    background-color: var(--brand-dark);
    color: var(--background);
    border-radius: 5px;
}


.login {
    box-shadow: 0 0 0 0.1px #000;
    background-color: var(--bg-light);
    border-radius: 5px;
}


.register:hover {
    background-color: var(--dark-bg--hover-active);
}

.login:hover {
    background-color: var(--light-bg-hover-active);
}


.other {
    margin-top: 2.5rem;
    padding: 15px 20px;
    width: 100%;
}


.other a{
    padding: 15px;
}

.other a:hover {
    background-color: var(--light-bg-hover-active);
    border-radius: 5px;
}


@media (max-width: 850px) {
    nav {
        padding: 0 25px;
    }
    nav .left {
        display: none;
    }

    nav .right  {
        display: none;
    }

    nav .menu {
        display: block;
        font-size: 1.2rem;
    }

}


@media (max-width: 700px) {

    .logo span {
        display: none;
    }
}




/* WORK IN PROGRESS SECTION */


.center {
    --typing-animation: 2s;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}


.wip-icon {
    width: clamp(120px, 25vw, 270px);
}




.center h1 {
    font-size: clamp(1.3rem, 4vw, 3.5rem);
    margin-top: clamp(50px, 10vh, 120px);
    font-family: monospace;

    overflow: hidden;
    white-space: pre-wrap;
    display: inline-block;

    text-align: center;
}


.caret {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: black;
    margin-left: 2px;

    animation: blink 0.8s infinite;
    vertical-align: bottom;
}


/* WIP animation */

@keyframes type-animation {
    from {
        width: 0%;
    }

    to {
        width: 40ch;
    }
}


@keyframes blink {
    50% {
        opacity: 0;
    }
}