/* ==========================================================================
   V160 — BOBINE : LES FENTES DE YOUNG : laboratoire, écran de détection, fin.

   Tout est préfixé .yg-. Même gabarit que les salons du chat (V159,
   ui/chat-schrodinger.css) : une toile de 320 × 180 agrandie sans lissage,
   stries CRT et vignette en dégradés CSS, aucune image.

   COÛT — règles de la V109 : aucun filter, backdrop-filter ni
   mix-blend-mode ; les animations ne touchent que transform et opacity.
   ========================================================================== */

.yg-overlay {
  --yg-texte: #eef6ff;
  --yg-doux: #93a7c4;
  --yg-cyan: #7eeeff;
  --yg-ambre: #ffb347;
  --yg-ligne: #2c3b5e;
  position: fixed;
  inset: 0;
  z-index: 121000;
  overflow: auto;
  padding: clamp(6px, 2vw, 22px);
  background: rgba(4, 7, 16, 0.97);
  color: var(--yg-texte);
  font-family: Consolas, "Courier New", monospace;
}
.yg-overlay[hidden], .yg-overlay [hidden] { display: none !important; }

.yg-cadre {
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid var(--yg-ligne);
  background: #080d1b;
  box-shadow: 0 20px 90px rgba(0, 0, 0, 0.6);
}

.yg-entete {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-bottom: 1px solid var(--yg-ligne);
}
.yg-titres { flex: 1 1 220px; min-width: 0; }
.yg-kicker { color: var(--yg-doux); font-size: 11px; letter-spacing: 0.12em; }
.yg-entete h2 { margin: 4px 0 0; font-size: clamp(18px, 3vw, 28px); font-weight: 500; letter-spacing: 0.04em; }
.yg-compteur {
  color: var(--yg-cyan);
  border: 1px solid rgba(126, 238, 255, 0.4);
  padding: 6px 10px;
  font-size: 13px;
  white-space: nowrap;
}
.yg-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.yg-btn {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #4a6282;
  border-radius: 3px;
  background: #16243a;
  color: #e4efff;
  font: 600 12px/1.4 Consolas, monospace;
}
.yg-btn:hover:not(:disabled) { border-color: var(--yg-cyan); background: #22354f; color: #fff; }
.yg-btn:focus-visible { outline: 3px solid #9ff4ff; outline-offset: 3px; }
.yg-btn:disabled { opacity: 0.55; cursor: default; }
.yg-btn.yg-principal { background: #7eeeff; border-color: #7eeeff; color: #06121c; }
.yg-btn.yg-principal:disabled { background: #2a4a5a; border-color: #2a4a5a; color: #cfe; }
.yg-btn.yg-interrupteur { border-style: dashed; }
.yg-btn.yg-interrupteur[aria-pressed="true"] { border-color: var(--yg-ambre); color: var(--yg-ambre); background: #2e2412; }
.yg-btn kbd, .yg-fin-lignes kbd {
  font: inherit;
  font-size: 10px;
  border: 1px solid currentColor;
  padding: 0 4px;
  opacity: 0.75;
}

/* ---------- la scène ---------- */

.yg-scene {
  position: relative;
  display: grid;
  place-items: center;
  padding: 12px;
  background: #03050c;
}
.yg-toile {
  display: block;
  width: min(100%, calc((100vh - 200px) * 16 / 9));
  min-width: min(100%, 300px);
  aspect-ratio: 16 / 9;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: manipulation;
  border: 1px solid #101a30;
}
.yg-scene .yg-toile { cursor: pointer; }
.yg-scene::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.16) 2px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
}

.yg-banniere {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: grid;
  gap: 2px;
  text-align: center;
  padding: 10px 22px;
  border: 2px solid var(--yg-cyan);
  background: rgba(6, 12, 26, 0.92);
  color: var(--yg-cyan);
  letter-spacing: 0.14em;
  animation: yg-entree 420ms ease-out both;
}
.yg-banniere b { font-size: clamp(16px, 2.6vw, 24px); }
.yg-banniere span { color: var(--yg-texte); font-size: 12px; letter-spacing: 0.04em; }

.yg-pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 18px 14px;
  border-top: 1px solid var(--yg-ligne);
}
.yg-textes { flex: 1 1 280px; min-width: 0; }
.yg-texte { margin: 0; color: #cfdaea; font-size: 14px; line-height: 1.5; min-height: 1.5em; }
.yg-legende { margin: 4px 0 0; color: var(--yg-cyan); font-size: 13px; line-height: 1.5; }
.yg-pied-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.yg-fin-lignes { margin: 0; color: var(--yg-texte); font-size: 13px; line-height: 1.7; }
.yg-fin-lignes b { color: var(--yg-cyan); }

@keyframes yg-entree { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- l'album : l'écran de détection ---------- */

.yg-album { padding: 14px 18px 20px; }
.yg-album-tete { color: var(--yg-doux); font-size: 13px; margin: 0 0 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.yg-album-corps { display: grid; grid-template-columns: minmax(0, 3fr) minmax(200px, 1fr); gap: 16px; align-items: start; }
.yg-toile-album { width: 100%; min-width: 0; }
.yg-album-cote { display: grid; gap: 10px; }
.yg-album-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.yg-note { margin: 0; color: var(--yg-doux); font-size: 12px; line-height: 1.5; }

@media (max-width: 760px) { .yg-album-corps { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .yg-entete { padding: 10px 12px; }
  .yg-scene { padding: 6px; }
  .yg-scene::after { inset: 6px; }
  .yg-pied { padding: 8px 12px 12px; }
}
@media (prefers-reduced-motion: reduce) { .yg-banniere { animation: none; } }

/* ---------- l'icône sur la carte de la Tour et la bobine du vidéoclub ---------- */

.tr-photon { cursor: pointer; }
.tr-photon .tr-photon-fond { fill: #07101e; stroke: #7eeeff; stroke-width: 1.5; }
.tr-photon .tr-photon-onde { fill: none; stroke: #7eeeff; stroke-width: 1.3; stroke-linecap: round; }
.tr-photon .tr-photon-point { fill: #ffffff; }
.tr-photon:hover .tr-photon-fond, .tr-photon:focus-visible .tr-photon-fond { fill: #16304a; stroke-width: 2.5; }
.tr-photon:focus { outline: none; }
.tr-photon-puce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7eeeff;
}
.tr-card.tr-bobine-young { border-top-color: #7eeeff; }
.tr-card.tr-bobine-young .tr-film-art { color: #7eeeff; }
