body{
    margin: 0;

    font-size: 17px;
    font-family: 'Clash Grotesk', sans-serif;
    line-height: 140%;
    font-style: normal;
}

p{
    font-size: 20px;
    font-family: 'Clash Display', sans-serif;
    font-weight: 500;
    line-height: 170%;
    max-width: 57ch;
    text-align: center;
    margin: 0;
}


@media (min-width: 840px){
    body{
        font-size: 20px
    }

    p{
        max-width: 97ch;
    }
}

/* HEADER */
.header{
    width: 100%;
    height: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px 0;
    box-sizing: border-box;
    z-index: 1;

    background-color: #ED474A;
}

.header__home{
    width: 75px;
    height: 75px;
    cursor: pointer;
}

.header__logo{
    width: 100%;
    height: 100%;
}


.header__btn{
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 3;
    
    transition: transform 0.4s ease-in-out;
}

.header__btn img{
    width: 30px;
    height: auto;
}

.header__btn--open{
    transform: rotate(180deg);
}

.header__menu{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #F3F3F3;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 2;
    
    transform: translateY(-100%);
    transition: 0.4s ease-in-out;
}

.header__menu--open{
    transform: translateY(0);
    visibility: visible;
}

.header__el{
    margin: 20px 0;
}

.header__el a{
    color: #000;
    text-decoration: none;
    font-size: 35px;
    font-weight: 700;

    transition: 0.3s ease;
}

.header__el a:hover{
    color: #ED474A
}

@media (min-width: 840px){
    .header__el a{
        font-size: 41px;
    }

    .header__home{
        width: 100px;
        height: 100px;
    }

    .header__btn img{
        width: 45px;
    }   
}

/* FOOTER */
.footer{
    display: flex;
    flex-flow: column;
    padding: 20px;
    border-top: 1px solid #000;

    background-color: #F3F3F3;
}

.footer__content{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}


.footer__links{
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 20px;
}

.footer__links a{
    font-family: 'Clash Display', sans-serif;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    color: black;
    white-space: nowrap;
}

.footer__backToTop{
    display: flex;
    justify-content: right;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 3;
    margin-top: 20px;

    transition: transform 0.3s ease-in-out;
}

.footer__img{
    width: 30px;
    height: auto;
    transform: rotate(180deg);  
}

.footer__img:hover{
    transform: rotate(180deg) scale(80%);
}

