/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');

@font-face {
    font-family: "Belgan Aesthetic";
    src: url('../fonts/belgan-aesthetic.ttf');
}

/* Variables */
:root{
    --black:#020406;
    --grey:#5B5D63;
    --light-grey:#E2E1DA;
    --light-beige:#FFFEFB;
    --blue:#2440FF;
  }

/* General settings */
*{
    box-sizing: border-box;
    margin: 0;
}

html{
    background-color: var(--light-beige);
    scroll-behavior: smooth;
}

/* Navbar */
.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0px;
    margin: 0px 72px;
    border-bottom: var(--light-grey) solid 1px;
}

.burger-icon{
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar{
    width: 24px;
    height: 2px;
    background-color: var(--grey) ;
    margin: 3px 0;
    border-radius: 1px;
}

.nav-links{
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
}

.navbar .nav-links li{
    margin: 0 32px;
    display: flex;
    align-items: center;
}

.navbar a{
    color: var(--grey);
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.navbar a:hover{
    text-decoration-color: var(--blue);
    color: var(--blue);
}

.navbar .logo{
    color: var(--black);
    font-family: 'Belgan Aesthetic', serif;
    font-size: 32px;
    transition: color 0.3s ease-in-out;
}

.navbar .logo em{
    color: var(--blue);
}

.navbar .logo:hover{
    text-decoration: none;
}

#lang_active{
    color: var(--blue);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--blue);
    text-underline-offset: 2px;
}

/* Body */
body{
    margin: 0;
}

h1, 
h2, 
h3{
    color: var(--black);
    font-family: 'Belgan Aesthetic', serif;
    margin: 0;
}

h1{
    font-size: 64px;
    line-height: 76px;
}

h1 em,
h2 em{
    color: var(--blue);
}

h2{
    font-size: 32px;
    line-height: 48px;
}

h3{
    font-size: 24px;
    line-height: 36px;
}

p, 
a, 
span,
ul,
li{
    color: var(--grey);
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
}

button{
    color: var(--light-beige);
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    border: var(--black) solid 1px;
    background: var(--black);
    border-radius: 2px;
    padding: 16px 24px;
    width: fit-content;
    transition: background 0.3s ease-in-out;
}

button:hover{
    background: var(--blue);
    border: var(--blue) solid 1px;
    cursor: pointer;
}

