@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;700&display=swap');

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

body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

header {
    background-color: #fa8072; /* Salmon pink for better contrast */
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
}

footer {
    background-color: #fea3aa; /* Lighter salmon for a softer look */
    color: #fff;
    text-align: center;
    padding: 10px 0;
    bottom: 0;
    width: 100%;
}

footer a{
    text-decoration: none;
}

article a{
 color: #fea3aa;
}

.image-livre img{
    max-height:250px !important;

}

.image-livre{
    float:left;
    padding-right:10px;
}

footer a{
    color: #ffffff;
   }

#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #fea3aa;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
}

ul{
    margin-bottom:20px;
}

#back-to-top:hover {
    background-color: #e89294; /* Slightly darker for hover effect */
}

article {
    max-width: 800px;
    margin: 0 auto; /* Centers the article */
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

article h2 {
    color: #fa8072; /* Salmon pink */
    margin-bottom: 10px;
}

article p {
    margin-bottom: 20px;
}

article ul {
    margin-left:50px !important;
}

h3 {
    color: #fa8072;
    margin-bottom: 10px;
}

.info-icons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
}

.info-icons div {
    text-align: center;
}

.info-icons img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 5px;
}

.liste-recettes{
    margin-left:50px;
    margin-bottom:20px;
    list-style-type: disc;
}

.liste-recettes a{
    color:#333333;
    text-decoration: none;
}

.ingredients ul {
    padding-right: 20px;
    margin-left:50px;
}

.instructions ol {
    counter-reset: step-counter;
    list-style:none;
}

.instructions ol li {
    counter-increment: step-counter;
    margin-bottom: 10px;
}

.instructions ol li:before {
    content: counter(step-counter);
    font-weight: bold;
    color: #fa8072;
    background-color: #fff;
    border-radius: 50%;
    padding: 5px;
    margin-right: 10px;
}

.note {
    background-color: #feefd5; /* Light yellow for note background */
    padding: 10px;
    margin-top: 20px;
}

.recipes-container {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    justify-content: space-around;
}

.recipe {
    width: 30%; /* 3 columns */
    margin-bottom: 20px;
}

.recipe a {
    text-decoration: none;
    color: black; /* Adjust color as needed */
}

.recipe img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Optional: rounds corners of images */
}

.recipe h3 {
    text-align: center;
    margin-top: 5px;
}

.contact-form {
    width: 100%;
    max-width: 600px;
    margin: auto;
    padding: 20px;
}
.form-control {
    margin-bottom: 10px;
    padding: 10px;
    width: 100%;
}
.form-control input, .form-control textarea {
    width: 100%;
    padding: 8px;
}
.form-control button {
    padding: 10px 20px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .recipe {
        width: 45%; /* 2 columns on medium screens */
    }
}

@media (max-width: 480px) {
    .recipe {
        width: 100%; /* 1 column on small screens */
    }
}

@media print {
    header, footer, nav, #back-to-top, button {
        display: none;
    }
}

.hamburger {
    display: none;
    background-color: #fa8072;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        text-align: center;
        padding: 10px 0;
    }

    nav ul li a {
        display: block;
    }

    nav.active ul {
        display: flex;
    }
}
