/* filtre */
.listFiltre{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 50px;
}

.btn-filtre.active {
  font-weight: bold;
  transform: scale(1.05);
  background: #C7BC6E78;
}

.btn-filtre:hover{
  background: #C7BC6E78;
}

.btn-filtre{
  font-family: "Lissa", Sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border-radius: 3px;
  padding: 15px 35px;
  border-style: solid;
  border-width: 1px;
  border-color: #C7BC6E;
  color: #fff;
  flex: auto;
}

/* bloc */
#arriereplan.fade-transition {
  opacity: 0;
  pointer-events: none;
}

#arriereplan {
  padding: 25px 0px;
  transition: opacity 0.3s ease;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width:1200px){
  #arriereplan{
    padding: 25px;
  }
}

@media (max-width:500px){
  #arriereplan{
    padding: 10px;
  }
}

#titleInfo{
  font-family: "Lissa", Sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: #fff;
}

.e-q-footer{
  font-weight: 700;
  color: #fff;
}

/* pagination */
#loadMoreBtn {
  background: #C7BC6E;
  color: #000;
  border: none;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 3px;
  cursor: pointer;
  margin: auto;
  display: flex;

  font-family: "Lissa", Sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

#loadMoreBtn:hover{
    background: #000;
  color: #C7BC6E;
}

#loadMoreBtn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* carte */
#divLoop {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  grid-template-columns: repeat(3,1fr);
}

@media (max-width:1027px){
  .listFiltre{
    overflow-x: scroll;
    scrollbar-width: none;
    flex-wrap: initial;
    margin: 0px;
  }
  #divLoop {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width:767px){
  #divLoop {
    grid-template-columns: repeat(1,1fr);
    place-items: center;
  }
}

.product-card {
  background: #FFFFFF1F;
  border: 1px solid #FFFFFF1F;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  backdrop-filter: blur(8px);
  padding: 10px;
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
  color: #fff;
  max-width: 360px;
  gap: 15px;
}

@media (max-width:500px){
  .product-card  {
    flex-direction: column;
    width: 100%;
  }

  .product-meta{
    justify-content: center!important;
  }
}

.product-image {
  width: 100%;
  flex-shrink: 0;
  max-width: 135px;
}

.product-image img {
  border-radius: 5px!important;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ou "contain" selon ton besoin */
  display: block;
}

.product-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: space-between;
}

.product-content h3 {
  font-family: "Lissa", Sans-serif;
  font-size: 20px;
  font-weight: 400;
  margin: 0;
}

.product-tags{
  line-height: 1;
  margin-top: 10px;
}

.product-author a, .product-tags a {
  font-family: 'Montserrat';
  font-size: 12px;
  font-weight: 300;
  color: #fff!important;
  margin: 0;
  line-height: 15px;
}

.product-content h3:hover, .product-author a:hover, .product-tags a:hover{
  color:#C7BC6E!important;
  cursor: pointer;
}

.product-meta {
  display: flex;
  align-items: center;
  margin-top: 10px;
  gap: 20px;
}

.product-duration {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Montserrat';
  font-size: 16px;
  font-weight: 200;
}

.product-duration img{
  width: 18px;
}

.play-button {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.15); /* Agrandit d’environ 2-3px */
}

.icon-play {
  width: 36px;
  height: 36px;
  fill: #C7BC6E;
}


/* pour la v2 des filtres */

/* accessibilité */
.sr-only{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Nav mobile des filtres (hidden par défaut) */
.filters-mobile {
  display: none;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

/* Boutons < et > */
.filters-mobile button {
  font-family: Arial, sans-serif; /* police plus lisible pour les chevrons */
  font-size: 22px; /* taille augmentée pour plus de visibilité */
  font-weight: bold;
  border: 1px solid #C7BC6E;
  background: #201e1e;
  color: #fff;
  padding: 10px 18px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  line-height: 1;
}
.filters-mobile button:hover,
.filters-mobile button:focus,
.filters-mobile button:active {
  background: #C7BC6E;
  color: #201e1e;
  outline: none; /* on retire le halo bleu par défaut */
}

/* Le select */
.filters-mobile select{
  font-family: "Lissa", Sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid #C7BC6E;
  border-radius: 3px;
  background-color: #201e1e;
  color: #fff;
  padding: 12px 44px 12px 16px; /* place pour la flèche à droite */
  min-width: 200px;
  cursor: pointer;
  transition: background-color .2s ease-in-out;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Flèche ▼ dorée intégrée au select */
  background-image: url("data:image/svg+xml;utf8,\<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\<path fill='%23C7BC6E' d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0px center; /* position de la flèche */
  background-size: 40px 40px;
}

/* Survol du select */
.filters-mobile select:hover,
.filters-mobile select:focus {
  background: #2a2828;
  outline: none;
    background-image: url("data:image/svg+xml;utf8,\<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\<path fill='%23FFFFFF' d='M7 10l5 5 5-5z'/></svg>");
      background-repeat: no-repeat;
  background-position: right 0px center; /* position de la flèche */
  background-size: 40px 40px;
}

/* Style de la flèche native (optionnel, uniquement sur certains navigateurs) */
.filters-mobile select::-ms-expand {
  display: none;
}

/* Couleurs du menu déroulant (supporté par Chrome, Edge, Firefox récents) */
.filters-mobile select option {
  background: #201e1e;
  color: #fff;
}

/* Survol d'une option */
.filters-mobile select option:hover,
.filters-mobile select option:checked {
  background: #C7BC6E;
  color: #201e1e;
}

/* Responsive */
@media (max-width: 1027px) {
  .listFiltre {
    display: none;
  }
  .filters-mobile {
    display: flex;
  }
}


/* le conteneur positionné au-dessus de #arriereplan */
#loader-wrapper {
  position: relative;
}

.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border: 3px solid rgba(199,188,110,0.25);
  border-top-color: #C7BC6E;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none; /* caché par défaut */
  z-index: 50; /* plus haut que le fond de #arriereplan */
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
