/* class Print page complet */
/* (Version) By sync - Boulette (V5.5.4) */
/* --- Impression spéciale iOS + Android (smartphone / tablette) --- */
@media print and (max-width: 1024px) {
	@page {
		size: auto !important; /* Ne pas imposer A4 */
		margin: 3mm !important;
	}
	html, body {
		margin: 0 !important;
		padding: 0 !important;
		background: #fff !important;
		overflow: visible !important;
		-webkit-print-color-adjust: exact !important; /* iOS */
		print-color-adjust: exact !important;
	}
	/* Conteneur principal */
	.Print-page {
		display: block !important;
		width: auto !important;
		max-width: 100% !important;
		margin: 0 auto !important;
		/* Anti-coupure iOS + Android */
		page-break-inside: avoid !important;
		break-inside: avoid !important;
		-webkit-region-break-inside: avoid !important;
		-webkit-column-break-inside: avoid !important;
		overflow: visible !important;
	}
	/* Les éléments internes peuvent se couper normalement si nécessaire */
	.Print-page * {
		page-break-inside: auto !important;
		break-inside: auto !important;
	}
	/* Tables et cellules : éviter les coupures à l’intérieur */
	div, #divtabloAddLu, #divtabloAddMa, #divtabloAddMe, #divtabloAddJe, #divtabloAddVe, #divtabloAddSa, #divtabloAddDi, table_total_Semaine {
		page-break-inside: avoid !important;
		break-inside: avoid !important;
		-webkit-region-break-inside: avoid !important;
	}
	/* Masquer les éléments non imprimables */
	header, footer, nav, .no-print {
		display: none !important;
	}
}

/* --- Correction espacement titre / sous-titre à l'impression --- */
@media print {
	h1, h3 {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
		padding: 0 !important;
		line-height: 0.6 !important;
	}
	/* Si titre + sous-titre sont dans un conteneur */
	.header-print, .titre-print {
		margin-bottom: 0 !important;
		padding-bottom: 0 !important;
	}
}
/*< -- ---------------------------- -- >*/
/* --- Impression spéciale iOS + Android (smartphone / tablette) --- */