 @font-face {
    font-family: 'HealTheWebB';
    src: url('../assets/font/HealTheWebB-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html{
    scroll-behavior: smooth;
}
body{
    font-family: 'Epilogue', sans-serif;
    margin: 0;
    line-height: 1.4;
    font-size: 16px;
    background-color: #E6E6E6;
    color: #373737;
}
main{
    margin: 0 5%;;
}

/* INFO ------------------------------------------------------------------------------------------------------------------- */
.container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
}
.box{
    display: flex;
    flex-direction: column;
    margin: 20px;
    gap: 10px;
}
.info{
    font-weight: 300;
}

/* STYLE ------------------------------------------------------------------------------------------------------------------- */
.hello-world{
    background-color: #FFFBF8;
    color: #423830;
}
.louerunevoiture-eu{
    background-color: #FFFAF0;
    color: #0F0E0E;
}
.pensees{
    background-color: #1E2022;
    color: #FFFAF0;
}
.codekit{
    background-color: #000000;
    color: #73FF00;
}
.kepos{
    background-color: #346AA9;
    color: #FFFEFC;
}
.janus{
    background-color: #FFF5EB;
    color: #2C2C2C;
}

/* LINK -------------------------------------------------------------------------------------------------------------------*/
.link{
    position: fixed;
    border-radius: 0 0 8px 0;
    top: 0;
    z-index: 20;
}
.link__text{
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
    text-decoration: none;
    font-size: 20px;
    color: inherit;
}
.link__icon{
    height: 1em;
    width: 1em;
    align-items: center;
    
    transition: all 0.2s ease-out;
    flex-shrink: 0;
}
.link:hover .link__icon{
    transform: translateX(-10px);
}
.link--hello-world{
    background-color: #FFFBF8;
}
.link--louerunevoiture-eu{
    background-color: #FFFAF0;
}
.link--pensees{
    background-color: #1E2022;
}
.link--codekit{
    background-color: #000000;
}
.link--kepos{
    background-color: #346AA9;
}
.link--janus{
    background-color: #FFF5EB;
}
.link--credit{
    background-color: #373737;
}

/* BACK TO TOP -------------------------------------------------------------------------------------------------------------------*/
.backToTop {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none; 
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    
    transform: translateY(400px);
    transition: transform .6s ease-in;
}

.backToTop--show{
    transform: translateY(0);
    transition: transform .6s ease-in;
}

