/* Visionneuse de photo de profil. */
html.pz-ouvert { overflow: hidden; }
.pz-fond { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(28, 16, 16, .88); animation: pz-fondu .18s ease-out; }
.pz-cadre { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.pz-photo { display: block; max-width: min(92vw, 640px); max-height: 78vh; object-fit: contain; border-radius: 16px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: pz-zoom .22s ease-out; cursor: default; }
.pz-legende { color: #fff; font-weight: 700; font-size: 1rem; text-align: center; }
.pz-fermer { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.1rem; cursor: pointer; }
.pz-fermer:hover, .pz-fermer:focus-visible { background: #8B0000; outline: none; }
@keyframes pz-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes pz-zoom { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pz-fond, .pz-photo { animation: none; } }

/* Couvertures (mémoires, livres) : image entière, nette, sans recadrage. */
.couv-nette { display: block; width: 100%; max-width: 280px; height: auto; border-radius: 12px; box-shadow: 0 16px 48px rgba(0, 0, 0, .45); image-rendering: auto; cursor: zoom-in; }
.pz-fond .pz-photo[data-couv], .pz-photo { image-rendering: auto; }
