/* =============== GENERAL */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: white;
    font-family: 'Stardust';
    font-size: 14px;
    scroll-behavior: smooth;

}

@font-face {
    font-family: 'Baikal';
    src: url('fonts/Baikal-VF.ttf.woff2') format('woff2');
    font-family: 'Stardust';
    src: url('fonts/Stardust-VF.ttf.woff2') format('woff2'),
}


/* ============== STRUCTURE */

.inner {
    max-width: 1440px;
}

header {
    height: 80vh;
    color: black;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

main {
    background-repeat: no-repeat;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.svg-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: -1;
    pointer-events: none;
}

article {
    margin-bottom: 1rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 2rem;
}

article:nth-child(odd) {
    align-items: flex-end;
    margin-left: -2rem;

}

/* ==== animations */

.text-block {
    color: black;
    min-height: 20vh;
    width: 40%;
    opacity: 0.1;
    transition: all 0.3s ease-in-out;
    transform: translatey(30%);
    margin-left: 15px;
}

.text-block.active {
    opacity: 1;
    transform: translateX(0);
}

#anim {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 0s;
}

/* ======= formulaire */

form {
    color: black;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding-bottom: 20vh;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.case {
    padding-top: 5vh;
    width: 45%;
}

.ensemble {
    display: flex;
    justify-content: space-between;
}

#nom,
#prenom,
#email,
#telephone {
    border: none;
    border-bottom: 1px solid black;
    padding-top: 20px;
}

#domaine {
    margin-top: 10px;
    padding-bottom: 5px;
    border: none;
    background-color: white;
    border-bottom: 1px solid black;
}

#message {
    border: 1px solid black;
    margin-top: 8px;
    width: 100%;
    height: 100px;
}

#box {
    margin-top: 40px;
    border: 1px solid black;
}

#envoyer {
    margin-top: 30px;
    width: 25%;
    height: 30px;
    background-color: #AB4EE3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
}



input[type=text],
[type=email],
[type=tel] {
    width: 100%;
}

/* ============ TYPO */

#para {
    font-weight: 200;
    font-size: 3.5em;
    line-height: 1.2;

}

h1 {
    font-size: 5em;
    font-weight: normal;
    margin: 0;
}

#ofpc {
    font-weight: 300;
    margin-top: 20px;
    font-size: 2.5em;
}

h2 {
    color: #AB4EE3;
    display: flex;
    justify-content: center;
    font-size: 3.5em;
    font-weight: 200;
}

legend {
    font-size: 1.5em;
    line-height: 1.8em;
    text-align: center;
}

/* ============= img */
#flechebtm {
    max-width: 100%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: rebond 0.8s ease-in-out infinite alternate;
}


@keyframes rebond {
    0% {
        transform: translateX(-50%) translateY(-50px);
    }

    100% {
        transform: translateX(-50%) translateY(0px);
    }
}

#flechetop {
    transform: rotate(180deg);
    max-width: 50px;
}

#resetButton {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 10px 20px;
    background-color: #ffffff71;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    display: none;
    /* Masqué par défaut */
    z-index: 999;
}

#resetButton.show {
    display: block;
}