body {
  background-color: #121212;
  color: #f1f1f1;
}

a {
  color: #ffe100;
}

.btn-yellow {
  background-color: #ffe100;
  color: #000;
  font-weight: 600;
}
.btn-yellow:hover {
  background-color: #ffcd00;
  color: #000;
}

.card-dark,
.card.item-card-premium {
  background-color: transparent !important;
  border: none;
}

/* Carte premium (vue cards_explorer, mobile & web) */
.card.item-card-premium,
.card-dark.border-white {
  border: 2px solid #fff !important;
  border-radius: 1.1rem !important;
  background: transparent !important;
  box-shadow: 0 0 0 0.5px #fff, 0 2px 12px 0 rgba(0,0,0,0.18);
  transition: box-shadow 0.18s;
}
.card.item-card-premium:hover {
  box-shadow: 0 0 6px 2px #ffe100, 0 4px 20px 0 rgba(0,0,0,0.38);
}

/* Image wrapper + overlay foil */
.item-image-wrapper {
  background: transparent !important;
  position: relative;
}
.foil-overlay {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(120deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.18) 35%, rgba(255,255,255,0.04) 100%);
  border-radius: 1.1rem;
  mix-blend-mode: lighten;
  opacity: 0.85;
}

/* Badge code : même rendu partout */
.item-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.92);
  border: 2px solid #fff;
  color: #fff;
  border-radius: 7px;
  font-weight: bold;
  padding: 0 12px;
  min-width: 46px;
  min-height: 32px;
  font-size: 1.08em;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 10px 0 rgba(0,0,0,0.12);
}
.item-code-badge {
  display: none !important;
}

.zebradex-badge img {
  height: 22px;
  filter: drop-shadow(0 0 2px #ffe100cc);
}

.table td,
.table th {
  vertical-align: middle;
}

.search-input {
  background-color: #1e1e1e;
  border: none;
  color: #fff;
}
.search-input::placeholder {
  color: #999;
}

.placeholder-graph {
  width: 60px;
  height: 30px;
  background: linear-gradient(to right, #0f0, #0f0 50%, transparent 50%);
  background-size: 10px 100%;
  background-repeat: repeat-x;
  border-radius: 5px;
}

.icon-link {
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.2s;
}
.icon-link:hover {
  transform: scale(1.3);
  text-decoration: none;
}
.text-yellow {
  color: #ffe100;
}

html {
  scroll-behavior: smooth;
}

.logo-img {
  max-height: 150px;
}

.banner-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  z-index: 2000;
}
.spacer-banner {
  height: 72px;
}

.delay-02s { animation-delay: 0.2s; }
.delay-04s { animation-delay: 0.4s; }
.delay-06s { animation-delay: 0.6s; }
.delay-08s { animation-delay: 0.8s; }
.delay-1s { animation-delay: 1s; }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInMoveUp 0.8s forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeInMoveUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Zebra alternance pour table-dark */
.table-dark.table-striped > tbody > tr:nth-of-type(odd) { --bs-table-accent-bg: #1c1c1c; }
.table-dark.table-striped > tbody > tr:nth-of-type(even) { --bs-table-accent-bg: #212529; }
.table-dark > tbody > tr:hover > * { background-color: #2a2a2a !important; }

/* Compact + badge clean */
.table-sm td, .table-sm th { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.badge.small { font-size: 0.75rem; padding: 0.35em 0.5em; }

/* Tri sortable */
th.sortable {
  position: relative;
  padding-right: 20px;
}
th.sortable::after {
  content: " ⇅";
  color: #888;
  position: absolute;
  right: 8px;
}
th.sorted-asc::after { content: " ↑"; color: #fff; }
th.sorted-desc::after { content: " ↓"; color: #fff; }
th.sortable:hover { cursor: pointer; text-decoration: underline; }

.dropdown-menu { z-index: 1100; /* plus haut que la banner qui est à 1080 */ }

/* Table Bootstrap 100% transparent */
.table, .table thead, .table tbody, .table tr, .table th, .table td {
  background-color: transparent !important;
}
/* Pour garder le zébrage et le hover subtils mais en transparent */
.table-striped > tbody > tr:nth-of-type(odd),
.table-dark.table-striped > tbody > tr:nth-of-type(odd),
.table-dark.table-striped > tbody > tr:nth-of-type(even) {
  --bs-table-accent-bg: transparent;
}
.table-hover > tbody > tr:hover > * {
  background-color: rgba(255,255,255,0.04) !important;
}

/* Liserai blanc autour du tableau principal */
.table-border-white {
  border: 0.1px solid #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0 0 0.1px #fff;
  background: transparent;
}
.table-bordered { border-color: #fff !important; }
.table-bordered th, .table-bordered td { border-color: #fff !important; }

/* Spécifique mobile */
@media (max-width: 768px) {
  .card-dark,
  .card.item-card-premium,
  .card-dark.border-white {
    background-color: transparent !important;
    border-radius: 1rem !important;
    box-shadow: 0 0 8px 0 rgba(255,255,255,0.04);
  }
  .item-badge { min-width: 46px; font-size: 1em; padding: 0 8px; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Bloc infos principales au-dessus de la carte */
.item-main-infos {
  background: rgba(20,20,20,0.98);
  border-bottom: 1px solid #242424;
  border-radius: 1.1rem 1.1rem 0 0;
  margin-bottom: 0;
  padding-bottom: 0.45em;
}
.item-main-infos .item-name {
  font-size: 1.09em;
  letter-spacing: 0.01em;
  font-weight: 700;
}
.price-evol-box {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  font-size: 1em;
  margin-bottom: 0;
}
.item-price {
  font-size: 1.05em;
  font-weight: 500;
}
.item-evolution {
  font-size: 0.99em;
}

.card-img-top {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Forcer les boutons à être plus petits et responsives */
.item-actions .btn {
  min-width: 36px;
  padding: 4px 6px;
  font-size: 0.8rem;
}

/* Quantité centrée et compacte */
.item-actions .quantity-badge {
  min-width: 28px;
  padding: 0 6px;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* Wrap clean sur mobile */
.item-actions {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
}

.item-actions > div {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.navbar {
  padding-bottom: 1rem; /* ou 1.25rem */
}