@media(min-width: 840px){
    .footer__content{
        justify-content: space-between;
        flex-direction: row;
        width: 100%;
        max-width: 1100px;
        margin: auto;
    }

    .footer__backToTop{
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .footer__links{
        display: flex;
        flex-direction: row;
    }

    .footer__img{
        width: 45px;
    }
}

/* MAIN */
.content{
    margin: 0;
    height: 100%;
    min-height: 100vh;
    
    display: flex;
    flex-direction: column;
    
    overflow: hidden;
    background-color: #F3F3F3;
}

.subtitle{
    font-size: 60px;
    font-weight: 700;
    line-height: 140%;
    text-align: center;
    
    display: block; 
    width: 100%;     
    margin: 0 0 40px;
}

@media (min-width: 840px){
    .subtitle{
        font-size: 72px;
    }
}

/* HOME PAGE */
.name{
    display: flex;
    justify-content: center;
    align-items: center;
    
    width: 100%;
    height: 95vh;
    max-height: 100vh;

    background-color: #ED474A;
}

.name__svg{
    width: 90%;
    height: auto;

    backface-visibility: hidden; 
}

.name__svg path{
    fill: none; 
    stroke: #000;       
    stroke-width: 4;  
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: var(--lineLength);
    stroke-dashoffset: var(--lineLength);

    animation: draw 3s ease-in-out forwards;
}

@keyframes draw{
    to { stroke-dashoffset: 0; }
}

.intro{
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 80px 0 120px;
    text-align: center;
}

.intro__text{
    margin: 0 20px 30px;
    color: #000;
}

.intro__link{
    display: inline-block;
    background: #ED474A;
    color: black;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;

    transition: 0.3s ease;
}

.intro__link:hover{
    transform: scale(90%);
}

@media (min-width: 840px){
    .intro__text{
        max-width: 1100px;
    }
}

.project{
    width: 100%;
    padding: 0 20px 80px;
    box-sizing: border-box;
}

.project__list{
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.project__el{
    display: none; 
    background: #B2B4AC;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    height: 450px;
}

.project__el--show{
    display: flex;
    justify-content: center;

}

.project__details{
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.project__name{
    font-family: 'Clash Grotesk', sans-serif;
    font-size: 29px;
    font-weight: 700;
    line-height: 140%;
    margin: 0;
}

.project__description{
    font-size: 20px;
    margin-bottom: 20px;
}

.project__link{
    display: inline-block;
   
    background: #ED474A;
    color: black;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;

    transition: 0.3s ease;
}

.project__link:hover{
    transform: scale(90%);
}

.project__control{
    display: flex;
    justify-content: left;
    list-style: none;
    padding: 0;
    gap: 20px;
    margin-top: 20px;
}

.project__btn{
    background: none;
    border: none;
    cursor: pointer;
    
    transition: transform 0.3s ease-in-out;
}

.project__btn img{
    width: 30px;
    height: auto;
}

.project__btn--prev{
    transform: rotate(90deg);
}

.project__btn--prev:hover{
    transform: rotate(90deg) scale(80%);
}

.project__btn--next{
    transform: rotate(-90deg);
}

.project__btn--next:hover{
    transform: rotate(-90deg) scale(80%);
}

@media (min-width: 840px){
    .project__el--show{
        height: 300px;
    }

    .profil__btn{
        width: 50%;
    }

    .project__btn img{
        width: 45px;
    }

    .project__name{
        font-size: 35px;
    }
}

@media (min-width: 1100px) {
    .project{
        max-width: 1100px;
        padding: 0 0 80px;
        margin: 0 auto;
    }
}


.profil{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 80px;
    margin: 0 20px;
}

.profil__content{
    display: flex;
    flex-flow: column;
    align-items: center;
    width: 100%;
    max-width: 1060px;
    padding: 40px 20px;

    border-radius: 20px;
    background: #F3F3F3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.profil__text{
    margin-bottom: 30px;
}

.profil__btn{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.profil__btn a{
    padding: 15px 30px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;

    transition: 0.3s ease;
}

.profil__btn a:hover{
    transform: scale(90%);
}

.profil__btn--cv{
    background: #000;
    color: #fff;
}

.profil__btn--mail{
    border: 2px solid #000;
    color: #000;
}

/* Spécifiques au dossier PAGES */
.content__title{
    font-size: 86px;
    font-weight: 700;
    line-height: 140%;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0;
    height: 50vh;

    background-color: #ED474A;
}

@media (min-width: 840px){
    .content__title{
        font-size: 103px;
    }
}

.work{
    display: flex;
    align-items: center;
    justify-items: center;
    margin-bottom: 120px;
}

.work__subtitle{
    font-family: 'Clash Grotesk', sans-serif;
    font-size: 35px;
    font-weight: 700;
    line-height: 140%;
    margin: 20px 0 30px 0;
}

.work__grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;

    margin: 80px 0;

    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1100px;
}

.work__info{
    padding: 20px;
    color: #000;
}

.work__cat{
    font-size: 24px;
    font-weight: 700;

    margin: 30px 0 10px 0;
}

.work__text{
    text-align: left;
}

.work__slider{
    margin-top: 20px;
}

.work__el{
    background-color: #F3F3F3;
    height: auto;
}

.work__display{
    width: 100%;
    margin: 20px 0 40px;
    align-items: center;
}

.work__display--2{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
}

.work__font{
    font-size: 35px;
    align-self: center;
    justify-self: center;
    margin: 0;
}

.work__display--5 {
    display: grid; 
    grid-template-columns: 1fr;
    gap: 10px;
}

.work__colorCode{
    height: 40px;
    font-size: 17px;
    margin-bottom: 10px;
}

.work__color{
    border: solid 1px black;
    height: 40px;
    border-radius: 10px;
}

/*ATTENTION A LA TAILLE DES IMAGES*/
.work__el--prj{
    height: auto;
}

.work__img{
    width: 100%;
    height: 100%;
    border-radius: 20px;

    object-fit: contain;
}

.work__list{
    list-style: none;
}

.work__el{
    font-size: 20px;
    font-family: 'Clash Display', sans-serif;
    font-weight: 500;
    line-height: 170%;
    max-width: 57ch;
}

.work__el a{
    color: #000;
}

.work__link{
    display: inline-block;
    white-space: nowrap;

    background: #ED474A;
    color: black;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;

    transition: 0.3s ease;
}

.work__link:hover{
    transform: scale(90%);
}

.work__info--6{
    display: flex;
    justify-content: center;
}


@media (min-width: 840px) {
    .work__subtitle{
        font-size: 41px;
    }

    .work__font{
        font-size: 41px;
    }

    .work__colorCode{
        font-size: 20px;
    }

    .work__grid{
        display: grid;
        grid-template-columns: repeat(5, 1fr); 
        gap: 40px 20px; 
        
        max-width: 1100px;
        margin: 80px auto;
        padding: 0 40px;
    }

    .work__display--5{
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-auto-flow: column;
        gap: 10px;
    }

    .work__color{
        height: 100%;
    }

    .work__info--center{
        grid-column: 1 / 6;
    }

    .work__info--1{
        grid-column: 1 / 4;
    }

    .work__info--2{
        grid-column: 1 / 6;
    }

    .work__info--3{
        grid-column: 3 / 6;
    }

    .work__info--4{
        grid-column: 1 / 6;
    }

    .work__info--5{
        grid-column: 1 / 5;
    }

    .work__info--6{
        grid-column: 5 / 6;
        grid-row: 5 / 6;
    }

    /* pour page codekit */
    .work__info--6ck{
        grid-row: 4/6;
    }
}