/* Bandeau magazine — styles front */

.mgeb {
	--mgeb-cover: 250px;
	--mgeb-text: 230px;
	padding: 40px;
	background-color: #ffe600;
}

.mgeb__heading {
	margin: 0 0 28px;
	color: #111;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
}

.mgeb__row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
}

.mgeb__text {
	flex: 0 1 var(--mgeb-text);
	min-width: 0;
}

.mgeb__title {
	margin: 0;
	color: #111;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
	text-wrap: balance;
}

.mgeb__excerpt,
.mgeb__issue {
	margin: 10px 0 0;
	color: #333;
	font-size: 15px;
	line-height: 1.45;
}

.mgeb__buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 28px;
}

.mgeb__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border: 1px solid #111;
	border-radius: 0;
	background-color: #111;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: opacity 180ms ease;
}

.mgeb__btn--secondary {
	background-color: #fff;
	color: #111;
}

.mgeb__btn:hover,
.mgeb__btn:focus-visible {
	opacity: 0.85;
}

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

.mgeb__cover {
	flex: 0 0 auto;
	width: var(--mgeb-cover);
	line-height: 0;
}

/* Deux classes : indispensable pour passer devant « .elementor img { height: auto } ». */
.mgeb__cover img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.2);
}

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

.mgeb .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;
}

/* --- Tablettes et mobiles : tout est centré et empilé -------------------- */

@media (max-width: 1024px) {
	.mgeb {
		padding: 28px 20px;
	}

	.mgeb__row {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.mgeb__text {
		display: flex;
		flex-direction: column;
		align-items: center;
		flex-basis: auto;
		order: 1;
		width: 100%;
	}

	/* La couverture passe entre le texte et les boutons, comme sur la maquette. */
	.mgeb__cover {
		order: 2;
		width: min(var(--mgeb-cover), 70%);
	}

	.mgeb__buttons {
		width: 100%;
		max-width: 260px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mgeb__btn {
		transition: none;
	}
}
