@media (min-width: 1400px) {
  html[data-layout-width="boxed"] .content-page .content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }
  html[data-layout-width="boxed"] .topbar {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (min-width: 1198px) {
  html[data-layout-width="boxed"] .topbar {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
  }
  html[data-layout-width="boxed"] .footer {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 50px;
    padding-right: 50px;
  }
  /*
  .filtersMobile {
    border-radius: 3px !important;
    color: #FFF !important;
    font-weight: 600 !important;
    background: cornflowerblue !important;
    padding: 2px 10px !important;
  }
  */
}

/*
#oeuvres-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  width: 100%;
  text-align: center;
}
*/

.card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.artwork-item {
  /* facultatif: pour mieux gérer les marges */
  margin-bottom: 1rem;
}

.artwork-item {
  margin: 0rem;
  background: transparent;
  border-radius: 4px;
  overflow: hidden;
  text-align: left;
  box-sizing: border-box;
}

.artwork-item img {
  width: 100%;
  /*max-height: 250px;*/
  object-fit: cover;
  display: block;
}

/* Limiter la taille des images dans les vignettes des œuvres */
.img-artworks {
  /*max-height: 200px;*/
  width: auto;
  display: block;
  /*margin: 0 auto;*/
  object-fit: contain;
  border-radius: 4px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/*
.filters select {
  padding: 0.5rem;
  background: transparent url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="16" height="16" aria-hidden="true" class="%24w-%5B1em%5D%20%24h-%5B1em%5D%20%24fill-current%20%24text-lg%20%24-mb-1%22%3E%3Cpath d%3D%22M256%20276.4l92.3-92.3c9.8-9.8%2025.6-9.8%2035.4%200s9.8%2025.6%200%2035.4l-110%20110c-4.9%204.9-11.3%207.3-17.7%207.3s-12.8-2.4-17.7-7.3l-110-110c-9.8-9.8-9.8-25.6%200-35.4s25.6-9.8%2035.4%200z%22%3E%3C/path%3E%3C/svg%3E') no-repeat right 0.5rem center;
  background-size: 18px;
  border: 0px solid #ccc;
  color: #000;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: background 0.3s ease;
  border-radius: 6px;
  border: 1px solid #CCC;
}
*/



.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  /*gap: 1.5rem;*/
  gap: 0rem;
}

.artwork {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.artwork img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.artwork h4 {
  margin: 0.5rem 0 0.2rem;
}

.artwork p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}
/*
.sticky-filters {
  position: sticky;
  z-index: 999;
  border-radius: 0;
  top: 111px;
  background: #FFF;
}

.sticky-filters-theme {
  position: sticky;
  z-index: 999;
  border-radius: 0;
  top: 70px;
  background: #FFF;
}
*/
.product-box .product-price-tag {
  height: 48px;
  line-height: 38px;
  font-weight: 700;
  font-size: 16px;
  text-align: left;
  padding: 0;
  border-radius: 3px;
}

.select2-container {
  width: 100% !important;
  max-width: 250px;
  margin-bottom: 5px;
}

@media (max-width: 767.98px) {
  /*
  .sticky-filters {
    position: sticky;
    box-shadow: none;
    border: none;
    top: 115px;
    padding: 0;
  }

  .sticky-filters-theme {
    position: sticky;
    box-shadow: none;
    border: none;
    top: 70px;
    padding: 0;
  }
  */


/*
  .app-search-custom form span.search-icon {
    left: 34px;
    font-size: 22px !important;
    top: 3px;
  }
  */

  .select2-container {
    width: 100% !important;
    max-width: 100%;
    margin-bottom: 5px;
  }

  .filters {
    flex-direction: column;
    gap: 0.3rem;
    padding: 0;
    border-radius: 8px;
  }

  .filters.show {
    display: flex;
  }
}


#container-type-filter-btn {
  gap: 0.5rem;
}


/* Base : affichage en ligne, wrap automatique, pas de débordement */
#active-filters {
  display: flex;
  flex-wrap: wrap;              /* 💡 Permet aux filtres de passer à la ligne */
  gap: 0.3rem;
  overflow: hidden;             /* Pas de scroll ici par défaut */
  cursor: auto;
}

#active-filters-theme {
  display: flex;
  /*flex-wrap: wrap;*/
  gap: 0.3rem;
  /*overflow: hidden;*/

  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

/* Comportement mobile : scroll horizontal */
@media (max-width: 991.98px) {
  #active-filters {
    flex-wrap: nowrap;               /* ❌ Plus de wrap */
    overflow-x: auto;                /* ✅ Scroll horizontal */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #active-filters::-webkit-scrollbar {
    display: none; /* Cache la scrollbar sur mobile */
  }

  #active-filters-theme {
    flex-wrap: nowrap;               /* ❌ Plus de wrap */
    overflow-x: auto;                /* ✅ Scroll horizontal */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #active-filters-theme::-webkit-scrollbar {
    display: none; /* Cache la scrollbar sur mobile */
  }
}








