/* Le Portrait mystère : tableau de musée dont les six cases se retournent une à une, indices numérotés. */
.pm-plateau { text-align: left; }
.pm-valeur { margin-left: auto; color: var(--or); font-weight: 700; font-size: 0.95rem; }
.pm-scene { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; margin: 14px 0 8px; }

/* Cadre doré façon musée */
.pm-cadre {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f7d873, #b8862b 30%, #f5c542 55%, #8a5d14 80%, #e9b949);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 0 0 3px rgba(80, 50, 5, 0.55), 0 0 0 1px #5a3a08;
}
.pm-toile {
  position: absolute;
  inset: 14px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #3a4f9a, #18275a 60%, #0b1430);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.5);
}
.pm-silhouette { position: absolute; bottom: -6%; font-size: 7.5rem; line-height: 1; filter: grayscale(1) brightness(0.25); }
.pm-icone { position: relative; z-index: 1; margin-bottom: 40%; font-size: 3rem; opacity: 0; transform: scale(0.6); transition: opacity 0.6s, transform 0.6s; }
.pm-cadre.revele .pm-icone { opacity: 1; transform: none; }
.pm-cadre.revele .pm-silhouette { filter: grayscale(0.2) brightness(0.9) drop-shadow(0 0 18px rgba(245, 197, 66, 0.6)); transition: filter 0.8s; }

/* Six cases qui se retournent : la toile apparaît petit à petit */
.pm-cases { position: absolute; inset: 14px; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); gap: 3px; perspective: 600px; }
.pm-case {
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: linear-gradient(145deg, #2a3d7a, #13204a);
  border: 1px solid rgba(245, 197, 66, 0.35);
  color: var(--or);
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  font-weight: 700;
  transition: transform 0.6s ease, opacity 0.6s ease 0.25s;
  transform-origin: center;
}
.pm-case.retournee { transform: rotateY(180deg); opacity: 0; }
.pm-nom-revele {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  max-width: 110%;
  padding: 4px 12px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f7d873, #c9962f);
  color: #2a1a08;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.pm-nom-revele:empty { display: none; }

/* Indices */
.pm-indices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pm-indice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--fond);
  border: 1px solid var(--bord);
  line-height: 1.4;
  animation: pm-apparait 0.45s ease-out;
}
.pm-indice:last-child:not(.revele-tard) { border-color: var(--or); box-shadow: 0 0 0 1px rgba(245, 197, 66, 0.35); }
.pm-indice.revele-tard { opacity: 0.7; }
.pm-indice-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--or);
  color: #1a1206;
  font-weight: 800;
  font-size: 0.85rem;
}
@keyframes pm-apparait { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.pm-plateau .ff-buzzers, .pm-plateau #pm-form { margin-top: 10px; }
.pm-chrono-reponse > div { background: var(--orange); }
body.en-pause .pm-indices, body.en-pause .pm-cadre { visibility: hidden; }

@media (max-width: 640px) {
  .pm-scene { grid-template-columns: 1fr; justify-items: center; }
  .pm-cadre { width: 150px; }
  .pm-silhouette { font-size: 5.5rem; }
  .pm-indices { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pm-case, .pm-icone, .pm-cadre.revele .pm-silhouette { transition: none; }
  .pm-indice { animation: none; }
}
