/* maison */

.homeButton {
    position: fixed;
    z-index: 1000;
    bottom: 30px;
    right: 15px;
}

.globalParentHome {
    display: flex;
    align-items: center;
    position: relative;
}

.hoverHome {
    color: #1d1b1b;
    transition: 1.3s;
}

.globalParentHome:hover .hoverHome {
    animation: décale 0.5s ease-in-out forwards;
}

@keyframes décale {
    from {
        font-size: 0px;
    }

    to {
        font-size: 20px;
        padding: 10px;
    }
}

.globalParentHome:not(:hover) .hoverHome {
    animation: fermer 0.5s ease-in-out forwards;
}

@keyframes fermer {
    0% {
        font-size: 20px;
        padding: 10px;
    }

    100% {
        font-size: 0px;
        padding: 0px;
    }
}

.globalParentHome:hover svg {
    animation: tourni 0.5s ease-in-out forwards;
}

@keyframes tourni {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(-360deg)
    }
}

.globalParentHome:not(:hover) svg {
    animation: spinopen 0.5s ease-in-out forwards;
}

@keyframes spinopen {
    from {
        transform: rotate(-360deg)
    }

    to {
        transform: rotate(0deg)
    }
}

.hoverHome>b {
    display: block !important;
}

.homeButton:hover {
    transition: 1.3s;
    box-shadow: 0 0 15px #ACE163;
}

.homeButton {
    padding: 10px;
    border-radius: 23px;
    background: linear-gradient(45deg, #CDEFC1, #ACE163);
    box-shadow: 0 0 10px #ACE163;
}

/* titre */

.titrepro {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.globalChoice {
    display: flex;
    justify-content: center;
}

.flexType {
    color: white;
    display: grid;
    padding: 40px;
    width: 80%;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-content: center;
    text-align: center;
    animation: pop 0.7s forwards;
}

@keyframes pop {
    0% {
        transform: scale(0)
    }

    70% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.error {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.TypeProject:hover {
    color: #ACE163;
    cursor: pointer;
}

.arianGlobal {
    display: flex;
    justify-content: center;
    margin-top: 150px;
}

#parentElement {
    margin-top: 30px;
}

.color {
    color: #ACE163;
}

.parent3 {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mainpage:hover {
    color: #ACE163;
}

/* réalisations */

/* page projets pro */

.globalrealisation {
    padding-bottom: 50px;
    color: white;
    margin-top: 100px;
    margin-bottom: 100px;
}

.informationsCenter {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.contextee {
    margin-top: 60px;
}

.Preview {
    margin: 20px;
    margin-bottom: 50px;
    width: 90%;
}

.imagesposition {
    display: grid;
    grid-template-columns: 1fr;
}

.topTitle {
    display: flex;
    justify-content: center;
    margin: 10px;
}

.centerImages {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-top: 80px;
    margin-bottom: 80px;
}

.imagecenter>img {
    border-radius: 20px;
    box-shadow: 5px 5px 5px #00000030;
}

.imagecenter {
    z-index: 1;
    transform: translate(0, -50%);
    opacity: 0;
}

.imageentrance {
    animation: centre 1s ease-in-out forwards;
}

.imagecenter>img {
    aspect-ratio: 16 / 9;
    width: 600px;
    object-fit: cover;
}

@keyframes centre {
    from {
        transform: translate(0, -50%);
        opacity: 0;
    }

    to {
        transform: translate(0);
        opacity: 1;
    }
}


.leftImage {
    position: absolute;
    z-index: 0;
    right: 60%;
    bottom: -10%;
    opacity: 0;
    animation-delay: 0.2s;
}

.leftmageEntrance {
    animation: slideFromLeft 1s ease-in-out forwards;
}

.leftImage>img {
    aspect-ratio: 16 / 9;
    width: 600px;
    object-fit: cover;
}

.rightImage>img {
    aspect-ratio: 16 / 9;
    width: 600px;
    object-fit: cover;
}

.rightImage {
    position: absolute;
    z-index: 0;
    left: 60%;
    opacity: 0;
    bottom: -10%;
    animation-delay: 0.5s;
}

.rightImageEntrance {
    animation: slideFromRight 1s ease-in-out forwards;
}

.leftImage>img,
.rightImage>img {
    border-radius: 20px;
    box-shadow: 5px 5px 5px #00000030;
}

@keyframes slideFromLeft {
    from {
        transform: translate(50%);
        opacity: 0;
    }

    to {
        transform: translate(0);
        opacity: 1;
    }
}

@keyframes slideFromRight {
    from {
        transform: translate(-50%);
        opacity: 0;
    }

    to {
        transform: translate(0);
        opacity: 1;
    }
}

@media (width <=1500px) {
    .leftImage {
        right: 55%;
    }

    .rightImage {
        left: 55%;
    }
}

@media (width <=1300px) {
    .leftImage {
        right: 52%;
    }

    .rightImage {
        left: 52%;
    }
}

@media (width <=1150px) {
    .leftImage {
        position: relative;
        right: auto;
        bottom: auto;
    }

    .centerImages {
        gap: 50px;
    }

    .rightImage {
        position: relative;
        left: auto;
        bottom: auto;
    }

    .imagecenter>img {
        width: 100%;
    }

    .leftImage>img {
        width: 100%;
    }

    .rightImage>img {
        width: 100%;
    }
}

@media (width <=830px) {
    .Preview {
        margin: none;
        width: 100%;
    }
}

@media (width <=620px) {
    .Preview {
        margin: none;
        width: 100%;
    }

    .flexType {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
        flex-wrap: wrap;
    }
}