.qr [hidden] { display: none !important; }
.qr__intro { font-size: 1.15rem; margin: 0 0 0.6rem; }
.qr__prive { margin: 0 0 var(--sp-30); font-weight: 500; color: var(--accent-fonce); }

.qr__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-30); align-items: start; }
@media (min-width: 62rem) {
  .qr__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .qr__resultat { position: sticky; top: 5.5rem; }
}

.qr__form { display: flex; flex-direction: column; gap: var(--sp-30); }
.qr__etape { border: 1px solid var(--filet); background: var(--surface); padding: var(--sp-20); margin: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-20); }
.qr__etape > legend { font-weight: 700; font-size: 1.1rem; padding: 0 0.4rem; }

.qr .promo__champ input[type=text], .qr .promo__champ textarea {
  font-family: inherit; font-size: 1rem; min-height: 3rem; padding: 0.7rem 0.9rem; width: 100%;
  color: var(--encre); background: var(--surface); border: 1px solid var(--filet); border-radius: 0; max-width: 100%;
}
.qr .promo__champ textarea { resize: vertical; }
.qr .promo__champ .bouton { margin-top: 0.6rem; }
.qr__aide-champ, .qr__note { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--encre-douce); }
.qr__aide ol { margin: 0.4rem 0; padding-left: 1.3rem; }
.qr__aide li { margin-bottom: 0.3rem; }
.qr__aide summary { cursor: pointer; font-weight: 500; padding-block: 0.4rem; }

.qr__choix { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; min-width: 0; }
.qr__choix legend { font-weight: 500; padding: 0; margin-bottom: 0.4rem; }
.qr__choix label { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0 0.9rem; border: 1px solid var(--filet); background: var(--surface); cursor: pointer; }
.qr__choix input { accent-color: var(--accent); }
.qr__choix label:has(input:checked) { border-color: var(--accent); background: var(--accent-doux); }
.qr__pastille span::before { content: ""; display: inline-block; width: 1rem; height: 1rem; margin-right: 0.4rem; background: var(--p); vertical-align: -0.15rem; border-radius: 50%; }
.qr__choix input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.qr__resultat { background: var(--surface); border: 1px solid var(--filet); padding: var(--sp-20); min-width: 0; }
.qr__resultat h2 { margin: 0 0 0.8rem; }
.qr__scene { background: var(--surface-alt); padding: var(--sp-20); display: flex; justify-content: center; }
.qr__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: var(--sp-20); }
.qr__actions .bouton:disabled, .qr .promo__champ .bouton:disabled { opacity: 0.45; cursor: not-allowed; }
.qr__etat { min-height: 1.5em; margin: 0.7rem 0 0; color: var(--accent-fonce); font-weight: 500; }

/* The poster. Sizes are in container units so the preview and the print look the same. */
.affiche {
  --affiche-accent: #1F3A5F;
  container-type: inline-size;
  width: min(100%, 22rem);
  aspect-ratio: 210 / 297;
  background: #fff; color: #1B211F;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  text-align: center;
}
.affiche__bande { width: 100%; background: var(--affiche-accent); color: #fff; padding: 5cqw 6cqw; }
.affiche__nom { margin: 0; font-size: 6.8cqw; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.affiche__message { margin: 5cqw 8cqw 0; font-size: 5.6cqw; font-weight: 700; line-height: 1.25; color: var(--affiche-accent); overflow-wrap: anywhere; }
.affiche__qr { margin-top: 5cqw; width: 58cqw; height: 58cqw; border: 1.2cqw solid var(--affiche-accent); display: flex; align-items: center; justify-content: center; background: #fff; }
.affiche__qr svg { width: 100%; height: 100%; display: block; }
.affiche__qr--vide span { font-size: 4.2cqw; padding: 4cqw; color: #5F6B67; }
.affiche__aide { margin: 4cqw 8cqw 0; font-size: 4cqw; line-height: 1.3; color: #3b4440; }

.qr__explications h2, .qr__cta h2 { margin-bottom: var(--sp-20); }
.qr__explications h3 { margin: var(--sp-20) 0 0.3rem; }
.qr__explications p, .qr__cta p { margin: 0 0 0.6rem; }

html { scroll-padding-top: 5.5rem; }

.impression { display: none; }

@media print {
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  body > *:not(#impression) { display: none !important; }
  .impression { display: flex !important; justify-content: center; align-items: flex-start; }
  .impression .affiche { box-shadow: none; max-width: none; break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .impression .affiche--a6 { width: 105mm; height: 148mm; }
  .impression .affiche--a5 { width: 148mm; height: 210mm; }
  .impression .affiche--a4 { width: 210mm; height: 297mm; }
}
