/* ════════════════════════════════════════════════════════════════
   Generation Teamup (GT) — Benin-branch section.
   Ported from the design prototypes (_design/gt/gt-accueil.html,
   _design/gt/gt-pages.html) — the visual contract for structure,
   spacing, type and components.

   Every selector here sits under body.gt-section (set by
   inc/gt.php's teamup_gt_body_class()), so nothing in this file can
   ever apply outside the GT section. Colours/radii/fonts reuse the
   tokens already defined in style.css:root — none are redefined
   here. Classnames are GT-prefixed throughout (.gt-card, .gt-btn,
   .gt-eyebrow…) rather than reusing the prototype's bare names
   (.card, .btn, .eyebrow…): GT pages keep the shared .teamup-fp
   wrapper (for the box-sizing/margin resets and heading font rule),
   and .teamup-fp already defines its OWN .eyebrow/.btn/.btn-primary
   rules sitewide — bare names here would silently inherit those
   instead of GT's own spec.

   .gt-wrap is GT's own content-width column (1120px in the
   prototype), separate from the sitewide .container (1280px,
   var(--container)) — every GT-specific content rule below reads
   its own width from .gt-wrap so content aligns exactly as drawn.
   Side padding reuses the sitewide var(--gutter) token. The
   header/footer chrome, by contrast, deliberately reuses the
   MAIN SITE's own .nav/.footer markup and classes (see
   inc/partials/teamup-header.php / teamup-footer.php's GT branch) so
   the nav bar, mobile hamburger, and footer columns feel identical
   sitewide — no GT-specific chrome CSS lives in this file anymore.
   ════════════════════════════════════════════════════════════════ */

.gt-section .gt-wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.gt-section .gt-wrap.gt-narrow {
	max-width: 760px;
}

/* ════════════════════════════════════════════════════════════════
   CONTENT COMPONENTS — shared across the 9 page templates.
   Two type-scale tiers exist because the prototypes draw them that
   way: the home page's own hero/section rhythm is a size up from the
   other 8 pages' (bigger h1, bigger intro paragraph, more section
   padding) — .gt-hero/.gt-sec-lg are the home-only overrides; the
   unscoped rules are the shared baseline every other page uses.
   ════════════════════════════════════════════════════════════════ */

.gt-section .gt-eyebrow {
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg-subtle);
	display: flex;
	align-items: center;
	gap: 8px;
}
.gt-section .gt-eyebrow::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	flex-shrink: 0;
}
.gt-section .gt-eyebrow.gt-mid {
	justify-content: center;
}

.gt-section h1 {
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1.05;
	letter-spacing: -0.032em;
	font-weight: 700;
	margin: 20px 0 0;
	max-width: 17ch;
}
.gt-section .gt-hero h1 {
	font-size: clamp(40px, 6vw, 68px);
	line-height: 1.02;
	letter-spacing: -0.035em;
	max-width: 15ch;
}
.gt-section h2 {
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.12;
	letter-spacing: -0.026em;
	font-weight: 700;
	margin: 16px 0 0;
	max-width: 20ch;
}
.gt-section h3 {
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.018em;
	margin: 0;
}

.gt-section .gt-lede {
	font-size: 18px;
	color: var(--fg-muted);
	max-width: 58ch;
	margin: 22px 0 0;
	line-height: 1.55;
}
.gt-section .gt-hero-sub {
	font-size: 19px;
	color: var(--fg-muted);
	max-width: 56ch;
	margin: 24px 0 0;
	line-height: 1.55;
}
.gt-section .gt-sec-lede {
	font-size: 17px;
	color: var(--fg-muted);
	margin-top: 20px;
	line-height: 1.6;
}
.gt-section .gt-body {
	font-size: 16px;
	color: var(--fg-muted);
	max-width: 68ch;
	line-height: 1.7;
}
.gt-section .gt-body p {
	margin-top: 16px;
}

.gt-section .gt-hero {
	padding: 88px 0 64px;
}
.gt-section .gt-page {
	padding: 64px 0 80px;
}
.gt-section .gt-actions {
	display: flex;
	gap: 12px;
	margin-top: 32px;
	flex-wrap: wrap;
}
.gt-section .gt-hero .gt-actions {
	margin-top: 36px;
}
.gt-section .gt-cta-band .gt-actions {
	justify-content: center;
}

