/* Document autonome. Aucun style du thème ou widget tiers à l'impression. */
:root { color-scheme: light; font-family: var(--bp-font); color: var(--bp-text); background: var(--bp-surface-soft); }
* { box-sizing: border-box; }
body { margin: 0; }
.print-toolbar { max-width: 960px; margin: auto; padding: 24px; }
.print-toolbar a { color: var(--bp-link); }
.print-toolbar h1 { font-size: 24px; overflow-wrap: anywhere; }
.print-toolbar .print-subtitle { font-size: 16px; color: var(--bp-text-secondary); overflow-wrap: anywhere; margin-top: -8px; }
.print-toolbar p { font-size: 14px; line-height: 1.5; }
.print-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.print-share { margin-top: 16px; }
#print-share { max-width: 100%; background: var(--bp-surface); color: var(--bp-text); border-color: var(--bp-border-strong); }
#print-share:hover { background: var(--bp-brand-tint); }
#print-share-status:empty { display: none; }
#print-share-link { display: block; width: 100%; font: inherit; padding: 10px; margin-top: 8px; border: 1px solid var(--bp-border-strong); border-radius: var(--radius-sm); }
.print-controls label { display: flex; align-items: center; gap: 8px; }
button, select { font: inherit; padding: 10px 14px; border: 1px solid var(--bp-border-strong); border-radius: var(--radius-sm); }
button { background: var(--bp-brand-dark); border-color: var(--bp-brand-dark); color: var(--bp-white); cursor: pointer; }
button:hover:not(:disabled) { background: var(--bp-brand-strong); }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 3px solid var(--bp-link); outline-offset: 4px; }
.print-preview { padding: 0 16px 40px; overflow: auto; }
#print-zoom { background: var(--bp-surface); color: var(--bp-text); border-color: var(--bp-border-strong); }
#print-zoom:hover { background: var(--bp-brand-tint); }
@media screen {
  .print-preview.is-enlarged .print-sheet { width: 794px; max-width: none; }
}
.print-sheet { container-type: inline-size; width: min(100%, 794px); margin: auto; background: var(--bp-bg); box-shadow: var(--shadow-panel); }
.poster { aspect-ratio: 210 / 297; padding: 5cqw 7cqw 4cqw; display: flex; flex-direction: column; align-items: center; text-align: center; }
.poster p, .poster h2 { margin: 0; }
.poster-title { font-family: var(--bp-font-display); color: var(--bp-accent-text); font-size: 11cqw; font-weight: 700; line-height: 1.05; letter-spacing: -.45cqw; }
.poster-name { color: var(--bp-text); margin-top: 3cqw !important; width: 100%; padding: 2.5cqw 0; border-top: .2cqw solid var(--bp-border-info); border-bottom: .2cqw solid var(--bp-border-info); font-size: 3.8cqw; line-height: 1.15; font-weight: 700; overflow-wrap: anywhere; }
.poster-logo { display: block; width: 32cqw; height: 11cqw; object-fit: contain; margin-top: 2.5cqw; flex-shrink: 0; }
.poster-copy { margin-top: 3.8cqw; font-size: 2.9cqw; line-height: 1.4; }
.poster-question { font-size: 4cqw; font-weight: 700; margin-bottom: 1.5cqw !important; }
.poster-scan { margin-top: auto; padding-top: 3cqw; font-size: 2.9cqw; font-weight: 700; }
#print-qr { display: block; width: 25cqw; height: 25cqw; margin: 1.5cqw auto; background: #fff; }
#print-qr svg { display: block; width: 100%; height: 100%; }
.poster-goodbye { font-size: 3.8cqw; font-weight: 600; margin: 1.5cqw 0 3cqw !important; }
.poster-footer { color: var(--bp-text-secondary); font-size: 2.2cqw; line-height: 1.6; overflow-wrap: anywhere; max-width: 100%; }
.poster-brand-logo { display: block; width: 23cqw; height: 5cqw; object-fit: contain; margin: .7cqw auto; }
.poster-footer a { color: inherit; text-underline-offset: .2em; }
.poster-footer strong { color: var(--bp-accent-text); font-weight: 800; }
.print-sheet.is-eco { background: #fff; color: #111; }
.is-eco .poster-logo, .is-eco .poster-brand-logo { filter: grayscale(1); }
.is-eco .poster-name { border-color: #999; }
.is-eco .poster-title, .is-eco .poster-name, .is-eco .poster-footer, .is-eco .poster-footer a, .is-eco .poster-footer strong { color: inherit; }
@media print {
  :root, body { background: #fff; }
  .print-toolbar { display: none !important; }
  .print-preview { padding: 0; overflow: visible; }
  .print-sheet { width: 100%; max-width: none; box-shadow: none; break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  body:not(.print-ready) .print-preview { display: none; }
  body:not(.print-ready)::before { content: "Le QR code n’est pas prêt. Revenez à l’aperçu avant d’imprimer."; }
}
