/* =========================================================
   EEB Karaté — mise en page à l'impression
   Objectif : une feuille propre, lisible, sans navigation ni boutons.
   ========================================================= */

@page {
	size: A4;
	margin: 14mm;
}

body {
	background: #fff !important;
	color: #000 !important;
	font-size: 11pt;
	line-height: 1.4;
}

/* Tout ce qui n'a aucun sens sur papier. */
.eeb-header,
.eeb-footer,
.eeb-onglets,
.eeb-actions,
.eeb-espace__entete .droite,
.wp-block-navigation,
.wp-block-buttons,
.eeb-bouton,
.eeb-doc__actions,
.eeb-message,
.eeb-filtres,
#wpadminbar,
.no-print {
	display: none !important;
}

.print-only { display: block !important; }

/* Les liens n'ont pas à être rouges ni soulignés sur papier. */
a { color: #000 !important; text-decoration: none !important; }

/* On évite l'URL entre parenthèses après chaque lien, illisible dans un tableau. */
a[href]::after { content: "" !important; }

/* Tableaux : lisibles en noir et blanc, en-tête répété à chaque page. */
.eeb-table { font-size: 9.5pt; width: 100%; border-collapse: collapse; }
.eeb-table thead { display: table-header-group; }
.eeb-table tfoot { display: table-footer-group; }
.eeb-table tr { page-break-inside: avoid; break-inside: avoid; }

.eeb-table th {
	background: #1a1a1a !important;
	color: #fff !important;
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
	padding: 4pt 6pt;
	font-size: 8.5pt;
}

.eeb-table td { padding: 3.5pt 6pt; border-bottom: .5pt solid #ccc; }
.eeb-table tbody tr:nth-child(even) { background: #f6f6f6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.eeb-table tbody tr:hover { background: transparent !important; }

.eeb-place {
	border: .5pt solid #999;
	background: transparent !important;
	color: #000 !important;
	min-width: 0;
	height: auto;
	padding: 0 .3em;
}

/* En-tête de document imprimé (logo + titre + date). */
.eeb-print-entete {
	display: flex;
	align-items: center;
	gap: 12pt;
	border-bottom: 2.5pt solid #e2231a;
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
	padding-bottom: 8pt;
	margin-bottom: 12pt;
}

.eeb-print-entete img { width: 52pt; height: 52pt; object-fit: contain; }
.eeb-print-entete h1 { margin: 0; font-size: 16pt; letter-spacing: .3pt; }
.eeb-print-entete .sous { color: #e2231a; font-weight: 700; font-size: 10.5pt; margin-top: 1pt; }
.eeb-print-entete .meta { color: #777; font-size: 8.5pt; margin-top: 1pt; }

.eeb-print-pied {
	margin-top: 14pt;
	padding-top: 6pt;
	border-top: .5pt solid #ddd;
	color: #888;
	font-size: 8pt;
	text-align: center;
}

/* Chaque grande section démarre sur une page propre si elle ne tient pas. */
.eeb-print-bloc { page-break-inside: auto; }
.eeb-print-bloc h2 { page-break-after: avoid; break-after: avoid; font-size: 12pt; margin: 14pt 0 6pt; }
.eeb-saut-page { page-break-before: always; }

/* Cartes et statistiques : à plat, sans ombre ni fond. */
.eeb-card, .eeb-stat { border: .5pt solid #ccc !important; box-shadow: none !important; background: #fff !important; }
.eeb-espace__entete { background: #fff !important; color: #000 !important; border: none; padding: 0; margin-bottom: 10pt; }
.eeb-espace__entete h2 { color: #000 !important; }

/* ---------- Photo sur la fiche imprimée ---------- */

.eeb-print-identite {
	display: flex;
	align-items: flex-start;
	gap: 12pt;
}

.eeb-print-identite .eeb-table { flex: 1; }

.eeb-print-photo {
	width: 72pt;
	height: 72pt;
	object-fit: cover;
	border-radius: 4pt;
	border: .5pt solid #999;
	flex: 0 0 auto;
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}
