/* Général */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f0f4ff, #dbe9ff);
    color: #333;
    overflow-x: hidden;
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Titre principal */
h1 {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3rem);
    color: #333;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease-out;
}

/* Barre de recherche */
.search-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-form input,
.search-form select,
.search-form button {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid #555;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease-in-out;
}

.search-form input:focus,
.search-form select:focus,
.search-form button:hover {
    background-color: #D2C1AE;
    color: #fff;
    transform: scale(1.05);
}

.search-form button {
    cursor: pointer;
}

/* Bouton "Tout voir" */
.view-all-form {
    text-align: center;
    margin-bottom: 2rem;
}

.view-all-form button {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    background: #D2C1AE;
    color: #333;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.view-all-form button:hover {
    background: #b0a291;
    transform: translateY(-3px);
}

/* Onglets */
.onglets {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.onglet {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    background: #D2C1AE;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.onglet:hover {
    background: #b0a291;
    transform: scale(1.1);
}

.onglet:active {
    background: #b0a291;
}

/* Produits */
.produits {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out;
}

.produit {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    width: clamp(250px, 30%, 300px);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.produit:hover {
    transform: scale(1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.produit img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #b0a291;
}

.produit h2 {
    font-size: 1.25rem;
    color: #333;
    margin: 1rem;
    text-align: center;
    animation: zoomIn 0.5s ease-out;
}

.produit p {
    font-size: 0.95rem;
    color: #666;
    margin: 0 1rem 1rem;
    text-align: justify;
}

.produit a {
    display: block;
    text-align: center;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background: #D2C1AE;
    color: #333;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.produit a:hover {
    background: #b0a291;
    transform: translateY(-3px);
}
@media 
only screen and (max-width: 768px) {
    .search-form {
        flex-direction: column;
        align-items: center;
    }
}
/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
    }
    to {
        transform: scale(1);
    }
}
