/* Participant : téléphone d'abord. Code, question et choix très lisibles, grandes cibles tactiles. */
body { min-height: 100dvh; }
.p-app { max-width: 560px; margin: 0 auto; padding: max(24px, env(safe-area-inset-top)) var(--mh-gouttiere) max(32px, env(safe-area-inset-bottom)); }
.p-vue { display: flex; flex-direction: column; gap: 18px; }
.p-vue-centre { padding-top: 14vh; }
.p-signature { margin: 0 0 18px; }
.p-signature img { display: block; height: 30px; width: auto; margin-left: -6px; }
.p-phrase { margin: 0; font-size: 32px; line-height: 1.1; }
#q-titre { font-size: clamp(28px, 7.6vw, 36px); }
.p-sur { margin: 0; font-weight: 600; font-size: 15px; color: var(--graphite); }
.p-note { margin: 0; color: var(--graphite); font-size: 16px; line-height: 1.45; }
.p-consigne { margin: -4px 0 0; color: var(--graphite); font-size: 16px; }
.p-large { width: 100%; min-height: 60px; font-size: 18px; }

.p-join { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.p-code {
  width: 100%; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: 56px; line-height: 1; letter-spacing: .32em; padding: 18px 0 18px .32em;
  border: 2px solid var(--encre); border-radius: 0; background: var(--fond);
}
.p-code::placeholder { color: var(--graphite-clair); }

#f-vote { display: flex; flex-direction: column; gap: 14px; }
.p-choix { display: flex; flex-direction: column; gap: 10px; }
.p-opt {
  position: relative; display: flex; align-items: center; gap: 16px;
  min-height: 64px; padding: 14px 16px; background: var(--surface); border: 2px solid var(--surface); cursor: pointer;
}
.p-opt input { position: absolute; opacity: 0; pointer-events: none; }
.p-opt-marque { flex: none; width: 26px; height: 26px; border: 2px solid var(--encre); border-radius: 50%; background: var(--fond); display: grid; place-items: center; }
.p-opt input[type=checkbox] + .p-opt-marque { border-radius: 0; }
.p-opt input:checked + .p-opt-marque { border-color: var(--fond); }
.p-opt input[type=radio]:checked + .p-opt-marque::after { content: ''; width: 12px; height: 12px; background: var(--encre); border-radius: 50%; }
.p-opt input[type=checkbox]:checked + .p-opt-marque::after { content: ''; width: 7px; height: 13px; border: solid var(--encre); border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.p-opt:has(input:checked) { background: var(--encre); border-color: var(--encre); color: var(--fond); }
.p-opt:has(input:disabled:not(:checked)) { color: var(--graphite); background: var(--fond); border-color: var(--surface); }
.p-opt:has(input:focus-visible) { outline: 3px solid var(--encre); outline-offset: 3px; }
.p-opt-texte { font-weight: 600; font-size: 18px; line-height: 1.3; text-wrap: balance; }

.p-texte { width: 100%; min-height: 60px; padding: 12px 16px; font-size: 19px; border: 2px solid var(--encre); border-radius: 0; background: var(--fond); }
.p-compteur { margin: 0; text-align: right; color: var(--graphite); font-size: 14px; font-variant-numeric: tabular-nums; }

#v-merci .btn-lien { align-self: flex-start; min-height: 48px; font-size: 16px; }
.p-reseau { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); margin: 0; padding: 12px 14px; background: var(--encre); color: var(--fond); text-align: center; font-size: 15px; font-weight: 600; }
