/*
 * Page Verify a C2PA image : scène du hero, le fichier original face à une capture d'écran
 * (la capture a perdu ses credentials), une lentille passe de l'un à l'autre ; puis les quatre statuts
 * en lignes. Préfixe vi-. Gabarit : product-guide.css.
 */

.vi-compare {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 540px;
}

.vi-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 14px 14px 18px;
  border-radius: 16px;
  background: var(--ps-cream);
  box-shadow: var(--ps-shadow-panel);
  color: var(--ps-ink);
}

/* Cartes droites, légèrement décalées en hauteur. */
.vi-card--shot {
  margin-top: 40px;
}

.vi-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vi-card-label {
  font-size: 14px;
  font-weight: 700;
}

.vi-ext {
  padding: 2px 8px;
  border-radius: 6px;
  background: #ecdcd3;
  color: var(--ps-muted-light);
  font-family: var(--ps-font-mono);
  font-size: 11px;
}

.vi-img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #1c110b;
}

.vi-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* La capture est légèrement dégradée : recadrée et désaturée. */
.vi-card--shot .vi-img img {
  filter: saturate(0.55) contrast(0.92);
  transform: scale(1.12);
}

.vi-name {
  overflow: hidden;
  color: var(--ps-muted-light);
  font-family: var(--ps-font-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Pastilles lisibles sur les cartes claires. */
.vi-card .pg-pill {
  background: rgba(244, 81, 30, 0.12);
  color: #9a3412;
  font-size: 11px;
  white-space: normal;
}

.vi-card .pg-pill--none {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

/* Lentille qui passe d'une carte à l'autre, sans manche incliné (boucle coupée sur mobile et en mouvement réduit). */
.vi-loupe {
  position: absolute;
  top: 70px;
  left: 18%;
  width: 84px;
  height: 84px;
  border: 4px solid var(--ps-orange-light);
  border-radius: 50%;
  background: rgba(255, 211, 189, 0.18);
  box-shadow: 0 0 0 6px rgba(255, 138, 61, 0.18), 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

@keyframes vi-loupe {
  0%, 35% { transform: translate(0, 0); }
  50%, 85% { transform: translate(250px, 40px); }
  100% { transform: translate(0, 0); }
}

.vi-loupe {
  animation: vi-loupe 8s var(--ps-ease) 1s infinite;
}

/* ---------- Les quatre statuts ---------- */

.vi-statuses {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vi-status {
  display: grid;
  grid-template-columns: 240px minmax(0, 0.9fr) minmax(0, 1.2fr);
  align-items: baseline;
  gap: 10px 32px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 138, 76, 0.25);
}

.vi-status:last-child {
  border-bottom: 1px solid rgba(255, 138, 76, 0.25);
}

.vi-status .pg-pill {
  align-self: center;
}

.vi-status-title {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.vi-status-text {
  color: #d7c3b8;
  font-size: 19px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .vi-loupe {
    display: none;
    animation: none;
  }

  .vi-status {
    grid-template-columns: 1fr;
  }

  .vi-status .pg-pill {
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .vi-compare {
    gap: 12px;
  }

  .vi-card {
    padding: 10px 10px 14px;
  }

  .vi-card--shot {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vi-loupe {
    animation: none;
  }
}
