/* Conteneur global des produits */
.products {
    text-align: center; /* Centrer les produits dans la page */
}

/* Conteneur individuel pour chaque produit */
.product {
    display: inline-block; /* Permet d'aligner plusieurs produits sur une même ligne */
    vertical-align: top; /* Aligner les produits sur le haut */
    width: 250px; /* Largeur fixe pour tous les produits */
    height: 400px; /* Hauteur fixe pour les cartes produits */
    margin: 15px; /* Espacement entre les produits */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Image du produit */
.product-img {
    width: 200px; /* Largeur uniforme pour les images */
    height: 200px; /* Hauteur uniforme pour les images */
    object-fit: cover; /* Remplit l'espace défini sans déformer l'image */
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Nom du produit */
.product-name {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Prix du produit */
.product-price {
    font-size: 1rem;
    color: #e60012;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Bouton Ajouter au panier */
.product form button {
    background-color: #e60012;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product form button:hover {
    background-color: #cc0010;
}

/* Conteneur des filtres et bannière */
.filters-and-banner {
    margin-bottom: 2rem;
    text-align: center;
}

/* Conteneur des filtres */
.anime-menu {
    display: inline-block;
    width: 300px; /* Largeur fixe plus grande pour les filtres */
    background-color: #fff;
    padding: 2rem; /* Espacement interne plus large */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    margin-right: 20px; /* Espacement avec les autres éléments */
    vertical-align: top; /* Alignement avec les produits ou la bannière */
}

/* Style des filtres individuels */
.anime-menu div {
    margin-bottom: 1.5rem; /* Espacement entre chaque catégorie */
    display: flex; /* Permet d'aligner les cases et labels */
    align-items: center;
}

/* Style des labels */
.anime-menu label {
    font-size: 1rem;
    color: #333;
    margin-left: 10px; /* Espacement entre la case à cocher et le texte */
}

/* Menu déroulant (tri des prix) */
.anime-menu select {
    width: 100%; /* Le menu prend toute la largeur du conteneur */
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
    margin-bottom: 1.5rem; /* Espacement avec le bouton */
}

.anime-menu select:focus {
    border-color: #e60012;
}

/* Bouton Appliquer */
.anime-menu button {
    display: block; /* Le bouton prend toute la largeur */
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #e60012;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.anime-menu button:hover {
    background-color: #cc0010;
    transform: scale(1.02);
}

/* Adaptation des filtres pour les petits écrans */
@media (max-width: 768px) {
    .anime-menu {
        width: 100%; /* Le filtre prend toute la largeur sur petits écrans */
        margin-right: 0;
    }

    .anime-menu button {
        font-size: 0.9rem; /* Réduction de la taille du texte */
    }
}


/* Bannière animée */
.animated-banner {
    display: inline-block;
    margin-top: 1.5rem;
    margin-left: 20px; /* Espace entre les filtres et la bannière */
    background-color: #f9f9f9;
    border: 2px solid #e60012;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: middle; /* Centrer la bannière verticalement par rapport au filtre */
}

.animated-banner p {
    font-size: 1.2rem;
    color: #e60012;
    font-weight: bold;
    animation: marquee 10s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}
.product-detail-link {
    display: block;
    margin: 10px 0;
    text-decoration: none;
    color: #0070ba;
    font-weight: bold;
}

.product-detail-link:hover {
    text-decoration: underline;
}
/* Mise en page des produits */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding: 0 10px;
}

.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Image du produit */
.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Informations du produit */
.product-info {
    padding: 15px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.product-price {
    font-size: 1.1em;
    color: #0070ba;
    font-weight: bold;
    margin: 10px 0;
}

.product-description {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

/* Boutons */
.btn-details, .btn-cart {
    display: inline-block;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-details {
    background-color: #0070ba;
    color: #fff;
    margin-bottom: 10px;
}

.btn-details:hover {
    background-color: #005f9e;
}

.btn-cart {
    background-color: #28a745;
    color: #fff;
}

.btn-cart:hover {
    background-color: #218838;
}


