@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;800&display=swap");
* {
  font-family: "Manrope", sans-serif;
}
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
body {
  background: radial-gradient(circle at top right, #eef3ff 0%, #f8f9fa 45%, #f8f9fa 100%);
  padding-bottom: 50px;
}
.card {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.card-img-top {
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}
.sku-badge {
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 600;
  background-color: #212529;
}
#preview {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: none;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 2px dashed #ccc;
}
.table-responsive {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.table {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
}
.table thead {
  background-color: #212529;
}
h1,
h2,
h3 {
  font-weight: 800;
  color: #212529;
}

/* Responsive table for mobile */
@media (max-width: 768px) {
  .table-responsive {
    border: 0;
    box-shadow: none;
  }

  .table thead {
    display: none;
  }

  .table tbody tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
  }

  .table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px !important;
    border: none;
    border-bottom: 1px solid #f5f5f5;
    text-align: right;
    min-height: 48px;
  }

  .table tbody td:first-child {
    background-color: #f8f9fa;
    font-weight: 600;
  }

  .table tbody td:last-child {
    border-bottom: none;
  }

  .table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    text-align: left;
    margin-right: 15px;
    color: #6c757d;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Style pour les cellules colspan (messages vides) */
  .table tbody td[colspan]::before {
    content: none;
  }

  .table tbody td[colspan] {
    justify-content: center;
    text-align: center;
    background-color: #f8f9fa;
    padding: 20px !important;
  }

  .table tbody td a {
    word-break: break-all;
    font-size: 0.9em;
  }

  .table tbody td .badge {
    font-size: 0.75em;
    padding: 4px 8px;
  }

  .table tbody td .btn-group {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
  }

  .table tbody td .btn-group form {
    margin: 0 !important;
  }

  .table tbody td .btn-group .btn {
    padding: 6px 12px;
    font-size: 1em;
    min-width: 40px;
  }
}
a:link {
  text-decoration: none;
}
.article-vendu .carousel-inner img {
  filter: grayscale(100%) opacity(0.6);
}
.article-vendu .card-body {
  opacity: 0.7;
}
.prix-barre {
  color: #6c757d !important;
}
.badge-vendu {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #dc3545;
  color: white;
  padding: 4px 16px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 14px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.article-en-attente .carousel-inner img {
  filter: grayscale(100%) opacity(0.6);
}
.article-en-attente .card-body {
  opacity: 0.7;
}
.badge-en-attente {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ffc107;
  color: #000;
  padding: 4px 16px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 14px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.badge-statut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.badge-statut.badge-en_attente {
  background: #fff3cd !important;
  color: #7a5b00 !important;
  border: 1px solid #ffe69c;
}

.badge-statut.badge-vendu {
  background: #198754 !important;
  color: #ffffff !important;
  position: static !important;
  top: auto !important;
  right: auto !important;
  box-shadow: none !important;
}

.badge-statut.badge-annule {
  background: #dc3545 !important;
  color: #ffffff !important;
}

.navbar-modern {
  backdrop-filter: blur(6px);
  background: rgba(33, 37, 41, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand-modern {
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link.active {
  color: #ffffff !important;
}

.navbar-nav .nav-link:hover {
  color: #f6c445 !important;
}

.admin-btn {
  border-radius: 999px;
  padding-left: 12px;
  padding-right: 12px;
}

.home-shell {
  padding-top: 4px;
}

.intro-card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(13, 26, 58, 0.08);
}

.intro-card .card-body {
  background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.55rem;
}

.section-title::before {
  content: "";
  width: 9px;
  height: 28px;
  border-radius: 6px;
  background: #212529;
}

.product-card {
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.btn-reserve {
  border-radius: 10px;
  background: #212529;
  color: #fff;
  border: 0;
}

.btn-reserve:hover {
  background: #111418;
  color: #fff;
}

.btn-reserve.disabled,
.btn-reserve:disabled {
  background: #adb5bd;
  color: #f8f9fa;
  opacity: 1;
}

.footer-modern {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  background: rgba(33, 37, 41, 0.94) !important;
}

.footer-link {
  color: #f8f9fa;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 1;
  color: #fff;
}
