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

/* 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 {
    display: flex;
    background-color: #F9E6F0;
    padding: 10% 20%;
    gap: 50px;
    justify-content: center;
}

.text-banner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 17px;
}

.about {
    background-image: url("./assets/about-bg.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    padding: 10% 20%;
}

.about > div {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.about > div > h3 {
   text-align: center;
}

.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;
    width: 40%
}

.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;
}



/*Media queries*/

@media (max-width: 768px) {

    nav {
        justify-content: center;
    }

    nav div {
        display: none;
    }

    .banner {
        flex-direction: column;
        padding: 100px 5%;
    }



    .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;
    }

}

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


@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);
}
