/* Affiche autonome : aucune classe Tailwind nécessaire pour l'éditeur ou la feuille. */
.poster-page { padding:1rem 0; color:var(--ink,#162443); container-type:inline-size; }
.poster-page > h1, .poster-toolbar h1 { font-size:1.5rem; font-weight:800; margin:0 0 .8rem; }
.poster-page > h2 { font-size:1.2rem; font-weight:700; margin:1.5rem 0 .8rem; }
.poster-page > p, .poster-editor p, .poster-toolbar p { font-size:.9rem; line-height:1.6; margin:.6rem 0; }
.poster-page button { border:1px solid #cbd5e1; border-radius:.7rem; padding:.65rem .9rem; min-height:44px; background:#162443; color:#fff; font-weight:600; cursor:pointer; }
.poster-page button:disabled { opacity:.5; cursor:not-allowed; }
.poster-page :is(button,input,textarea,select):focus-visible { outline:3px solid #d9a72f; outline-offset:3px; }
.poster-editor { padding:1rem; border:1px solid #d7e0ee; background:var(--panel,#fff); border-radius:1rem; margin:1rem 0; }
.poster-editor fieldset { border:0; margin:0 0 1rem; padding:0; min-width:0; }
.poster-editor legend { font-weight:700; margin:0 0 .8rem; }
.poster-editor label { display:block; font-weight:600; font-size:.9rem; margin:.8rem 0; }
.poster-editor :is(input:not([type=checkbox]),textarea,select) { display:block; width:100%; box-sizing:border-box; min-width:0; padding:.65rem; border:1px solid #cbd5e1; border-radius:.6rem; margin-top:.35rem; color:#162443; background:#fff; }
.poster-editor input[type=color] { height:48px; }
.poster-editor input[type=checkbox] { width:1.1rem; height:1.1rem; vertical-align:middle; accent-color:#1f3157; }
.poster-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 1rem; }
.poster-layout legend { grid-column:1/-1; }
.poster-order { list-style:none; padding:0; margin:0; }
.poster-order li { display:flex; justify-content:space-between; align-items:center; gap:.5rem; border-bottom:1px solid #e2e8f0; padding:.25rem 0; }
.poster-order li label { margin:.5rem 0; }
.poster-order li button { padding:.5rem .8rem; }
.poster-actions, .poster-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:.7rem; }
.poster-toolbar p { flex-basis:100%; }
.poster-sheet { --poster-accent:#1f3157; --poster-font:14px; --poster-columns:2; box-sizing:border-box; width:100%; min-height:calc((100vw - 2rem) * 1.4142); background:#fff; color:#222; border:1px solid #d7dce6; border-top:5px solid var(--poster-accent); padding:clamp(16px,4vw,36px); display:grid; grid-template-columns:repeat(var(--poster-columns),minmax(0,1fr)); align-content:start; gap:1.5em; font-family:Arial,Helvetica,sans-serif; font-size:var(--poster-font); line-height:1.4; overflow-wrap:anywhere; box-shadow:0 10px 30px #16244312; }
.poster-sheet.poster-landscape { min-height:calc((100vw - 2rem) * .7071); }
.poster-minimal { border-top:1px solid #d7dce6; box-shadow:none; }
.poster-festive { border-top-width:9px; border-bottom:9px dotted var(--poster-accent); border-radius:12px; }
.poster-header { grid-column:1/-1; text-align:center; }
.poster-sheet :is(h1,h2,h3,p,ul,figure) { margin:0; padding:0; }
.poster-sheet h1 { font-size:1.85em; font-weight:800; color:#162443; }
.poster-sheet h2 { font-size:1.2em; font-weight:700; padding-bottom:.4em; border-bottom:2px solid var(--poster-accent); margin-bottom:.7em; color:#162443; }
.poster-minimal h2 { border-bottom-width:1px; }
.poster-sheet h3 { font-size:1em; font-weight:700; margin:.8em 0 .35em; }
.poster-sheet ul { list-style:none; }
.poster-list li { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:.25em .75em; padding:.4em 0; border-bottom:1px solid #edf0f5; break-inside:avoid; }
.poster-list strong { white-space:nowrap; }
.poster-block, .poster-category h3, .poster-sheet figure { break-inside:avoid; }
.poster-block { min-width:0; }
.poster-text { white-space:pre-wrap; }
.poster-sheet img { display:block; object-fit:contain; max-width:100%; margin:0 auto; }
.poster-logo { max-height:180px; }
.poster-qr { width:140px; height:140px; margin-top:1em!important; }
.poster-sheet figcaption { text-align:center; font-size:.85em; margin-top:.4em; }
.poster-empty { grid-column:1/-1; color:#475569; }
@media (min-width:768px) {
  .poster-sheet { min-height:1000px; }
  .poster-sheet.poster-landscape { min-height:500px; }
}
@supports (width:1cqw) {
  .poster-sheet { min-height:calc(100cqw * 1.4142); }
  .poster-sheet.poster-landscape { min-height:calc(100cqw * .7071); }
}
@media (max-width:420px) {
  .poster-layout { grid-template-columns:minmax(0,1fr); }
  .poster-sheet { gap:1em; padding:14px; }
  .poster-list li { display:block; }
  .poster-list strong { display:block; }
}
/* Le téléchargement PDF n'utilise pas window.print. Ce style protège néanmoins
   l'impression native : seuls la feuille et ses ancêtres restent affichés. */
@media print {
  body:has(#poster-sheet) { margin:0; padding:0; background:#fff; }
  body:has(#poster-sheet) * { animation:none!important; }
  body:has(#poster-sheet) *:not(#poster-sheet):not(#poster-sheet *):not(:has(#poster-sheet)) { display:none!important; }
  body:has(#poster-sheet) :is(#root,.poster-page,[data-poster-preview],.pop-in) { padding:0!important; margin:0!important; max-width:none!important; }
  #poster-sheet { width:100%; min-height:0; height:auto; box-shadow:none; border-left:0; border-right:0; border-bottom:0; border-radius:0; padding:0; overflow:visible; print-color-adjust:exact; -webkit-print-color-adjust:exact; }
}