/* visible sur la page de base (à déplacer) */

.parent-element-grid {
    display: grid;
    grid-template-columns: 6fr 1fr 5fr;
    gap: 20px;
    min-height: 90vh;
}

.left-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes entry {
    from {
        transform: translateX(-150%);
    }

    to {
        transform: translateX(0);
    }
}

span {
    background: linear-gradient(45deg, #CDEFC1, #ACE163);
    color: transparent;
    background-clip: text;
}

.right-side {
    display: flex;
    transform: scale(0);
    animation: popphoto 0.4s forwards cubic-bezier(.41, .62, .65, 1.15);
    align-items: center;
}

.right-side>.innerDiv {
    animation: moove 10s infinite alternate linear;
}

@keyframes moove {
    0% {
        transform: translate(0);
    }

    50% {
        transform: translate(10px, 10px);
    }

    100% {
        transform: translate(-10px, -10px);
    }
}


@keyframes popphoto {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.title {
    font-size: 30px;
    transform: translateX(-150%);
    animation: entry 0.6s cubic-bezier(.41, .62, .65, 1.05) forwards;
    animation-delay: 0.4s;
}

.title>h1 {
    margin-top: 5px;
    margin-bottom: 10px;
}

.up-title {
    font-size: 25px;
    transform: translateX(-150%);
    animation: entry 0.6s cubic-bezier(.41, .62, .65, 1.05) forwards;
    animation-delay: 0.5s;
}

.text>p:nth-child(1) {
    transform: translateX(-150%);
    animation: entry 0.6s cubic-bezier(.41, .62, .65, 1.05) forwards;
    animation-delay: 0.6s;
}

.text>p:nth-child(2) {
    transform: translateX(-150%);
    animation: entry 0.6s cubic-bezier(.41, .62, .65, 1.05) forwards;
    animation-delay: 0.7s;
}

.text>p:nth-child(3) {
    transform: translateX(-150%);
    animation: entry 0.6s cubic-bezier(.41, .62, .65, 1.05) forwards;
    animation-delay: 0.8s;
}

.buttons {
    display: flex;
    margin-top: 20px;
    gap: 50px;
}

.button {
    width: 100%;
    cursor: pointer;
}

.button {
    position: relative;
    font-weight: 500;
    text-align: center;
    padding: 10px;
    padding-inline: 20px;
    border-radius: 80px;
    transition: 0.4s;
    animation: popphoto 0.4s forwards cubic-bezier(.41, .62, .65, 1.15);
    transform: scale(0);
    animation-delay: 1s;
    background: linear-gradient(45deg, #CDEFC1, #ACE163);
    background-clip: text;
    color: transparent;
}

.button:first-child {
    animation-delay: 0.9s;
    color: #2C2929;
    background: linear-gradient(45deg, #CDEFC1, #ACE163);
}

.button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 80px;
    padding: 1px;
    background: linear-gradient(to left, #CDEFC1, #ACE163);
    mask: linear-gradient(white 0 0) content-box, linear-gradient(white 0 0);
    mask-composite: exclude;
}

.button:hover {
    scale: 1.1;
}


/* visible au scroll, on peut le laisser ici */


/* titres */
h2 {
    background: linear-gradient(45deg, #ACE163, #CDEFC1);
    background-clip: text;
    color: transparent;
    opacity: 0.5;
    transform: translateX(-100px);
    transition: 0.5s ease-in;
}

.SlideTitle {
    opacity: 1;
    transform: translateX(0);
}

.gridProjects {
    width: 90%;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    min-height: 80vh;
}

.single-latest-project {
    cursor: pointer;
    margin-top: auto;
    margin-bottom: auto;
    transform: translateY(200px);
    opacity: 0;
    transition: 0.7s ease-out;
    transition-delay: var(--delay);
}

.single-latest-project:hover>.bottom-info {
    box-shadow: 0px 0px 10px #ace1639e;
}

.single-latest-project:hover {
    z-index: 1000;
}

.images {
    position: relative;
    width: 250px;
    height: 300px;
    margin: auto;
    perspective: 1000px;
}

.inside {
    position: absolute;
    background: var(--bg);
    background-size: cover;
    background-position: center;
    border-radius: 10px 10px 0 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-in-out;
    z-index: 1;
}

.single-latest-project:hover>.images>.inside {
    box-shadow: 5px 5px 5px #00000050;
}

.single-latest-project:hover>.images>.inside:nth-of-type(1) {
    transform: rotateY(-20deg) rotateX(25deg) translate(-300px, -200px);
    border-radius: 10px;
}

.single-latest-project:hover>.images>.inside:nth-of-type(2) {
    transform: rotateY(-15deg) rotateX(5deg) translate(-100px, -30px);
    border-radius: 10px;

}

.single-latest-project:hover>.images>.inside:nth-of-type(3) {
    transform: rotateY(25deg) rotateX(20deg) translate(200px, -50px);
    border-radius: 10px;
}

.bottom-info {
    padding: 5px;
    text-align: center;
    color: white;
    border-radius: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    min-height: 50px;
    background: linear-gradient(transparent, #666666);
    transition: 0.4s;
}

.project-categorie-single {
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    background: linear-gradient(45deg, #ACE163, #CDEFC1);
    color: transparent;
    background-clip: text;

}

.date {
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
}

.grid-parcours {
    display: grid;
    position: relative;
    margin: auto;
    min-height: 80vh;
    grid-template-columns: repeat(5, 1fr);
}

.hiddenparcours {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 100;
    transform: translate(-50%, -50%);
}

.cell-parcours {
    display: none;
    padding: 50px;
    margin: auto;
    min-height: 200px;
    backdrop-filter: blur(5px);
    border-radius: 20px;
    background: linear-gradient(45deg, #1d1b1bc5, #201e1eb6);
}

.cell-parcours::before {
    content: "";
    position: absolute;
    height: 1px;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(90deg, transparent 10%, white, transparent 70%);
}

.showParcours {
    display: flex;
    flex-direction: column;
    transform: scale(0);
    justify-content: center;
    animation: AppearParcours 0.4s forwards ease-in;
}

@keyframes AppearParcours {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.croix {
    width: 30px;
    position: absolute;
    top: 20px;
    left: 20px;
    cursor: pointer;
}

.cell-parcours::after {
    position: absolute;
    content: "";
    height: 1px;
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 30%, white, transparent 90%);
}

.illustration {
    width: 100px;
    margin: auto;
}


.fleche1 {
    display: flex;
    align-items: center;
}

.years {
    margin-top: auto;
    opacity: 0;
    transition: ease-out 0.7s;
    transition-delay: var(--delay);
    transform: translateY(200px);
    margin-bottom: auto;
}

.grid-more-infos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 150px;

    min-height: 80vh;
}

button {
    font-family: Montserrat;
    font-size: 14px;
}

.illustration-more-informations {
    width: 100px;
}


.part-more-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: ease-out 0.7s;
    transition-delay: var(--delay);
    transform: translateY(200px);
}

.button-more-info {
    position: relative;
    margin-top: 40px;
    padding: 10px;
    display: flex;
    font-size: 14px;
    transition: 0.4s;
    font-weight: 600;
    color: #87CE9A;
}

.button-more-info::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 80px;
    background: linear-gradient(rgba(7, 7, 7, 0.64), rgba(23, 23, 23, 0.75)) padding-box, linear-gradient(45deg, rgba(255, 255, 255, 0.45), rgba(251, 53, 112, 0)) border-box;
}

.button-more-info::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 80px;
    padding: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.425));
    mask: linear-gradient(white 0 0) content-box, linear-gradient(white 0 0);
    mask-composite: exclude;
}

.button-more-info:hover {
    transform: scale(1.1);
}

.buttonDiscover {
    position: relative;
    color: #87CE9A;
    margin-top: 40px;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: center;
    padding: 10px;
    transition: 0.4s;
    font-weight: 600;
}

.buttonDiscover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 80px;
    background: linear-gradient(rgba(7, 7, 7, 0.64), rgba(23, 23, 23, 0.75)) padding-box, linear-gradient(45deg, rgba(255, 255, 255, 0.45), rgba(251, 53, 112, 0)) border-box;
}

.buttonDiscover::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 80px;
    padding: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.425));
    mask: linear-gradient(white 0 0) content-box, linear-gradient(white 0 0);
    mask-composite: exclude;
}