.gt-section .gt-btn {
	font-size: 14px;
	padding: 12px 22px;
	border-radius: var(--radius-sm);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.gt-section .gt-btn-dark {
	background: var(--fg);
	color: var(--inverse-fg);
}
.gt-section .gt-btn-out {
	border: 1px solid var(--border-strong);
	color: var(--fg);
}
.gt-section .gt-btn-out:hover {
	background: var(--bg-warm);
}

/* ─── bar charts (GT home: 7 bars + median; Résultats: 4 bars) ─── */
.gt-section .gt-bac {
	background: var(--bg-warm);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 76px 0;
}
.gt-section .gt-bac-head {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: end;
	margin-bottom: 52px;
}
.gt-section .gt-bac-note {
	font-size: 15px;
	color: var(--fg-muted);
	line-height: 1.6;
}
.gt-section .gt-plot {
	position: relative;
	padding-top: 34px;
}
.gt-section .gt-bars {
	display: grid;
	gap: 18px;
	align-items: end;
	border-bottom: 1px solid #d5d1c4;
	position: relative;
}
.gt-section .gt-bars-7 {
	grid-template-columns: repeat(7, 1fr);
	height: 300px;
}
.gt-section .gt-bars-4 {
	grid-template-columns: repeat(4, 1fr);
	height: 260px;
}
.gt-section .gt-b {
	position: relative;
	display: flex;
	align-items: flex-end;
	height: 100%;
}
.gt-section .gt-b i {
	display: block;
	width: 100%;
	background: #dcd8cb;
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.gt-section .gt-b.gt-me i {
	background: var(--accent);
}
.gt-section .gt-b .gt-v {
	position: absolute;
	left: 0;
	right: 0;
	text-align: center;
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--fg-muted);
	font-variant-numeric: tabular-nums;
}
.gt-section .gt-b.gt-me .gt-v {
	color: var(--fg);
	font-weight: 600;
	font-size: 15px;
}
.gt-section .gt-labels {
	display: grid;
	gap: 18px;
	padding-top: 14px;
}
.gt-section .gt-labels-7 {
	grid-template-columns: repeat(7, 1fr);
}
.gt-section .gt-labels-4 {
	grid-template-columns: repeat(4, 1fr);
}
.gt-section .gt-lb {
	text-align: center;
	font-size: 12.5px;
	color: var(--fg-subtle);
	line-height: 1.35;
}
.gt-section .gt-lb b {
	display: block;
	color: var(--fg);
	font-weight: 600;
	font-size: 13.5px;
}
.gt-section .gt-lb .gt-r {
	font-family: var(--mono);
	font-size: 10.5px;
	color: #b0aca0;
	font-variant-numeric: tabular-nums;
	display: block;
	margin-top: 3px;
}
.gt-section .gt-median {
	position: absolute;
	left: 0;
	right: 0;
	border-top: 1px dashed #bdb8a8;
	z-index: 1;
}
.gt-section .gt-median span {
	position: absolute;
	right: 0;
	top: -19px;
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fg-subtle);
	padding-left: 10px;
	background: var(--bg-warm);
}
.gt-section .gt-caveat {
	font-size: 12.5px;
	color: var(--fg-subtle);
	margin-top: 30px;
	max-width: 80ch;
	line-height: 1.6;
}

/* ─── stats (GT home's 4-up strip) ─── */
.gt-section .gt-stats {
	padding: 72px 0;
}
.gt-section .gt-stat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--border);
}
.gt-section .gt-stat {
	padding: 28px 24px 28px 0;
	border-right: 1px solid var(--border);
}
.gt-section .gt-stat:last-child {
	border-right: none;
}
.gt-section .gt-stat .gt-n {
	font-size: 38px;
	font-weight: 700;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}
.gt-section .gt-stat .gt-l {
	font-size: 13.5px;
	color: var(--fg-muted);
	margin-top: 8px;
	line-height: 1.45;
}

/* ─── facts (4-up key/value strip: CS1, WEB1, TD) ─── */
.gt-section .gt-facts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--border);
	margin-top: 40px;
}
.gt-section .gt-fact {
	padding: 22px 20px 22px 0;
	border-right: 1px solid var(--border);
}
.gt-section .gt-fact:last-child {
	border-right: none;
}
.gt-section .gt-fact .gt-k {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--fg-subtle);
}
.gt-section .gt-fact .gt-v {
	font-size: 17px;
	font-weight: 500;
	margin-top: 8px;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
}