.backToTop--hello-world{
    background-color: #FFFBF8;
    border: 2px solid #423830;
}
.backToTop--louerunevoiture-eu{
    background-color: #FFFAF0;
    border: 2px solid #0F0E0E;
}
.backToTop--kepos{
    background-color: #346AA9;
    border: 2px solid #FFFEFC;
}
.backToTop--pensees{
    background-color: #1E2022;
    border: 2px solid #FFFAF0;
}
.backToTop--codekit{
    background-color: #000000;
    border: 2px solid #73FF00;
}
.backToTop--janus{
    background-color: #FFF5EB;
    border: 2px solid #2C2C2C;
}
/* HEADER -------------------------------------------------------------------------------------------------------------------*/
.header__title{
    font-size: 67px;
    font-weight: 900;
}
.header__subtitle{
    font-size: 38px;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 80px;
}
.header__subtitle::after{
    content: "";
    display: inline-block; 
    width: 0.5em;  
    height: 0.5em; 
    background-image: url('../assets/img/icon/arrow-down-right-black.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.header__project{
    font-size: 38px;
    margin: 0px;
    font-weight: 900;
}
.header__project--hello-world{
    font-family: "Volkhov", serif;
}
.header__project--louerunevoiture-eu{
    font-family: "Poppins", sans-serif;
}
.header__project--pensees{
    font-family: 'Chillax', sans-serif;
}
.header__project--codekit{
    font-family: 'HealTheWebB', sans-serif;
}
.header__project--kepos{
    font-family: 'Satoshi', sans-serif;
}
.header__project--janus{
    font-family: "Nunito Sans", sans-serif;
}

/* CARDS -------------------------------------------------------------------------------------------------------------------*/
.projects, a{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: auto;
    gap: 20px;
    border-radius: 8px;
    font-size: inherit;
}
.projects{
    margin-bottom: 80px;
}
.projects__card{
    display: flex;
    flex-direction: column;
    font-family: inherit; 
    text-align: start;
    border-width: 5px;
    border-style:solid;
    line-height: inherit;
    justify-content: flex-end;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    height: 265px;
    text-decoration: none;
}
.projects__content{
    margin: 10px;
}
.projects__number{
    position: absolute;
    top: 10px;
}
.projects__name{
    font-size: 28px;
    margin-bottom: 16px;
}
.projects__icon{
    height: 12px;
    width: auto;
    margin: 10px;
    align-self: flex-start;

    transition: all 0.2s ease-out;
    flex-shrink: 0;
}
.projects__card:hover .projects__icon{
    height: 20px;
    width: auto;
    margin: 16px;
}
.projects__card:hover .projects__description{
    margin-top: 1px;
}
.projects__card, a{
    text-decoration: none;
}

.projects__card--hello-world{
    border-color: #423830;
    background-color: #FFFBF8;
}
.projects__name--hello-world{
    font-family: "Volkhov", serif;
    font-weight: 700;
}
.projects__card--hello-world, a{
    color: #423830;
}

.projects__card--louerunevoiture-eu{
    border-color: #0F0E0E;
    background-color: #FFFAF0;
}
.projects__name--louerunevoiture-eu{
    font-family: "Poppins", sans-serif;
    font-weight: 600;
}
.projects__card--louerunevoiture-eu, a{
    color: #0F0E0E;
}

.projects__card--pensees{
    border-color: #AFAFAF;
    background-color: #1E2022;
}
.projects__name--pensees{
    font-family: 'Chillax', sans-serif;
    font-weight: 700;
}
.projects__card--pensees, a{
    color: #F5F5F5;
}

.projects__card--codekit{
    border-color: #73FF00;
    background-color: #000000;
}
.projects__name--codekit{
    font-family: 'HealTheWebB', sans-serif;
    font-weight: 700;
}
.projects__card--codekit, a{
    color: #73FF00;
}

.projects__card--kepos{
    border-color: #BDA976;
    background-color: #346AA9;
}
.projects__name--kepos{
    font-family: 'Satoshi', sans-serif;
    font-weight: 900;
}
.projects__card--kepos, a{
    color: #FFFEFC;
}

.projects__card--janus{
    border-color: #2C2C2C;
    background-color: #FFF5EB;
}
.projects__name--janus{
    font-family: "Nunito Sans", sans-serif;
    font-weight: 900;
}
.projects__card--janus, a{
    color: #2C2C2C;
}

.projects__card--wip{
    border-color: #E6E6E6;
    background-color: #E6E6E6;
    cursor:default;
}

/* SEGMENT -------------------------------------------------------------------------------------------------------------*/
.segment{
    display: block; 
    position: relative; 
    padding: 20px 0;
    padding-bottom: 80px;
}
.segment::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 20%; 
    right: 20%;
    border-bottom: 2px dashed currentColor;
}
.segment__title{
    font-size: 28px;
    margin: 0;
}
.segment__subtitle{
    font-size: 28px;
    margin: 20px;
}
.segment__subtitle--volkhov{
    font-family: "Volkhov", serif;
    font-weight: 700;
}
.segment__subtitle--league-spartan{
    font-family: "League Spartan", sans-serif;
}
.segment__subtitle--chillax{
    font-family: 'Chillax', sans-serif;
}
.segment__subtitle--alpino{
    font-family: 'Alpino', sans-serif;
}
.segment__subtitle--poppins{
    font-family: "Poppins", sans-serif;
}
.segment__subtitle--satoshi{
    font-family: 'satoshi', sans-serif;
}
.segment__subtitle--pramukh{
    font-family: 'Pramukh Rounded', sans-serif;
}
.segment__subtitle--didact{
    font-family: "Didact Gothic", sans-serif;
}
.segment__subtitle--nunito{
    font-family: "Nunito Sans", sans-serif;
}

