.produit-layout {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: var(--sp-16);
  align-items: start;
}

.produit-media { position: sticky; top: 96px; }

.media-stage {
  position: relative; aspect-ratio: 4/3;
  border-radius: var(--r-lg); overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255,255,255,.5), transparent 55%),
    linear-gradient(135deg, var(--steel-light) 0%, var(--steel) 100%);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}
.media-stage > svg { width: 96px; height: 96px; color: rgba(255,255,255,.92); }
.media-stage img { width: 100%; height: 100%; object-fit: cover; }

.media-stage--pdf { background: var(--paper-2); display: block; aspect-ratio: 1 / 1.414; }
.media-stage--pdf iframe { width: 100%; height: 100%; border: none; display: block; }
.pdf-guard { position: absolute; inset: 0; z-index: 3; }

.media-thumbs { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.media-thumb {
  flex: 0 0 88px; width: 88px; aspect-ratio: 1; padding: 0;
  border-radius: var(--r-sm); overflow: hidden;
  border: 2px solid var(--line); cursor: pointer;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--steel-light), var(--steel));
  transition: border-color .15s var(--ease), transform .15s var(--ease);
  position: relative;
}
.media-thumb svg { width: 24px; height: 24px; color: rgba(255,255,255,.9); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb:hover { transform: translateY(-2px); }
.media-thumb.is-active { border-color: var(--brand); }

.media-thumb--doc { background: var(--paper-2); }
.media-thumb--doc iframe {
  position: absolute; top: 0; left: 0;
  width: 300%; height: 300%; border: none;
  transform: scale(.3333); transform-origin: top left;
  pointer-events: none;
}
.media-thumb--doc span {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  font-size: .56rem; font-weight: 700; letter-spacing: .08em; color: #fff;
  background: rgba(20,22,24,.82); padding: 3px 0; text-align: center;
}

.produit-header .produit-ref { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.produit-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: var(--sp-2) 0 var(--sp-4); }
.produit-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.produit-tag {
  font-size: .78rem; font-weight: 600; color: var(--brand);
  background: var(--green-soft); padding: 5px 12px; border-radius: var(--r-pill);
}
.produit-desc { font-size: 1.08rem; color: var(--ink-soft); line-height: 1.7; }

.options { margin-top: var(--sp-8); display: flex; flex-direction: column; gap: var(--sp-8); }
.option-block label.option-title {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: var(--sp-3);
}
.option-title .picked { font-weight: 500; color: var(--brand); }
.option-note { margin-top: var(--sp-3); font-size: .8rem; font-style: italic; color: var(--ink-mute); }
.option-note--matiere { margin: 0 0 var(--sp-3); }

.swatches { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.swatch-btn {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 2px solid transparent; box-shadow: inset 0 0 0 2px var(--white), var(--shadow-sm);
  transition: transform .14s var(--ease), border-color .14s var(--ease);
  position: relative;
}
.swatch-btn:hover { transform: scale(1.08); }
.swatch-btn.is-active { border-color: var(--brand); }
.swatch-btn.is-active::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px;
  border-radius: 50%; box-shadow: 0 0 0 2px var(--white);
  background: rgba(255,255,255,.0);
}

.swatch-btn--toutes {
  background: conic-gradient(from 90deg,
    #d8443b, #e08b30, #ecd13f, #4fa64f, #3b9ad8, #3b54c0, #8e44ad, #d8443b);
}

.choice-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.choice-btn {
  font-family: inherit; font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  padding: .6rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--r-pill);
  background: var(--white); cursor: pointer;
  transition: border-color .14s var(--ease), color .14s var(--ease), background .14s var(--ease);
}
.choice-btn:hover { border-color: var(--steel); }
.choice-btn.is-active { border-color: var(--brand); background: var(--green-soft); color: var(--brand); font-weight: 600; }

.add-bar { display: flex; gap: var(--sp-3); margin-top: var(--sp-8); align-items: stretch; }
.add-bar .qty button { width: 44px; height: auto; align-self: stretch; }
.add-bar .qty input { width: 46px; font-size: 1rem; }
.add-bar .btn { flex: 1; justify-content: center; font-size: 1rem; padding-block: 1rem; }

.add-note { font-size: .82rem; color: var(--ink-mute); margin-top: var(--sp-3); display: flex; align-items: center; gap: var(--sp-2); }
.add-note svg { width: 16px; height: 16px; color: var(--brand); }

.specs { margin-top: var(--sp-12); border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 200px 1fr; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-row dt { color: var(--ink-mute); font-weight: 500; }
.spec-row dd { color: var(--ink); }

.related { margin-top: var(--sp-24); }
.related h2 { margin-bottom: var(--sp-8); }
.related-more { margin-top: var(--sp-8); text-align: center; }

@media (max-width: 920px) {
  .produit-layout { grid-template-columns: 1fr; gap: var(--sp-8); }
  .produit-media { position: static; }
}
@media (max-width: 520px) {
  .add-bar { flex-direction: column; }
  .add-bar .qty { align-self: flex-start; }
  .spec-row { grid-template-columns: 1fr; gap: 2px; }
}
