/* ----- Mise en page générale ----- */
.content_boutique_numerique {
  max-width: 1000px;
  min-height: calc(100vh - 120px);
  margin: 1rem auto;
  padding: 0rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.fond-boutique-numerique {
  background-image: url("../images/fonds/fond_boutique_numerique.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #fff;
}

.category-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.category-card {
  background: transparent;
  border: none;
  cursor: pointer;

  transition: transform 0.3s ease;
}

.category-card img {
  width: 140px;
  height: 140px;
  object-fit: contain;

  filter: drop-shadow(0 0 14px rgba(120, 100, 255, 0.35));
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: scale(1.1);
}

.category-card:hover img {
  filter: drop-shadow(0 0 22px rgba(140, 120, 255, 0.8));
}

.overlay {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 1200;
}

.overlay.hidden {
  display: none;
}

.overlay-content {
  width: min(1100px, 95%);
  max-height: 85vh;
  
  background: rgba(20,20,20,0.85);

  border-radius: 12px;
  padding: 2rem;
  color: white;

  overflow-y: auto;
}

.overlay-content::-webkit-scrollbar {
  width: 8px;
}

.overlay-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 10px;
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  position: sticky;
  top: 0;

  background: rgba(20,20,20,0.95);

  padding-bottom: 1rem;
  margin-bottom: 1rem;

  z-index: 2;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-item {
  display: flex;
  align-items: center;

  background: rgba(255,255,255,0.05);
  padding: 0.8rem;
  border-radius: 8px;
}

.download-item img {
  width: 90px;
  height: 90px;
  border-radius: 6px;
  object-fit: cover;
}

.download-title {
  flex: 1;
  margin-left: 1rem;
}

.download-btn {
  font-size: 1.4rem;
  color: white;
  text-decoration: none;
}