.buttonDiscover:hover {
    transform: scale(1.1);
}


.addMove {
    animation: avancer ease-in-out 1s forwards;
}

@keyframes avancer {
    0% {
        stroke-dasharray: 0 100;
    }

    to {
        stroke-dasharray: 1 1;
    }
}

.large-grid {
    display: grid;
    gap: 60px;
    margin-top: 100px;
    margin-bottom: 100px;
    grid-template-columns: 1fr 1fr;
}

.grid-competences {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 50px;
    gap: 30px;
}

.cellule {
    transform: scale(0);
    transition: 0.7s ease-in;
    transition-delay: var(--delay);
    background: linear-gradient(#2c2323, #2b2121);
    padding: 20px;
    padding-inline: 30px;
    border-radius: 20px;
    position: relative;
}

.openCell {
    transform: scale(1);
}

.cellule::before {
    content: "";
    width: 60%;
    height: 1px;
    top: 0;
    left: 10%;
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.671), transparent);
}

.illustration-competence {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration-competence>img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.single-competence {
    display: flex;
    gap: 20px;
    flex-direction: column;
    align-items: center;
}

.titre-cellule {
    font-weight: 600;
    font-size: 20px;
}

.openProjects {
    opacity: 1;
    transform: translateY(0);
}

@media (width <=1280px) {
    .buttons {
        gap: 10px;
    }

    .button {
        padding-inline: 5px;
    }

    .center-empty {
        display: none;

    }

    .parent-element-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .gridProjects {
        width: 100%;
    }
}

@media (width <=1150px) {
    h1 {
        font-size: 45px;
    }

    .gridProjects {
        margin-top: 80px;
        margin-bottom: 80px;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }

    .fleche1 {
        display: none;
    }

    .grid-parcours {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 60px;
    }

    .grid-more-infos {
        gap: 60px;
    }

    .large-grid {
        gap: 20px;
    }

    .grid-competences {
        grid-template-columns: 1fr 1fr;
    }

}

@media (width <=830px) {
    .parent-element-grid {
        margin-top: 50px;
        grid-template-columns: 1fr;
        gap: 70px;
    }

    .images {
        width: 160px;
        height: 200px;
    }

    .single-latest-project:hover>.images>.inside:nth-of-type(2) {
        transform: rotateY(-15deg) rotateX(5deg) translate(-1px, -30px);
    }

    .single-latest-project:hover>.images>.inside:nth-of-type(3) {
        transform: rotateY(25deg) rotateX(20deg) translate(100px, -50px);
    }

    .single-latest-project:hover>.images>.inside:nth-of-type(1) {
        transform: rotateY(-20deg) rotateX(25deg) translate(-100px, -28px);
    }

    .up-title {
        font-size: 20px;
    }

    .innerDiv {
        margin: auto;
        width: 80%;
    }

    h1 {
        font-size: 28px;
    }

    .gridProjects {
        grid-template-columns: 1fr;
    }


    .single-latest-project {
        width: 450px;
        margin: auto;
    }

    .illustration {
        width: 70px;
    }

    .grid-competences {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .large-grid {
        grid-template-columns: 1fr;
    }

    .hiddenparcours {
        width: 100%;
    }
}

@media (width <=620px) {
    .parent-element-grid {
        margin-top: 50px;
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .gridProjects {
        grid-template-columns: 1fr;
    }

    .single-latest-project {
        max-width: 450px;
    }

    .grid-parcours {
        grid-template-columns: 1fr;
        margin-top: 60px;
        margin-bottom: 60px;
    }

    .grid-more-infos {
        grid-template-columns: 1fr;
        margin-top: 60px;
        margin-bottom: 60px;
    }

    .single-latest-project {
        width: 300px;
    }
}

@media (width <=450px) {
    .grid-competences {
        grid-template-columns: 1fr 1fr;
    }
}