/* ========================================= */
/* Page Header (pour toutes les pages internes) */
/* ========================================= */
/* Ce bloc devrait déjà exister dans votre CSS. Je le répète pour le contexte. */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/page-header-products-bg.jpg') no-repeat center center/cover; /* Nouvelle image de fond suggérée */
    color: var(--text-color-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    animation: fadeIn 1s ease-out;
}

.page-header h2 {
    font-size: 3.5em;
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
}

/* ========================================= */
/* Section Contenu (générique, déjà existante) */
/* ========================================= */
/* Ce bloc devrait déjà exister dans votre CSS. Je le répète pour le contexte. */
.content-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.content-section > .container > p { /* Paragraphe introductif de la section */
    font-size: 1.15em;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto; /* Centre le paragraphe et ajoute de l'espace en dessous */
    color: var(--text-color-dark);
}

/* ========================================= */
/* Liste des éléments produits (Product Item List) */
/* ========================================= */
.product-item-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Grille flexible, min 300px */
    gap: 40px; /* Espacement entre les produits */
    padding-top: 20px;
}

.product-item-detail {
    background-color: var(--text-color-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex; /* Utilise flexbox pour le contenu interne */
    flex-direction: column; /* Empile l'image, le titre et le paragraphe */
    justify-content: space-between; /* Espace bien le contenu */
    animation: fadeInUp 0.8s ease-out forwards; /* Animation d'apparition */
    opacity: 0; /* Caché initialement pour l'animation */
}

/* Délai pour l'animation de chaque item */
.product-item-list .product-item-detail:nth-child(1) { animation-delay: 0.1s; }
.product-item-list .product-item-detail:nth-child(2) { animation-delay: 0.2s; }
.product-item-list .product-item-detail:nth-child(3) { animation-delay: 0.3s; }
.product-item-list .product-item-detail:nth-child(4) { animation-delay: 0.4s; }
.product-item-list .product-item-detail:nth-child(5) { animation-delay: 0.5s; }
/* ... ajoutez d'autres :nth-child si vous avez plus de produits */

.product-item-detail:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-item-detail img {
    max-width: 100%;
    height: 250px; /* Hauteur fixe pour toutes les images de produit */
    object-fit: cover; /* Recadre les images pour qu'elles remplissent l'espace */
    border-radius: 8px;
    margin-bottom: 25px;
    transition: transform 0.5s ease;
}

.product-item-detail:hover img {
    transform: scale(1.05); /* Léger zoom sur l'image au survol */
}

.product-item-detail h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center; /* Centre le titre du produit */
}

.product-item-detail p {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-color-dark);
    flex-grow: 1; /* Permet aux paragraphes de prendre l'espace disponible */
}

/* ========================================= */
/* Responsive Design pour ce bloc */
/* ========================================= */

/* Tablette et petits desktops */
@media (max-width: 992px) {
    .page-header {
        padding: 80px 0;
    }
    .page-header h2 {
        font-size: 2.8em;
    }

    .content-section {
        padding: 60px 0;
    }
    .content-section > .container > p {
        margin-bottom: 40px;
        font-size: 1.05em;
    }

    .product-item-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Ajuste la taille min des colonnes */
        gap: 30px;
    }

    .product-item-detail {
        padding: 25px;
    }
    .product-item-detail img {
        height: 200px; /* Réduit la hauteur des images sur tablette */
        margin-bottom: 20px;
    }
    .product-item-detail h3 {
        font-size: 1.6em;
    }
    .product-item-detail p {
        font-size: 0.95em;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .page-header {
        padding: 60px 0;
    }
    .page-header h2 {
        font-size: 2.2em;
    }

    .content-section {
        padding: 40px 0;
    }
    .content-section > .container > p {
        margin-bottom: 30px;
        font-size: 1em;
        text-align: left; /* Alignement à gauche pour plus de lisibilité sur mobile */
    }

    .product-item-list {
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
        gap: 25px;
    }

    .product-item-detail {
        padding: 20px;
    }
    .product-item-detail img {
        height: 180px; /* Encore plus petit sur mobile */
        margin-bottom: 15px;
    }
    .product-item-detail h3 {
        font-size: 1.5em;
    }
    .product-item-detail p {
        font-size: 0.9em;
    }
}

/* Nouvelle animation pour les produits */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}