/* DAM : un master vérifié à l'ingestion et ses déclinaisons, reliées par la provenance. */

.sl-hero--dm {
  background: radial-gradient(ellipse 60% 70% at 70% 45%, #fff, #f0e8e0 70%);
}

.sl-hero--dm .sl-scene {
  max-width: 640px;
}

.dm-scene {
  width: 640px;
  margin: 0 auto;
}

.dm-stage {
  position: relative;
  width: 640px;
  height: 410px;
}

.dm-lines {
  position: absolute;
  inset: 0;
  width: 640px;
  height: 410px;
}

.dm-path {
  fill: none;
  stroke: #d9c6bb;
  stroke-width: 2;
  stroke-linecap: round;
  transition: stroke 0.25s;
}

.dm-path.is-on {
  stroke: var(--ps-orange);
  stroke-width: 3.5;
}

.dm-master {
  position: absolute;
  top: 50px;
  left: 20px;
  width: 200px;
  height: 310px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 0 3px var(--ps-ink), 0 30px 60px -24px rgba(60, 30, 10, 0.5);
}

.dm-master img,
.dm-th img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dm-file,
.dm-verified {
  position: absolute;
  left: 10px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
}

.dm-file {
  top: 10px;
  background: #fff;
  color: var(--ps-ink);
}

.dm-verified {
  bottom: 10px;
  background: var(--ps-status-trusted);
  color: #fff;
}

.dm-d {
  position: absolute;
  left: 420px;
  height: 80px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #000;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.4);
  font: inherit;
  cursor: pointer;
  transition: box-shadow 0.25s, transform 0.25s var(--ps-ease);
}

.dm-d[aria-pressed="true"] {
  box-shadow: 0 0 0 3px var(--ps-orange);
}

.dm-d:focus-visible {
  outline: 3px solid rgba(255, 138, 76, 0.55);
  outline-offset: 3px;
  transform: translateX(4px);
}

.dm-th {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 6px;
}

.dm-lab {
  position: absolute;
  top: 50%;
  display: flex;
  flex-direction: column;
  color: var(--ps-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  white-space: nowrap;
  transform: translateY(-50%);
}

.dm-use {
  color: #8a7266;
  font-weight: 400;
}

/* Position et format de chaque déclinaison. */
.dm-d0 { top: 20px; width: 80px; }
.dm-d1 { top: 115px; width: 142px; }
.dm-d2 { top: 210px; width: 45px; }
.dm-d3 { top: 305px; width: 57px; }
.dm-d0 .dm-lab { left: 92px; }
.dm-d1 .dm-lab { left: 154px; }
.dm-d2 .dm-lab { left: 57px; }
.dm-d3 .dm-lab { left: 69px; }

.dm-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 18px;
  color: var(--ps-muted-light);
  font-size: 12px;
}

.dm-caption b {
  color: var(--ps-ink);
}

.dm-ok {
  color: #047857;
}

@media (hover: hover) {
  .dm-d:hover {
    transform: translateX(4px);
  }
}

/* La scène a une largeur fixe : on la réduit quand la colonne est plus étroite qu'elle. */
@media (min-width: 901px) and (max-width: 1300px) {
  .sl-scene .dm-scene {
    zoom: 0.84;
  }
}

/* Au-delà, le conteneur plafonne à 1280px : la colonne reste un peu plus étroite que 640px. */
@media (min-width: 1301px) {
  .sl-scene .dm-scene {
    zoom: 0.94;
  }
}

@media (max-width: 900px) {
  .sl-scene .dm-scene {
    zoom: 0.62;
  }
}

@media (max-width: 520px) {
  .sl-scene .dm-scene {
    zoom: 0.54;
  }
}

@media (max-width: 420px) {
  .sl-scene .dm-scene {
    zoom: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-path,
  .dm-d {
    transition: none;
  }

  .dm-d:hover,
  .dm-d:focus-visible {
    transform: none;
  }
}
