@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap");

/**** Reset ****/

*, ::after, ::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    font-family: "Poppins", sans-serif;
}

/**** Style général de la page ****/

body {
    width: 100%;
    min-height: 100vh;
    background-color: #111111;
    color: #ffd700;
}

nav {
    position: fixed;
    /* De la droite vers la gauche 
    width: 50%;
    height: 100vh;
    right: 0;
    border-left: 1px solid #ffd700;
    transform: translateX(100%); */
    width: 100%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #111111;
    /*padding: 20px 40px; Pour la navigation sur le côté */
    border-bottom: 1px solid #ffd700;
    transform: translateY(-100%); /* -100% de la hauteur de la bordure */
    transition: transform 0.3s cubic-bezier(0.73, 0.11, 0.67, 0.84);
}

nav.active {
    transform: translate(0);
}

nav a {
    display: block;
    font-size: 20px;
    color: #ffd700;
    margin: 10px 0;
    text-decoration: none;
}

.nav__toggler {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    z-index: 10;
}

.line {
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffd700;
    transition: transform 0.3s ease-in-out,
                opacity 0.1s ease-in-out;
}

.l1 {
    transform: translateY(-10px);
}

.l3 {
    transform: translateY(10px);
}

.nav__toggler.active .l1 {
    transform: translateY(0) rotate(135deg);
}

.nav__toggler.active .l2 {
    opacity: 0;
}

.nav__toggler.active .l3 {
    transform: translateY(0) rotate(-135deg);
}

.container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

h1 {
    font-size: 50px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 250px;
}

h1 span {
    text-transform: capitalize;
    font-weight: 700;
}