/* mirror.css — SÉQ 3, l'eau qui ment */

.mirror-stage {
  position: relative;
  width: min(92vw, 720px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 2px;
  background-color: #111013;
  box-shadow: 0 0 0 1px rgba(242, 239, 230, 0.05), 0 24px 80px rgba(0, 0, 0, 0.55);
}

.mirror-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: pan-y;
}

/* légendes */
.mirror-caption {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--or, #b8a67e);
  text-align: center;
  pointer-events: none;
}

.mirror-caption--amorce {
  font-family: Archivo, sans-serif;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin-top: 0.9rem;
  opacity: 0.75;
  transition: opacity 0.8s ease;
}

.mirror-caption--amorce.is-hidden { opacity: 0; }

.mirror-caption--narcisse {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7%;
  z-index: 3;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  text-shadow: 0 2px 18px rgba(8, 9, 11, 0.9);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.mirror-caption--narcisse.is-visible {
  opacity: 1;
  transform: none;
}

/* étage ④ — statique (reduced-motion / échec total) */
.mirror-static {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.mirror-reflection {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 42%;
  background-size: cover;
  background-position: center top;
  transform: scaleY(-1);
  opacity: 0.25;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  filter: blur(1.5px) saturate(0.85);
}


/* ── chantier 8 : amorce dans l'image ── */
.mirror-caption--amorce {
  position: absolute; left: 0; right: 0; bottom: 6%; z-index: 3; margin: 0;
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--sable, #F2D692);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
}
@media (prefers-reduced-motion: no-preference) {
  .mirror-caption--amorce { animation: amorce-breathe 4s ease-in-out infinite; }
}
@keyframes amorce-breathe { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }
