/* Programme page: photo with a title panel cut on the logo's slant, then plain reading layout. */
.prog h2 { margin: 0 0 16px; color: var(--navy); font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.prog h3 { margin: 28px 0 10px; color: var(--navy); font-size: 19px; font-weight: 600; line-height: 1.3; }
.prog h4 { margin: 22px 0 8px; color: var(--navy); font-size: 16px; font-weight: 600; }
.prog p { margin: 0 0 14px; }
.prog ul { margin: 0 0 14px; padding-left: 20px; }
.prog li { margin-bottom: 8px; }
.prog li::marker { color: var(--navy); }
.prog strong { font-weight: 600; }
.prog a:not(.prog-btn) { overflow-wrap: anywhere; color: var(--navy); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prog a:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

.prog-btn { display: inline-block; min-height: 44px; padding: 10px 22px; background: var(--yellow); color: var(--navy); font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color .15s; }
.prog-btn:hover { background: #fff; }
.prog-btn--navy, .prog-btn--navy:visited { background: var(--navy); color: #fff; }
.prog-btn--navy:hover { background: #0a3d75; }

/* Hero */
.prog-hero { position: relative; display: flex; align-items: flex-end; min-height: 460px; background: var(--navy); }
.prog-hero__img { position: absolute; inset: 0; background-position: center; background-repeat: no-repeat; background-size: cover; }
.prog-hero__panel {
	--cut: clamp(36px, 6vw, 96px);
	position: relative;
	width: min(860px, 88%);
	padding: 34px calc(var(--cut) + 24px) 36px var(--gutter);
	background: var(--navy);
	color: #fff;
	clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
}
.prog-hero h1 { margin: 0 0 10px; font-size: clamp(27px, 3.3vw, 46px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.prog-hero p { max-width: 58ch; margin: 0 0 20px; font-size: 16px; line-height: 1.5; }
.prog-hero--plain { min-height: 0; }
.prog-hero--plain .prog-hero__panel { width: 100%; clip-path: none; padding-right: var(--gutter); }
.prog-hero--logo { display: grid; min-height: 0; background: #fff; border-bottom: 1px solid var(--line); }
.prog-hero--logo .prog-hero__img { position: static; order: 2; width: min(240px, 60%); height: 130px; margin: 24px var(--gutter); object-fit: contain; object-position: left center; }
.prog-hero--logo .prog-hero__panel { width: 100%; clip-path: none; padding-right: var(--gutter); }
@media (min-width: 900px) {
	.prog-hero--logo { grid-template-columns: minmax(0, 1fr) minmax(280px, 30%); align-items: center; }
	.prog-hero--logo .prog-hero__panel { --cut: 80px; align-self: stretch; order: 1; padding-right: calc(var(--cut) + 24px); clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); }
	.prog-hero--logo .prog-hero__img { width: auto; max-width: calc(100% - 2 * var(--gutter)); height: 170px; object-position: center; }
}

/* Key facts */
.prog-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 56px; padding: 26px var(--gutter); border-bottom: 1px solid var(--line); }
.prog-facts h2 { margin: 0; font-size: 18px; letter-spacing: 0; }
.prog-facts dl { display: flex; flex-wrap: wrap; gap: 12px 48px; margin: 0; }
.prog-facts dl div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.prog-facts dt { font-size: 14px; }
.prog-facts dd { margin: 0; color: var(--navy); font-size: 18px; font-weight: 600; }

/* Text and side column */
.prog-layout { display: grid; gap: 40px; padding: 48px var(--gutter) 56px; }
.prog-text { min-width: 0; font-size: 16px; line-height: 1.7; }
.prog-text > * { max-width: 72ch; }
.prog-text section + section { margin-top: 40px; }
.prog-text section > :first-child + h3 { margin-top: 0; }
.prog blockquote { margin: 0; }
.prog-note { margin-top: 36px; padding: 20px 24px; border-left: 6px solid var(--yellow); background: var(--wash); }
.prog-note p:last-child { margin-bottom: 0; }
.prog-note strong { display: block; margin-top: 8px; color: var(--navy); font-size: 18px; line-height: 1.35; }
.prog-side { min-width: 0; font-size: 15px; }
.prog-side section { padding-block: 20px; border-top: 3px solid var(--navy); }
.prog-side h2 { margin-bottom: 12px; font-size: 19px; letter-spacing: 0; }
.prog-side .prog-btn { width: 100%; text-align: center; }

/* Programme: terms are a real sequence, so they read side by side */
.prog-terms { padding: 52px var(--gutter) 56px; background: var(--wash); }
.prog-terms__grid { display: grid; gap: 20px; }
.prog-term { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: #fff; font-size: 15px; line-height: 1.5; }
.prog .prog-term > h2 { min-height: 128px; margin: 0; padding: 18px 44px 20px 20px; background: var(--navy); color: #fff; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 0 100%); }
.prog-term__n { display: block; margin-bottom: 6px; color: var(--yellow); font-size: 14px; }
.prog-term ul { margin: 0; padding: 8px 20px 12px; list-style: none; }
.prog-term li { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.prog-term li:last-child { border-bottom: 0; }
.prog-term li strong { display: block; margin-bottom: 1px; color: var(--navy); font-size: 13px; }
.prog-term p { margin: 12px 20px; }
.prog-term__go, .prog-term__go:visited { display: flex; align-items: center; justify-content: center; align-self: stretch; min-height: 46px; margin: auto 20px 20px; padding: 8px 14px; background: var(--yellow); color: var(--navy) !important; font-size: 14px; font-weight: 600; text-align: center; text-decoration: none !important; transition: background-color .15s, color .15s; }
.prog-term__go:hover { background: var(--navy); color: #fff !important; }
.prog-term__go:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.prog-more { padding: 52px var(--gutter) 28px; font-size: 16px; line-height: 1.7; }
.prog-more > * { max-width: 72ch; }
.prog-more h2 { font-size: clamp(21px, 2vw, 26px); margin-top: 28px; }
.prog-more > h2:first-child, .prog-more > h3:first-child { margin-top: 0; }

.prog-related { padding: 28px var(--gutter) 60px; }
.prog-related h2 { font-size: 22px; }
.prog-related ul { display: grid; gap: 0 32px; padding: 0; list-style: none; }
.prog .prog-related li h2 { margin: 0 0 4px; font-size: 16px; line-height: 1.35; letter-spacing: 0; }
.prog-related__more { font-size: 14px; font-weight: 600; }
.prog-facts h3 { margin: 0; font-size: 18px; }
.prog-facts ul { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; padding: 0; list-style: none; }
.prog-facts li { margin: 0; }
.prog-side h3 { margin: 0 0 12px; font-size: 19px; }
.prog-related li { margin: 0; padding-block: 12px; border-top: 1px solid var(--line); font-weight: 500; }

.prog-next { display: grid; gap: 4px; }
.prog-next > div { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 36px var(--gutter); background: var(--wash); }
.prog-next > div + div { background: var(--navy); }
.prog .prog-next > div + div h2 { color: #fff; }
.prog-next h2 { margin: 0; }
.prog-next .prog-btn { height: auto; }

@media (min-width: 700px) {
	.prog-next { grid-template-columns: 1fr 1fr; }
	.prog-related ul { grid-template-columns: repeat(3, 1fr); }
	.prog-terms__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
	.prog-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; }
	.prog-layout--single { grid-template-columns: minmax(0, 1fr); }
	.prog-side { position: sticky; top: calc(var(--main-h) + 20px); align-self: start; }
	.prog-terms__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 699px) {
	.prog-hero { min-height: 400px; }
	.prog-hero__panel { --cut: 28px; width: 100%; padding-right: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	.prog-btn { transition: none; }
}

.prog-hero--logo .prog-hero__img { background-size: contain; background-color: #fff; }

.prog-related__img { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 8px; object-fit: cover; }

@media (min-width: 1500px) {
	.prog-terms__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
	.prog-terms { padding-right: max(var(--gutter), 56px); }
}
.prog-terms__grid--1, .prog-terms__grid--3:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }

/* Pages without a tarif column use the full width: no empty side. */
.prog-facts h2 { margin: 0; font-size: 18px; letter-spacing: 0; }
@media (min-width: 1000px) {
	.prog-layout--single { padding-right: max(var(--gutter), 56px); }
	.prog-layout--single .prog-text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
	.prog-layout--single .prog-text > * { max-width: none; }
	.prog-layout--single .prog-text section + section { margin-top: 0; }
	/* The long text under the page (every formation, with or without a tarif column) fills the full width in two columns: no empty right side. */
	.prog-more { columns: 2; column-gap: 56px; padding-right: max(var(--gutter), 56px); }
	.prog-more > * { max-width: none; }
	.prog-more h2, .prog-more h3 { break-after: avoid; }
	.prog-more p { orphans: 3; widows: 3; }
}

.prog-side__facts { margin: 0; padding: 0; list-style: none; font-weight: 500; }
.prog-side__facts li { margin: 0 0 6px; }

img.prog-hero__img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.prog-hero--logo img.prog-hero__img { object-fit: contain; }
.prog .prog-side__facts { padding: 0; }

.prog-offer h2, .prog-offer h3 { margin: 0 0 8px; }
