/* ====== VIGNETTE-VEDETTE : MODERNE & CLEAN ====== */

/* IMPORTANT : ne touche pas au body (ton general.css gère déjà beaucoup)
   on stylise plutôt .content */

/* ====== Bande des vignettes ====== */
.flex-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;

  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 10px 0;
}

/* vignette moderne */
.vignette-barbie {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 14px 35px rgba(0,0,0,0.12);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.vignette-barbie:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* IMPORTANT : ne coupe pas les têtes */
.vignette-barbie img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* ✅ garde l’image complète */
  display: block;
  background: rgba(245, 245, 255, 0.6);
}

/* ====== Zone d’affichage (la grande carte) ====== */
#zone-affichage {
  width: 100%;
  max-width: 1000px;
  margin: 18px auto 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
  min-height: 420px;
}

/* On évite les gros heights fixes */
.detail-barbie {
  display: none;
}

/* ====== Contenu injecté (quand JS copie le detail dans zone-affichage) ====== */
#zone-affichage .detail-barbie {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
  align-items: start;
}

/* image principale */
#zone-affichage .barbie-images {
  width: 100%;
  height: 360px;
  object-fit: contain; /* ✅ pas de tête coupée */
  border-radius: 18px;
  background: rgba(245,245,255,0.65);
  border: 1px solid rgba(0,0,0,0.08);
}

/* titres */
#zone-affichage .barbie-nom {
  font-size: 26px;
  font-weight: 800;
  color: #ff2c9c;
  margin-bottom: 10px;
}

/* le texte */
#zone-affichage .barbie-description {
  width: 100%;
}

#zone-affichage .barbie-description h5 {
  font-size: 16px;
  margin: 14px 0 6px;
  color: #2b2b2b;
}

#zone-affichage .barbie-description p {
  line-height: 1.7;
  color: #333;
  margin-bottom: 10px;
}

/* lien style bouton */
#zone-affichage .barbie-description a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2c9c, #ff7bd5);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

#zone-affichage .barbie-description a:hover {
  transform: translateY(-1px);
}

/* ====== Responsive mobile ====== */
@media (max-width: 860px) {
  #zone-affichage .detail-barbie {
    grid-template-columns: 1fr;
  }

  #zone-affichage .barbie-images {
    height: 280px;
  }
}

/* Si description trop longue : scroll propre sans casser la page */
@media (min-width: 861px) {
  #zone-affichage .barbie-description {
    max-height: 360px;
    overflow: auto;
    padding-right: 6px;
  }
}
