/* ==================== 🌿 Style Global ==================== */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7f6;
    color: #333;
}

/* ==================== 🟢 Barre de Navigation ==================== */
.navbar {
    padding: 12px 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 45px;
}

.navbar-nav .nav-link {
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: #d4edda !important;
}

/* ==================== 🔎 Barre de Recherche ==================== */
.search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 25px;
    padding: 8px 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.search-bar i {
    font-size: 20px;
    color: #28a745;
    margin-right: 10px;
}

.search-bar input {
    border: none;
    outline: none;
    font-size: 16px;
    flex-grow: 1;
}

/* ==================== 📦 Liste des Produits ==================== */
.container {
    max-width: 1400px;
}

h1 {
    font-weight: bold;
    margin-bottom: 25px;
    color: #1b5e20;
}

/* ==================== 🎨 Style des Cartes Produits ==================== */
.card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.card-body {
    text-align: center;
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
}

.card-text {
    font-size: 14px;
    color: #666;
}

.text-danger {
    color: #dc3545 !important;
}

.text-success {
    color: #28a745 !important;
}

/* ==================== 🎯 Boutons ==================== */
.btn-outline-success {
    transition: all 0.3s ease-in-out;
}

.btn-outline-success:hover {
    background-color: #28a745 !important;
    color: #fff !important;
}



  /* ✅ Bouton flottant bien visible */
  .new-product-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    font-size: 1.8rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.2s ease;
  }
  
  .new-product-btn:hover {
    transform: scale(1.1);
  }




/* ==================== 📱 Responsive ==================== */
@media (max-width: 1200px) {
    .row-cols-lg-5 > * {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 992px) {
    .row-cols-md-3 > * {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
}

@media (max-width: 768px) {
    .row-cols-sm-2 > * {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .card {
        margin-bottom: 15px;
    }

    .search-bar {
        max-width: 90%;
    }
}
