.nuancier-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.nuancier-wrapper h1 {
  text-align: center;
  font-size: 38px;
  color: #333;
  margin-bottom: 15px;
}
.nuancier-wrapper .intro {
  text-align: center;
  color: #666;
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Onglets */
.nuancier-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.nuancier-tabs button {
  padding: 12px 24px;
  border: 2px solid #333;
  background: #f5f5f5;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 4px;
}
.nuancier-tabs button:hover {
  background: #e0e0e0;
}
.nuancier-tabs button.active {
  background: #333;
  color: #fff;
}

/* Contenu onglets */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Titre collection */
.collection-title {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  background: #333;
  padding: 12px 20px;
  margin: 40px 0 20px;
  border-radius: 4px;
}
.collection-title:first-child {
  margin-top: 0;
}

/* Grille nuances */
.nuancier-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}
.nuancier-grid .nuance {
  text-align: center;
}
.nuancier-grid .nuance img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s;
  cursor: pointer;
}
.nuancier-grid .nuance img:hover {
  transform: scale(1.05);
}
.nuancier-grid .nuance span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 900px) {
  .nuancier-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .nuancier-grid { grid-template-columns: repeat(3, 1fr); }
  .nuancier-tabs button { padding: 10px 16px; font-size: 12px; }
}

/* Lightbox */
.nuancier-lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.nuancier-lightbox.active { display: flex; }
.nuancier-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
}
.nuancier-lightbox .caption {
  color: #fff;
  margin-top: 15px;
  font-size: 16px;
}
.nuancier-lightbox .close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}