/* MAIN */

/* Sections */
/* Landing */
.landing p {
    z-index: 2;
    color: white;
}

.landing h1::first-line {
    color: var(--main-accent-color);
}

/* Short Prez */
@keyframes SlidingRightToLeft {
    20% {
        transform: translateX(160%);
    }
    100% {
        transform: translateX(0%);
    }
}

.welcome {
    z-index: 1;
    font-size: 3dvw;
    font-weight: 100;
    transform: translateX(-140%);
    animation: SlidingLeftToRight 3s ease 0s forwards;
    margin: 7dvw;
}

.welcome h1 {
    position: initial;
}

.welcome p {
    font-weight: 100;
}

.shortabout {
    font-size: 1rem;
    font-weight: 300;
    width: 550px;
    background: black;
    box-shadow: 0 0 20px black;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transform: translateX(160%);
    animation: SlidingRightToLeft 3s ease 1s forwards;
    text-align: justify;
    margin: 7dvw;
}

/* Vidéo projet vidéo */
.video-projects {
    display: flex;
    flex-direction: column;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 5%;
    padding-bottom: 2rem;
}

.video-showreal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.video-showreal img {
    box-shadow: 0 0 0 var(--main-accent-color);
    transition: box-shadow 0.5s ease;
}

.video-showreal:hover img {
    box-shadow: 0 0 50px var(--main-accent-color);
    transition: box-shadow 1s ease;
}

.video-showreal h3 {
    color: white;
}

.video-showreal img {
    width: 100%;
    border-radius: 1rem;
}
/* Fin projet vidéo */

.graphic-projects {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2rem;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--main-accent-color);
}

.graphic-projects h2 {
    width: 100%;
    padding: 0 2rem;
}

.grid-projects {
    display: grid;
    grid-template-columns: 20dvw 20dvw 20dvw 20dvw;
    grid-template-rows: 20dvw;
    gap: 3.5dvw;
    justify-content: center;
    align-items: center;
    padding: 0 5%;
}

.project{
    display: flex;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    align-items: center;
    justify-content: center;
    border-radius: 2rem;
    box-shadow: 0 0 0 var(--main-accent-color);
    transition: box-shadow 0.5s ease;
    margin: auto;
}

.project:hover {
    box-shadow: 0 0 50px var(--main-accent-color);
    transition: box-shadow 1s ease;
}

.project h3 {
    position: absolute;
    width: 100%;
    bottom: 0;
    transform: translateY(100%);
    transition: transform 1s ease;
    text-align: center;
    text-shadow: black -10 -10 50px;
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.5) 100%);
    background-size: contain;
    padding: 1rem 0;
    border-top: 1px solid var(--main-accent-color);
}

.project:hover h3 {
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.project img {
    height: auto;
    width: 100%;
    aspect-ratio: 1/1;
    transition: width 1s ease;
}

.project video {
    width: 100%;
    aspect-ratio: 1/1;
}

.project:hover img{
    width: 115%;
    transition: width 0.5s;
}

.project:hover video{
    width: 115%;
}
/* Fin Section Graphique */

/* Début du carousel photo */
.photo-carrousel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100dvw;
    border-top: 1px solid var(--main-accent-color);
    z-index: 1;
    overflow: hidden;
    padding-bottom: 2rem;
}

.photo-carrousel h2 {
    width: 100dvw;
    padding: 0 2rem;
}

/*
.photo-carrousel::after,
.photo-carrousel::before {
    position: relative;
    top: 0;
    content: "";
    height: 100dvh; 
    width: 15dvw;
    background: linear-gradient(to right,  rgba(0,0,0,1) 0%,rgba(0,0,0,0) 100%);
    z-index: 2;
}

.photo-carrousel::after {
    right: 0;
    transform: rotateZ(180deg);
}

.photo-carrousel::before {
    left: 0;
}
*/

.car-photo {
    display: flex;
    gap: 2rem;
    height: 42%;
}

.car-photo-container {
    height: 40dvh;
    width: auto;
    border-radius: 2rem;
    box-shadow: 0 0 0 var(--main-accent-color);
    transition: box-shadow 0.5s ease;
}

.car-photo-container:hover {
    box-shadow: 0 0 50px var(--main-accent-color);
    transition: box-shadow 1s ease;
}

.car-photo-container img {
    object-fit: contain;
    border-radius: 2rem;
    height: 100%;
}

:root {
    --animation-speed: 60s;
    --carroussel-photos-animation-move: 43.4dvh;
    --minus-translation: 5rem;
}

#CD-G {
    animation: scroll var(--animation-speed) linear infinite;
    /*scale: 0.25;*/
}

#CG-D {
    flex-direction: row-reverse;
    animation: backscroll var(--animation-speed) linear infinite;
    /*scale: 0.25;*/
}

/* the animation */
@keyframes scroll {
	0% { transform: translateX(25%); }
	100% { transform: translateX(calc(calc(var(--carroussel-photos-animation-move) * -1) * 7 + 25%)); }
}

@keyframes backscroll {
	0% { transform: translateX(-25%); }
	100% { transform: translateX(calc(var(--carroussel-photos-animation-move) * 7 + -25%)); }
}
/* fin de l'animaiton */
/* fin du carrousel photo */

/* Carrousel Projets 3D*/
/*
.carrousel_projets3d {
    height: 100dvh;
    width: 100dvw;
    margin: 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--main-accent-color);
}

#image-track {
    display: flex;
    gap: 4vmin;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-0%, -50%);
    user-select: none;
}

#image-track > .car_projets3d_container {
    width: 40vmin;
    height: 56vmin;
    object-fit: cover;
    object-position: 100% center;
}
*/
/*Fin du carrousel*/

/*FIN DU MAIN*/

/* Media querries */
@media (max-width: 1200px) {
    .shortabout{
        left: 5%;
        right: 5%;
        width: 60%;
        bottom: 25dvw;
    }

    .grid-projects {
        grid-template-columns: 40dvw 40dvw;
        grid-template-rows: 40dvw;
        gap: 5dvw;
    }
}

@media (max-width: 768px) {
    /* Grille projets */
    .grid-projects {
        margin: 6rem;
        grid-template-columns: 75dvw;
        grid-template-rows: 75dvw;
        gap: 15dvw;
    }

    .shortabout{
        bottom: 13rem;
        width: 90%;
        text-align: left;
    }

    .welcome p {
        font-size: 1.5rem;
        font-weight: 100;
    }

    .welcome {
        bottom: 11rem;
    }
}

@media (max-width: 425px) {
    .welcome {
        background: rgba(0, 0, 0, 0.5);
        border-radius: 10px;
        backdrop-filter: blur(5.9px);
        padding: 1rem;
        text-shadow: 0 0 20px black;
    }
    
    .shortabout {
        margin-bottom: 6.5rem;
        margin-left: auto;
        margin-right: auto;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .btn, button {
        padding: 0.5rem 1rem;
        font-size: 1.25rem;
    }
}