/* V201 (registre §366) : la visionneuse des pièces — photo, PDF, fichier — dans l'application installée. Une fenêtre plein écran dont le bouton
   « Retour » est toujours en haut à gauche, sous l'encoche de l'iPhone ; rien n'est caché derrière. */
dialog.visionneuse { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #0f1b28; color: #fff; overflow: hidden; }
dialog.visionneuse[open] { display: flex; flex-direction: column; animation: none; }  /* pas d'animation d'ouverture : plein écran dès le premier instant */
dialog.visionneuse::backdrop { background: #0f1b28; }
.visionneuse-barre { flex: none; display: flex; align-items: center; gap: 12px; box-sizing: border-box; background: #1b2f46;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) calc(env(safe-area-inset-right, 0px) + 12px) 8px calc(env(safe-area-inset-left, 0px) + 12px); }
.visionneuse-retour, .visionneuse-partager { flex: none; min-height: 48px; box-sizing: border-box; border-radius: 12px; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.visionneuse-retour { display: inline-flex; align-items: center; gap: 6px; min-width: 104px; padding: 0 18px 0 12px; border: 0; background: #fff; color: #1b2f46; }  /* le plus visible de l'écran : c'est le chemin du retour */
.visionneuse-retour span { font-size: 32px; line-height: 1; margin-top: -4px; }
.visionneuse-partager { padding: 0 16px; border: 2px solid #fff; background: transparent; color: #fff; }
.visionneuse-retour:focus-visible, .visionneuse-partager:focus-visible { outline: 3px solid #8fc1ff; outline-offset: 2px; }
.visionneuse-titre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.visionneuse-statut { flex: none; margin: 0; padding: 10px 16px; background: #2d4663; color: #fff; font-size: 15px; line-height: 1.4; }
.visionneuse-corps { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom, 0px); }
.visionneuse-image { display: block; max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; }
.visionneuse-pdf { flex: 1; width: 100%; min-height: 100%; border: 0; background: #fff; }
.visionneuse-message, .visionneuse-fichier { box-sizing: border-box; width: 100%; max-width: 30rem; margin: auto; padding: 24px 20px; text-align: center; font-size: 17px; line-height: 1.5; color: #fff; }
.visionneuse-message[role="alert"] { font-weight: 700; }
.visionneuse-fichier strong { display: block; overflow-wrap: anywhere; font-size: 18px; }
.visionneuse-fichier p { margin: 12px 0 0; }
.visionneuse-gros { width: 100%; min-height: 56px; margin-top: 20px; font-size: 18px; border: 0; background: #fff; color: #1b2f46; }  /* l'action principale d'un fichier à enregistrer */
