/* Event poster prints – business card, A4, A5 */
* {
	box-sizing: border-box;
}

.print-poster-body {
	margin: 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: #1f2937;
}

@media screen {
	.print-poster-body {
		min-height: 100vh;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 16px;
	}

	.print-poster-body--sheet-a4 {
		display: block;
		align-items: stretch;
		justify-content: flex-start;
		padding: 0;
	}
}

.print-poster {
	background: radial-gradient(circle at top left, #4f46e5 0%, #1e1b4b 40%, #0f172a 100%);
	color: #f9fafb;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10mm;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.print-poster.print-poster--stacked {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12mm;
}

.print-poster .poster-content {
	flex: 1;
	min-width: 0;
}

.print-poster.print-poster--stacked .poster-content {
	text-align: center;
}

.print-poster .poster-headline {
	margin: 0 0 4px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.print-poster .poster-subline {
	margin: 0 0 6px;
	line-height: 1.4;
	color: #e5e7eb;
}

.print-poster .poster-event-name {
	margin: 0;
	font-size: 0.9em;
	font-weight: 600;
	color: #c7d2fe;
}

.print-poster .poster-qr-wrap {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2mm;
}

.print-poster .poster-qr {
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.poster-qr {
	border-radius: 3mm;
}

.print-poster .poster-qr-hint {
	font-size: 0.75em;
	color: #9ca3af;
	text-align: center;
}

.print-poster .poster-logo-line {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #e5e7eb;
}

.print-poster .poster-logo {
	width: 24px;
	height: 24px;
	border-radius: 4px;
	display: block;
}

.print-poster .poster-bullets {
	margin: 8px 0 0;
	padding-left: 1.1em;
	font-size: 0.9em;
	line-height: 1.5;
	color: #e5e7eb;
	text-align: left;
}

.print-poster.print-poster--stacked .poster-bullets {
	display: inline-block;
	text-align: left;
}

.print-poster .poster-bullets li {
	margin: 0 0 2px;
}

.print-poster .poster-footer {
	margin-top: 4mm;
	text-align: center;
	font-size: 0.85em;
	color: #e5e7eb;
	display: flex;
	flex-direction: column;
	gap: 1mm;
}

.print-poster .poster-footer-main {
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.print-poster .poster-footer-sub {
	color: #cbd5f5;
}

@media print {
	.print-poster-body {
		background: none;
		padding: 0;
	}

	.print-poster {
		box-shadow: none;
	}
}

/* ----- A4 sheet: multiple business cards with gap, zoomed-background bleed, crop marks ----- */
.sheet-a4-business-cards {
	width: 210mm;
	min-height: 297mm;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sheet-a4-business-cards__grid {
	display: grid;
	grid-template-columns: 85mm 85mm;
	grid-template-rows: repeat(5, 55mm);
	width: 174mm;
	height: 291mm;
	gap: 4mm;
	margin: 0;
}

.sheet-a4-business-cards__cell {
	position: relative;
	width: 85mm;
	height: 55mm;
	overflow: visible;
}

/* Zoomed background only (no content): extends into gap as bleed */
.sheet-a4-business-cards__bleed-zoom {
	position: absolute;
	left: -52.5%;
	top: -52.5%;
	width: 85mm;
	height: 55mm;
	/* margin-left: -42.5mm; */
	/* margin-top: -27.5mm; */
	background: radial-gradient(circle at top left, #4f46e5 0%, #1e1b4b 40%, #0f172a 100%);
	transform: scale(1.05) translate(50%, 50%);
	transform-origin: center;
	z-index: 0;
}

.sheet-a4-business-cards__card {
	position: relative;
	z-index: 1;
	width: 85mm;
	height: 55mm;
	box-sizing: border-box;
	background: transparent;
}

.sheet-a4-business-cards__crops {
	position: absolute;
	left: 0;
	top: 0;
	width: 85mm;
	height: 55mm;
	pointer-events: none;
	z-index: 2;
}

.sheet-a4-business-cards__crops line {
	stroke: #000;
	stroke-width: 0.25;
	vector-effect: non-scaling-stroke;
}

/* ----- A4 sheet: 2× A5 landscape posters with center mark (no bleed) ----- */
.sheet-a4-a5-posters {
	position: relative;
	width: 210mm;
	min-height: 297mm;
	margin: 0;
	box-sizing: border-box;
}

/* 2 A5 landscape (210×148) stacked vertically on A4: 210×296mm */
.sheet-a4-a5-posters__grid {
	display: grid;
	grid-template-columns: 210mm;
	grid-template-rows: 148mm 148mm;
	gap: 0;
	width: 210mm;
	max-width: 100%;
	margin: 0 auto;
	position: relative;
	z-index: 0;
}

.sheet-a4-a5-posters__cell {
	width: 210mm;
	height: 148mm;
	overflow: hidden;
}

.sheet-a4-a5-posters__cell .print-poster {
	width: 210mm;
	height: 148mm;
	position: relative;
}

.sheet-a4-a5-posters__cell:first-child .print-poster {
	transform: rotate(180deg);
}

@media screen {
	.sheet-a4-a5-posters {
		background: #e5e7eb;
		min-height: 100vh;
	}
}

@media print {
	.sheet-a4-a5-posters {
		padding: 0;
		background: none;
	}

	.sheet-a4-a5-posters__grid {
		margin: 0 auto;
	}
}

@media screen {
	.sheet-a4-business-cards {
		background: #e5e7eb;
		min-height: 100vh;
	}
}

/* Aperçu écran / WebView app : posters en mm trop larges → zoom aberrant sans meta viewport ou override */
@media screen {
	html body.print-poster-body[data-sheet="0"][data-print-format="a4"]:not(.print-poster-body--sheet-a4) .print-poster {
		width: min(297mm, calc(100vw - 48px));
		max-width: 100%;
		height: auto;
		aspect-ratio: 297 / 210;
	}

	html body.print-poster-body[data-sheet="0"][data-print-format="a5"]:not(.print-poster-body--sheet-a4) .print-poster {
		width: min(210mm, calc(100vw - 48px));
		max-width: 100%;
		height: auto;
		aspect-ratio: 210 / 148;
	}

	html body.print-poster-body[data-sheet="0"][data-print-format="business-card"]:not(.print-poster-body--sheet-a4) .print-poster {
		width: min(85mm, calc(100vw - 48px));
		max-width: 100%;
		height: auto;
		aspect-ratio: 85 / 55;
	}

	.print-poster-body[data-sheet="1"].print-poster-body--sheet-a4 .sheet-a4-business-cards,
	.print-poster-body[data-sheet="1"].print-poster-body--sheet-a4 .sheet-a4-a5-posters {
		display: flex;
		justify-content: center;
		flex-shrink: 0;
	}
}

@media print {
	.sheet-a4-business-cards {
		padding: 0;
		background: none;
	}
}