/* === GLOBAL === */
/* === GLOBAL === */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #006233; /* Vert drapeau marocain */
    box-sizing: border-box;
}

/* PUB */
.ads {
    width: 100%;
    min-height: 90px;
    background-color: #004d26; /* même couleur que le footer */
}

/* TITRE */
header {
    text-align: center;
    margin-top: 10px;
}

h1 {
    display: inline-block;
    color: #c1272d; /* Rouge marocain */
    border: 3px solid #ffd700; /* Jaune */
    padding: 10px 20px;
}

/* FILTRES */
.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 10px;
    flex-wrap: wrap;
}

.filters select,
.filters button {
    background-color: #ffd700;
    color: #006233;
    border: none;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    width: 160px;
}

/* CONTENU PRINCIPAL */
main {
    display: flex;
    justify-content: center;
    padding: 20px;
    flex-wrap: wrap; /* pour mobile */
}

.home-image {
    max-width: 70%;
    border-radius: 10px;
}

.recipe {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    margin: 0 auto;
    flex-wrap: wrap; /* pour mobile */
}

.recipe-photo,
/* ===== TEXTE RECETTES ===== */
.recipe-text {
    font-weight: bold;      /* texte en gras */
    line-height: 1.6;       /* espacement pour lisibilité */
    color: black;
}

.recipe-text h2 {
    font-size: 24px;
    margin-top: 0;
}

.recipe-text h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.recipe-text p,
.recipe-text li {
    font-size: 18px;
    line-height: 1.6;
}

/* Mobile : texte plus grand pour lisibilité */
@media (max-width: 768px) {
    .recipe-text p,
    .recipe-text li {
        font-size: 19px;
    }
    .recipe-text h2 {
        font-size: 26px;
    }
    .recipe-text h3 {
        font-size: 22px;
    }
}


/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background-color: #004d26;
    color: white;
}

footer a {
    color: #ffd700;
    text-decoration: none;
}

.legal {
    font-size: 12px;
    margin-top: 10px;
}

/* MENU EN BAS (footer) */
.footer-nav {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #c1272d; /* rouge marocain */
    text-decoration: none;
    font-weight: bold;
}

.footer-nav a:hover {
    text-decoration: underline;
}



/* UTIL */
.hidden {
    display: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .filters select,
    .filters button {
        width: 100%;
        max-width: 300px;
    }

    .home-image {
        max-width: 100%;
    }

    .recipe-photo,
    .recipe-text {
        width: 100%;
    }

    /* Lisibilité texte recettes sur mobile */
    .recipe-text p,
    .recipe-text li {
        font-size: 19px;
    }
}


/* Images adaptatives */
img, video {
    max-width: 100%;
    height: auto;
}
#recipePreparation {
    white-space: pre-line;
}
.recipe-meta {
    font-size: 19px;
    color: #000;        /* noir */
    font-weight: bold; /* gras */
    margin-bottom: 10px;
}
/* ===== META RECETTE - RESPONSIVE ===== */

/* Desktop */
.recipe-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 768px) {
    .recipe-meta {
        flex-direction: column;
        gap: 6px;
    }
}
/* ===== TEXTE ACCUEIL ===== */

.home-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    color: #000;
}

.home-text h2 {
    text-align: center;
    margin-bottom: 20px;
}

.home-text p {
    margin-bottom: 16px;
}

/* Mobile */
@media (max-width: 768px) {
    .home-text {
        padding: 15px;
    }

    .home-text p {
        font-size: 17px;
    }
}
.home-text p {
    text-align: justify;
}

/* Très petits écrans */
@media (max-width: 480px) {
  .home-text p {
    text-align: left;
  }
}


