/* ================= V1.70 : la chambre noire (public/js/31-chambre-noire.js) ================= */
.dr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 14px; }
.dr-grid.one { grid-template-columns: minmax(0, 230px); justify-content: center; }
.dr-bath { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; min-width: 0;
  border: var(--contour); border-radius: var(--r-md); background: var(--cacao); color: var(--creme); box-shadow: var(--ombre-sm); }
.dr-bath.ready { background: color-mix(in srgb, var(--cacao) 85%, var(--brique)); }
.dr-card { position: relative; width: 100%; aspect-ratio: 3 / 4; }
.dr-card .frame, .dr-card .photo-card { height: 100%; }
/* la photo « dans le bain » : rouge inactinique, à peine visible ; prête, elle se révèle */
.dr-bath:not(.ready) .dr-card .photo-card img { filter: grayscale(1) brightness(.45) sepia(1) hue-rotate(-30deg) saturate(3); }
.dr-bath:not(.ready) .dr-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: color-mix(in srgb, var(--brique) 25%, transparent); animation: dr-glow 2.4s ease-in-out infinite; }
.dr-bath.ready .dr-card { animation: dr-ready 1.6s ease-in-out infinite; }
.dr-name { font-size: var(--t-sm); text-align: center; overflow-wrap: anywhere; }
.dr-left { font-family: var(--f-chiffres); font-size: var(--t-xs); color: var(--creme); opacity: .85; }
.dr-bath.dr-free { justify-content: center; min-height: 180px; background: color-mix(in srgb, var(--cacao) 12%, var(--papier)); color: var(--texte-doux); border-style: dashed; box-shadow: none; }
.dr-tray { width: 60%; height: 22px; border: 2px solid var(--trait-panneau); border-top: 0; border-radius: 0 0 var(--r-sm) var(--r-sm); }
.dr-express { background: var(--papier); }
.dr-rules { margin: 0 0 10px; padding-left: 18px; }
.dr-rules li { margin-bottom: 4px; }
.dr-flash { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--f-chiffres); font-weight: 700; color: var(--sapin); }
.retouche-result.dr-bathing .photo-card img { filter: grayscale(1) brightness(.5) sepia(1) hue-rotate(-30deg) saturate(3); }

.dr-note { margin-top: 4px; }
.dev-chip.bath { background: var(--cacao); color: var(--creme); }
.dev-chip { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 6px 6px; padding: 2px 10px; border: 1.5px solid var(--cacao);
  border-radius: var(--r-pill); background: var(--papier); font-size: var(--t-xs); font-weight: 700; }

@keyframes dr-glow { 50% { opacity: .45; } }
@keyframes dr-ready { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--moutarde) 70%, transparent); } }
@media (prefers-reduced-motion: reduce) {
  .dr-bath:not(.ready) .dr-card::after, .dr-bath.ready .dr-card { animation: none; }
}

/* V1.77 : l'album d'un ami en mode « trou à viser » (chambre noire) */
.pick-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 0; padding: 10px 12px;
  border: var(--contour); border-radius: var(--r-md); background: var(--cacao); color: var(--creme); }
.pick-banner b { font-size: var(--t-sm); }
.slot.missing.pick-ok { cursor: pointer; outline: 3px solid var(--moutarde); outline-offset: -3px; }
.slot.missing.pick-off { opacity: .35; }

/* V1.80 : le bandeau de la chambre noire, en tête de la Collection (album de l'année) */
.dr-banner { display: flex; align-items: center; gap: 12px; width: 100%; margin: 4px 0 12px; padding: 12px 14px; border: 3px solid var(--cacao); border-radius: var(--r-lg);
  background: var(--cacao); color: var(--creme); box-shadow: var(--ombre-sm); text-align: left; }
.dr-banner:active { transform: translateY(2px); box-shadow: none; }
.dr-banner.hot { background: color-mix(in srgb, var(--cacao) 80%, var(--brique)); }
.dr-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--creme); }
.dr-ic .oi { width: 36px; height: 36px; }
.dr-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dr-tx small { font-size: var(--t-xs); opacity: .85; }
.dr-go { flex: none; padding: 2px 10px; border-radius: var(--r-pill); background: var(--moutarde); color: var(--cacao); font-size: var(--t-xs); font-weight: 700; }
