html,
body {
  height: 100%;
  font-size: 1rem; /* = 14px */
}
body {
  min-height: 100vh;
  background-color: #f8f9fa;
}

.fs-md-1 {
  font-size: calc(var(--bs-body-font-size) * 2.5) !important;
}
.fs-md-2 {
  font-size: calc(var(--bs-body-font-size) * 2) !important;
}
.fs-md-3 {
  font-size: calc(var(--bs-body-font-size) * 1.75) !important;
}
.fs-md-4 {
  font-size: var(--bs-body-font-size) !important;
}

@media (min-width: 768px) {
  .fs-md-1 {
    font-size: 2.5rem !important;
  }
  .fs-md-2 {
    font-size: 2rem !important;
  }
  .fs-md-3 {
    font-size: 1.75rem !important;
  }
  .fs-md-4 {
    font-size: 1.5rem !important;
  }
}

@media (min-width: 1800px) {
  .col-xxxl-1 {
    flex: 0 0 auto;
    width: 8.333333%;
  }
  .col-xxxl-2 {
    width: 16.666667%;
  }
  .col-xxxl-3 {
    width: 25%;
  }
  .col-xxxl-4 {
    width: 33.333333%;
  }
  .col-xxxl-5 {
    width: 41.666667%;
  }
  .col-xxxl-6 {
    width: 50%;
  }
  .col-xxxl-7 {
    width: 58.333333%;
  }
  .col-xxxl-8 {
    width: 66.666667%;
  }
  .col-xxxl-9 {
    width: 75%;
  }
  .col-xxxl-10 {
    width: 83.333333%;
  }
  .col-xxxl-11 {
    width: 91.666667%;
  }
  .col-xxxl-12 {
    width: 100%;
  }
}

.hero {
  background: #111 url('https://via.placeholder.com/1600x400') center/cover
    no-repeat;
  color: #fff;
  padding: 100px 0;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
}
/*main.app-main {
  padding: 1.5rem;
}*/
.logo-expansion {
  max-width: 100%;
  height: 50%;
}
.card-collection {
  border-radius: 12px;
  overflow: hidden;
}
.card-collection .card-body {
  padding: 0.75rem;
}
.elevate {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.price-change-up {
  color: green;
  font-weight: bold;
}
.price-change-down {
  color: red;
  font-weight: bold;
}
.counter-btn {
  width: 32px;
  height: 32px;
}

#cardFilterForm {
  background: rgba(51, 91, 156, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#searchForm {
  padding: var(--bs-card-spacer-y) var(--bs-card-spacer-x);
}

/* Effet foil : léger overlay irisé + brillance animée */
.foil-effect {
  position: relative;
  display: inline-block;
}

.foil-effect img {
  display: block;
  width: 90%;
  margin: 10px auto;
}

.foil-effect.promo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  background-repeat: no-repeat;
  background-position: center 80%;
  background-image: url('/public/img/promo.png');
  background-size: 40%;
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: 200px 0;
  }
}

.stat-card {
  background: rgba(51, 91, 156, 0.1);
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.stat-icon {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  color: #ffcb05; /* Couleur Pokémon */
}

.card-footer {
  padding: 0;
  color: 0;
  background-color: 0;
  border-top: none;
}

span.other {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('/public/img/design/ssMain2.png');
  background-position: -0px -0px;
}
span.anglais,
span.royaume_uni {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('/public/img/design/ssMain2.png');
  background-position: -16px -0px;
}
span.français,
span.france {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('/public/img/design/ssMain2.png');
  background-position: -48px -0px;
}
span.allemagne,
span.allemand {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('/public/img/design/ssMain2.png');
  background-position: -80px -0px;
}
span.espagne,
span.espagnol {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('/public/img/design/ssMain2.png');
  background-position: -112px -0px;
}
span.italie,
span.italien {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('/public/img/design/ssMain2.png');
  background-position: -144px -0px;
}
span.chine,
span.chinois_s,
span.chinois_t {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('/public/img/design/ssMain2.png');
  background-position: -176px -0px;
}
span.japon,
span.japonais {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('/public/img/design/ssMain2.png');
  background-position: -208px -0px;
}
/* Loader full screen */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.select2-container--default .select2-selection--multiple {
  border: 1px solid #ced4da;
  padding: 6px;
  min-height: 42px;
  border-radius: 0.375rem;
}

.select2-container--default .select2-selection--single {
  border: 1px solid #ced4da;
  padding: 6px;
  min-height: 42px;
  border-radius: 0.375rem;
}

.card-tcg {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  transition: 0.25s;
  background: #fff;
}
.card-tcg:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}
.card-tcg img {
  height: 330px;
  object-fit: cover;
  transition: 0.3s;
  cursor: pointer;
}