/* ─── sections ─── */
.gt-section .gt-sec {
	padding: 56px 0;
	border-top: 1px solid var(--border);
}
.gt-section .gt-sec-lg {
	padding: 76px 0;
}
.gt-section .gt-sec-head {
	max-width: 60ch;
	margin-bottom: 36px;
}
.gt-section .gt-sec-lg .gt-sec-head {
	margin-bottom: 44px;
}
.gt-section .gt-warm {
	background: var(--bg-warm);
}

/* ─── cards (programme cards, TD subjects, Participer's 4-up) ─── */
.gt-section .gt-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.gt-section .gt-cards-2 {
	grid-template-columns: repeat(2, 1fr);
}
.gt-section .gt-card {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 26px 22px;
	display: flex;
	flex-direction: column;
	min-height: 220px;
}
.gt-section a.gt-card {
	padding: 28px 24px;
	min-height: 260px;
}
.gt-section a.gt-card:hover {
	border-color: var(--border-strong);
}
.gt-section .gt-card .gt-tag {
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fg-subtle);
}
.gt-section .gt-card h3 {
	margin: 12px 0 0;
	font-size: 19px;
}
.gt-section a.gt-card h3 {
	font-size: 21px;
	letter-spacing: -0.02em;
}
.gt-section .gt-card p {
	font-size: 14.5px;
	color: var(--fg-muted);
	margin: 10px 0 0;
	line-height: 1.55;
}
.gt-section .gt-card .gt-meta {
	margin-top: auto;
	padding-top: 18px;
	font-family: var(--mono);
	font-size: 11px;
	color: var(--fg-subtle);
	border-top: 1px solid var(--border-soft);
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-variant-numeric: tabular-nums;
}

/* ─── values (home's compact 10-principle preview) ─── */
.gt-section .gt-vgrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 48px;
	margin-top: 12px;
}
.gt-section .gt-v-item {
	display: flex;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--border-soft);
}
.gt-section .gt-v-item .gt-num {
	font-family: var(--mono);
	font-size: 11.5px;
	color: var(--fg-subtle);
	padding-top: 3px;
	min-width: 20px;
	font-variant-numeric: tabular-nums;
}
.gt-section .gt-v-item .gt-t {
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.01em;
}

/* ─── principles (Code d'Excellence's full 10-principle list) ─── */
.gt-section .gt-principle {
	padding: 26px 0;
	border-bottom: 1px solid var(--border-soft);
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 20px;
}
.gt-section .gt-principle .gt-num {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--fg-subtle);
	padding-top: 5px;
}
.gt-section .gt-principle h3 {
	font-size: 18px;
}
.gt-section .gt-principle p {
	font-size: 15px;
	color: var(--fg-muted);
	margin-top: 8px;
	max-width: 62ch;
	line-height: 1.6;
}

/* ─── cta band ─── */
.gt-section .gt-cta-band {
	padding: 88px 0;
	text-align: center;
	border-top: 1px solid var(--border);
}
.gt-section .gt-cta-band h2 {
	margin: 20px auto 0;
}
.gt-section .gt-cta-band .gt-sub {
	font-size: 17px;
	color: var(--fg-muted);
	max-width: 52ch;
	margin: 20px auto 0;
}

/* ─── modules list (CS1/WEB1's numbered module grid) ─── */
.gt-section .gt-mods {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0 40px;
}
.gt-section .gt-mod {
	display: flex;
	gap: 14px;
	padding: 13px 0;
	border-bottom: 1px solid var(--border-soft);
	font-size: 15px;
}
.gt-section .gt-mod .gt-n {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--fg-subtle);
	min-width: 26px;
	padding-top: 4px;
	font-variant-numeric: tabular-nums;
}

/* ─── table (editions, résultats ranking, certificates-by-year) ───
   Rounded bordered card + scroll wrapper (mobile safety), padding on
   every side of every cell (not just a right-only hack), a tinted
   header, a quiet row hover, and a highlighted "own" row rendered as a
   left accent stripe + tint rather than a flat inline background — so
   it can coexist with a cell's own bar_pct gradient (below). */
