/* Les tags @photo1, @photo2… hors de la page Photo (12/10, Lisa). Posée par tags-photo.js. Les mêmes valeurs que photo-1210.css :
   le numéro sur la vignette, le « i » d'aide, son explication, la ligne des tags orphelins. .ph-tag, .ph-tags et .ph-tag-btn sont dans app.css. */

/* « Photo N » sur une vignette importée : cliquable, il cite la photo dans le texte. */
.ph-num { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; display: flex; align-items: flex-end; justify-content: flex-start; padding: 0 0 5px 5px; border: 0; background: linear-gradient(rgba(15,35,32,0), rgba(15,35,32,.42)); cursor: pointer; font: inherit; }
.ph-num span { background: var(--bx2); color: #fff; font-size: 14px; font-weight: 500; line-height: 1; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.ph-num:hover span, .ph-num:focus-visible span { background: #fff; color: var(--bx2); }
.ph-num:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }

/* « Photo N » sur une carte de reference sheet cochée (la carte est déjà un bouton : une pastille, en bas à gauche de l'image). */
.ph-ref-img:has(> .ph-num-carte) { position: relative; }
.ph-ref-img .ph-num-carte { left: 6px; bottom: 6px; padding: 4px 8px; z-index: 1; }

/* Le petit « i » à côté du titre du champ, et son explication (au clic, donc au doigt aussi). */
.ph-titre-aide { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ph-aide-btn { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--bx2); background: transparent; color: var(--bx2); font: inherit; font-size: 14px; font-weight: 600; font-style: normal; line-height: 1; text-transform: none; letter-spacing: 0; padding: 0; cursor: pointer; }
.ph-aide-btn::after { content: ""; position: absolute; inset: -10px; }
.ph-aide-btn[aria-expanded="true"] { background: var(--bx2); color: #fff; }
.ph-aide-btn:focus-visible { outline: 2px solid var(--bx2); outline-offset: 2px; }
.ph-aide-txt { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: var(--ok-fond); color: var(--bx); font-size: 14px; line-height: 1.5; }
.ph-aide-txt[hidden], .ph-orphelins[hidden] { display: none; }
.ph-orphelins { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: #A1302A; }
.ph-tags + .ph-aide-txt { margin-top: 10px; }

/* Les titres des parcours vidéo gardent leur place : la marge passe sur la ligne qui porte le « i ». */
.rp-page .ph-titre-aide { margin: 26px 0 10px; }
.rp-page .ph-titre-aide .rp-question { margin: 0; }
.rv-tenue-form .ph-titre-aide { margin: 14px 0 8px; }
.rv-tenue-form .ph-titre-aide:first-child { margin-top: 0; }
.rv-tenue-form .ph-titre-aide .ci-label { margin: 0; }
.ph-titre-aide > .ci-label, .ph-titre-aide > .rp-question { flex: 1 1 0; min-width: 0; width: auto; }
.vlb-tete .ph-aide-btn { margin-left: -4px; }

@media (max-width: 640px) {
  .ph-tags { gap: 8px; }
  .ph-tag-btn { min-height: 44px; padding: 0 14px; font-size: 15px; }
  .ph-aide-btn { width: 28px; height: 28px; }
}