.card-tcg.product img {
  height: 250px;
}
.card-tcg:hover img {
  transform: scale(1.06);
}
.badge-rarity {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 0.8rem;
}
.badge-rarity.pokemon {
  background: rgba(255, 255, 255, 0.75);
}
.badge-top {
  position: absolute;
  top: 10px;
  right: 10px;
  background: gold;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: bold;
  color: black;
}

.badge-message {
  height: 30px;
  position: absolute;
  bottom: 30%;
  right: 10%;
  width: 80%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 7px;
  z-index: 4;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: bold;
  line-height: 22px;
}
.price-change-up {
  color: #28a745;
  font-weight: bold;
}
.price-change-down {
  color: #dc3545;
  font-weight: bold;
}
.counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.favorite-btn {
  position: absolute;
  bottom: 60px;
  right: 10px;
  background: white;
  border-radius: 50%;
  border: 2px solid var(--bs-secondary-color);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: var(--bs-secondary-color);
  transition: 0.3s;
}
.favorite-btn:hover {
  background: #ffefef;
  color: red;
  border-color: red;
}

canvas {
  margin: 0 auto;
}

.breadcrumb a {
  text-decoration: none;
  color: #0d6efd;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  color: #6c757d;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  width: 100%;
  min-width: 600px; /* ajuste selon ton tableau */
  border-collapse: collapse;
}

/* =====================================================
   CARD – BASE
===================================================== */

.card-tcg-modern {
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card-tcg-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.1);
}

/* =====================================================
   LAYOUT
===================================================== */

.card-modern-wrapper {
  display: flex;
  gap: 14px;
  padding: 10px;
}

/* =====================================================
   MEDIA (IMAGE)
===================================================== */

.card-modern-media {
  position: relative;
  flex: 0 0 140px;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f3f5;
}

/* Image plein cadre */
.card-modern-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transition: transform 0.25s ease;
}

@media (max-width: 576px) {
  .card-modern-media {
    height: 220px;
  }

  .card-modern-media img {
    object-position: top center;
  }
}
s .card-tcg-modern:hover .card-modern-media img {
  transform: scale(1.25);
}

/* =====================================================
   BADGES (existants)
===================================================== */

.card-modern-media .badge-rarity {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
}

.card-modern-media .badge-top {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  font-size: 0.7rem;
}

/* Foil overlay conservé */
.foil-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* =====================================================
   CONTENT
===================================================== */

.card-modern-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-modern-content h6 {
  margin: 0;
  font-weight: 700;
}

.card-modern-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--bs-primary);
}

/* Évolution prix */
.card-modern-evolution {
  font-size: 0.85rem;
}

/* =====================================================
   COUNTER
===================================================== */

.card-panel-add {
  margin-top: auto;
}

.counter {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =====================================================
   FOOTER – ACTIONS
===================================================== */

.card-modern-footer {
  display: flex;
  border-top: 1px solid #eef1f4;
  margin-top: auto;
}

.card-modern-footer .btn {
  width: 50%;
  padding: 12px 0;
  border-radius: 0;
  font-weight: 700;
}

.card-modern-footer .btn:first-child {
  border-bottom-left-radius: 16px;
}

.card-modern-footer .btn:last-child {
  border-bottom-right-radius: 16px;
}

/* =====================================================
   COLLECTION ACTIVE
===================================================== */

.card.collection-active {
  outline: 2px solid rgba(51, 91, 156, 0.5);
  background: rgba(51, 91, 156, 0.1);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 576px) {
  .card-modern-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card-modern-media {
    width: 100%;
    height: 200px;
  }

  .card-modern-content {
    width: 100%;
  }
}

/* Optionnel : un overlay animé pour un effet plus réaliste */
.foil-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  object-fit: cover;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0) 60%
  );
}