.gt-section .gt-table-wrap {
	overflow-x: auto;
	overflow-y: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin-top: 8px;
}
.gt-section .gt-table {
	width: 100%;
	min-width: 460px;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 14.5px;
}
.gt-section .gt-table thead th {
	background: var(--bg-subtle);
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--fg-subtle);
	text-align: left;
	font-weight: 500;
	padding: 13px 20px;
	border-bottom: 1px solid var(--border);
	white-space: nowrap;
}
.gt-section .gt-table td {
	padding: 14px 20px;
	border-bottom: 1px solid var(--border-soft);
	font-variant-numeric: tabular-nums;
}
.gt-section .gt-table tbody tr:last-child td {
	border-bottom: none;
}
.gt-section .gt-table td.gt-hl {
	font-weight: 600;
}
.gt-section .gt-table tbody tr:hover {
	background: var(--bg-subtle);
}
.gt-section .gt-table tbody tr.gt-row-hl td {
	background: var(--accent-soft);
	font-weight: 600;
}
.gt-section .gt-table tbody tr.gt-row-hl td:first-child {
	box-shadow: inset 3px 0 0 0 var(--accent-deep);
}

/* ─── people (Équipe's role/name/description grid) ───
   No photos yet (see 05-medias-photos.md — team portraits are a gap,
   not a placeholder to fake) — each card leans on the same yellow-dot
   eyebrow treatment as .gt-eyebrow for a visual anchor instead of an
   empty photo box, plus a quiet hover lift matching .gt-btn. */
.gt-section .gt-people {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.gt-section .gt-person {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.gt-section .gt-person:hover {
	transform: translateY(-2px);
	border-color: var(--border-strong);
}
.gt-section .gt-pb {
	padding: 24px;
}
.gt-section .gt-pb .gt-r {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fg-subtle);
	margin-bottom: 10px;
}
.gt-section .gt-pb .gt-r::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	flex-shrink: 0;
}
.gt-section .gt-pb .gt-n {
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.gt-section .gt-pb .gt-d {
	font-size: 13.5px;
	color: var(--fg-muted);
	margin-top: 8px;
	line-height: 1.5;
}
.gt-section .gt-pb .gt-e {
	font-family: var(--mono);
	font-size: 11.5px;
	color: var(--fg-subtle);
	margin-top: 12px;
}

/* ─── callouts, photo placeholders, TODO markers ─── */
.gt-section .gt-rule {
	border-left: 2px solid var(--accent);
	padding: 4px 0 4px 18px;
	margin-top: 22px;
	font-size: 15.5px;
	color: var(--fg-muted);
	max-width: 64ch;
	line-height: 1.65;
}
.gt-section .gt-ph-wide {
	height: 340px;
	background: var(--bg-warm);
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--fg-subtle);
}

@media (max-width: 900px) {
	.gt-section .gt-bac-head {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.gt-section .gt-cards,
	.gt-section .gt-cards-2,
	.gt-section .gt-people {
		grid-template-columns: 1fr;
	}
	.gt-section .gt-stat-grid,
	.gt-section .gt-facts {
		grid-template-columns: 1fr 1fr;
	}
	.gt-section .gt-stat,
	.gt-section .gt-fact {
		border-right: none;
		border-bottom: 1px solid var(--border);
		padding-right: 0;
	}
	.gt-section .gt-vgrid,
	.gt-section .gt-mods {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 860px) {
	.gt-section .gt-bars,
	.gt-section .gt-labels {
		gap: 8px;
	}
	.gt-section .gt-lb {
		font-size: 10.5px;
	}
	.gt-section .gt-lb b {
		font-size: 11px;
	}
	.gt-section .gt-lb .gt-r {
		display: none;
	}
	.gt-section .gt-b .gt-v {
		font-size: 10px;
	}
	.gt-section .gt-b.gt-me .gt-v {
		font-size: 12px;
	}
}
@media (max-width: 560px) {
	.gt-section .gt-stat-grid {
		grid-template-columns: 1fr;
	}
}

/* ─── banner photo (home hero, Centre page) — same locked-aspect,
   rounded, cover-fit treatment as the main site's .hero-visual
   (front-page.php/style.css:466+), taken further: a two-stop gradient
   for real depth (not just a legibility scrim), an always-visible
   caption (eyebrow + line) so the moment isn't just decorative, a slow
   hover zoom on the photo, and the caption nudging up half a step on
   hover — a quiet signal the whole thing is alive, not a static
   image. No video/play-button — this is a still photo. ─── */
.gt-section .gt-banner {
	padding-bottom: clamp(56px, 7vw, 88px);
}
.gt-section .gt-banner-inner {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--bg-warm);
	border: 1px solid var(--border);
}
.gt-section .gt-banner-inner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 42%;
	transition: transform 1.4s var(--ease);
}
.gt-section .gt-banner-inner:hover img {
	transform: scale(1.045);
}
.gt-section .gt-banner-inner::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(10, 10, 10, 0) 45%, rgba(10, 10, 10, 0.5) 100%),
		linear-gradient(90deg, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0) 42%);
	pointer-events: none;
}
.gt-section .gt-banner-caption {
	position: absolute;
	left: clamp(20px, 3vw, 40px);
	bottom: clamp(18px, 2.6vw, 32px);
	right: clamp(20px, 3vw, 40px);
	z-index: 2;
	transition: transform 0.5s var(--ease);
}
.gt-section .gt-banner-inner:hover .gt-banner-caption {
	transform: translateY(-6px);
}
.gt-section .gt-banner-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
}
.gt-section .gt-banner-eyebrow::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	flex-shrink: 0;
}
.gt-section .gt-banner-line {
	margin-top: 8px;
	font-size: clamp(19px, 2.6vw, 27px);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: #fff;
	max-width: 34ch;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}
