@font-face {
    font-family: MonumentExtendedRegular;
    src: url(../fonts/MonumentExtended-Regular.woff2);
}

@font-face {
    font-family: MonumentExtendedUltraBold;
    src: url(../fonts/MonumentExtended-Ultrabold.woff2);
}

@keyframes up-arrow-form-link {
    to {
        transform: translate(0, 40px);
    }
}

@keyframes rotate-element {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-element2 {

    0%,
    7% {
        transform: rotate(0deg);
    }

    45%,
    55% {
        transform: rotate(360deg);
    }

    93%,
    100% {
        transform: rotate(0deg);
    }
}

@keyframes left-arrow {
    to {
        transform: translate(-52px, 0);
    }
}

/* ------------------------------ RESET ------------------------------ */

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
}

p {
    margin: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

blockquote, q {
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

textarea {
    resize: none;
    -webkit-tap-highlight-color: transparent;
}

:focus {
    outline: none;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ------------------------------ ---- ------------------------------ */



/* ----------------------------- GLOBAL ----------------------------- */


html {
    scroll-padding: 8rem;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: black;
    color: white;

    background-image: url(../images/backgrounds/1.webp), url(../images/backgrounds/2.webp);
    background-repeat: repeat no-repeat, repeat no-repeat;
    background-position: top 5rem left, bottom left;
    background-size: auto, auto;

    font-family: 'MonumentExtendedRegular';
}

main {
    margin-left: 5rem;
    margin-right: 5rem;
}

h2 {
    margin: 3rem 0;
    padding: 0.4rem 1rem;
    width: fit-content;
    
    color: black;

    font-family: 'MonumentExtendedUltraBold';
    font-size: 4rem;
}

section:nth-child(even) h2 {
    background-color: #ff7b2f;
}

section:nth-child(odd) h2 {
    background-color: #f71354;
}

strong {
    color: #f71354;
}

section:not(:first-child) {
    margin-bottom: 8rem;
}

section:last-child {
    margin-bottom: 10rem;
}

/* ------------------------------ ---- ------------------------------ */



/* ----------------------------- HEADER ----------------------------- */

header {
    padding: 1rem;
    font-size: large;

    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    backdrop-filter: blur(20px);
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav ul {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav a {
    padding: 1rem;

    border-radius: 50px;
    transition: border-radius .3s, background-color .2s;

}

nav li:not(.form-link) a:hover {
    border-radius: 10px;
    color: black;
    background-color: white;

}

.form-link a {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    padding-left: 0.2rem;
    padding-right: 0.7rem;

    border: 2px solid white;
    border-radius: 10px;

    display: flex;
    align-items: center;
    gap: 0.3rem;

    font-size: 1rem;
}

.form-link:hover path {
    animation: up-arrow-form-link 1.5s ease-in-out infinite;
}

/* ------------------------------ ---- ------------------------------ */



/* ------------------------------ PAGE ------------------------------ */

.form-link {
    margin-left: auto;
}

.form-link a {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
    padding-left: 0.2rem;
    padding-right: 0.7rem;

    border: 2px solid white;
    border-radius: 10px;

    display: flex;
    align-items: center;
    gap: 0.3rem;

    font-size: 1rem;
}


.form-link:hover path {
    animation: up-arrow-form-link 1.5s ease-in-out infinite;
}

.title-section {
    position: relative;
    z-index: 3;
    color: black;
    margin-left: -2rem;
    height: 700px;
}

h1 {
    margin: 0;
    font-family: 'MonumentExtendedUltraBold';
    font-size: 13vw;
    letter-spacing: 1vw;
    white-space: nowrap;
}

.title-section h2 {
    padding: 0;
    margin-top: -2vw;
    margin-bottom: 0;
    font-size: 3vw;
    background-color: transparent !important;
}

.rotate-circle-text {
    position: relative;
    display: flex;
    justify-content: center;
}

.rotate-circle-text img {
    width: 200px;
    position: absolute;
}

.rotate-circle-text img:last-child {
    animation: rotate-element2 15s ease-in-out 0s infinite;
}

.profil {
    margin-bottom: 2rem;
    margin-top: 3rem;
}

/* .profil-picture {
    display: flex;
    justify-content: center;
    align-items: center;
    grid-area: profil-picture;
}

.profil-picture img {
    border-radius: 30px;
} */

.profil-title {
    position: relative;
    font-size: 3rem;
    font-family: 'MonumentExtendedUltraBold';
    width: fit-content;
    grid-area: profil-title;
}

.profil-title::after {
    content: url(../images/icons/atserix-icon.svg);
    position: absolute;
    top: -90px;
    right: -160px;
    z-index: 1;
    width: 130px;
    height: auto;
    animation: rotate-element 12s linear 0s infinite reverse;
}

.profil-text {
    font-size: 2rem;
    grid-area: profil-text;
}

.skills {
    text-align: center;
}

.skills p {
    font-size: 2rem;
    text-align: left;
}

.skills p:not(:first-child){
    margin-bottom: 5rem;
}

.skills ul {
    margin-top: 2rem;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 2rem;
}

.skills li {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills li img {
    margin-bottom: 1rem;
    width: 90px;
}

.skills h3 {
    font-family: 'MonumentExtendedUltraBold';
    font-size: 3rem;
}

.works-section h3 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.works {
    margin: 0;
    padding: 0;

    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.works input {
    position: absolute;
    visibility: hidden;
}

.works label {
    cursor: pointer;
    user-select: none;
    padding: 0.8rem;
    font-size: 1rem;

    display: flex;
    align-items: center;
    gap: 0.5rem;

    border: 2px solid white;
    border-radius: 50px;
    transition-property: color, background-color, border, border-radius;
    transition-duration: 0.3s, 0.3s, 0.1s, 0.1s;
    transition-timing-function: linear, linear, linear, linear;
}

.works input:hover+label {
    color: black;
    background-color: white;
    border: 2px solid black;
    border-radius: 10px;
    transition-property: color, background-color, border, border-radius;
    transition-duration: 0.3s, 0.3s, 0.1s, 0.1s;
    transition-timing-function: linear, linear, linear;
}

.works input:hover+label svg {
    fill: black;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
}

.works label svg {
    width: 25px;
    transition-property: all;
    transition-duration: 0.2s;
    transition-timing-function: linear;
}

.works input:checked+label {
    color: black;
    background-color: white;
    border-radius: 10px;
}

.works input:checked+label svg {
    fill: black;
    transform: rotate(180deg);
}

.works-gallery {
    padding: 0;
    margin-top: 3rem;

    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 1rem;
    width: 100%;

    list-style: none;
}

.works-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.tout-button:not(:checked)~.works-gallery {
    display: flex;
    flex-wrap: wrap;
}

.tout-button:not(:checked)~.works-gallery a {
    display: none;
}

.tout-button:checked~.works-gallery a {
    display: block;
}

.graphisme-button:checked~.works-gallery .graphisme-type {
    display: block;
}

.creation-3d-button:checked~.works-gallery .creation-3d-type {
    display: block;
}

.web-design-button:checked~.works-gallery .web-design-type {
    display: block;
}

.interface-utilisateur-button:checked~.works-gallery .interface-utilisateur-type {
    display: block;
}

.illustration-button:checked~.works-gallery .illustration-type {
    display: block;
}

.works a:hover {
    transform: scale(1.1);
    transition: all 0.3s ease-in-out;
    border: 3px solid white;
}

.works a::after {
    content: "";
    position: absolute;
    bottom: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 30%, rgba(255, 255, 255, 0) 70%);
    transform: translate(0, 100%);
    transition: transform 0.3s ease-in-out;
}

.works a:hover::after {
    transform: translate(0, 0);
    transition: transform 0.3s ease-in-out;
}

.works a {
    position: relative;
    overflow: hidden;

    border: 3px solid transparent;

    border-radius: 20px;
    transition: all 0.3s ease-in-out;
}

.works p {
    margin-bottom: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;


    position: absolute;
    z-index: 2;
    bottom: 0;

    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.works-gallery a:hover p {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    animation: reveal 1s cubic-bezier(0, 0, .07, 1);
}


.chinese-p-section ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


.chinese-p-section li {
    padding: 1rem;

    border-radius: 400px;
    border: 2px solid white;

    cursor: pointer;
    transition: background-color .2s, color .2s, border-radius .2s;
}

.chinese-p-section div {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chinese-p-section div svg {
    width: 50px;
    height: auto;
    position: relative;
    transform: rotate(-90deg);
    transition: transform .3s, fill .2s;
}

.chinese-p-section div p {
    font-size: 2rem;
}

.chinese-p-section li>p {
    overflow: hidden;
    max-height: 0;
    font-size: 1.3rem;
    transition: max-height .1s, margin-top .1s;
}

.chinese-p-section li:hover {
    background-color: white;
    color: black;
    border-radius: 10px;
}

.chinese-p-section li:hover>p {
    max-height: 100px;
    margin-top: 1rem;
    transition: max-height .3s;
}

.chinese-p-section li:hover div svg {
    fill: black;
    transform: rotate(0deg);
}

.influences-section blockquote {
    margin-top: 6rem;
    margin-bottom: 5rem;
    margin-left: auto;
    margin-right: auto;

    position: relative;
    width: 50rem;
    font-size: 1.8rem;
    text-align: center;
}

.influences-section blockquote::before {
    content: url(../images/icons/quote-icon.svg);
    position: absolute;
    top: -50px;
    right: -130px;
    width: 90px;
    height: auto;
}

.influences-section blockquote::after {
    content: url(../images/icons/quote-icon.svg);
    position: absolute;
    top: -50px;
    left: -130px;
    width: 90px;
    transform: scale(-1);
    height: auto;
}

.influences-section ul {
    margin-top: 3rem;
    margin-bottom: 4rem;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3rem;
    justify-content: center;
    align-items: flex-end;

}

li:nth-child(even) {
    justify-self: start;
}

li:nth-child(odd) {
    justify-self: end;
}

.influences-section figure {
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.influences-section figcaption {
    font-size: 1.3rem;
}

.influences-section ul img {
    width: 400px;
    height: auto;

    border-radius: 25px;
}

.influences-section h3 {
    font-size: 3rem;
    text-align: center;
}

.influences-section h4 {
    margin: 0;
    font-size: 2rem;
    color: #f71354;
    font-family: 'MonumentExtendedRegular';
    font-weight: normal;
}

.influences-section p {
    margin: 0;
    line-height: 2rem;
    font-size: 1.5rem;
}

.influences-section p:not(:last-child) {
    margin-bottom: 2rem;
}

/* ------------------------------ ---- ------------------------------ */



/* --------------------------- FORMULAIRE --------------------------- */


form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
}

.input-field {
    position: relative;
}

.input-field {
    margin-bottom: 2rem;

}

.input-field input{
    padding: 1rem 0rem;
    width: 100%;

    font-size: 1.5rem;
    color: white;
    border-top: none;
    border-bottom: 4px solid ;
    border-left: none;
    border-right: none;
    transition: all .2s ease-in-out;
}

.input-field label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    pointer-events: none;

    font-size: 1.5rem;
}

.input-field label:has(+ input:focus) {
    opacity: 0;
}

.input-field label:has(+ input:not(:placeholder-shown)) {
    opacity: 0;
}

.input-field input:focus {
    background-color: white;
    border-radius: 20px;
    border: none;
    color: black;
    padding-left: 2rem;
}


.chat-field {
    position: relative;
    grid-area: 1/2/6/3;
}

.chat-field textarea {
    padding-top: 2rem;
    padding-left: 1.8rem;
    width: 100%;
    height: 100%;
    
    color: white;
    border: 4px solid white;
    border-radius: 20px;
    font-size: 1.5rem;
    transition: all .2s ease-in-out;
}

.chat-field label {
    position: absolute;
    top: 2rem;
    left: 2rem;
    pointer-events: none;

    font-size: 1.5rem;
}

.chat-field textarea:focus {
    background-color: white;
    color: black;
}

.chat-field label:has(+ textarea:focus) {
    opacity: 0;
}

.chat-field label:has(+ textarea:not(:placeholder-shown)) {
    opacity: 0;
}

form button {
    margin-top: 1rem;
    height: 4rem;

    font-family: 'MonumentExtendedRegular';
    font-size: 1.5rem;

    background: linear-gradient(27deg,  #ff7b2f 0%, #f71354 30%, #f71354 60%, #ff7b2f 100%);
    border-radius: 20px;
    border: none;
    
    cursor: pointer;
}

/* ------------------------------ ---- ------------------------------ */



/* ----------------------------- FOOTER ----------------------------- */


footer {
    margin-top: 15rem;
    padding-bottom: 1rem;
    padding-left: 2rem;
    padding-right: 2rem;

    display: flex;
    justify-content: space-between;

    font-size: 1.2rem;
    color: black;
}

footer ul {
    display: flex;
    gap: 2rem;
}

/* ------------------------------ ---- ------------------------------ */
