/* Programme listing pages. */
.list-hero { display: grid; gap: 20px; padding: 52px var(--gutter) 44px; background: var(--navy); color: #fff; }
.list-hero h1 { margin: 0; font-size: clamp(34px, 4.6vw, 64px); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.list-hero p { max-width: 62ch; margin: 0; font-size: 16px; line-height: 1.6; }
.list-hero .list-hero__lead { margin-bottom: 10px; color: var(--yellow); font-size: 18px; font-weight: 600; line-height: 1.35; }
.list-body { padding: 36px var(--gutter) 56px; }
.list-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.list-filter[hidden] { display: none; }
.list-filter button { min-height: 44px; padding: 8px 18px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.25; cursor: pointer; }
.list-filter button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.list-filter button:focus-visible, .list-card:focus-visible, .list-certs a:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.list-cards { display: grid; gap: 32px 24px; margin: 0; padding: 0; list-style: none; }
.list-cards li[hidden] { display: none; }
.list-card { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.list-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); transform: translateY(101%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.list-card__img { display: block; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 22px)); }
.list-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--wash); transition: transform .5s ease; }
.list-card h2 { margin: 16px 20px 16px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.list-card h2 a, .list-card h2 a:visited { color: var(--navy); text-decoration: none; transition: color .2s ease; }
.list-card h2 a::after { content: ""; position: absolute; inset: 0; } /* The whole card is clickable. */
.list-card__more, .list-card__more:visited { align-self: flex-start; margin: auto 20px 20px; color: var(--navy); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color .2s ease; }
.list-card a:focus-visible { outline: none; }
.list-card:has(a:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }
@media (hover: hover) {
	.list-card:hover { transform: translateY(-4px); border-color: var(--navy); box-shadow: 0 14px 28px rgba(0, 41, 85, .18); }
	.list-card:hover::before { transform: translateY(0); }
	.list-card:hover img { transform: scale(1.06); }
	.list-card:hover h2 a { color: #fff; }
	.list-card:hover .list-card__more { color: var(--yellow); }
}
@media (prefers-reduced-motion: reduce) {
	.list-card, .list-card::before, .list-card img, .list-card h2 a, .list-card__more { transition: none; }
	.list-card:hover { transform: none; }
	.list-card:hover img { transform: none; }
}
.list-about { display: grid; gap: 12px 64px; padding: 52px var(--gutter); background: var(--wash); font-size: 16px; line-height: 1.7; }
.list-about h4, .list-about__head { margin: 0 0 10px; color: var(--navy); font-size: 20px; font-weight: 600; line-height: 1.3; }
.list-about p { margin: 0 0 16px; }
.list-about p.list-about__head { margin: 24px 0 10px; }
.list-about div > p.list-about__head:first-child { margin-top: 0; }
.list-about strong { font-weight: 600; }
.list-about ul { margin: 0 0 16px; padding: 0; list-style: none; }
.list-about li { margin-bottom: 12px; }
.list-certs { padding: 52px var(--gutter) 64px; }
.list-certs h3 { margin: 0 0 28px; color: var(--navy); font-size: clamp(26px, 3.2vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.list-certs ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.list-certs a, .list-certs a:visited { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; height: 100%; padding: 20px 12px; background: var(--wash); color: var(--navy); text-align: center; text-decoration: none; }
.list-certs a:hover { background: var(--yellow); }
.list-certs img { width: auto; max-width: min(110px, 100%); height: 64px; object-fit: contain; }
.list-certs h2 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
@media (min-width: 700px) {
	.list-cards { grid-template-columns: repeat(2, 1fr); }
	.list-certs ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
	.list-hero { grid-template-columns: 7fr 5fr; align-items: end; gap: 56px; padding-right: max(var(--gutter), 56px); }
	.list-body, .list-about, .list-certs { padding-right: max(var(--gutter), 56px); }
	.list-cards { grid-template-columns: repeat(3, 1fr); }
	.list-about { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) {
	.list-certs ul { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* A single programme fills the row instead of leaving two empty columns. */
@media (min-width: 700px) {
	.list-cards:has(> li:only-child) { grid-template-columns: 1fr; }
	.list-card:only-child { display: grid; grid-template-columns: 5fr 7fr; grid-template-rows: 1fr auto; column-gap: 12px; }
	.list-card:only-child .list-card__img { grid-row: 1 / 3; clip-path: polygon(0 0, 100% 0, calc(100% - 40px) 100%, 0 100%); }
	.list-card:only-child img { height: 100%; }
	.list-card:only-child h2 { align-self: end; margin: 24px 24px 12px; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.15; }
	.list-card:only-child .list-card__more { margin: 0 24px 24px; }
}
.list-about h5 { margin: 24px 0 10px; color: var(--navy); font-size: 18px; font-weight: 600; line-height: 1.3; }

/* Default category archive */
.list-hero--archive { display: block; padding-block: 44px; }
.list-card--post p, .list-card__excerpt p { margin: 0; }
.list-card__cats { position: relative; z-index: 1; margin: 14px 20px 0 !important; font-size: 13px; font-weight: 500; }
.list-card__cats a, .list-card__cats a:visited { position: relative; z-index: 1; color: var(--navy); }
.list-card--post h2 { margin: 8px 20px; }
.list-card__excerpt { margin: 0 20px 12px; font-size: 14px; line-height: 1.55; }
.list-card__meta { margin: auto 20px 18px !important; font-size: 13px; font-weight: 500; }
.list-pages { margin-top: 36px; }
.list-pages .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.list-pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--navy); color: var(--navy); font-weight: 600; text-decoration: none; }
.list-pages .page-numbers.current { background: var(--navy); color: #fff; }
.list-pages .page-numbers:hover { background: var(--yellow); }
.list-pages .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (hover: hover) {
	.list-card--post:hover .list-card__excerpt, .list-card--post:hover .list-card__meta, .list-card--post:hover .list-card__cats, .list-card--post:hover .list-card__cats a { color: #fff; }
}
.list-cards { grid-template-columns: minmax(0, 1fr); }
.list-hero h1, .list-card h2, .list-card__cats, .list-card__excerpt { overflow-wrap: anywhere; }
@media (min-width: 700px) { .list-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .list-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 700px) { .list-cards:has(> li:only-child) { grid-template-columns: minmax(0, 1fr); } }

/* News cards: pictures of any shape keep the same frame. */
.post-type-archive-actualite .list-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
