/* =========================================================
   "Explorez nos formations": heading left, text right, then four photo
   panels cut on the logo's slant. Desktop: the hovered panel opens.
   Phone and tablet: everything is simply visible.
   ========================================================= */
.offers__intro { padding: 56px var(--gutter) 40px; }
.offers__intro h2 {
	margin: 0 0 20px;
	color: var(--navy);
	font-size: clamp(32px, 4.2vw, 58px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -.02em;
}
.offers__text p { max-width: 70ch; margin: 0 0 16px; font-size: 15px; line-height: 1.7; }

.offers__panels { display: grid; gap: 6px; }
.offer {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 400px;
	overflow: hidden;
	background: var(--navy);
	color: #fff;
	text-decoration: none;
}
.offer:visited { color: #fff; }
.offer img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.offer::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(0, 41, 85, .96) 0%, rgba(0, 41, 85, .8) 55%, rgba(0, 41, 85, .25) 100%);
}
.offer__body { position: relative; z-index: 1; display: block; width: 100%; padding: 28px var(--gutter); }
.offer__name { display: block; margin: 0; font-size: clamp(25px, 2.2vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; }
.offer__more, .offer__clip, .offer__desc, .offer__go { display: block; }
.offer strong { display: block; margin-top: 8px; color: var(--yellow); font-size: 15px; font-weight: 600; line-height: 1.35; }
.offer__desc { margin-top: 10px; font-size: 14px; line-height: 1.6; }
.offer__go { margin-top: 14px; font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.offer:focus-visible { outline: 3px solid var(--yellow); outline-offset: -6px; }

@media (min-width: 700px) {
	.offers__intro { padding-block: 72px 48px; }
	.offers__panels { grid-template-columns: 1fr 1fr; }
	.offer { min-height: 430px; }
	.offer__body { padding-inline: 28px; }
}

@media (min-width: 1100px) {
	.offers__intro { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; padding-block: 88px 60px; }
	.offers__intro h2 { margin: 0 0 28px; }
	.offers__text { columns: 2; column-gap: 40px; }
	.offers__text p { margin: 0 0 14px; break-inside: avoid; font-size: 14px; }

	.offers__panels { --s: 56px; display: flex; gap: 0; height: 600px; padding-bottom: 0; }
	.offer {
		flex: 1 1 0;
		min-width: 0;
		min-height: 0;
		margin-left: calc(6px - var(--s));
		clip-path: polygon(var(--s) 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%);
	}
	.offer:first-child { margin-left: 0; clip-path: polygon(0 0, 100% 0, calc(100% - var(--s)) 100%, 0 100%); }
	.offer:last-child { clip-path: polygon(var(--s) 0, 100% 0, 100% 100%, 0 100%); }
	.offer:hover, .offer:focus-visible { flex-grow: 2.1; }
	.offer__body { padding: 0 calc(var(--s) + 12px) 40px 36px; }
	.offer:first-child .offer__body { padding-left: var(--gutter); }

	/* closed until hover or focus; the inner width is fixed so text does not reflow while opening */
	.offer__more { display: grid; grid-template-rows: 0fr; opacity: 0; }
	.offer:hover .offer__more, .offer:focus-visible .offer__more { grid-template-rows: 1fr; opacity: 1; }
	.offer__clip { width: min(390px, 27vw); min-height: 0; overflow: hidden; }
	@media (prefers-reduced-motion: no-preference) {
		.offer { transition: flex-grow .42s cubic-bezier(.65, 0, .3, 1); }
		.offer__more { transition: grid-template-rows .36s ease, opacity .25s ease; }
	}
}

/* heading is a link; the button sits under it, in the left column */
.offers__intro h2 a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 4px; text-underline-offset: 8px; transition: text-decoration-color .15s ease; }
.offers__intro h2 a:visited { color: inherit; }
.offers__intro h2 a:hover { text-decoration-color: var(--yellow); }
.offers__intro h2 a:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
@media (min-width: 1100px) {
	.offers__head h2 { margin-bottom: 28px; }
}