@media (max-width: 640px) {
	.gt-section .gt-banner-inner {
		aspect-ratio: 4 / 3;
	}
}

/* ─── photo grid (home's "En images" section — 2×2 candid moments) ─── */
.gt-section .gt-photo-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-top: 40px;
}
.gt-section .gt-photo-grid-item {
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
}
.gt-section .gt-photo-grid-figure {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--bg-warm);
}
.gt-section .gt-photo-grid-figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}
.gt-section .gt-photo-grid-item:hover .gt-photo-grid-figure img {
	transform: scale(1.06);
}
.gt-section .gt-photo-grid-cap {
	padding: 12px 16px;
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.04em;
	color: var(--fg-muted);
}
@media (max-width: 640px) {
	.gt-section .gt-photo-grid {
		grid-template-columns: 1fr;
	}
}

/* ─── single feature photo (Centre's "Les espaces", Code d'Excellence,
   TD BAC) — a full-width rounded photo with an optional caption
   underneath, reused wherever one photo needs to sit beside a block
   of copy rather than in a grid. ─── */
.gt-section .gt-photo {
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--bg-warm);
}
.gt-section .gt-photo img {
	display: block;
	width: 100%;
	height: auto;
}
.gt-section .gt-photo-caption {
	margin-top: 14px;
	font-size: 14px;
	color: var(--fg-subtle);
	font-style: italic;
}

/* ─── photo pair (Centre's Teamup Fitness Club — two photos side by
   side, same rounded/bordered treatment as .gt-photo). ─── */
.gt-section .gt-photo-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 28px;
}
.gt-section .gt-photo-pair .gt-photo img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
@media (max-width: 640px) {
	.gt-section .gt-photo-pair {
		grid-template-columns: 1fr;
	}
}

/* ─── roster (student directory — grouped by cohort, name-only: no
   photos, no links, no personal data beyond the name itself, per the
   confidentiality rule in the knowledge base). Reuses .gt-sec-head's
   eyebrow/h2 pattern with a count appended on the same line. ─── */
