/*                */
/*      FONTS     */
/*                */
.montserrat {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
/*                */
/*     VANILLA    */
/*                */
header {
    image-rendering: pixelated;
    background-color: #0000002c;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 96px;
    
    .logo {
        position: absolute;
        left: 48px;
        height: 96px;
    }
    nav {
        display: flex;
        justify-content: space-around;
    }
    .link {
        color: #EF5B5B;
        margin-left: 24px;
        margin-right: 24px;
        display: inline-block;
        transition: transform 0.3s;
        text-decoration: none;
    }
    .link:hover {
        color: #ffffff;
        transform: scale(1.2);
    }
    .link:visited {
        text-decoration: none;
    }
}
body {
    margin: auto;
    overflow: auto;
    background: linear-gradient(315deg, #23001E 3%, #23001E 38%, #23001E 68%, #23001E 98%);
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
    background-attachment: fixed;
    font-family: "Montserrat", sans-serif;
    color: #EF5B5B;
}
h1 {
    font-size: 75px;
}
h2 {
    font-size: 50px;
}
.project-thumbnail {
    image-rendering: pixelated;
    border-radius: 16px;
    width: 100%;
    height: auto;
}
.techno-div {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 8px;
}
.project-slide {
    padding: 16px;
    border-radius: 16px;
    background-color: #23001e69;
    object-fit: contain;
}
.techno {
    padding: 4px;
    border-radius: 8px;
    background-color: #EF5B5B;
    color: #23001E;
}
.project-link {
    padding: 8px;
    margin: 8px;
    border-radius: 8px;
    background-color: #EF5B5B;
    color: #ffffff;
    text-decoration: none;
}
.project-link:visited {
    text-decoration: none;
}
#contenu {
    position: relative;
    left: unset;
    transform: unset;
    background-color: rgba(0, 0, 0, 0.174);
    padding: 32px;
    margin: 32px auto;
    border-radius: 16px;
    text-align: center;
    width: 70%;
    box-sizing: border-box;
}
#portrait {
    border-radius: 16px;
    width: 30%;
    margin-right: 32px;
    flex-shrink: 0;
}
#presentation {
    display: flex;
    margin-bottom: 48px;
    align-items: flex-start;
}
#presentation-text {
    h2 {
        margin-bottom: 0px;
    }
    text-align: left;
}
.resume {
    position: relative;
    left: unset;
    transform: unset;
    background-color: rgba(0, 0, 0, 0.174);
    padding: 32px;
    margin: 32px auto;
    border-radius: 16px;
    text-align: left;
    width: 50%;
    box-sizing: border-box;
}
/*                  */
/* MEDIA QUERIES    */
/*                  */

/* Tablette (max 1024px) */
@media (max-width: 1024px) {
    h1 {
        font-size: 52px;
    }
    h2 {
        font-size: 36px;
    }
    #contenu {
        width: 85%;
        padding: 24px;
    }
    #portrait {
        width: 40%;
    }
    header .logo {
        left: 24px;
        height: 72px;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    header {
        height: auto;
        flex-direction: column;
        padding: 16px;
        gap: 12px;

        .logo {
            position: relative;
            left: unset;
            height: 64px;
        }
        nav {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
        }
        .link {
            margin-left: 12px;
            margin-right: 12px;
        }
    }
    h1 {
        font-size: 36px;
    }
    h2 {
        font-size: 26px;
    }
    #contenu {
        width: 92%;
        padding: 16px;
        margin: 16px auto;
    }
    #presentation {
        flex-direction: column;
        align-items: center;
    }
    #portrait {
        width: 60%;
        margin-right: 0;
        margin-bottom: 24px;
    }
    #presentation-text {
        text-align: center;
    }
    .project-slide {
        padding: 12px;
    }
}

/* Très petit mobile (max 480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }
    h2 {
        font-size: 20px;
    }
    #contenu {
        width: 96%;
        padding: 12px;
    }
    #portrait {
        width: 80%;
    }
}

/*                */
/* BACKGROUND CSS */
/*                */
@keyframes gradient {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}
.wave {
    background: #ef5b5b28;
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 12em;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
    bottom: 0;
    left: 0;
    z-index: -1;
}
.wave:nth-of-type(2) {
    bottom: -1.25em;
    animation: wave 18s linear reverse infinite;
    opacity: 0.8;
}
.wave:nth-of-type(3) {
    bottom: -2.5em;
    animation: wave 20s -1s reverse infinite;
    opacity: 0.9;
}
@keyframes wave {
    2% { transform: translateX(1); }
    25% { transform: translateX(-25%); }
    50% { transform: translateX(-50%); }
    75% { transform: translateX(-25%); }
    100% { transform: translateX(1); }
}