.grid {
  column-count: 2;
  column-gap: 1rem;
}

@media (min-width: 576px) {
  .grid { column-count: 2; }
}
@media (min-width: 768px) {
  .grid { column-count: 3; }
}
@media (min-width: 1200px) {
  .grid {
    column-count: 5;
    /* display: grid;
    grid-template-columns: repeat(5, 1fr); 5 colonnes */
  }
}
@media (min-width: 3000px) {
  .grid { column-count: 7; }
}

.artwork-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
  break-inside: avoid;
}

.img-wrapper {
  width: 100%;
  background: linear-gradient(
    90deg,
    #ddd 25%,
    #e7e7e7 37%,
    #ddd 63%
  );
  background-size: 400% 100%;
  animation: shimmer 4s infinite;
  overflow: hidden;
  border-radius: 4px;
}

.img-wrapper img {
  display: block;
  width: 100%;
  height: auto; /* Hauteur auto selon image */
  filter: grayscale(100%) blur(8px);
  opacity: 0;
  transition: filter 1s ease, opacity 1s ease;
  border-radius: 4px;
}

.img-wrapper img.loaded {
  opacity: 1;
  filter: none;
  animation: none;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.total-items {
  opacity: 0; /* Masquer l'élément initialement */
}

.total-items.visible {
  opacity: 1; /* Afficher l'élément avec une animation */
  transition: opacity 0.2s ease-in-out;
}

.total-items-custom {
  min-height: 30px; /* Fixer une hauteur minimale pour éviter le reflow */
  line-height: 30px; /* Alignement du texte au centre */
  transition: opacity 0.5s ease-in-out; /* Pour un effet de fondu fluide */
  font-size: 16px;
  color: #222;
}

/* Liens de pagination normaux */
.pagination .page-link {
    background-color: white;
    color: black;
    border-color: #dee2e6;
  }

  /* Élément actif */
.pagination .page-item.active .page-link {
    background-color: black;
    color: white;
    border-color: black;
  }

  /* Survol des liens */
.pagination .page-link:hover {
    background-color: black;
    color: white;
    border-color: black;
  }

  /* Cacher les flèches pour tous les navigateurs */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/*
.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eee;
  padding: 3px 5px 4px 12px;
  margin: 20px 0 4px 0;
  border-radius: 25px;
  color:#000;
}
*/
.active-filter {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: #eee !important;
  padding: 3px 5px 4px 12px !important;
  margin: 5px 0 4px 0 !important;
  border-radius: 25px !important;
  color: #000 !important;
  border: 0 !important;
}


.active-filter .remove-filter {
  margin-left: 0px;
  cursor: pointer;
  color: red;
  font-weight: bold;
  border: 0;
  background: transparent;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  line-height: 18px;
}

.type-filter-btn {
  color:#000;
  margin-bottom: 0px;
  border: 1px solid #ccc;
}

.type-filter-btn:hover {
  background: transparent;
  color: #000;
  border: 1px solid #999;
}

.toggle-black:checked {
    background-color: #222; /* vert Bootstrap */
    border-color: #222;
}

/* Pour arrondir et rendre la transition plus sympa */
.toggle-black {
    transition: background-color 0.3s, border-color 0.3s;
}

.filtersMobile{
  color:#000 !important;
  background: #EEE !important;
  border: 1px solid transparent !important;
}

.filtersMobile:hover{
  border-color:#999 !important;
}

@media (max-width: 1199.98px) {
  .filtersMobile{
    color:#000 !important;
    border: 1px solid #CCC !important;
    background: transparent !important;
  }

  .filtersMobile:hover{
    color:#000 !important;
    border: 1px solid #CCC !important;
    background: transparent !important;
  }
  .type-filter-btn, .type-filter-btn:hover, .type-filter-btn:active {
    border: 0;
  }

}






.reset-filters-btn {
    background: none;
    border: none;
    color: #555;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    transition: 0.2s;
}

.reset-filters-btn:hover {
    background: #f0f0f0;
    color: #000;
}







.theme-filter-btn {
  padding-top: 3px;
  padding-bottom: 4px;
  margin-bottom: 3px;
  border: 1px solid #ccc;
  color: #000;
}

.theme-filter-btn:hover {
  background: transparent;
  border:1px solid #999;
  color: #000;
}

.font-label{
  font-size: 16px;
}

.dropdown-menu {
  z-index: 9;
}

#dropdownFilterMobile {
  border: 1px solid #CCC !important;
  padding-top: 3px;
  padding-bottom: 4px;
}

.custom-border{
  border-bottom: 0px solid #E2E2E2;
}
