/* Style général */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Hero section */
.hero {
    padding: 40px 0;
    text-align: center;
}

.hero h2 {
    color: #ab7c46;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    color: #666;
    font-size: 1.2rem;
}

/* Galerie de photos */
.photo-gallery {
    padding: 30px 0;
    background-color: #f9f5f0;
}

.photo-gallery h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ab7c46;
    font-size: 1.8rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.photo img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(171, 124, 70, 0.2);
    transition: transform 0.3s;
}

.photo img:hover {
    transform: scale(1.03);
}

/* Filtres */
.filters {
    padding: 30px 0;
    text-align: center; /* Centre le texte */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre horizontalement */
    justify-content: center; /* Centre verticalement si besoin */
}

.filters h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #ab7c46;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    background-color: white;
    border: 2px solid #ab7c46;
    color: #ab7c46;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #ab7c46;
    color: white;
}

/* Recettes */
.recipes-container {
   display: flex ;
    flex-direction: column ;
    align-items: center ; /* Centre tout horizontalement */
    width: 100% ;
    padding: 40px 20px ;
    margin: 0 auto ;
}

.category-title {
    color: #ab7c46;
    font-size: 1.8rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ab7c46;
    display: inline-block;
    text-align: center;
}

.recipes {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes égales */
    gap: 30px;
    max-width: 800px; /* Largeur pour 2 cartes + espace */
    margin: 0 auto; /* Centre le conteneur */
    justify-items: center; /* Centre les cartes dans chaque colonne */
}

.recipe-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(171, 124, 70, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(171, 124, 70, 0.3);
}

.recipe-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.recipe-info {
    padding: 20px;
}

.recipe-info h4 {
    color: #ab7c46;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-align: center;
}

.recipe-desc {
    color: #666;
    margin-bottom: 15px;
    min-height: 60px;
    text-align: center;
}

.recipe-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #777;
    font-size: 0.9rem;
}

.recipe-details span {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.recipe-btn {
    display: inline-block;
    background-color: #ab7c46;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    margin: 0 auto; /* Centre le bouton */
    width: fit-content;
    cursor: pointer;
}

.recipe-btn:hover {
    background-color: #8c6338;
}


/* Responsive */
@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recipes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: flex-start;
    }
    
    .recipe-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
}