/**
 * print.css — Mise en forme de l'impression d'un article (single.html).
 * Chargé uniquement pour le média "print" (voir l'appel wp_enqueue_style
 * avec le 5e paramètre "print"), n'a donc aucun effet à l'écran.
 */

.hub-topbar,
.hub-nav,
.hub-comments-section,
.hub-article-layout__sidebar,
.hub-print-button,
.hub-footer {
	display: none !important;
}

body {
	color: #000;
	background: #fff;
}

a {
	color: #000;
	text-decoration: underline;
}

.wp-block-post-featured-image img {
	max-width: 100%;
}

h1,
h2,
h3 {
	page-break-after: avoid;
}

img,
figure {
	page-break-inside: avoid;
}

/* Pied de page ajouté uniquement à l'impression (position: fixed se
   répète sur chaque page imprimée) — masqué à l'écran par le style
   inline du bloc, cette règle !important prend le dessus ici. */
.hub-print-footer {
	display: flex !important;
	align-items: center;
	gap: 0.6rem;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.4rem 5%;
	border-top: 1px solid #ccc;
	font-size: 9px;
	color: #555;
}

.hub-print-footer__logo img {
	height: 18px;
	width: auto;
}
