/* En-tête d'article — styles front */

.hsah {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 100%;
}

.hsah > * {
	margin: 0;
}

.hsah__eyebrow {
	color: #f5b301;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.hsah__eyebrow a {
	color: inherit;
	text-decoration: none;
}

.hsah__eyebrow a:hover,
.hsah__eyebrow a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hsah__title {
	color: #111;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.25;
	text-wrap: balance;
}

.hsah__chapeau {
	color: #222;
	font-size: 18px;
	line-height: 1.5;
}

.hsah__chapeau p {
	margin: 0 0 8px;
}

.hsah__chapeau p:last-child {
	margin-bottom: 0;
}

.hsah__byline {
	color: #111;
	font-size: 15px;
	font-weight: 700;
}

.hsah__byline a {
	color: inherit;
}

.hsah__meta {
	color: #555;
	font-size: 15px;
}

.hsah__sep {
	margin: 0 4px;
}

/* --- Actions ------------------------------------------------------------ */

.hsah__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.hsah__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 0;
	border-radius: 20px;
	background-color: #f5b301;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 180ms ease;
}

.hsah__pill svg {
	width: 17px;
	height: 17px;
	fill: #fff;
}

.hsah__share {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hsah__share a {
	--hsah-icon: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--hsah-icon);
	height: var(--hsah-icon);
	border-radius: 50%;
	background-color: #f5b301;
	transition: background-color 180ms ease;
}

.hsah__share svg {
	width: 48%;
	height: 48%;
	fill: #fff;
}

.hsah__pill:focus-visible,
.hsah__share a:focus-visible {
	outline: 2px solid #111;
	outline-offset: 3px;
}

.hsah__pill--save[aria-pressed="true"] {
	background-color: #111;
}

.hsah__save-wrap {
	position: relative;
	display: inline-flex;
}

/* Rappel du raccourci clavier, affiché au clic sur ordinateur. */
.hsah__hint {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 0;
	z-index: 5;
	display: none;
	width: max-content;
	max-width: 280px;
	padding: 8px 12px;
	border-radius: 4px;
	background-color: #111;
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
}

.hsah__hint.is-visible {
	display: block;
}

/* --- Image -------------------------------------------------------------- */

.hsah__figure {
	margin: 8px 0 0;
}

/* Trois classes : les thèmes centrent souvent les images de figure avec une
   règle du type « figure img { width: auto; margin: 0 auto } ». */
.hsah .hsah__figure .hsah__img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	margin: 0;
}

.hsah .hsah__figure {
	width: 100%;
}

.hsah__credit {
	margin-top: 10px;
	color: #888;
	font-size: 14px;
}

.hsah-empty {
	padding: 20px;
	border: 1px dashed #c3c4c7;
	color: #50575e;
	text-align: center;
}

.hsah .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 767px) {
	.hsah__title {
		font-size: 24px;
	}

	.hsah__chapeau {
		font-size: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hsah__pill,
	.hsah__share a {
		transition: none;
	}
}
