/* Photos du téléphone à la fin de la reprise (lot 2). N'existe à l'écran que si le
   serveur annonce le dépôt : interrupteur coupé, aucun encart. Mêmes jetons que
   css/reprise-fin.css (chargée avant), cibles tactiles de 44 px au moins. */
.rp-photos { margin: 18px 0; padding: 16px; border: 1px solid var(--rp-bord, #e3e8ef); border-radius: 14px; background: #fff; color: var(--rp-encre, #0B1F33); text-align: left; }
.rp-photos-entete { display: flex; align-items: center; gap: 8px; }
.rp-photos-entete > .ic { flex: 0 0 auto; color: var(--rp-bleu, #1762c4); font-size: 18px; }
.rp-photos-titre { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; overflow-wrap: anywhere; }
.rp-photos-aide { margin: 6px 0 12px; color: var(--rp-texte, #526174); font-size: 12px; line-height: 1.55; max-width: 62ch; }

.rp-photos-cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rp-photos-cases > li { min-width: 0; }
.rp-photo-case { box-sizing: border-box; width: 100%; min-height: 56px; display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--rp-bord, #e3e8ef); border-radius: 10px; background: var(--rp-fond, #f5f7fb); color: var(--rp-encre, #0B1F33); font: inherit; text-align: left; cursor: pointer; }
.rp-photo-vignette { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--rp-texte, #526174); }
.rp-photo-vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-photo-nom { min-width: 0; font-size: 12px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.rp-photo-statut { min-width: 0; font-size: 11px; line-height: 1.3; color: var(--rp-texte, #526174); font-variant-numeric: tabular-nums; }
.rp-photo-barre { grid-column: 1 / -1; width: 100%; height: 4px; margin-top: 6px; accent-color: var(--rp-bleu, #1762c4); }
.rp-photo-barre[hidden] { display: none; }
.rp-photo-case--choisie { border-color: var(--rp-bleu, #1762c4); box-shadow: inset 0 0 0 1px var(--rp-bleu, #1762c4); background: #fff; }
.rp-photo-case--recue .rp-photo-statut, .rp-photo-case--recue .rp-photo-vignette { color: var(--rp-vert, #13765b); font-weight: 650; }
.rp-photo-case--erreur .rp-photo-statut, .rp-photo-case--erreur .rp-photo-vignette { color: #b42318; }

.rp-photos-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rp-photos-bouton { flex: 1 1 180px; box-sizing: border-box; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--rp-bord, #e3e8ef); border-radius: 10px; background: #fff; color: var(--rp-encre, #0B1F33); font: inherit; font-size: 13px; font-weight: 650; line-height: 1.3; cursor: pointer; }
.rp-photos-bouton-principal { background: var(--rp-encre, #0B1F33); border-color: var(--rp-encre, #0B1F33); color: #fff; }
.rp-photos-bouton[disabled] { opacity: .45; cursor: default; }
.rp-photos-bouton[hidden] { display: none; }
.rp-photo-case:focus-visible, .rp-photos-bouton:focus-visible { outline: 2px solid var(--rp-rouge, #E11D2E); outline-offset: 2px; }
.rp-photos-message { margin: 10px 0 0; min-height: 1.5em; color: var(--rp-texte, #526174); font-size: 12px; line-height: 1.5; }
.rp-photos-fichier { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; }

/* Invitation du résultat : la confirmation existante reste l'unique action.
   Aucun sélecteur ni original d'image avant la création explicite du dossier. */
.reprise-photos-invitation { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 14px; padding: 14px 16px; border: 1px solid var(--sombre-trait, var(--rp-bord, #dfe7ee)); border-radius: 14px; background: var(--sombre-carte, var(--rp-fond, #f5f7fb)); color: var(--sombre-titre, var(--rp-encre, #0b1f33)); text-align: left; }
.reprise-photos-invitation > .ic { flex: 0 0 auto; margin-top: 2px; font-size: 22px; color: var(--sombre-accent-texte, var(--rp-rouge, #e11d2e)); }
.reprise-photos-invitation > div { min-width: 0; }
.reprise-photos-invitation strong { display: block; font-size: 14px; line-height: 1.4; }
.reprise-photos-invitation p { margin: 5px 0 0; color: var(--sombre-texte, var(--rp-texte, #526174)); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .rp-photos { padding: 14px; }
  .rp-photos-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
