/* Hero Section Styling */
.hero {
  background-size: cover;
  height: 70vh;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  padding: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.1rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* Section Title Styling */
.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #333;
  position: relative;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #f79c42;
}

/* Product Card Styling */
.card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: white;
  height: 100%;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.card-img-top {
  height: 180px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.card-body {
  padding: 1rem;
  text-align: center;
}

.card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

.card-text {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #555;
}

/* Button Styling */
.order-btn {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  background-color: #f76c6c;
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  display: none;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.card:hover .order-btn {
  display: inline-block;
  opacity: 1;
  transform: translateX(-50%) translateY(5px);
}

.order-btn:hover {
  background-color: #e05c5c;
  transform: translateX(-50%) translateY(2px);
}

/* Product Container Styling */
.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.product-container .col-md-4 {
  flex: 0 0 30%;
  max-width: 30%;
}

/* Pagination Styling */
.pagination {
  font-size: 1rem;
  display: flex;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.pagination .page-link {
  padding: 10px 20px;
  border-radius: 20px;
  margin: 5px;
  border: 1px solid #ddd;
  background-color: white;
  color: #333;
}

.pagination .page-item.active .page-link {
  background-color: #f79c42;
  color: white;
}

.pagination .page-link:hover {
  background-color: #f79c42;
  color: white;
}

/* Footer Styling */
footer {
  background-color: #333;
  color: white;
  padding: 1rem 0;
  text-align: center;
}

footer p {
  margin: 0;
}

/* Alert Container */
#alertContainer {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  max-width: 400px;
  width: 100%;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
  .product-container .col-md-4 {
    flex: 0 0 45%;
    max-width: 45%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .product-container .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .card-img-top {
    height: 160px;
  }

  .order-btn {
    font-size: 0.85rem;
    padding: 7px 18px;
  }

  .hero {
    height: 50vh;
    padding: 0.5rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }
}
.navbar-brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

.navbar-custom {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.icon-button {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 8px 12px;
  margin-left: 8px;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.icon-button:hover {
  background-color: #e9ecef;
  transform: scale(1.05);
}

.icon-button i {
  font-size: 1.2rem;
  color: #198754; /* Bootstrap success */
}

.cart-count-mobile {
  font-size: 0.65rem;
  font-weight: bold;
  padding: 4px 6px;
}

.dropdown-menu {
  border-radius: 0.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/*Animation CSS au survol */

.transition-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.transition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.nav-link.active {
  color: #dc3545 !important; /* rouge Bootstrap */
  font-weight: bold;
  border-bottom: 2px solid #dc3545;
}
