h1 {
    font-size: 2.7rem;
}

section {
    margin-bottom: 70px;
    padding: 20px;
}

.title {
    width: fit-content;
    margin: auto;
    margin-bottom: 30px;
}

.recipe-visual img {
    max-width: 450px;
    width: 80%;
    border-radius: 15px;
    display: block;
    margin: auto;
}

.recipe-badges {
    padding: 10px 20px;

    display: flex;
    align-items: start;
    flex-direction: column;
    gap: 20px;

    font-size: 1.5rem;
    margin-bottom: 30px;
    font-family: 'Kelson Sans', sans-serif;
}

.badges {
    display: flex;
    align-items: center;
    gap: 20px;
}

.badges img {
    width: 50px;
    background-color: var(--rouge);
    padding: 5px;
    border-radius: 50%;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-save {
    font-family: 'Kelson Sans', sans-serif;
    background-color: var(--rouge);
    font-size: 1.5rem;
    color: white;
    border: none;
    padding: 5px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: auto;
    transition: all 0.3s ease;
}

.btn-save:hover, #toggle-comments-btn:hover{
    background-color: #860000;
}

/* --- INGREDIENTS GRID --- */
.ingredients-section h2 {
    margin-bottom: 15px;
}

.ingredient-card {
    text-align: center;
}

/* --- PREPARATION --- */
ol, .ingredients-list {
    padding-left: 35px;
    margin-top: 15px;
}

.steps-content li,
.ingredients-list li{
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 5px;
}

.steps-section h2,
.ingredients h2 {
    font-family: 'Kelson Sans', sans-serif;
}

/* --- COMMENTAIRES --- */
.coms,
.comments form {
    max-width: 1200px;
    width: 90%;
    margin: 10px auto;
}

.com {
    border-radius: 10px;
    background-color: var(--rose);
    padding: 20px;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.com:nth-child(even) {
    background-color: var(--bleu);
}

.com-head {
    font-family: 'Kelson Sans', sans-serif;
    margin-bottom: 20px;
}

.star {
    font-size: 1.3rem;
}

.coms.hidden {
    display: none;
}

.commentaire form {
    background-color: var(--bleu);
    padding: 20px;
    margin: auto;
    border-radius: 20px;
    font-family: 'Kelson Sans', sans-serif;
    font-size: 1.5rem;
}

.commentaire form select {
    padding: 5px 20px;
    border: none;
    font-size: 1rem;
    border-radius: 50px;
    margin: 20px 0;
}

.commentaire textarea {
    width: 100%;
    height: 100px;
    border-radius: 10px;
    padding: 5px;
    font-size: 1rem;
    border: none;
    font-family: 'Louis George Cafe', sans-serif;
    margin: 20px 0;
}

#toggle-comments-btn,
.btn-submit {
    background-color: var(--rouge);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 5px 20px;
    font-size: 1.2rem;
    font-family: 'Kelson Sans', sans-serif;
    margin: 20px auto;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit {
    color: #000;
    background-color: var(--jaune);
    margin: 0;
}

/* --- RESPONSIVE TABLETTE / DESKTOP --- */
@media (min-width: 768px) {

    main {
        padding: 0 35px;
    }

    h1 {
        font-size: 6rem;
    }

    .recipe-badges {
        flex-direction: row;
        gap: 20px;
        justify-content: space-between;
        font-size: 1.5rem;
        margin: 30px auto;
        max-width: 1200px;
    }

    .btn-save {
        margin: 0;
    }

    .ingredients-grid {
        grid-template-columns: repeat(4, 200px);
        margin: auto;
        max-width: 1200px;
        justify-items: center
    }

    .comments h2 {
        font-size: 4.75rem;
    }

    .recipe-visual img {
        max-width: 600px;
    }

}