/* V1.45 : chargement — une photo n'apparaît qu'entière (public/js/00-chargement.js), écran de démarrage. Jetons seulement (DESIGN.md). */
.photo-card.ph-wait, .photo-card.ph-fail { background: linear-gradient(100deg, var(--creme) 30%, var(--papier) 50%, var(--creme) 70%) 0 0 / 300% 100%; }
.photo-card.ph-wait { animation: ph-shine 1.4s linear infinite; }
.photo-card.ph-wait img, .photo-card.ph-fail img { opacity: 0; }
.photo-card img { transition: opacity .2s; }
/* le petit diaphragme qui tourne, au centre de la carte */
.photo-card.ph-wait::after { content: ''; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; z-index: 1;
  border-radius: 50%; border: 3px solid var(--creme-2); border-top-color: var(--orange); border-right-color: var(--moutarde); animation: ph-spin .8s linear infinite; }
.ph-fail-msg { display: none; }
.photo-card.ph-fail .ph-fail-msg { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; text-align: center; }
.ph-fail-msg small { color: var(--texte-doux); font-size: var(--t-pastille); line-height: 1.2; }
.ph-retry { padding: 4px 10px; border: 2px solid var(--cacao); border-radius: var(--r-pill); background: var(--papier); color: var(--cacao); font: 700 var(--t-pastille) var(--f-texte); box-shadow: var(--ombre-sm); cursor: pointer; }
@keyframes ph-shine { to { background-position: -150% 0; } }
@keyframes ph-spin { to { transform: rotate(360deg); } }

/* écran de démarrage, jusqu'à ce que le premier écran soit prêt */
.boot { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--fond); transition: opacity .35s; }
.boot.out { opacity: 0; pointer-events: none; }
.boot img { width: 84px; height: 84px; }
.boot-ring { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--creme-2); border-top-color: var(--orange); border-right-color: var(--moutarde); animation: ph-spin .8s linear infinite; }
.boot p { margin: 0; color: var(--texte-doux); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .photo-card.ph-wait, .photo-card.ph-wait::after, .boot-ring { animation-duration: 2.4s; } }

/* V1.48 : une réponse du serveur tarde (plus d'une seconde) : fine barre qui défile sous l'en-tête */
body.net-slow::after { content: ''; position: fixed; z-index: 31; left: 0; right: 0; top: var(--topbar-h, 64px); height: 3px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--moutarde) 40%, var(--orange) 60%, transparent) no-repeat; background-size: 45% 100%;
  animation: net-slow 1.1s linear infinite; }
@keyframes net-slow { from { background-position: -60% 0; } to { background-position: 160% 0; } }
@media (prefers-reduced-motion: reduce) { body.net-slow::after { animation-duration: 3s; } }
