@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #c0392b;
    /* Rouge Tunisie Moderne */
    --secondary-color: #2c3e50;
    /* Bleu Nuit */
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: #333;
}

/* --- NAVBAR ERGONOMIQUE --- */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background: white !important;
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--secondary-color) !important;
    font-size: 1.5rem;
}

.nav-link {
    color: #555 !important;
    font-weight: 500;
    margin-right: 15px;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* --- BANNIÈRE DYNAMIQUE (CAROUSEL) --- */
.hero-slider {
    margin-bottom: 30px;
    border-radius: 12px;
    /* Coins arrondis */
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-slider .carousel-item {
    height: 280px;
    /* <--- C'est ICI qu'on règle la hauteur. Changez ce chiffre selon vos goûts (ex: 250px, 300px) */
}

.hero-slider .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    /* MAGIQUE : Ça remplit le cadre sans écraser l'image (ça coupe le haut/bas si nécessaire) */
    object-position: center;
    /* Centre l'image pour voir le milieu */

}

/* --- SIDEBAR CATEGORIES --- */
.sidebar-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    background: white;
    overflow: hidden;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #f1f1f1;
    padding: 12px 20px;
    transition: 0.2s;
    font-size: 0.95rem;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover,
.list-group-item.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    padding-left: 25px;
    /* Petit effet de glissement */
}

.list-group-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* --- CARTES PRODUITS --- */
.product-card {
    background: white;
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
}

.price-tag {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-custom {
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50px;
    padding: 8px 20px;
    transition: 0.3s;
}

.btn-custom:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- BADGES --- */
.badge-stock {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.badge-out {
    background-color: #ffebee;
    color: #c62828;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
}