/* ===========================
   Styles globaux
=========================== */
body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #FFF8F0; /* Fond clair */
    color: #013220;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* ===========================
   Logo et header
=========================== */
header {
    background-color: #A2D5AB; /* Vert doux */
    padding: 20px;
    text-align: center;
}

.logo {
    font-family: 'Pacifico', cursive;
    color: #FFC312; /* Jaune tournesol */
    font-size: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo a {
    text-decoration: none;
    color: #FFC312;
    font-weight: bold;
    margin: 0 15px;
    transition: color 0.3s;
}

.logo a:hover {
    color: #F2A65A; /* Accent orange doux */
}
nav {
    margin-top: 10px;
}

nav a {
    text-decoration: none;
    color: #013220;
    font-weight: bold;
    margin: 0 15px;
    transition: color 0.3s;
}

nav a:hover {
    color: #F2A65A; /* Accent orange doux */
}

/* ===========================
   Main content
=========================== */
main {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
}

h2 {
    font-family: 'Pacifico', cursive;
    color: #FFC312; /* Jaune tournesol */
    margin-top: 30px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

ul {
    margin-left: 20px;
    margin-bottom: 20px;
}




/* Recettes */
.recette {
    background-color: #FFF;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Images */
.image-accueil {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    border-radius: 10px;
}
.imgrec {
    display: block;
    max-width: 50%;
    height: auto;
    margin: 50px auto;
    border-radius: 10px;
}




/* Footer */
footer {
    background-color: #A2D5AB;
    color: #FFF;
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 600px) {
    nav a {
        display: block;
        margin: 5px 0;
    }
    .logo {
        font-size: 2em;
    }
}



/* Images principales (accueil, bannière, mise en avant) */
.image-accueil {
    max-width: 20%;       /* l’image prend au maximum 60% de la largeur du conteneur */
    height: auto;         /* garde les proportions */
    display: block;
    margin: 20px auto;
    border-radius: 10px;  /* coins arrondis pour style chaleureux */
}

/* Images dans les recettes */
.recette img {
    max-width: 100%;       /* remplit le conteneur de la carte recette */
    height: auto;          /* garde les proportions */
    display: block;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* légère ombre pour effet “carte” */
}

/* Responsive : sur mobile */
@media (max-width: 600px) {
    .image-accueil {
        max-width: 90%;     /* image plus grande sur petit écran */
    }
    
    .recette img {
        max-width: 100%;    /* reste pleine largeur du conteneur */
    }
}


/* Grille de vignettes */
.recettes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Vignette individuelle */
.recette-vignette {
    text-decoration: none;
    color: #333;
    background-color: #FFF;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.recette-vignette img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* garde l’image proportionnelle et recadrée */
}

.recette-vignette h3 {
    margin: 10px;
    font-family: 'Pacifico', cursive;
    color: #FFC312; /* jaune tournesol */
    text-align: center;
}

/* Effet hover */
.recette-vignette:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 600px) {
    .recette-vignette img {
        height: 150px;
    }
}