/* --- RESET & BASE --- */
:root {
    --primary-color: #000;
    --accent-beige: #B49282;
    --light-beige: #F5DBC4;
    --bg-gray: #f8f9fa;
    --text-dark: #333;
    --text-muted: #777;
    --sale-pink: black; /* Couleur Promo */
}

/* ANTI-ZOOM : Désactive le zoom double-tap sur tous les liens et boutons globaux */
/* Suppression de la règle input/font-size:16px demandée */
a, button {
    touch-action: manipulation;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --- BANNIÈRE HERO --- */
.hero-banner {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    padding: 0;
    min-height: 450px;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
    line-height: 0;
}

.banner-img {
    width: 100%;
    height: 450px; 
    display: block;
    object-fit: cover; 
    object-position: center;
}

.banner-overlay {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    z-index: 2;
}

.btn-hero {
    display: inline-block;
    padding: 15px 30px;
    background-color: #fff;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: transform 0.3s, background 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    white-space: nowrap;
    
    /* ANTI-ZOOM Spécifique */
    touch-action: manipulation;
}
.btn-hero:hover { transform: scale(1.05); background-color: var(--primary-color); color: #fff; }

/* --- SECTION PRODUITS --- */
.featured-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; margin: 0 0 10px 0; text-transform: uppercase; letter-spacing: 1px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; margin: 0; }

.produits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* CARTE PRODUIT */
.produit-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    position: relative; /* Nécessaire pour positionner le coeur */
    display: flex;
    flex-direction: column;
}

.produit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--light-beige);
}

/* --- BOUTON FAVORIS (Nouveau) --- */
.btn-fav-card {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10; /* Au-dessus de l'image et du lien global */
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc; /* Gris par défaut (cœur vide) */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
    
    /* ANTI-ZOOM : Important car on clique souvent vite dessus */
    touch-action: manipulation;
}

.btn-fav-card:hover {
    color: #B49282; /* Beige au survol */
    transform: scale(1.1);
}

/* Cœur plein (quand le produit est favori) */
.btn-fav-card.active {
    color: #d9534f; /* Rouge */
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    
    /* ANTI-ZOOM */
    touch-action: manipulation;
}

/* --- BADGES --- */
.badges-container {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge-top {
    background-color: var(--accent-beige);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.badge-sale {
    background-color: var(--sale-pink);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
    display: inline-block;
    text-transform: uppercase;
}

/* Image */
.card-image {
    width: 100%;
    height: 300px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-image img { max-width: 90%; max-height: 90%; object-fit: contain; transition: transform 0.5s ease; }
.produit-card:hover .card-image img { transform: scale(1.05); }

/* Infos */
.card-info { padding: 20px; text-align: center; flex: 1; }

.produit-nom {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    color: var(--primary-color);
}

/* PRIX */
.price-block {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap; /* Permet au "À partir de" de bien se caler */
}

/* Style pour "À partir de" */
.price-label {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

.produit-prix {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.promo-text {
    color: var(--sale-pink);
}

.old-price {
    font-size: 0.95rem;
    text-decoration: line-through;
    color: #999;
    font-weight: normal;
}

/* AVIS */
.stars { color: #ffc107; font-size: 0.9rem; }
.avis-count { font-size: 0.8rem; color: var(--text-muted); margin-left: 5px; }

/* Bouton Voir */
.card-action { padding: 0 20px 20px; }

.btn-view {
    display: block;
    width: 100%;
    padding: 10px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s;
    opacity: 0;
    transform: translateY(10px);
    
    /* ANTI-ZOOM */
    touch-action: manipulation;
}
.produit-card:hover .btn-view { opacity: 1; transform: translateY(0); }

/* Bouton Voir Tout */
.view-all-container { text-align: center; margin-top: 40px; }
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s;
    
    /* ANTI-ZOOM */
    touch-action: manipulation;
}
.btn-secondary:hover { background-color: var(--primary-color); color: #fff; }

/* --- FEATURES --- */
.features-section {
    background-color: #fff;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    text-align: center;
    border-top: 1px solid #eee;
}
.feature-item { max-width: 250px; }
.feature-item i { font-size: 2.5rem; color: var(--accent-beige); margin-bottom: 15px; }
.feature-item h4 { margin: 0 0 10px 0; font-size: 1.1rem; }
.feature-item p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {

    .btn-fav-card {
        width: 40px; /* Un peu plus gros sur mobile pour le doigt */
        height: 40px;
        font-size: 1.2rem;
    }

    .hero-banner { margin-bottom: 30px; }
    .banner-img { height: auto; aspect-ratio: 1 / 1; min-height: 300px; }
    .btn-hero { padding: 12px 25px; font-size: 0.9rem; }

    .section-header h2 { font-size: 1.5rem; }
    
    .produits-container { grid-template-columns: 1fr; padding: 0 10px; }
    
    .card-image { height: 250px; }
    
    /* Bouton toujours visible sur mobile */
    .btn-view {
        opacity: 1;
        transform: translateY(0);
        background-color: #f0f0f0;
        color: #333;
    }

    .features-section { gap: 40px; padding: 40px 20px; }
}