/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    width: 100%;
}

/* Body styles */
body, input, textarea, button {
    font-family: 'Epilogue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    padding: 0;
}


a {
    all: unset;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}


footer {
    font-family: 'Epilogue', sans-serif;
    line-height: 1.6;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #555;
}


/*Nav*/

nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
    position: fixed;
    top:0;
    left:0;
    width: 100%;
    background-color: #ffffff;
    z-index: 1;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
}

nav > div {
    display: flex;
    gap: 20px;
    height: fit-content;
}

nav span {
    font-size: 17px;
    font-weight: 400;
}

.wavy-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.wavy-item span {
    transition: 0.5s;
    will-change: transform;
    display: inline-block;
    font-family: Anybody, sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.s1 span {
    transform-origin: bottom;
}
.s2 span {
    transform-origin: top;
    transform: translateY(100%) rotateX(-90deg);
}
.s2 {
    position: absolute;
    top: 0;
    left: 0;
}
.wavy-item:hover .s1 span {
    transform: translateY(-100%) rotateX(-90deg);
}
.wavy-item:hover .s2 span {
    transform: translateY(0%) rotateX(0deg);
}

.banner {
    height: 70vh;
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
}

.banner > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 40px;
}

.banner h3 {
    font-size: 20px;
}

.banner h1 {
    font-size: 80px;
}

.banner p {
    font-size: 17px;
}

.banner span {
    font-size: 13px;
}

.gif {
    max-width: 500px;
    max-height: 500px;
}

.tools {
    width: 100vw;
    height: auto;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 75px 10%;
}

.tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    border-top: 2px solid #00000033;
}

.tools::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    border-top: 2px solid #00000033;
}

.folders {
    padding: 180px 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 125px
}

.folders div {
    width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 50px;
    text-align: center;
    min-height: 382px;
}

.folders > div > img {
    transition: transform 0.3s ease-out;
    transform: translateY(0);
}

.folders h3 {
    font-size: 27px;
    font-weight: 600;
}

.folders p {
    font-size: 17px;
    font-weight: 400;
}

.works {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 100px 20px;
}

.works h2 {
    font-size: 32px;
    font-weight: 600;
}

.grid {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 50px;
}

.grid > div {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.grid >div > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.grid p {
    font-size: 20px;
    font-weight: 500;
}
.grid span {
    font-size: 17px;
    font-weight: 400;
}

.reco {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 100px;
}

.reco h2 {
    font-size: 32px;
    font-weight: 600;
}

.reco p {
    font-size: 17px;
    font-weight: 400;
}

.reco > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 600px;
    gap: 20px;
}

.reco > div:last-child {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px
}
.reco-card {
    display: flex;
    flex-direction: column;
    background-color: #FFFCF5;
    border: 1.5px solid #FFD285;
    min-height: 400px;
    padding: 30px;
    width: min-content;
    min-width: 320px;
    justify-content: space-between;
}

.reco-card > p {
    font-size: 20px;
    font-weight: 600;
}

.reco-card > div {
    display: flex;
    gap: 20px;
    align-items: center;
}

.reco-card > div > p {
    font-size: 17px;
    font-weight: 400;
}

.contact {
    min-height: 300px;
    position: relative;
    padding: 100px 10%;
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    border-top: 2px solid #00000033;
}

.contact .text {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.text h3 {
    font-size: 32px;
    font-weight: 600;
}

.text p {
    font-size: 17px;
    font-weight: 400;
}

.socials {
    display: flex;
    gap: 10px;
    justify-content: start;
    align-items: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 40%;
}

input, textarea {
    background-color: #F3F3F3;
    border: none;
    outline: none;
    padding: 30px;
    font-size: 17px;
}

textarea {
    resize: none;
}

button {
    padding: 25px 80px;
    width: fit-content;
    background-color: black;
    color: white;
    border: none;
    font-size: 17px;
}

input::placeholder, textarea::placeholder {
    color: #888;
}

/*Animations*/


.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.folders > div:hover > img {
    transform: translateY(-20px);
}

/*Media queries*/

@media (max-width: 768px) {

    nav {
        justify-content: center;
    }

    nav div {
        display: none;
    }

    .banner {
        flex-direction: column;
        height: auto;
        padding-top: 50px;
        margin-top: 50px;
    }

    .banner > div {
        gap: 10px;
        text-align: center;
    }

    .banner h1 {
        font-size: 48px;
    }

    .gif {
        width: 100%;
    }

    .tools {
        width: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 75px 10%;
        flex-wrap: wrap;
        gap: 50px;
    }

    .folders {
        flex-direction: column;
    }

    .works {
        padding: 10px;
    }

    .works h2 {
        font-size: 27px;
    }

    .grid {
        grid-template-columns: auto;
    }

    .reco > div:last-child {
        flex-direction: column;
    }

    .contact {
        flex-direction: column;
        gap: 30px;
    }

    .text, form {
        width: auto !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    /* Styles pour les tablettes en portrait */
    body {
        padding: 0;
    }
    .banner {
        padding: 50px;
    }

    .gif {
        width: 300px;
    }

    .grid {
        grid-template-columns: 1fr 1fr;
    }

    .reco > div:last-child {
        flex-direction: column;
    }
}

@media (min-width: 1024px) {
    /* Styles pour les tablettes en paysage */
    .grid {
        grid-gap: 20px;
    }
}

@media (min-width: 1600px) {
    /* Styles pour les très grands écrans (moniteurs 4K et ultra-larges) */

}

.info-message {
    display: block;
    position: fixed;
    bottom: 30px;
    right: 30px;
    border-radius: 10px;
    width: auto;
    height: auto;
    font-family: "Anybody";
    font-weight: 400;
    font-size: 1rem;
    padding: 10px 30px;
    transform: translateY(100px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.success {
    background: #5bff00;
}

.showMessage {
    transform: translateY(0);
}

.error {
    background: rgb(226, 143, 132);
}

