/* AOrtho-Photographies - application photo (page plein écran) et page d'installation (couleur d'AOrtho : rose). */
:root { --aph-accent: #d72f89; --aph-accent-fonce: #a61f68; --aph-bord: #e3e6ea; --aph-texte: #1f2933; --aph-discret: #616e7c; --aph-fond: #f4f6f8; }
.aph-corps { margin: 0; background: var(--aph-fond); color: var(--aph-texte); font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-text-size-adjust: 100%; }
.aph, .aph-installation { box-sizing: border-box; }
.aph *, .aph-installation * { box-sizing: border-box; }
.aph [hidden] { display: none !important; }
.aph-chargement { padding: 40px 20px; text-align: center; color: var(--aph-discret); }
.aph-entete { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
	background: #fff; border-bottom: 1px solid var(--aph-bord); }
.aph-titre { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.aph-titre span { color: var(--aph-discret); font-size: .8em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aph-lien { margin-left: auto; border: 0; background: none; color: var(--aph-accent-fonce); font: inherit; font-size: .85em; font-weight: 600; padding: 8px; cursor: pointer; }
.aph-page { max-width: 560px; margin: 0 auto; padding: 14px 14px calc(30px + env(safe-area-inset-bottom)); }
.aph-carte { background: #fff; border: 1px solid var(--aph-bord); border-radius: 14px; padding: 18px; margin: 0 0 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.aph h1 { margin: 0 0 12px; font-size: 1.35em; }
.aph h2 { margin: 18px 0 8px; font-size: 1.05em; color: var(--aph-discret); }
.aph label { display: block; margin: 12px 0 6px; font-weight: 600; font-size: .92em; }
.aph .aph-titre-champ { margin-top: 0; }
.aph input, .aph select { width: 100%; padding: 13px 12px; font: inherit; font-size: 1.02em; border: 1px solid #c5ccd3; border-radius: 10px; background: #fff; color: var(--aph-texte); }
.aph input:focus, .aph select:focus { outline: 3px solid rgba(215, 47, 137, .25); border-color: var(--aph-accent); }
.aph-bouton { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 12px 0 0; padding: 15px; border: 0; border-radius: 12px;
	background: var(--aph-accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.aph-bouton:disabled { opacity: .55; }
.aph-secondaire { background: #eef1f4; color: var(--aph-texte); }
.aph-grand { padding: 22px; font-size: 1.15em; }
.aph-petit { flex: none; padding: 8px 12px; border: 1px solid var(--aph-bord); border-radius: 10px; background: #fff; color: var(--aph-texte); font: inherit; font-size: .85em; font-weight: 600; cursor: pointer; }
.aph-danger { color: #a4161a; }
.aph-separateur { margin: 14px 0 0; text-align: center; color: var(--aph-discret); font-size: .85em; }
.aph-details { margin-top: 18px; }
.aph-details summary { cursor: pointer; color: var(--aph-accent-fonce); font-weight: 600; font-size: .92em; }
.aph-aide { margin: 6px 0; color: var(--aph-discret); font-size: .9em; }
.aph-centre { text-align: center; }
.aph-erreur, .aph-info { margin: 0 0 12px; padding: 11px 13px; border-radius: 10px; font-size: .92em; }
.aph-erreur { background: #fdecee; color: #a4161a; }
.aph-info { background: #e8f4ec; color: #1e5e2f; }
.aph-bandeau { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fbe7f2; color: var(--aph-accent-fonce); font-size: .88em; }
.aph-bandeau span { flex: 1; }
.aph-fermer { border: 0; background: none; color: inherit; font-size: 1.4em; line-height: 1; padding: 0 4px; cursor: pointer; }
.aph-liste { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.aph-patient { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 13px 14px; border: 1px solid var(--aph-bord); border-radius: 12px;
	background: #fff; color: var(--aph-texte); font: inherit; text-align: left; cursor: pointer; }
.aph-au-fauteuil { border-color: var(--aph-accent); background: #fdf3f8; }
.aph-nom { font-weight: 700; }
.aph-detail { color: var(--aph-discret); font-size: .85em; }
.aph-patient-choisi { display: flex; align-items: center; gap: 12px; justify-content: space-between; border-color: var(--aph-accent); }
.aph-patient-choisi > div { display: flex; flex-direction: column; min-width: 0; }
.aph-prise { margin: 4px 0 8px; }
.aph-cache { display: none !important; }
.aph-photos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.aph-photo { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--aph-bord); }
.aph-photo img, .aph-vide { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: 8px; background: #e9ecef; }
.aph-photo-texte { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; font-size: .9em; }
.aph-photo progress { width: 100%; height: 8px; accent-color: var(--aph-accent); }
.aph-envoyee { border-color: #b7dfc3; }
.aph-erreur.aph-photo, .aph-photo.aph-erreur { background: #fff7f8; border-color: #f2b8bf; color: var(--aph-texte); padding: 8px; margin: 0; }
.aph-actions { display: flex; flex-direction: column; gap: 6px; }

/* Page d'installation, dans le thème du site. */
.aph-installation { max-width: 620px; margin: 0 auto; color: var(--aph-texte); }
.aph-installation .aph-carte { text-align: left; }
.aph-installation .aph-icone { display: block; width: 72px; height: 72px; border-radius: 16px; margin: 0 0 10px; }
.aph-installation h2, .aph-installation h3 { margin: 0 0 10px; }
.aph-installation .aph-bouton { display: inline-flex; width: auto; padding: 14px 26px; color: #fff; }
.aph-installation .aph-bouton:hover { background: var(--aph-accent-fonce); color: #fff; }