.secondary{
    padding: 16px 24px;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.secondary:hover{
    color: var(--blue);
    text-decoration-color: var(--blue);
}

.large-p{
    font-size: 20px;
    line-height: 24px;
    font-weight: 400;
}

.hero{
    display: flex;
    flex-direction: column;
    min-height: 95vh;
    margin: 0 72px;
    justify-content: center;
    gap: 24px;
}

.hero div{
    width: 75%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.hero div p{
    width: 70%;
}

.hero .hero-buttons{
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
}

/* About me */
.a-propos{
    display: flex;
    flex-direction: column;
    min-height: 95vh;
    margin: 0 72px;
    justify-content: center;
    gap: 24px;
}

.section-title{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.section-title h2{
    width: 40%;
}

.section-title p{
    text-align: end;
}

.a-propos-content{
    display: flex;
    flex-direction: row;
    gap: 64px;
}

.divider-vertical{
    width: 1px;
    align-self: stretch;  
    background-color: var(--light-grey);
}

.a-propos-texts{
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.a-propos-right{
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.data-catch{
    display: flex;
    flex-direction: column;
}

.data-catch h2{
    color: var(--blue);
}

.data-catch p{
    font-size: 14px;
    line-height: 20px;
}

.badges{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge{
    border: 1px solid var(--light-grey);
    border-radius: 2px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 20px;
    transition: border 0.3s ease-in-out, color 0.3s ease-in-out;
}

.badge:hover{
    border: 1px solid var(--blue);
    color: var(--blue);
    cursor: default;
}

/* Process */
.process{
    display: flex;
    flex-direction: column;
    min-height: 95vh;
    margin: 0 72px;
    justify-content: center;
    gap: 24px;
}

.process-content{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 32px;
}

.step{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.divider-horizontal{
    height: 1px;
    align-self: stretch;  
    background-color: var(--light-grey);
}

.n{
    font-size: 20px;
    line-height: 24px;
    color: var(--blue);
}

.step h3{
  transition: color 0.2s ease-in-out;
}

.step:hover h3{
  color: var(--blue);
}

/* Realisations */
.realisations{
    display: flex;
    flex-direction: column;
    min-height: 95vh;
    margin: 0 72px;
    justify-content: center;
    gap: 24px;
}

.work-list{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.work-row{
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.work-content{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.work-info{
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 50%;
}

.work-row h3{
  transition: color 0.2s ease-in-out;
}

.work-row:hover h3{
  color: var(--blue);
}

.tag{
    color: var(--blue);
}

/* Contact */
.contact{
    display: flex;
    flex-direction: column;
    margin: 0 72px;
    gap: 40px;
}

.contact-content{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.cta-contact{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-mail{
    font-size: 24px;
    line-height: 36px;
    color: var(--blue);
    font-family: 'Belgan Aesthetic', serif;
    margin: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s ease-in-out;
}

.cta-mail:hover{
    text-decoration-color: var(--blue);
}

.cta-links{
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.cta-links a{
    text-underline-offset: 2px;
    transition: text-decoration-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.cta-links a:hover{
    color: var(--blue);
    text-decoration-color: var(--blue);
}

/* Footer */
footer{
    display: flex;
    flex-direction: row;
    margin: 24px 72px;
    justify-content: space-between;
}

footer p{
    font-size: 14px;
    line-height: 20px;
}

/* Project */
.project{
    display: flex;
    flex-direction: column;
    margin: 72px 72px 64px 72px;
    justify-content: center;
    gap: 24px;
}

.project-intro {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-intro .secondary{
    padding: 16px 8px;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.3s ease-in-out, color 0.3s ease-in-out;
    width: fit-content;

}

.project-intro .secondary:hover{
    color: var(--blue);
    text-decoration-color: var(--blue);
}

.intro{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.intro p{
    width: 60%;
}

.datas-illustration{
    display: flex;
    flex-direction: column;
    justify-content: center ;
    align-items: center;
    gap: 24px;
}

.datas-project{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-self: stretch;
}

.data-project{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.data-project .type {
   font-size: 14px;
   line-height: 20px;
   color: var(--grey);
}

.data-project p {
    color: var(--black);
}

.img-cover{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.img-cover img {
    width: 40%;
    object-fit: cover;
    display: block;
}

figcaption {
    font-family: 'Geist', sans-serif;
    font-size: 12px;
    color: var(--grey);
    font-weight: 400;
}

.project-description{
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-project{
    display: flex;
    flex-direction: row;
}

.step-title{
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 30%;
}

.step-content{
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 1;
}

.step-content img{
    max-width: 100%;
}

.question{
    font-size: 20px;
    line-height: 24px;
    color: var(--black);
    padding: 8px 80px;
}

.question em, 
li em{
    font-style: normal;
    color: var(--blue);
}

.step-content p em{
    font-weight: 600;
    font-style: normal;
    color: var(--blue);
}

.datas-catch{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.step-content li{
    list-style: none;
    margin-bottom: 16px;
}

.project-buttons{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0px 72px 24px 72px;
}

.project-buttons a{
    padding: 0;
}




/* Responsive tablet */
@media screen and (max-width: 1024px) {

    /* General */
    h1{
        font-size: 36px;
        line-height: 54px;
    }

    h2{
        font-size: 28px;
        line-height: 42px;
    }

    h3{
        font-size: 22px;
        line-height: 33px;
    }

    .hero,
    .a-propos,
    .process,
    .realisations{
        padding-bottom: 64px;
    }

    .navbar .logo{
        font-size: 24px;
        line-height: 40px;
    }

    .a-propos-content{
        gap: 32px;
    }

    .a-propos-texts{
        width: 100%;
    }   

    .section-title p{
        width: 50%;
    }
}

/* Burger menu */
@media screen and (max-width: 768px) {

    /* Navbar burger */
    .navbar{
        padding: 24px 0px;
    }

    .burger-icon{
        display: flex;
    }

    .nav-links{
        display: none;
        flex-direction: column;
        position: absolute;
        background-color: var(--light-beige);
        width: 100%;
        top: 60px;
        left: 0;
        text-align: center;
    }

    .nav-links.active{
        display: flex;
        justify-content: flex-start;
        align-items: center;
        position: fixed;
        top: 73px;
        overflow-y: auto;
        height: 100vh;
        padding: 16px;
        gap: 16px;
    }

    .navbar .nav-links.active li{
        margin: 16px 48px;
    }

}

/* Responsive phone */
@media screen and (max-width: 640px) {

    /* General */
    .hero,
    .a-propos,
    .process,
    .realisations{
        padding-bottom: 64px;
        margin: 16px;
    }
    
    .secondary{
        padding: 8px;
    }

    .section-title{
        flex-direction: column;
        gap: 16px;
    }

    .section-title h2{
        width: 100%;
    }

    .section-title p{
        text-align: start;
        width: 100%;
    }

    .navbar{
        padding: 16px 0px;
        margin: 0px 16px;   
    }

    /* Hero */
    .hero div{
        width: 100%;
    }

    .hero div p{
        width: 100%;
    }

    .hero .hero-buttons{
        flex-direction: column;
    }

    /* About me */
    .a-propos-content{
        flex-direction: column;
        gap: 24px;
    }

    .divider-vertical{
        height: 1px;
        width: 100%;
    }

    .a-propos-texts{
        width: 100%;
        gap: 24px;
    }

    /* Process */
    .process-content{
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(1, 1fr);
        gap: 24px;
    }

    /* Realisations */
    .work-content{
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .work-info {
        width: 100%;
    }

    /* Contact */
    .contact{
        gap: 24px;
        align-items: flex-start;
        margin: 16px;
    }

    .contact-content{
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .cta-links{
        align-items: flex-start;
    }

    /* Footer */
    footer{
        margin: 16px;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* Project */
    .project{
        padding-bottom: 40px;
        margin: 16px;
    }

    .project-intro {
        gap: 16px;
    }

    .intro p{
        width: 100%;
    }

    .datas-project{
        flex-direction: column;
        gap: 24px;
    }

    .datas-illustration img{
        width: 60%;
    }

    .step-project{
        flex-direction: column;
        gap: 24px;
    }

    .step-title{
        flex: 1;
    }

    .step-content{
        gap: 24px;
    }

    .question{
        padding: 8px 24px;
    }

    .datas-catch{
        flex-direction: column;
        gap: 24px;
    }

    ul{
        padding: 0;
    }

    .project-buttons{
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin: 0px 16px 24px 16px;
    }

}
 