/* Chargement de la police */
@font-face {
    font-family: "Arsenica";
    src: local("Arsenica"),
    url("../fonts/ArsenicaTrial-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Arsenica Italic";
    src: local("Arsenica Italic"),
    url("../fonts/ArsenicaTrial-Italic.ttf") format("truetype");
}

@font-face {
    font-family: "Arsenica Bold";
    src: local("Arsenica Bold"),
    url("../fonts/ArsenicaTrial-Bold.ttf") format("truetype");
}

/* Styles globaux */
body {
    font-family: "Roboto Light", sans-serif;
    margin: 0;
    background-color: #394930;
    color: white;
}

h1, h2, h3, h4, p, span {
    font-weight: normal;
}

a {
    text-decoration: none;
}

h1 {
    font-family: "Arsenica", serif;
    font-size: 5em;
    color: #F4E2CA;
    text-align: center;
    margin-top: 2em;
}

/* Formulaire */
form {
    width: 80%;
    margin: 5em auto;
    background-color: #F4E2CA;
    padding: 3em;
    border-radius: 1em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Étapes du formulaire */
#ingredients, #steps {
    width: 100%;
    margin-bottom: 2em;
}

.ingredient, .step {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5em;
}

.form-section {
    width: 100%;
    margin-bottom: 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

button {
    background-color: #0C1E00;
    color: #F4E2CA;
    border: none;
    padding: 1em 2em;
    font-size: 1.2em;
    border-radius: 0.5em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 1em auto;
}

button:hover {
    background-color: #E63F04;
}

/* Champs de saisie */
input[type="text"], input[type="number"], input[type="file"], textarea {
    width: 100%;
    padding: 0.8em;
    margin-bottom: 1.5em;
    border: 1px solid #0C1E00;
    border-radius: 0.5em;
    font-size: 1.2em;
    background-color: #FFFFFF;
    color: #0C1E00;
}

textarea {
    resize: vertical;
    height: 150px;
}

/* Labels */
form label {
    font-family: "Arsenica", serif;
    font-size: 1.5em;
    color: #394930;
    margin-bottom: 0.5em;
}

/* Bouton submit */
input[type="submit"] {
    position: relative;
    align-items: center;
    justify-content: center;
    background-color: #0C1E00;
    color: #F4E2CA;
    border: none;
    padding: 1.5em 3em;
    font-size: 1.5em;
    border-radius: 0.5em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 0 auto;
}

input[type="submit"]:hover {
    background-color: #E63F04;
}

/* Responsive */
@media screen and (min-width: 900px) {
    form {
        width: 50%;
    }

    form label {
        font-size: 1.8em;
    }

    form input[type="text"], form input[type="number"], form textarea, form input[type="file"] {
        font-size: 1.3em;
    }

    form input[type="submit"] {
        font-size: 1.8em;
    }

    button {
        font-size: 1.3em;
    }
}
