body {
    background-color: #2e2e2e;
    color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    color: #ff4500;
}

#searchBar {
    padding: 10px;
    width: 30%;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ff4500;
    outline: none;
}

.recipe-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto; /* Active la barre de défilement */
    max-height: 800px; /* Hauteur max pour la défilement */
}

.recipe {
    background-color: #444;
    border: 1px solid #ff4500;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.recipe-container {
    display: flex;
    align-items: flex-start;
}

.recipe-image {
    max-width: 300px;
    border-radius: 5px;
    margin-right: 20px;
    margin-top: auto;
    margin-bottom: auto;
}

.recipe-image-2 {
    max-width: 300px;
    border-radius: 5px;
    margin-left: 425px;
    margin-top: auto;
    margin-bottom: auto;
}

/* Nouveau style pour le paragraphe avec une nouvelle police et fond noir avec opacité */
.ingredients-text {
    background-color: rgba(0, 0, 0, 0.25); /* Fond noir avec opacité de 70% pour plus de contraste */
    border: 2px solid #555;
    border-radius: 5px;
    padding: 10px;
    margin-left: 20px;
    width: 1200px;
    height: auto;
    display: inline-block;
    color: white;
    font-family: 'Arial', monospace; /* Police différente */
    font-size: 1em;
    line-height: 1.5;
    font-size: 20px;
}

/* Alignement des grilles pour recettes spéciales */
.aligned-grids {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Retirer le bouton menu */
.menu-button {
    display: none; /* Le bouton est masqué */
}

.littleitem {
    width: 2%;
    height: auto;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .recipe-container {
        flex-direction: column;
        align-items: center;
    }

    .recipe-image {
        margin-bottom: 20px;
    }

    .recipe-image-2 {
        margin-bottom: 20px;
    }

    .ingredients-text {
        width: 100%;
        margin-left: 0;
    }

    .littleitem {
        width: 8%;
        height: auto;
        margin-top: 5px;
    }
}

.home-button {
    background-color: #e63946; /* Couleur rouge volcanique */
    color: white; /* Texte blanc */
    text-decoration: none; /* Pas de soulignement */
    padding: 10px 20px; /* Espacement intérieur */
    border-radius: 5px; /* Coins arrondis */
    transition: background-color 0.3s; /* Transition douce pour le changement de couleur */
    align-self: center; /* Centrer le bouton */
}

.home-button:hover {
    background-color: #d62839; /* Changement de couleur au survol */
}