.segment__list{
    list-style: none;
    line-height: 2;
    margin: 0;
    padding: 0;
    padding:initial;
    text-indent: -0.7em;
}
.segment--last::after {
    display: none;
}
.segment__link{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    padding: 10px 40px;
    margin: 0 auto;
    width: max-content;
    border: 2px solid currentColor;
    border-radius: 8px;
}
.segment__icon{
    height: 20px;
    width: auto;
    transition: all 0.2s ease-in;
}
.segment__link:hover .segment__icon{
    height: 24px;
    width: auto;
}
.segment__credit{
    text-decoration: none;
    display: flex;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
}
.segment__credit:hover{
    text-decoration: underline;
}

/* IMG ------------------------------------------------------------------------------------------------------------- */
.segment__img{
    border: 2px solid currentColor;
    border-radius: 8px;
    margin-bottom: 20px;
}
.segment__img--max{
    width: 100%;
}
.segment__img--big{
    width: 100%;
}
.segment__img--mid{
    width: 60%;
}
.segment__img--small{
    width: 50%;
}

/* COLOR CARDS ------------------------------------------------------------------------------------------------------------- */
.color__box{
    width: 100px;
    height: 50px;
    border: 2px solid currentColor;
    border-radius: 8px;
}
.color__box--423830{
    background-color: #423830;
}
.color__box--fffbf8{
    background-color: #fffbf8;
}
.color__box--FFEFE3{
    background-color: #FFEFE3;
}
.color__box--0F0E0E{
    background-color: #0F0E0E;
}
.color__box--FFFAF0{
    background-color: #FFFAF0;
}
.color__box--DDE8F3{
    background-color: #DDE8F3;
}
.color__box--0B63E9{
    background-color: #0B63E9;
}
.color__box--1E2022{
    background-color: #1E2022;
}
.color__box--F5F5F5{
    background-color: #F5F5F5;
}
.color__box--4687FF{
    background-color: #4687FF;
}
.color__box--E13715{
    background-color: #E13715;
}
.color__box--EEEEEE{
    background-color: #EEEEEE;
}
.color__box--4E7EB7{
    background-color: #4E7EB7;
}
.color__box--E5D8B7{
    background-color: #E5D8B7;
}
.color__box--000000{
    background-color: #000000;
}
.color__box--FFFFFF{
    background-color: #FFFFFF;
}
.color__box--CE743C{
    background-color: #CE743C;
}
.color__box--D2422B{
    background-color: #D2422B;
}
.color__box--FFF5EB{
    background-color: #FFF5EB;
}
.color__box--FFF5EB{
    background-color: #FFF5EB;
}
.color__box--1E1E1E{
    background-color: #1E1E1E;
}

