/* Encart magazine du mois — styles front */

.mgec {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	max-width: 240px;
	text-align: center;
}

.mgec__heading {
	margin: 0;
	color: #111;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1.3;
	text-transform: uppercase;
}

.mgec__issue {
	margin: 0;
	color: #8a8a8a;
	font-size: 14px;
}

.mgec__cover {
	display: block;
	width: 100%;
	line-height: 0;
}

.mgec__cover img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 220ms ease;
}

.mgec__cover:hover img {
	transform: translateY(-4px);
}

.mgec__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px 20px;
	border: 2px solid #ffc800;
	border-radius: 2px;
	background-color: transparent;
	color: #111;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.mgec__btn--primary {
	background-color: #ffc800;
}

.mgec__btn:focus-visible,
.mgec__cover:focus-visible {
	outline: 2px solid #111;
	outline-offset: 3px;
}

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

.mgec .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 (prefers-reduced-motion: reduce) {
	.mgec__cover img,
	.mgec__btn {
		transition: none;
	}
}
