:root {
    /* Mode clair */
    --bg-color: #f8f5f0;
    --text-color: #;
    --header-bg: rgba(217, 93, 57, 0.8);
    --header-text-color: #ffffff;
    --link-bg: #ffb400;
    --link-hover-bg: rgba(255, 180, 0, 0.7);
    --link-text-color: #333333;
    --link-hover-text-color: #ffffff;
    --hr-gradient: linear-gradient(to right, #d95d39, #6b4226, #ffb400);
    --card-bg: #ffffff;
    --card-border: #d95d39;
    --footer-bg: #6b4226;
    --footer-text-color: #ffffff;
    --footer-link-color: #ffb400;
    --icon-hover: #333333;
}

.point_style {
    list-style: square;
    font-style: italic;
}

input,
textarea {
    resize: none;
    width: 100%;
    max-width: 300px;
    padding: 12px;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    margin-top: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    border-color: var(--link-bg);
    outline: none;
}

button {
    color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
    background-color: var(--link-bg);
    color: var(--link-text-color);
    border: none;
    border-radius: 10px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--link-hover-bg);
    color: var(--link-hover-text-color);
}

.dark-theme {
    /* Mode sombre */
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --header-bg: rgba(25, 25, 25, 0.9);
    --header-text-color: #ffffff;
    --link-bg: #ff9800;
    --link-hover-bg: #e65100;
    --link-text-color: #333333;
    --link-hover-text-color: #ffffff;
    --hr-gradient: linear-gradient(to right, #ff9800, #e65100, #d32f2f);
    --card-bg: #1c1c1c;
    --card-border: #ff9800;
    --footer-bg: rgba(25, 25, 25, 0.9);
    --footer-text-color: #e0e0e0;
    --footer-link-color: #ff9800;
    --icon-hover: #ffffff;
}

.recette {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 2rem auto;
}

.conseil {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.instagram {
    display: flex;
    align-items: center;
    flex-direction: row;
    background: none;
    width: 24px;
    height: 24px;
}

.instagram:hover {
    background: none;
}

.conseil ul {
    list-style-type: none;
    padding-left: 0;
}

.conseil li {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.conseil li::before {
    content: "•";
    color: #ff6347;
    font-weight: bold;
    margin-right: 10px;
}


.image-container {

    width: 100%;
    height: auto;
    max-width: 300px;
    display: block;
    margin: 0 auto;

}

.recette-image {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ingredients,
.instructions {
    margin: 2rem 0;
    width: 100%;
}

.ingredients h2,
.instructions h2 {
    text-align: center;
    color: var(--card-border);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.ingredients ul,
.instructions ol {
    margin: 0 auto;
    padding: 0;
    list-style: none;
    max-width: 700px;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.1rem;
}

.cards div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cards div img {
    margin: 0;
    padding: 0;
    border-radius: 0;
    border: none;
    width: 24px;
    height: 24px;

}

.ingredients li,
.instructions li {
    margin: 0.5rem 0;
    background-color: var(--card-bg);
    padding: 10px 15px;
    border: 1px solid var(--card-border);
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.ingredients li:hover,
.instructions li:hover {
    transform: scale(1.02);
    background-color: var(--link-hover-bg);
    color: var(--link-hover-text-color);
}

.instructions ol {
    counter-reset: list-counter;
}

.instructions li {
    counter-increment: list-counter;
    position: relative;
}

.instructions li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: -2.5rem;
    color: var(--link-bg);
    font-weight: bold;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
    }

    .recette {
        padding: 1rem;
    }

    .ingredients ul,
    .instructions ol {
        padding: 0 1rem;
    }

    .instructions li::before {
        left: -1.5rem;
    }
}



.milieuex {

    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
    align-items: center;



}

.form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    width: 20rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.textcote {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.textdsous {
    display: flex;
    flex-direction: column;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.active {
    color: white;
    background-color: var(--link-hover-bg);
}

#icon {
    display: flex;
    justify-content: end;
    background-color: var(--link-bg);
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.homme {
    max-width: 400px;
    border: var(--card-border) solid 1px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}

#icon:hover {
    background-color: var(--icon-hover);
    transform: scale(1.1);
}

body {
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

textarea {
    font-family: Arial, sans-serif;

}

.pasbg {

    background: none;
}

.pasbg:hover {
    background: none;

}

header {
    background: var(--header-bg);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    flex-direction: row;
    text-align: center;
    align-items: center;
    padding: 1rem 0;
    color: var(--header-text-color);
    margin-bottom: 20px;
    border-bottom: 1px solid;
    border-image: linear-gradient(to right, #ff9800, #e65100, #d32f2f) 1;
}

header img {
    max-width: 6rem;
}

body>h1 {
    text-align: center;
    margin: 2rem 0;
    color: var(--card-border);
}

nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.debut {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    margin: 1rem;
}

header a,
footer a {

    margin-top: 15px;
}

a {
    display: flex;
    padding: 0.6rem 1rem;
    align-items: center;
    background-color: var(--link-bg);
    color: var(--link-text-color);
    border-radius: 1rem;
    text-decoration: none;
    margin-left: 2rem;
    transition: background 0.3s ease;
    font-weight: bold;
}

a:hover {
    background: var(--link-hover-bg);
    color: var(--link-hover-text-color);
}

hr {
    border: none;
    height: 2px;
    background: var(--hr-gradient);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    width: 90%;
}

.wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 2rem;
}

.wrap .cardss {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: solid var(--card-border) 1px;
    background-color: var(--card-bg);
    margin: 2rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    width: 20rem;
    transition: transform 0.3s ease;
}

.cardss h1 {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    color: var(--card-border);
}

.cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: solid var(--card-border) 1px;
    background-color: var(--card-bg);
    margin: 2rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    width: 20rem;
    transition: transform 0.3s ease;
}

.cards:hover {
    transform: scale(1.05);
}

.cards img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-bottom: 2px solid #ddd;
    border-radius: 0.5rem;
}

.cards h1 {
    font-size: 1.5rem;
    margin: 1.5rem 0;
    color: var(--card-border);
}

.cards p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.button {
    padding: 10px;
    margin: 0;
    display: flex;
    text-align: center;
    background-color: #ffb400;
    color: #333333;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #d95d39;
    color: #333333;

}

footer {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 1rem 0;
    background-color: var(--footer-bg);
    color: var(--footer-text-color);
    margin-top: auto;
    font-size: 0.9rem;
}

footer a {
    color: var(--link-text-color);
    text-decoration: underline;
}