/* A4 portrait: one catalogue sheet per printed page. */
@page{size:A4 portrait;margin:12mm}
html,body.jemcl-print{margin:0!important;padding:0!important;background:#fff!important;color:#111!important}
.jemcl-print aside{display:none!important}
.jemcl-print .jemcl-catalogue{width:180mm!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#fff!important}
.jemcl-print .jemcl-catalogue .jemcl-sheet{box-sizing:border-box!important;width:180mm!important;height:260mm!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important;color:#111!important;break-before:page!important;page-break-before:always!important;break-after:auto!important;page-break-after:auto!important;break-inside:avoid!important;page-break-inside:avoid!important;overflow:visible!important}
.jemcl-print .jemcl-catalogue .jemcl-sheet:first-child{break-before:auto!important;page-break-before:auto!important}
.jemcl-print .jemcl-catalogue .jemcl-front,.jemcl-print .jemcl-catalogue .jemcl-category{display:flex!important;align-items:center!important;justify-content:center!important}
.jemcl-print .jemcl-catalogue .jemcl-front>div,.jemcl-print .jemcl-catalogue .jemcl-category>div{box-sizing:border-box!important;width:100%!important;max-width:none!important;min-height:245mm!important;margin:0!important;padding:18mm 8mm!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
.jemcl-print .jemcl-catalogue .jemcl-front h2{font-size:52pt!important;line-height:1.15!important;white-space:normal!important;overflow-wrap:anywhere!important;margin:12mm 0!important}
.jemcl-print .jemcl-catalogue .jemcl-category h2{font-size:34pt!important;line-height:1.2!important;margin:8mm 0!important}
.jemcl-print .jemcl-catalogue .jemcl-category p,.jemcl-print .jemcl-catalogue .jemcl-front p{font-size:18pt!important;line-height:1.55!important;margin:8mm 0!important}
.jemcl-print .jemcl-front .jemcl-brand-image{width:auto!important;height:auto!important;max-width:100mm!important;max-height:75mm!important;object-fit:contain!important;margin:0 auto 12mm!important}
.jemcl-print .jemcl-catalogue .jemcl-book{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:space-between!important;gap:5mm!important}
.jemcl-print .jemcl-catalogue .jemcl-cover{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;align-self:stretch!important;height:105mm!important;min-height:0!important;flex:0 0 105mm!important;padding:0!important;position:static!important;border:0!important;background:#fff!important}
.jemcl-print .jemcl-catalogue .jemcl-cover img{display:block!important;width:auto!important;height:auto!important;max-width:105mm!important;max-height:105mm!important;object-fit:contain!important;margin:0 auto!important;box-shadow:none!important}
.jemcl-print .jemcl-catalogue .jemcl-copy{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;width:100%!important;min-height:0!important;padding:0 3mm!important;box-sizing:border-box!important}
.jemcl-print .jemcl-copy>span{display:block!important;text-align:center!important;font-size:10pt!important;line-height:1.25!important;letter-spacing:1px!important}
.jemcl-print .jemcl-catalogue .jemcl-copy h2{font-size:23pt!important;line-height:1.16!important;text-align:center!important;margin:3mm 0!important;break-after:avoid!important}
.jemcl-print .jemcl-book-author{font-size:12pt!important;line-height:1.3!important;text-align:center!important;margin:1mm 0 3mm!important}
.jemcl-print .jemcl-description,.jemcl-print .jemcl-description *{font-size:14pt!important;line-height:1.45!important}
.jemcl-print .jemcl-description p{display:inline!important;margin:0!important}
.jemcl-print .jemcl-description p::after{content:' '}
.jemcl-print .jemcl-catalogue .jemcl-print-qr{margin:auto auto 0!important;padding-top:4mm!important;text-align:center!important;break-inside:avoid!important;flex-shrink:0!important}
.jemcl-print .jemcl-catalogue .jemcl-print-qr img{display:block!important;width:40mm!important;height:40mm!important;max-width:none!important;image-rendering:pixelated!important;margin:0 auto!important}
.jemcl-print .jemcl-print-qr figcaption{font-size:10pt!important;line-height:1.2!important;margin:1mm 0 0!important}
.jemcl-print .jemcl-catalogue .jemcl-toc>div,.jemcl-print .jemcl-catalogue .jemcl-prices>div{border:0!important;padding:8mm 3mm!important;justify-content:space-evenly!important}
.jemcl-print .jemcl-toc ul{width:100%!important;padding:0!important;margin:0!important}
.jemcl-print .jemcl-toc li a{padding:6mm 0!important}
.jemcl-print .jemcl-toc li a span{font-size:17pt!important;line-height:1.3!important;color:#111!important}
.jemcl-print .jemcl-toc li a:after{content:none!important}
.jemcl-print .jemcl-prices table{width:100%!important;font-size:14pt!important}
.jemcl-print .jemcl-prices td,.jemcl-print .jemcl-prices th{padding:8mm 3mm!important}
.jemcl-print .jemcl-prices .jemcl-prices-note,.jemcl-print .jemcl-prices .jemcl-prices-date{font-size:13pt!important}

/* Safari paginates fixed-height flex containers inconsistently. Use normal flow. */
.jemcl-print .jemcl-catalogue .jemcl-sheet{height:auto!important;min-height:0!important;overflow:visible!important;display:block!important}
.jemcl-print .jemcl-catalogue .jemcl-front>div,.jemcl-print .jemcl-catalogue .jemcl-category>div{display:block!important;min-height:0!important;height:auto!important;padding:52mm 7mm!important}
.jemcl-print .jemcl-catalogue .jemcl-front>div{padding:32mm 7mm!important}
.jemcl-print .jemcl-catalogue .jemcl-toc>div,.jemcl-print .jemcl-catalogue .jemcl-prices>div{padding:10mm 3mm!important}
.jemcl-print .jemcl-catalogue .jemcl-book{display:block!important;height:auto!important;min-height:0!important}
.jemcl-print .jemcl-catalogue .jemcl-cover{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;flex:none!important;padding:0 0 5mm!important;text-align:center!important}
.jemcl-print .jemcl-catalogue .jemcl-cover img{display:block!important;max-height:100mm!important;margin:0 auto!important}
.jemcl-print .jemcl-catalogue .jemcl-copy{display:block!important;flex:none!important;height:auto!important;min-height:0!important}
.jemcl-print .jemcl-catalogue .jemcl-print-qr{display:block!important;margin:6mm auto 0!important;padding:0!important;height:auto!important;break-inside:avoid!important;page-break-inside:avoid!important}
.jemcl-print .jemcl-catalogue .jemcl-print-qr figcaption{display:block!important;margin:1mm 0 0!important;padding:0!important}

/* Six tarifs personnalisables par feuille, sans modifier les fiches des livres. */
.jemcl-print .jemcl-prices td,.jemcl-print .jemcl-prices th{padding:3mm 2mm!important;font-size:14pt!important;line-height:1.3!important;overflow-wrap:anywhere!important}
.jemcl-print .jemcl-prices tr{break-inside:avoid!important;page-break-inside:avoid!important}
.jemcl-print .jemcl-prices .jemcl-price-value{white-space:normal!important}
