main {
    margin-top: 8rem;
}

nav {
    background-color: var(--bg-dark-grey); 
    z-index: 999;
}

form > div {
    display: flex;
    flex-direction: column;
}

.form-section {
    max-width: 600px;
    margin: 3rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    font-family: 'IBM Plex Sans', sans-serif;
}

.form-section h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-recipe {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-recipe input,
.form-recipe textarea,
.form-recipe select,
.form-recipe button {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.form-recipe .etape input {
    width: 80%;
}

.form-recipe .etape textarea {
    width: 80%;
}
.form-recipe button {
    background-color: #ff6600;
    color: white;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.form-recipe button:hover {
    background-color: #e65c00;
}

.etape {
    position: relative; 
    border: 1px solid #ccc;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background-color: #f4f4f4;
}

.btn-supprimer {
    position: absolute;
    top: 0.5rem;
    right: 0.8rem;
    background: none;
    border: none;
    color: #cc0000;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.btn-supprimer:hover {
    color: black;
}

#ajouter-etape {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    cursor: pointer;
    background-color: #008cba;
    color: white;
    border: none;
    border-radius: 0.5rem;

    margin: auto;
    width: 50%;
}

#ajouter-etape:hover {
    background-color: #005f7a;
}

div#etapes-container h2 {
    font-size: 1.2rem;
    margin:  0.8em 0 0.8rem 0;
}

.required {
    color: red;
    font-weight: bold;
    margin-right: 4px;
}