.gt-section .gt-roster-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.gt-section .gt-roster-count {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--fg-subtle);
	white-space: nowrap;
	padding-bottom: 4px;
}
.gt-section .gt-roster-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.gt-section .gt-roster-item {
	display: block;
	padding: 13px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: 14px;
	color: var(--fg);
	text-decoration: none;
	transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.gt-section .gt-roster-item:hover {
	border-color: var(--border-strong);
	background: var(--bg-subtle);
}
@media (max-width: 900px) {
	.gt-section .gt-roster-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 560px) {
	.gt-section .gt-roster-grid {
		grid-template-columns: 1fr;
	}
	.gt-section .gt-roster-head {
		align-items: flex-start;
	}
}

/* ─── student profile (single gt_student) — ported from the design
   reference page-templates/gt-student-template.html: a record line,
   a masthead with a square photo placeholder, a rule, then a
   row-per-enrollment "Formations suivies" block (year · code · title
   · pipe-separated meta), newest first. Photo placeholder is literal
   ("PHOTO" + dimensions) per the reference rather than the initials-
   circle used elsewhere on the site — has_post_thumbnail() still
   takes over automatically once a real photo is uploaded. ─── */
.gt-section .gt-profile-record {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 8px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--fg-subtle);
}
.gt-section .gt-profile-record::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	flex-shrink: 0;
}
.gt-section .gt-profile-record .gt-sep {
	color: var(--border-strong);
}
.gt-section .gt-profile-back-row {
	padding: 36px 0 8px;
	font-size: 14px;
	color: var(--fg-subtle);
}
.gt-section .gt-profile-back-row a {
	color: var(--fg-muted);
	transition: color 0.15s var(--ease);
}
.gt-section .gt-profile-back-row a:hover {
	color: var(--fg);
}
.gt-section .gt-profile-hero {
	display: flex;
	gap: clamp(20px, 4vw, 28px);
	align-items: flex-start;
	padding: 24px 0 32px;
}
.gt-section .gt-profile-photo {
	width: 116px;
	height: 116px;
	flex: none;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--bg-warm);
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-family: var(--mono);
	font-size: 9.5px;
	line-height: 1.6;
	color: var(--fg-subtle);
}
.gt-section .gt-profile-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.gt-section .gt-profile-name {
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1;
}
.gt-section .gt-profile-name em {
	font-style: italic;
	font-weight: 500;
}
.gt-section .gt-profile-role {
	font-size: 16px;
	color: var(--fg-muted);
	margin-top: 12px;
	max-width: 44ch;
}
.gt-section .gt-profile-rule {
	border-top: 1px solid var(--fg);
}
.gt-section .gt-profile-block-head {
	padding-top: 28px;
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fg-subtle);
}
.gt-section .gt-profile-programs {
	display: flex;
	flex-direction: column;
}
.gt-section .gt-program-item {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 28px;
	padding: 26px 0;
	border-bottom: 1px solid var(--border-soft);
	align-items: start;
}
.gt-section .gt-program-item:last-child {
	border-bottom: none;
}
.gt-section .gt-program-year {
	font-family: var(--mono);
	font-size: 20px;
	color: var(--fg-subtle);
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
	padding-top: 2px;
}
.gt-section .gt-program-code {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.1;
}
.gt-section .gt-program-title {
	font-size: 15.5px;
	color: var(--fg-muted);
	margin-top: 6px;
}
.gt-section .gt-program-meta {
	display: flex;
	flex-wrap: wrap;
	margin-top: 15px;
}
.gt-section .gt-program-meta span {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--fg-subtle);
	font-variant-numeric: tabular-nums;
	padding-right: 14px;
	margin-right: 14px;
	border-right: 1px solid var(--border);
}
.gt-section .gt-program-meta span:last-child {
	border-right: none;
	padding-right: 0;
	margin-right: 0;
}
@media (max-width: 640px) {
	.gt-section .gt-profile-hero {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.gt-section .gt-program-item {
		grid-template-columns: 56px 1fr;
		gap: 16px;
	}
	.gt-section .gt-program-year {
		font-size: 15px;
	}
	.gt-section .gt-program-code {
		font-size: 20px;
	}
}

/* ─── student directory grid (/fr/gt/eleves/, /gt/students/) — a photo
   card grid per season, matching the main site's /iam/ builder grid
   (.teamup-iam .grid/.card/.card-media/.card-info/.card-name,
   style.css:2556+) rather than the plain name-chip list this replaces.
   Photo slot is a placeholder until real photos are uploaded — see
   teamup_gt_student_avatar_html(). ─── */
.gt-section .gt-student-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.gt-section .gt-student-grid > li {
	display: contents;
}
.gt-section .gt-student-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}
.gt-section .gt-student-card-media {
	aspect-ratio: 1 / 1.15;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--bg-warm);
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-family: var(--mono);
	font-size: 10px;
	color: var(--fg-subtle);
	transition: transform 0.3s var(--ease), border-color 0.15s var(--ease);
}
.gt-section .gt-student-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.gt-section .gt-student-card:hover .gt-student-card-media {
	transform: translateY(-4px);
	border-color: var(--border-strong);
}
.gt-section .gt-student-card-name {
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.3;
	margin-top: 10px;
	color: var(--fg);
}
@media (max-width: 900px) {
	.gt-section .gt-student-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}
@media (max-width: 560px) {
	.gt-section .gt-student-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}