/* FOOTER -------------------------------------------------------------------------------------------------------------*/
.next{
    background-color: #E6E6E6;
    padding: 0 5%;
    padding-bottom: 40px;
}
.next__projects{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: auto;
    gap: 20px;
    border-radius: 8px;
    font-size: inherit;
}
.next__title{
    font-size: 38px;
    font-weight: 400;
    padding-top: 40px;
    margin: 0;
    color: #373737;
}
.next__title::after{
    content: "";
    display: inline-block; 
    width: 0.5em;  
    height: 0.5em; 
    background-image: url('../assets/img/icon/arrow-down-right-black.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.footer {
    background-color: #373737;
    color: #E6E6E6;
    padding: 0 5%;
    padding-bottom: 20px;
}
.subtitle{
    font-size: 38px;
    font-weight: 400;
    padding-top: 20px;
    margin: 0;
}
.subtitle::after{
    content: "";
    display: inline-block; 
    width: 0.5em;  
    height: 0.5em; 
    background-image: url('../assets/img/icon/arrow-down-right-white.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.footer__social{
    padding: 0;
    margin: 0;
    list-style: none;
}
.footer__social li a{
    display: inline-block;
    color: #E6E6E6;
    text-decoration: none;
    padding-left: 40px;
    line-height: 30px;
    margin-bottom: 10px;
    background-repeat: no-repeat;
    background-position: left center; 
    background-size: 24px auto;
}
.footer__social a:hover{
    text-decoration: underline;
}
.footer__el--github a{
    background-image: url('../assets/img/icon/GitHub_Symbol_2.webp');    
}
.footer__el--instagram a{
    background-image: url('../assets/img/icon/Instagram_Symbol_2.webp');
}
.footer__el--youtube a{
    background-image: url('../assets/img/icon/YouTube_Symbol_2.webp');
    
}
.footer__credit{
    list-style: none;
    margin-left: 0;
    padding: 0;
}
.footer__copyright{
    display: flex;
    color: #E6E6E6;
    font-size: 11px;
    margin-top: 20px;
}
.footer__copyright, a, abbr{
    text-decoration: none;
    color: inherit;
}
.footer__copyright a:hover{
    text-decoration: underline;
}

@media screen and (min-width: 650px){
    .projects{
        grid-template-columns: repeat(2, 1fr);
    }
    .next__projects{
        grid-template-columns: repeat(2, 1fr);
    }

}

@media screen and (min-width: 1000px){
    main{
        margin: 0 3%;
    }
    
    .header__title{
        font-size: 181px;
        margin: 0;
    }
    
    .header__subtitle{
        font-size: 90px;
    }
    
    .header__project{
        font-size: 128px;
    }

    .header__project--split{
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .projects{
        grid-template-columns: repeat(3, 1fr);
        margin-bottom: 240px;
    }
    
    .segment {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 40px;
        padding-bottom: 160px; 
    }

    .segment--split {
        display: block; 
    }

    .segment--split .segment__content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-top: 80px;
        align-items: start;
    }

    .segment--last{
        display: block;
    }
    
    .segment__title {
        grid-column: 1;
        margin: 0;
    }
    
    .segment__content{
        margin-top: 160px;
    }
    
    .segment__description,
    .segment__list,
    .segment__img {
        grid-column: 2;
    }

    .segment::after{
        border-bottom: 4px dashed currentColor;
    }

    .segment__title{
        font-size: 64px;
    }

    .segment__subtitle{
        font-size: 45px;
    }

    .segment__img--big{
        width: 80%;
    }
    .segment__img--mid{
        width: 60%;
    }
    .segment__img--small{
        width: 50%;
    }

    .color__box{
        width: 200px;
        height: 100px;
    }

    .next{
        padding: 0 3%;
        padding-bottom: 80px;
    }

    .next__title{
        font-size: 90px;
        padding-top: 80px;
    }

    .footer{
        padding: 0 3%;
        padding-bottom: 20px;
    }

    .subtitle{
        font-size: 101px;
        padding-top: 40px;
        margin: 0;
    }

}

@media screen and (min-width: 1300px){
    main{
        margin: 0 3%;
    }

    .back{
        font-size: 21px;
    }

    .header__title{
        font-size: 224px;
        margin: 0;
    }

    .header__subtitle{
        font-size: 105px;
    }

    .header__project{
        font-size: 154px;
    }

    .projects{
        grid-template-columns: repeat(4, 1fr);
    }

    .segment{
        padding-bottom: 240px; 
    }

    .segment__title{
        font-size: 72px;
    }

    .segment__subtitle{
        font-size: 34px;
    }

    .next__title{
        font-size: 105px;
    }

    .subtitle{
        font-size: 101px;
        margin: 0;
    }
}

@media screen and (max-width: 350px){
    .container{
        grid-template-columns: repeat(1, 1fr);
    }
}