/* ── Layout sticky image + contenu scrollable ───────────────── */
.produit-layout {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.produit-layout__image {
  flex: 0 0 45%;
  position: sticky;
  top: 5rem;
  align-self: flex-start;
}

.produit-layout__image img {
  width: 100%;
  height: auto;
  padding-top: 10%;
  border-radius: 0.75rem;
  display: block;
}

.produit-layout__content {
  flex: 1;
  min-width: 0;
  padding-bottom: 3rem;
  text-align: left;
}

/* Aération entre blocs */
.produit-layout__content > *  {
  margin-bottom: 2.5rem;
}

.produit-layout__content > *:last-child {
  margin-bottom: 0;
}

/* H2 intermédiaire : étiquette de section */
.produit-layout__content h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.65;
}

/* Corps de texte principal */
.produit-layout__content > p,
.produit-layout__content .text,
.produit-layout__content .bloc-preparation p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Tableau valnutri : taille lecture confortable */
.produit-layout__content .table-valnutri {
  font-size: 0.95rem;
}

/* Titres dans les cartes labels (sous-titres) */
.label-detail-card__body h2 {
  font-size: 1rem;
  opacity: 1;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 700;
}

.label-detail-card__body p {
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .produit-layout {
    flex-direction: column;
    gap: 1.5rem;
  }

  .produit-layout__image {
    flex: none;
    width: 100%;
    position: static;
  }
}

/* ── Nutri-Score & Origine-Score ────────────────────────────── */
.scores-row {
  display: flex;
  gap: 1rem;
}

.score-block {
  flex: 0 0 calc(50% - 0.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-inline: 8%;
}

.score-block h2 {
  margin: 0;
}

.score-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ── Labels preview (colonne de droite) ─────────────────────── */
.labels-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.label-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  padding: 0.6rem 0.8rem;
  text-align: center;
}

.label-card img {
  width: 100%;
  max-width: 64px;
  height: auto;
  object-fit: contain;
}

.label-card p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.2;
}

/* ── Labels détail (section pleine largeur) ─────────────────── */
.labels-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.label-detail-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  transition: box-shadow 0.25s ease;
}

.label-detail-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.label-detail-card__img {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
}

.label-detail-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.label-detail-card__body {
  flex: 1;
}

.label-detail-card__body h2 {
  margin: 0 0 0.4rem;
}

.label-detail-card__body p {
  margin: 0;
}

/* ── Valeurs nutritionnelles ────────────────────────────────── */
.bloc-valnutri {
  
}

.bloc-valnutri h2 {
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

.table-valnutri {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table-valnutri thead th {
  padding: 0.5rem 1rem 0.75rem;
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.5;
  border-bottom: 1px solid currentColor;
}

.table-valnutri thead th:last-child {
  text-align: right;
}

.table-valnutri tbody tr {
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

.table-valnutri tbody tr:last-child {
  border-bottom: none;
}

.table-valnutri tbody td {
  padding: 0.6rem 1rem;
  vertical-align: middle;
}

.table-valnutri tbody td:last-child {
  text-align: right;
  font-weight: 600;
  opacity: 0.85;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .bloc-valnutri {
    max-width: 100%;
  }

  .labels-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .label-detail-card {
    flex-direction: column;
    text-align: center;
  }

  .label-detail-card__img img {
    width: 64px;
    height: 64px;
  }
}
