@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary: #2c3e50;
    --secondary: #27ae60;
    --accent: #e67e22;
    --light: #f8fbf9;
    --dark: #2d3436;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    margin: 0;
    color: var(--dark);
    line-height: 1.6;
}

/* --- HERO SIMPLIFIÉ --- */


/* --- SECTION AVANTAGES (Optionnelle si tu veux la garder sous le hero ou supprimer) --- */
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 40px 20px;
    background: white;
    gap: 20px;
}

.feature-item {
    text-align: center;
    flex: 1;
    min-width: 250px;
    padding: 20px;
}

.feature-item i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.feature-item p {
    font-size: 0.85rem;
    color: #636e72;
}
/* --- FOOTER PROFESSIONNEL --- */

.main-footer {
    background: white;
    border-top: 1px solid #eee;
    padding: 50px 20px 20px 20px;
    margin-top: 50px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    /* On force l'affichage en grille */
    display: grid; 
    /* Crée 3 colonnes égales sur grand écran */
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 40px;
}


/* --- BOUTONS --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-achat {
    background: var(--accent);
    color: white;
    width: 100%;
    font-size: 1rem;
}
/* --- GRILLE PRINCIPALE --- */
.container {
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes sur PC */
    gap: 20px;
    padding: 0 15px;
}

/* --- CARTE PRODUIT STYLE "PRO" --- */
.produit-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation fluide */
    position: relative; /* IMPORTANT pour le placement du badge */
}
.produit-card:hover {
    transform: translateY(-8px); /* La carte monte au survol */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Ombre portée */
   
}

/* --- IMAGE --- */
.image-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    /* Ajout d'un fond pour combler les vides si l'image est forcée */
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Le badge "Promo" en haut à gauche */
.produit-card img {
    /* On utilise max-width/height pour que l'image ne dépasse jamais */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    /* FORCER l'affichage complet : contain au lieu de cover */
    object-fit: contain; 
    transition: transform 0.5s ease;
    display: block;
}

/* Zoom léger de l'image au survol (marche aussi avec contain) */
.produit-card:hover img {
    transform: scale(1.08);
}

.produit-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Empêche le texte de pousser la carte si l'image change de ratio */
    background: white; 
}

.produit-info h3 {
    font-size: 0.95rem;
    margin: 0 0 8px 0;
    color: #333;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.4rem; 
}

/* --- QUANTITÉ ET BOUTON (Compact) --- */
.achat-container {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Quantité à gauche, Bouton à droite */
    gap: 8px;
    margin-top: auto;
    align-items: center;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 38px;
}

.btn-qty {
    flex: 1;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.qty-input {
    width: 25px;
    text-align: center;
    border: none;
    font-size: 0.9rem;
}

.btn-add {
    background: var(--accent); /* Ton bouton jaune/orange */
    color: white;
    border: none;
    border-radius: 4px;
    height: 38px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

/* --- VERSION MOBILE (2 PRODUITS PAR LIGNE) --- */
@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr); /* 2 produits par ligne */
        gap: 10px; /* Moins d'espace pour gagner de la place */
        padding: 0 10px;
    }

    .produit-card img {
        height: 140px; /* Image plus petite sur mobile */
    }

    .produit-info {
        padding: 8px;
    }

    .produit-info h3 {
        font-size: 0.85rem;
        height: 2.2rem;
    }

    .prix-promo, .prix-simple {
        font-size: 1rem;
    }
    
    .achat-container {
        grid-template-columns: 1fr; /* On empile la quantité et le bouton sur mobile si c'est trop étroit */
        gap: 5px;
    }
    
    /* Si tu veux vraiment que la quantité et le bouton restent côte à côte même sur petit mobile : */
    /* .achat-container { grid-template-columns: 45px 1fr; } */
}



       
   
