/*
 * MindTech Academy — Design system (v0.2: navy / steel blue / gold)
 * Shared by the child theme (header, footer, templates) and Elementor sections.
 * Convention: every custom class is prefixed `mt-` (BEM-like: block__element--modifier).
 * Animations live in animations.css.
 */

/* ---------- 1. Fonts (self-hosted, latin subset) ---------- */
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin-wght.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

/* ---------- 2. Tokens ---------- */
:root {
	/* Brand */
	--mt-navy: #081426;      /* hero, footer */
	--mt-navy-2: #0f2340;    /* dark sections, tiles */
	--mt-navy-3: #16305a;
	--mt-steel: #1d4f91;     /* links, secondary buttons, highlights on white */
	--mt-steel-dark: #163e73;
	--mt-gold: #f5b841;      /* primary CTA background, accent on dark */
	--mt-gold-light: #ffd27a;
	--mt-gold-ink: #8a5b00;  /* gold-family text on white (AA) */

	/* Neutrals */
	--mt-ink: #0f172a;
	--mt-text: #334155;
	--mt-muted: #5b6577;
	--mt-line: #e3e8f0;
	--mt-soft: #f6f8fb;
	--mt-white: #ffffff;
	--mt-on-dark: #e6edf7;
	--mt-on-dark-muted: #b9c6da;

	/* Gradients */
	--mt-amber: #c27c0e;     /* large headings only: 3.4:1 on white (AA large text) */
	--mt-grad-text: linear-gradient(90deg, var(--mt-steel) 0%, var(--mt-amber) 50%, var(--mt-steel) 100%);
	--mt-grad-text-dark: linear-gradient(90deg, var(--mt-gold) 0%, var(--mt-gold-light) 50%, var(--mt-gold) 100%);
	--mt-grad-icon: linear-gradient(135deg, #e9f0fb 0%, #fdf3df 100%);

	/* Type */
	--mt-font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
	--mt-font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	--mt-font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
	--mt-fs-hero: clamp(2.3rem, 1.3rem + 4vw, 4rem);
	--mt-fs-h2: clamp(1.85rem, 1.25rem + 2.2vw, 2.85rem);
	--mt-fs-h3: 1.2rem;
	--mt-fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem);
	--mt-fs-body: 1.0625rem;
	--mt-fs-small: 0.9375rem;

	/* Layout */
	--mt-container: 1140px; /* max content width (header, sections, footer, Elementor boxed sections) */
	--mt-gutter: clamp(16px, 4vw, 32px);
	--mt-section-y: clamp(64px, 8vw, 112px);
	--mt-radius: 18px;
	--mt-radius-sm: 10px;
	--mt-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px rgba(15, 23, 42, .07);
	--mt-shadow-hover: 0 4px 8px rgba(15, 23, 42, .05), 0 24px 50px rgba(15, 23, 42, .13);
	--mt-shadow-gold: 0 10px 28px rgba(245, 184, 65, .35);
	--mt-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
	font-family: var(--mt-font-body);
	font-size: var(--mt-fs-body);
	line-height: 1.65;
	color: var(--mt-text);
	background: var(--mt-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--mt-font-head);
	color: var(--mt-ink);
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-weight: 700;
	margin: 0 0 .5em;
}
h1, h2 { font-weight: 800; }
p { margin: 0 0 1em; }
a { color: var(--mt-steel); text-underline-offset: .18em; }
a:hover { color: var(--mt-steel-dark); }
img, svg { max-width: 100%; }
::selection { background: var(--mt-gold); color: var(--mt-navy); }
:focus-visible {
	outline: 3px solid var(--mt-steel);
	outline-offset: 3px;
	border-radius: 4px;
}
.mt-section--dark :focus-visible,
.mt-hero :focus-visible,
.mt-footer :focus-visible,
.mt-cta :focus-visible { outline-color: var(--mt-gold); }

.mt-skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--mt-white);
	color: var(--mt-ink);
	font-weight: 600;
	border-radius: var(--mt-radius-sm);
	box-shadow: var(--mt-shadow);
}
.mt-skip-link:focus { top: 12px; }
.mt-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}
.mt-icon {
	width: 1.5em;
	height: 1.5em;
	flex: none;
	stroke-width: 1.75;
}

/* Highlighted words in headings: <span class="mt-hl"> */
.mt-hl {
	background: var(--mt-grad-text);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}
.mt-section--dark .mt-hl,
.mt-hero .mt-hl,
.mt-cta .mt-hl { background-image: var(--mt-grad-text-dark); }

/* ---------- 4. Layout ---------- */
.mt-container {
	width: 100%;
	max-width: calc(var(--mt-container) + 2 * var(--mt-gutter));
	margin-inline: auto;
	padding-inline: var(--mt-gutter);
}
.mt-section { position: relative; padding-block: var(--mt-section-y); }
.mt-section--soft { background: var(--mt-soft); }
.mt-section--dark {
	background: var(--mt-navy-2);
	color: var(--mt-on-dark-muted);
	overflow: hidden;
}
.mt-section--dark h2,
.mt-section--dark h3 { color: var(--mt-white); }

.mt-section__head {
	max-width: 760px;
	margin-bottom: clamp(36px, 5vw, 60px);
}
.mt-section__head--center { margin-inline: auto; text-align: center; }
.mt-section__head--split {
	max-width: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.mt-section__head--split > div { max-width: 680px; }

.mt-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	font-family: var(--mt-font-head);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mt-gold-ink);
}
.mt-eyebrow::before {
	content: "";
	width: 26px; height: 2px;
	background: currentColor;
	border-radius: 2px;
}
.mt-section--dark .mt-eyebrow,
.mt-hero .mt-eyebrow,
.mt-cta .mt-eyebrow { color: var(--mt-gold); }

.mt-title { font-size: var(--mt-fs-h2); }
.mt-lead {
	font-size: var(--mt-fs-lead);
	color: var(--mt-muted);
	margin: 0;
}
.mt-section--dark .mt-lead { color: var(--mt-on-dark-muted); }

.mt-grid {
	display: grid;
	gap: clamp(16px, 2.2vw, 26px);
	grid-template-columns: repeat(var(--mt-cols, 3), minmax(0, 1fr));
}
.mt-grid--2 { --mt-cols: 2; }
.mt-grid--3 { --mt-cols: 3; }
.mt-grid--4 { --mt-cols: 4; }

/* ---------- 5. Buttons ---------- */
.mt-btn {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 12px 26px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--mt-font-head);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .25s var(--mt-ease), color .25s var(--mt-ease), border-color .25s var(--mt-ease), transform .25s var(--mt-ease), box-shadow .25s var(--mt-ease);
}
.mt-btn .mt-icon { width: 1.15em; height: 1.15em; transition: transform .25s var(--mt-ease); }
.mt-btn:hover .mt-icon { transform: translateX(4px); }
.mt-btn--primary { background: var(--mt-gold); color: var(--mt-navy); box-shadow: var(--mt-shadow-gold); }
.mt-btn--primary:hover { background: var(--mt-gold-light); color: var(--mt-navy); transform: translateY(-2px); }
.mt-btn--outline { border-color: var(--mt-navy); color: var(--mt-navy); background: transparent; }
.mt-btn--outline:hover { background: var(--mt-navy); color: var(--mt-white); }
.mt-btn--steel { background: var(--mt-steel); color: var(--mt-white); }
.mt-btn--steel:hover { background: var(--mt-steel-dark); color: var(--mt-white); transform: translateY(-2px); }
.mt-btn--light { border-color: rgba(255, 255, 255, .3); color: var(--mt-white); background: rgba(255, 255, 255, .04); }
.mt-btn--light:hover { border-color: var(--mt-white); background: rgba(255, 255, 255, .1); color: var(--mt-white); }
.mt-btn--sm { min-height: 42px; padding: 9px 20px; font-size: .9375rem; }
.mt-btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.mt-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--mt-font-head);
	font-weight: 600;
	font-size: .9375rem;
	text-decoration: none;
	color: var(--mt-steel);
}
.mt-link-arrow .mt-icon { width: 1.1em; height: 1.1em; transition: transform .25s var(--mt-ease); }
.mt-link-arrow:hover .mt-icon,
.mt-card:hover .mt-link-arrow .mt-icon { transform: translateX(4px); }
.mt-section--dark .mt-link-arrow { color: var(--mt-gold); }

/* ---------- 6. Header (light) ---------- */
.mt-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--mt-line);
	transition: box-shadow .3s var(--mt-ease), background-color .3s var(--mt-ease);
}
.mt-header::before { /* brand accent line */
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, var(--mt-navy) 0%, var(--mt-steel) 45%, var(--mt-gold) 100%);
}
.mt-header.is-scrolled { box-shadow: 0 8px 30px rgba(15, 23, 42, .08); background: rgba(255, 255, 255, .97); }
.admin-bar .mt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mt-header { top: 46px; } }

.mt-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 80px;
	transition: min-height .3s var(--mt-ease);
}
.mt-header.is-scrolled .mt-header__inner { min-height: 68px; }
.mt-header__logo { display: inline-flex; flex: none; }
.mt-header__logo img { display: block; height: 44px; width: auto; }
.mt-nav { margin-left: auto; }
.mt-nav ul {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0; padding: 0;
	list-style: none;
}
.mt-nav a {
	display: block;
	padding: 9px 10px;
	white-space: nowrap; /* an entry never wraps on two lines */
	border-radius: 999px;
	color: var(--mt-ink);
	font-family: var(--mt-font-head);
	font-size: .9rem;
	font-weight: 500;
	text-decoration: none;
	transition: color .2s, background-color .2s;
}
.mt-nav a:hover { color: var(--mt-steel); background: #edf2fa; }
.mt-nav .current-menu-item > a,
.mt-nav .current_page_item > a,
.mt-nav .current_page_parent > a,
.mt-nav a[aria-current="page"] { color: var(--mt-white); background: var(--mt-navy); font-weight: 600; }
.mt-header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.mt-header__actions .mt-btn--light { border-color: var(--mt-navy); color: var(--mt-navy); background: transparent; }
.mt-header__actions .mt-btn--light:hover { background: var(--mt-navy); color: var(--mt-white); }
.mt-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px; height: 48px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--mt-line);
	border-radius: 12px;
	background: var(--mt-white);
	color: var(--mt-navy);
	cursor: pointer;
}
.mt-header .mt-header__toggle:hover,
.mt-header .mt-header__toggle:focus { /* beats Hello reset [type=button]:hover */
	background: var(--mt-soft);
	border-color: var(--mt-navy);
	color: var(--mt-navy);
}
.mt-header__toggle .mt-icon--close { display: none; }
.mt-header__toggle[aria-expanded="true"] .mt-icon--open { display: none; }
.mt-header__toggle[aria-expanded="true"] .mt-icon--close { display: block; }

@media (max-width: 1279px) { /* burger menu below 1280px: logo + 8 entries + CTA need ~1270px */
	.mt-header__toggle { display: inline-flex; }
	.mt-header__panel {
		position: absolute;
		top: 100%; left: 0; right: 0;
		display: none;
		padding: 12px var(--mt-gutter) 24px;
		background: var(--mt-white);
		border-bottom: 1px solid var(--mt-line);
		box-shadow: 0 20px 40px rgba(15, 23, 42, .1);
		max-height: calc(100vh - 80px);
		overflow-y: auto;
	}
	.mt-header__panel.is-open { display: block; animation: mt-drop .25s var(--mt-ease); }
	.mt-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
	.mt-nav a { padding: 13px 16px; font-size: 1.0625rem; border-radius: 12px; }
	.mt-header__actions { flex-direction: column; align-items: stretch; margin-top: 16px; }
}
@media (min-width: 1280px) {
	.mt-header__panel { display: contents; }
}

/* ---------- 7. Hero ---------- */
.mt-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--mt-navy);
	color: var(--mt-on-dark-muted);
	padding-block: clamp(64px, 9vw, 120px) clamp(72px, 10vw, 128px);
}
.mt-hero::before { /* subtle grid */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 52px 52px;
	mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, #000 15%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, #000 15%, transparent 75%);
	pointer-events: none;
}
.mt-hero::after { /* colour glows */
	content: "";
	position: absolute;
	z-index: -1;
	inset: -20% -10% auto auto;
	width: 70%;
	height: 120%;
	background:
		radial-gradient(closest-side, rgba(29, 79, 145, .55), transparent 70%) 60% 30% / 70% 70% no-repeat,
		radial-gradient(closest-side, rgba(245, 184, 65, .18), transparent 70%) 20% 75% / 55% 55% no-repeat;
	filter: blur(10px);
	pointer-events: none;
}
.mt-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	align-items: center;
	gap: clamp(40px, 6vw, 80px);
}
.mt-hero h1 {
	font-size: var(--mt-fs-hero);
	color: var(--mt-white);
	letter-spacing: -0.035em;
	line-height: 1.08;
	margin-bottom: 24px;
}
.mt-hero h1 span:not(.mt-hl) {
	background: var(--mt-grad-text-dark);
	background-size: 200% auto;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
}
.mt-hero .mt-lead { color: var(--mt-on-dark-muted); max-width: 580px; margin-bottom: 36px; }
.mt-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 34px 0 0;
	padding: 0;
	list-style: none;
	font-size: .875rem;
	color: var(--mt-on-dark);
}
.mt-hero__tags li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 999px;
	background: rgba(255, 255, 255, .04);
}
.mt-hero__tags .mt-icon { width: 16px; height: 16px; color: var(--mt-gold); }

/* Hero visual: rings + terminal + floating badges */
.mt-hero__visual {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 440px;
}
.mt-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.mt-rings i {
	position: absolute;
	width: var(--s); aspect-ratio: 1;
	border-radius: 50%;
	border: 1px solid rgba(185, 198, 218, .14);
}
.mt-rings i:nth-child(1) { --s: 62%; }
.mt-rings i:nth-child(2) { --s: 86%; border-color: rgba(185, 198, 218, .1); }
.mt-rings i:nth-child(3) { --s: 112%; border-color: rgba(185, 198, 218, .07); }
.mt-rings i:nth-child(4) { --s: 40%; border: 0; background: radial-gradient(circle, rgba(245, 184, 65, .16), transparent 70%); }

.mt-badge-float {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 15px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 999px;
	background: rgba(15, 35, 64, .85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
	color: var(--mt-white);
	font-family: var(--mt-font-head);
	font-size: .8125rem;
	font-weight: 600;
	white-space: nowrap;
}
.mt-badge-float .mt-icon { width: 16px; height: 16px; color: var(--mt-gold); }
/* Badges sit on the edges of the visual, never over the terminal text */
.mt-badge-float--1 { top: 3%; right: 4%; }
.mt-badge-float--2 { bottom: 3%; left: 2%; }
.mt-badge-float--3 { top: 3%; left: 2%; }
.mt-dot {
	position: relative;
	width: 9px; height: 9px;
	border-radius: 50%;
	background: #34d399;
}

/* Terminal illustration */
.mt-terminal {
	position: relative;
	z-index: 1;
	width: min(100%, 470px);
	background: rgba(6, 15, 30, .92);
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: var(--mt-radius);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(245, 184, 65, .06);
	font-family: var(--mt-font-mono);
	font-size: .85rem;
	line-height: 1.75;
	color: #c9d6ea;
	overflow: hidden;
}
.mt-terminal__bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: rgba(255, 255, 255, .04);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	font-size: .75rem;
	color: var(--mt-on-dark-muted);
}
.mt-terminal__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mt-terminal__bar i:nth-child(2) { background: #febc2e; }
.mt-terminal__bar i:nth-child(3) { background: #28c840; }
.mt-terminal__bar span { margin-left: 8px; }
.mt-terminal pre {
	margin: 0;
	padding: 20px 22px 24px;
	white-space: pre-wrap;
	word-break: break-word;
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	overflow: visible;
}
.mt-terminal .ln { display: block; min-height: 1.75em; }
.mt-terminal .p { color: var(--mt-gold); }
.mt-terminal .c { color: #7f93b3; }
.mt-terminal .ok { color: #4ade80; }
.mt-terminal .k { color: #93c5fd; }
.mt-cursor {
	display: inline-block;
	width: .6em; height: 1.1em;
	vertical-align: -.2em;
	background: var(--mt-gold);
}

/* ---------- 8. Tech marquee ---------- */
.mt-marquee-band {
	padding-block: 34px;
	background: var(--mt-white);
	border-bottom: 1px solid var(--mt-line);
}
.mt-marquee-band__title {
	margin: 0 0 18px;
	text-align: center;
	font-family: var(--mt-font-head);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--mt-muted);
}
.mt-marquee {
	position: relative;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.mt-marquee__track {
	display: flex;
	gap: 14px;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
}
.mt-marquee__track li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	border: 1px solid var(--mt-line);
	border-radius: 999px;
	background: var(--mt-soft);
	color: var(--mt-ink);
	font-family: var(--mt-font-head);
	font-size: .9rem;
	font-weight: 600;
	white-space: nowrap;
}
.mt-marquee__track .mt-icon { width: 18px; height: 18px; color: var(--mt-steel); }

/* ---------- 9. Cards ---------- */
.mt-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: clamp(22px, 2.4vw, 30px);
	background: var(--mt-white);
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
	transition: box-shadow .35s var(--mt-ease), border-color .35s var(--mt-ease), transform .35s var(--mt-ease);
}
.mt-card:hover { box-shadow: var(--mt-shadow-hover); border-color: #d3dceb; transform: translateY(-6px); }
.mt-card h3 { font-size: var(--mt-fs-h3); margin-bottom: 10px; }
.mt-card h3 a { color: inherit; text-decoration: none; }
.mt-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.mt-card p { color: var(--mt-muted); font-size: var(--mt-fs-small); }
.mt-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px; height: 54px;
	margin-bottom: 20px;
	border-radius: 16px;
	background: var(--mt-grad-icon);
	color: var(--mt-steel);
	transition: background .35s var(--mt-ease), color .35s var(--mt-ease), transform .35s var(--mt-ease);
}
.mt-card__icon .mt-icon { width: 26px; height: 26px; }
.mt-card:hover .mt-card__icon,
.mt-feature:hover .mt-card__icon { background: var(--mt-navy); color: var(--mt-gold); transform: rotate(-6deg) scale(1.05); }
.mt-card__foot {
	margin-top: auto;
	padding-top: 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-top: 1px dashed transparent;
}
.mt-card__cat,
.mt-card p.mt-card__cat {
	font-family: var(--mt-font-head);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--mt-gold-ink);
	margin-bottom: 8px;
}

/* Pillar cards (3 pôles) */
.mt-pillar {
	padding: clamp(26px, 3vw, 36px);
	overflow: hidden;
}
.mt-pillar::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: linear-gradient(90deg, var(--mt-steel), var(--mt-gold));
	transform: scaleX(.25);
	transform-origin: left;
	transition: transform .5s var(--mt-ease);
}
.mt-pillar:hover::before { transform: scaleX(1); }
.mt-pillar ul { margin: 6px 0 22px; padding: 0; list-style: none; }
.mt-pillar li {
	display: flex;
	gap: 10px;
	padding: 6px 0;
	font-size: var(--mt-fs-small);
	color: var(--mt-text);
}
.mt-pillar li .mt-icon { width: 18px; height: 18px; margin-top: 3px; color: var(--mt-steel); }
.mt-pillar .mt-link-arrow { margin-top: auto; position: relative; z-index: 1; }

/* Meta: level + skills */
.mt-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}
.mt-tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 11px;
	border-radius: 999px;
	background: #edf2fa;
	color: var(--mt-steel-dark);
	font-size: .8rem;
	font-weight: 500;
	line-height: 1.4;
}
.mt-level {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: .8125rem;
	font-weight: 600;
	color: var(--mt-ink);
}
.mt-level__bars { display: inline-flex; gap: 3px; }
.mt-level__bars i { width: 6px; height: 14px; border-radius: 3px; background: var(--mt-line); }
.mt-level__bars i.on { background: var(--mt-gold); }

/* Service tiles on dark */
.mt-tile {
	display: flex;
	gap: 16px;
	padding: 22px;
	border-radius: var(--mt-radius);
	background: rgba(255, 255, 255, .03);
	border: 1px solid rgba(255, 255, 255, .08);
	transition: border-color .3s, background-color .3s, transform .3s var(--mt-ease);
}
.mt-tile:hover { border-color: rgba(245, 184, 65, .5); background: rgba(255, 255, 255, .06); transform: translateY(-4px); }
.mt-tile .mt-icon { width: 26px; height: 26px; color: var(--mt-gold); margin-top: 2px; }
.mt-tile h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.mt-tile p { margin: 0; font-size: var(--mt-fs-small); color: var(--mt-on-dark-muted); }

/* ---------- 10. Split layouts ---------- */
.mt-split {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: start;
}
.mt-split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.mt-split__sticky { position: sticky; top: 120px; }

.mt-checklist { margin: 24px 0 32px; padding: 0; list-style: none; display: grid; gap: 12px; }
.mt-checklist li { display: flex; gap: 12px; align-items: flex-start; }
.mt-checklist .mt-icon {
	width: 22px; height: 22px;
	padding: 3px;
	border-radius: 50%;
	background: #fdf3df;
	color: var(--mt-gold-ink);
	margin-top: 2px;
}
.mt-checklist strong { color: var(--mt-ink); }

/* Steps / process */
.mt-steps {
	counter-reset: mt-step;
	display: grid;
	gap: 0;
	margin: 0; padding: 0;
	list-style: none;
}
.mt-steps li {
	counter-increment: mt-step;
	position: relative;
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 18px;
	padding-bottom: 26px;
}
.mt-steps li::before {
	content: counter(mt-step, decimal-leading-zero);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px; height: 52px;
	border-radius: 50%;
	background: var(--mt-white);
	border: 2px solid var(--mt-line);
	font-family: var(--mt-font-head);
	font-weight: 700;
	font-size: .95rem;
	color: var(--mt-steel);
	position: relative;
	z-index: 1;
	transition: background-color .4s var(--mt-ease), border-color .4s var(--mt-ease), color .4s var(--mt-ease);
}
.mt-steps li:hover::before { background: var(--mt-gold); border-color: var(--mt-gold); color: var(--mt-navy); }
.mt-steps li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 25px; top: 52px; bottom: 0;
	width: 2px;
	background: linear-gradient(var(--mt-steel), var(--mt-gold));
	opacity: .35;
}
.mt-steps h3 { font-size: 1.0625rem; margin: 12px 0 4px; }
.mt-steps p { margin: 0; font-size: var(--mt-fs-small); color: var(--mt-muted); }

/* Method / advantages */
.mt-feature { display: flex; flex-direction: column; gap: 6px; }
.mt-feature .mt-card__icon { margin-bottom: 14px; }
.mt-feature h3 { font-size: 1.125rem; margin-bottom: 4px; }
.mt-feature p { margin: 0; font-size: var(--mt-fs-small); color: var(--mt-muted); }

/* Placeholder state (projects not yet documented) */
.mt-placeholder {
	border-style: dashed;
	border-color: #c9d4e4;
	background: var(--mt-soft);
}
.mt-placeholder:hover { transform: none; box-shadow: none; }
.mt-placeholder:hover .mt-card__icon { transform: none; }
.mt-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .8125rem;
	font-weight: 600;
	color: var(--mt-muted);
}
.mt-status .mt-icon { width: 16px; height: 16px; }

/* Blog cards */
.mt-post { overflow: hidden; }
.mt-post__thumb {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: calc(-1 * clamp(22px, 2.4vw, 30px)) calc(-1 * clamp(22px, 2.4vw, 30px)) 20px;
	background: radial-gradient(circle at 70% 30%, var(--mt-navy-3), var(--mt-navy) 70%);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--mt-gold);
}
.mt-post__thumb::after {
	content: "";
	position: absolute;
	width: 60%; aspect-ratio: 1;
	border-radius: 50%;
	border: 1px solid rgba(245, 184, 65, .25);
	box-shadow: 0 0 0 30px rgba(245, 184, 65, .04), 0 0 0 60px rgba(245, 184, 65, .03);
}
.mt-post__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--mt-ease); }
.mt-post:hover .mt-post__thumb img { transform: scale(1.06); }
.mt-post__thumb .mt-icon { position: relative; z-index: 1; width: 46px; height: 46px; transition: transform .5s var(--mt-ease); }
.mt-post:hover .mt-post__thumb .mt-icon { transform: scale(1.15); }
.mt-post__meta { font-size: .8125rem; color: var(--mt-muted); }

/* ---------- 11. CTA band ---------- */
.mt-cta {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 32px;
	padding: clamp(32px, 5vw, 64px);
	border-radius: 24px;
	background: linear-gradient(120deg, var(--mt-navy) 0%, var(--mt-navy-2) 55%, var(--mt-steel-dark) 100%);
	color: var(--mt-on-dark-muted);
}
.mt-cta::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: -120px; top: -140px;
	width: 380px; height: 380px;
	border-radius: 50%;
	border: 1px solid rgba(245, 184, 65, .3);
	box-shadow: 0 0 0 60px rgba(245, 184, 65, .05), 0 0 0 120px rgba(245, 184, 65, .03);
	pointer-events: none;
}
.mt-cta h2 { color: var(--mt-white); font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 10px; }
.mt-cta p { margin: 0; max-width: 620px; }
.mt-cta .mt-btn-row { position: relative; z-index: 1; }

/* ---------- 12. Footer ---------- */
.mt-footer {
	position: relative;
	overflow: hidden;
	background: radial-gradient(ellipse at 85% 0%, rgba(29, 79, 145, .35), transparent 55%), var(--mt-navy);
	color: var(--mt-on-dark-muted);
	font-size: var(--mt-fs-small);
	padding-top: clamp(56px, 7vw, 88px);
}
.mt-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr repeat(3, 1fr);
	gap: 40px;
	padding-bottom: 48px;
}
.mt-footer__brand img { height: 44px; width: auto; margin-bottom: 18px; }
.mt-footer__brand p { max-width: 340px; }
.mt-footer h2 {
	font-size: .9rem;
	letter-spacing: .02em;
	color: var(--mt-white);
	margin-bottom: 18px;
	font-weight: 700;
}
.mt-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mt-footer a { color: var(--mt-on-dark-muted); text-decoration: none; transition: color .2s, padding-left .25s var(--mt-ease); }
.mt-footer nav a:hover { color: var(--mt-gold); padding-left: 4px; }
.mt-footer__contact { margin-top: 18px !important; }
.mt-footer__contact li { display: flex; align-items: center; gap: 8px; }
.mt-footer__contact .mt-icon { width: 18px; height: 18px; color: var(--mt-gold); }
.mt-footer .mt-footer__social { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; }
.mt-footer__social a { text-decoration: underline; text-underline-offset: .2em; }
.mt-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-block: 22px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	font-size: .875rem;
}
.mt-footer__bottom p { margin: 0; }
.mt-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }
.mt-footer__bottom a:hover { color: var(--mt-white); }

/* ---------- 13. Notices (demo / to-complete content) ---------- */
.mt-todo {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 8px;
	border-radius: 6px;
	background: #fef3c7;
	color: #78350f;
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .02em;
}

/* ---------- 14. PHP templates: page hero, blog, article ---------- */
.mt-hero--page { padding-block: clamp(56px, 7vw, 96px); }
.mt-hero__text { position: relative; max-width: 780px; }
.mt-hero--page h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); margin-bottom: 16px; }
.mt-hero--page .mt-lead { margin: 0; }
.mt-hero__meta { margin: 8px 0 0; font-size: var(--mt-fs-small); color: var(--mt-on-dark-muted); }

.mt-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.mt-chips a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--mt-line);
	border-radius: 999px;
	background: var(--mt-white);
	color: var(--mt-text);
	font-size: .875rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color .2s, color .2s, background-color .2s;
}
.mt-chips a:hover { border-color: var(--mt-steel); color: var(--mt-steel); }
.mt-chips a[aria-current="page"] { background: var(--mt-navy); border-color: var(--mt-navy); color: var(--mt-white); }

.mt-pagination { margin-top: 40px; }
.mt-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; padding: 0 14px;
	border: 1px solid var(--mt-line); border-radius: 999px;
	background: var(--mt-white); color: var(--mt-ink); text-decoration: none; font-weight: 600;
}
.mt-pagination .page-numbers.current { background: var(--mt-navy); border-color: var(--mt-navy); color: var(--mt-white); }

.mt-article { max-width: calc(760px + 2 * var(--mt-gutter)); }
.mt-article__cover { margin: 0 0 32px; border-radius: var(--mt-radius); overflow: hidden; }
.mt-prose { font-size: 1.0625rem; line-height: 1.75; color: var(--mt-text); }
.mt-prose > * + * { margin-top: 1.1em; }
.mt-prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); margin: 1.8em 0 .5em; }
.mt-prose h3 { font-size: 1.25rem; margin: 1.6em 0 .4em; }
.mt-prose > :first-child { margin-top: 0; }
.mt-prose p { margin-bottom: 0; }
.mt-prose ul, .mt-prose ol { padding-left: 1.4em; }
.mt-prose li + li { margin-top: .4em; }
.mt-prose a { font-weight: 500; }
.mt-prose code { padding: .15em .4em; border-radius: 5px; background: var(--mt-soft); border: 1px solid var(--mt-line); font-family: var(--mt-font-mono); font-size: .9em; }
.mt-prose pre { padding: 18px 20px; border-radius: var(--mt-radius-sm); background: #0a1428; color: #c9d6ea; overflow-x: auto; font-family: var(--mt-font-mono); font-size: .9rem; line-height: 1.6; }
.mt-prose pre code { padding: 0; border: 0; background: none; color: inherit; }
.mt-prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--mt-gold); color: var(--mt-muted); }
.mt-prose img { height: auto; border-radius: var(--mt-radius-sm); }

.mt-related { margin-top: 56px; padding: 28px; border-radius: var(--mt-radius); background: var(--mt-soft); border: 1px solid var(--mt-line); }
.mt-related h2 { font-size: 1.25rem; margin-bottom: 16px; }
.mt-related ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.mt-related a {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	border-radius: 14px;
	background: var(--mt-white);
	border: 1px solid var(--mt-line);
	color: var(--mt-ink);
	text-decoration: none;
	font-weight: 600;
	transition: border-color .25s, color .25s, transform .25s var(--mt-ease);
}
.mt-related a:hover { border-color: var(--mt-steel); color: var(--mt-steel); transform: translateX(4px); }
.mt-related__type { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mt-gold-ink); min-width: 96px; }
.mt-related .mt-icon { width: 18px; height: 18px; }
.mt-article__nav { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--mt-line); font-weight: 600; }
.mt-article__next { margin-left: auto; text-align: right; }
.mt-article__nav a { text-decoration: none; }

/* ---------- 15. Trainings: cards, catalogue, detail page ---------- */
/* Card media: real image fills the 16:9 box; the branded ring decoration is only for the fallback. */
.mt-post__thumb.has-image::after { display: none; }
.mt-post__thumb > img { display: block; }
.mt-post__thumb .mt-status-pill {
	position: absolute;
	z-index: 1;
	left: 14px; bottom: 14px;
	background: rgba(255, 255, 255, .94);
	border-color: transparent;
	box-shadow: 0 4px 14px rgba(8, 20, 38, .18);
}
.mt-post__thumb .mt-status-pill--ouvertes { background: #e8f8ef; }
.mt-post__thumb .mt-status-pill--sur-demande { background: #edf2fa; }

/* Training page hero with image */
.mt-fiche-hero__grid.has-image {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	align-items: center;
	gap: clamp(32px, 5vw, 64px);
}
.mt-fiche-hero__media {
	position: relative;
	margin: 0;
	aspect-ratio: 16 / 9;
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .12);
	box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}
.mt-fiche-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-article__cover { aspect-ratio: 16 / 9; }
.mt-article__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1024px) {
	.mt-fiche-hero__grid.has-image { grid-template-columns: minmax(0, 1fr); }
}
.mt-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	background: var(--mt-soft);
	color: var(--mt-muted);
	border: 1px solid var(--mt-line);
}
.mt-status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mt-status-pill--ouvertes { background: #e8f8ef; color: #136c3a; border-color: #bfe9d1; }
.mt-status-pill--sur-demande { background: #edf2fa; color: var(--mt-steel-dark); border-color: #d3dfef; }

.mt-catalog__intro {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	margin-bottom: 28px;
	padding: 22px 24px;
	border-radius: var(--mt-radius);
	background: var(--mt-soft);
	border: 1px solid var(--mt-line);
	scroll-margin-top: 160px;
	animation: mt-drop .35s var(--mt-ease);
}
.mt-catalog__intro[hidden] { display: none; }
.mt-catalog__intro .mt-card__icon { margin: 0; flex: none; }
.mt-catalog__title { margin: 0 0 4px; font-family: var(--mt-font-head); font-size: 1.25rem; font-weight: 700; color: var(--mt-ink); }
.mt-catalog__intro p:last-child { margin-bottom: 0; color: var(--mt-muted); }
[data-mt-grid] > [hidden] { display: none; }
.mt-chips__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--mt-soft); color: var(--mt-muted); font-size: .75rem; font-weight: 600; }
.mt-chips button[aria-pressed="true"] .mt-chips__count { background: rgba(255, 255, 255, .18); color: var(--mt-white); }
.mt-chips--filter { position: sticky; top: 76px; z-index: 5; padding: 12px 0; margin-bottom: 40px; background: linear-gradient(var(--mt-white) 70%, transparent); }
.admin-bar .mt-chips--filter { top: 108px; }
.mt-chips button {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--mt-line);
	border-radius: 999px;
	background: var(--mt-white);
	color: var(--mt-text);
	font-family: var(--mt-font-body);
	font-size: .875rem;
	font-weight: 500;
	cursor: pointer;
	transition: border-color .2s, color .2s, background-color .2s;
}
.mt-chips button:hover { border-color: var(--mt-steel); color: var(--mt-steel); background: var(--mt-white); }
.mt-chips button[aria-pressed="true"] { background: var(--mt-navy); border-color: var(--mt-navy); color: var(--mt-white); }

/* Detail page */
.mt-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; font-size: .875rem; }
.mt-breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: var(--mt-on-dark-muted); }
.mt-breadcrumb li + li::before { content: "›"; opacity: .6; }
.mt-breadcrumb a { color: var(--mt-on-dark); text-decoration: none; }
.mt-breadcrumb a:hover { color: var(--mt-gold); }
.mt-breadcrumb [aria-current] { color: var(--mt-white); font-weight: 600; }
.mt-fiche-hero .mt-lead { margin-bottom: 26px; }
.mt-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.mt-facts li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 999px;
	background: rgba(255, 255, 255, .05);
	font-size: .875rem;
	color: var(--mt-on-dark-muted);
}
.mt-facts .mt-icon { width: 16px; height: 16px; color: var(--mt-gold); }
.mt-facts strong { color: var(--mt-white); font-weight: 600; }
.mt-facts__status .mt-dot { background: var(--mt-gold); }
.mt-facts__status--ouvertes .mt-dot { background: #34d399; }

.mt-subnav {
	position: sticky;
	top: 68px;
	z-index: 50;
	background: rgba(255, 255, 255, .95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--mt-line);
}
.admin-bar .mt-subnav { top: 100px; }
.mt-subnav ul { display: flex; gap: 4px; margin: 0; padding: 10px 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.mt-subnav ul::-webkit-scrollbar { display: none; }
.mt-subnav a {
	display: block;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--mt-text);
	font-family: var(--mt-font-head);
	font-size: .85rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s, color .2s;
}
.mt-subnav a:hover { background: var(--mt-soft); color: var(--mt-steel); }
.mt-subnav a.is-active { background: #edf2fa; color: var(--mt-steel-dark); font-weight: 600; }

.mt-fiche__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.mt-fiche__block { scroll-margin-top: 150px; }
.mt-fiche__block + .mt-fiche__block { margin-top: clamp(48px, 6vw, 72px); }
.mt-fiche__block > h2,
.mt-fiche__blockhead h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 20px; }
.mt-fiche__blockhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.mt-fiche__blockhead h2 { margin: 0; }
.mt-fiche__intro { color: var(--mt-muted); }
.mt-fiche__panel h3 { margin-bottom: 14px; }
.mt-fiche__panel:hover { transform: none; }
.mt-fiche .mt-checks ul { margin: 0; }

.mt-objectives { counter-reset: mtobj; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.mt-objectives li {
	counter-increment: mtobj;
	position: relative;
	padding: 18px 18px 18px 64px;
	border: 1px solid var(--mt-line);
	border-radius: 14px;
	background: var(--mt-white);
	color: var(--mt-ink);
	font-weight: 500;
	line-height: 1.5;
}
.mt-objectives li::before {
	content: counter(mtobj, decimal-leading-zero);
	position: absolute;
	left: 16px; top: 16px;
	display: grid; place-items: center;
	width: 34px; height: 34px;
	border-radius: 10px;
	background: var(--mt-navy);
	color: var(--mt-gold);
	font-family: var(--mt-font-head);
	font-size: .8rem;
	font-weight: 700;
}

.mt-accordion { display: grid; gap: 12px; }
.mt-accordion__item {
	border: 1px solid var(--mt-line);
	border-radius: 16px;
	background: var(--mt-white);
	overflow: hidden;
	transition: border-color .25s, box-shadow .25s;
}
.mt-accordion__item[open] { border-color: #cfd9e8; box-shadow: var(--mt-shadow); }
.mt-accordion__item summary {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	cursor: pointer;
	list-style: none;
	font-family: var(--mt-font-head);
	font-weight: 600;
	color: var(--mt-ink);
}
.mt-accordion__item summary::-webkit-details-marker { display: none; }
.mt-accordion__item summary:hover { background: var(--mt-soft); }
.mt-accordion__num {
	display: grid; place-items: center;
	flex: none;
	width: 40px; height: 40px;
	border-radius: 12px;
	background: var(--mt-grad-icon);
	color: var(--mt-steel);
	font-size: .85rem;
	font-weight: 700;
	transition: background .25s, color .25s;
}
.mt-accordion__item[open] .mt-accordion__num { background: var(--mt-navy); color: var(--mt-gold); }
.mt-accordion__title { flex: 1; }
.mt-accordion__icon { position: relative; width: 18px; height: 18px; flex: none; }
.mt-accordion__icon::before,
.mt-accordion__icon::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; border-radius: 2px; background: var(--mt-steel); transition: transform .3s var(--mt-ease); }
.mt-accordion__icon::after { transform: rotate(90deg); }
.mt-accordion__item[open] .mt-accordion__icon::after { transform: rotate(0deg); }
.mt-accordion__body { padding: 0 20px 20px 76px; }

.mt-labs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.mt-labs li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--mt-navy-2); color: var(--mt-on-dark); font-size: var(--mt-fs-small); line-height: 1.55; }
.mt-labs .mt-icon { width: 22px; height: 22px; color: var(--mt-gold); margin-top: 1px; }

.mt-dl { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 16px; }
.mt-dl div { padding: 14px 18px; border-radius: 12px; background: var(--mt-soft); border: 1px solid var(--mt-line); }
.mt-dl dt { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mt-gold-ink); }
.mt-dl dd { margin: 2px 0 0; font-weight: 600; color: var(--mt-ink); }

.mt-steps__text { margin: 13px 0 0 !important; color: var(--mt-text) !important; font-size: 1rem !important; }
.mt-cta--inline { margin-top: 28px; grid-template-columns: minmax(0, 1fr); padding: clamp(24px, 4vw, 36px); }
.mt-cta .mt-cta__title { margin: 0 0 6px; font-family: var(--mt-font-head); font-size: 1.35rem; font-weight: 700; color: var(--mt-white); }

.mt-fiche__aside { position: sticky; top: 150px; }
.mt-summary {
	display: grid;
	gap: 16px;
	padding: 26px;
	border-radius: 20px;
	background: var(--mt-white);
	border: 1px solid var(--mt-line);
	box-shadow: var(--mt-shadow);
}
.mt-summary__title { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--mt-font-head); font-size: 1.1rem; font-weight: 700; color: var(--mt-ink); }
.mt-summary__title .mt-icon { width: 24px; height: 24px; color: var(--mt-steel); }
.mt-summary dl { margin: 0; display: grid; gap: 0; }
.mt-summary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--mt-line); font-size: .9rem; }
.mt-summary dt { color: var(--mt-muted); }
.mt-summary dd { margin: 0; text-align: right; font-weight: 600; color: var(--mt-ink); }
.mt-summary .mt-btn { width: 100%; }

/* Projects */
.mt-type-pill {
	position: absolute;
	z-index: 1;
	left: 14px; bottom: 14px;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(8, 20, 38, .82);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: var(--mt-white);
	font-size: .72rem;
	font-weight: 600;
}
.mt-type-pill--pedagogique { background: rgba(138, 91, 0, .9); }
.mt-catalog__none { margin: -12px 0 28px; color: var(--mt-muted); }
.mt-story { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.mt-story li {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 18px;
	padding: 24px;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius);
	background: var(--mt-white);
	scroll-margin-top: 120px;
}
.mt-story .mt-card__icon { margin: 0; }
.mt-story h3 { font-size: 1.2rem; margin: 10px 0 8px; }
.mt-story p { margin: 0; color: var(--mt-text); }
.mt-story p + p { margin-top: .8em; }
.mt-results { padding: 28px; border-radius: var(--mt-radius); background: linear-gradient(135deg, #fdf6e7, #eef3fb); border: 1px solid #efe2c3; }
.mt-results > h2 { margin-bottom: 16px; }
.mt-summary__label { margin: 0 0 8px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mt-gold-ink); }

/* ---------- Contact form ---------- */
.mt-form-card {
	margin-top: 28px;
	padding: clamp(24px, 4vw, 44px);
	border-radius: 22px;
	background: var(--mt-white);
	border: 1px solid var(--mt-line);
	box-shadow: var(--mt-shadow);
	scroll-margin-top: 110px;
}
.mt-form-wrap { scroll-margin-top: 110px; }
.mt-form { display: grid; gap: 22px; }
.mt-form__legend-note { margin: 0; font-size: .875rem; color: var(--mt-muted); }
.mt-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.mt-field { margin: 0; display: grid; gap: 7px; align-content: start; }
.mt-field--full { grid-column: 1 / -1; }
.mt-field[hidden] { display: none; }
.mt-field > label,
.mt-field legend { font-family: var(--mt-font-head); font-size: .95rem; font-weight: 600; color: var(--mt-ink); }
.mt-field__req { color: #b42318; margin-left: 2px; }
.mt-field__opt { font-family: var(--mt-font-body); font-weight: 400; font-size: .85rem; color: var(--mt-muted); }
.mt-field__help { font-size: .85rem; color: var(--mt-muted); }
.mt-form input[type="text"],
.mt-form input[type="email"],
.mt-form input[type="tel"],
.mt-form select,
.mt-form textarea {
	width: 100%;
	min-height: 52px;
	padding: 12px 16px;
	border: 1.5px solid #cbd5e1;
	border-radius: 12px;
	background: var(--mt-white);
	color: var(--mt-ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color .2s, box-shadow .2s;
}
.mt-form textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.mt-form input:hover,
.mt-form select:hover,
.mt-form textarea:hover { border-color: #94a3b8; }
.mt-form input:focus,
.mt-form select:focus,
.mt-form textarea:focus { outline: none; border-color: var(--mt-steel); box-shadow: 0 0 0 4px rgba(29, 79, 145, .18); }
.mt-form [aria-invalid="true"] { border-color: #b42318 !important; background: #fffafa; }
.mt-field__error { margin: 0; color: #b42318; font-size: .875rem; font-weight: 600; }

.mt-field--choices { border: 0; padding: 0; margin: 0; }
.mt-field--choices legend { margin-bottom: 10px; padding: 0; }
.mt-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mt-choice { position: relative; display: block; cursor: pointer; }
.mt-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mt-choice__body {
	display: grid;
	gap: 4px;
	height: 100%;
	padding: 16px 16px 16px 48px;
	border: 1.5px solid #cbd5e1;
	border-radius: 14px;
	background: var(--mt-white);
	transition: border-color .2s, background-color .2s, box-shadow .2s;
	position: relative;
}
.mt-choice__body::before {
	content: "";
	position: absolute;
	left: 16px; top: 18px;
	width: 20px; height: 20px;
	border-radius: 50%;
	border: 2px solid #94a3b8;
	background: var(--mt-white);
	transition: border-color .2s, box-shadow .2s;
}
.mt-choice__body strong { font-family: var(--mt-font-head); font-size: .95rem; color: var(--mt-ink); }
.mt-choice__body span { font-size: .82rem; color: var(--mt-muted); }
.mt-choice:hover .mt-choice__body { border-color: #94a3b8; }
.mt-choice input:checked + .mt-choice__body { border-color: var(--mt-steel); background: #f3f7fd; box-shadow: 0 0 0 1px var(--mt-steel); }
.mt-choice input:checked + .mt-choice__body::before { border-color: var(--mt-steel); box-shadow: inset 0 0 0 4px var(--mt-white); background: var(--mt-steel); }
.mt-choice input:focus-visible + .mt-choice__body { outline: 3px solid var(--mt-steel); outline-offset: 3px; }

.mt-field--consent label { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--mt-text); cursor: pointer; }
.mt-field--consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--mt-steel); }
.mt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.mt-form__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.mt-form__actions .mt-btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.mt-form__privacy { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .85rem; color: var(--mt-muted); }
.mt-form__privacy .mt-icon { width: 16px; height: 16px; color: var(--mt-steel); }

.mt-form-errors { padding: 16px 20px; border-radius: 14px; border: 1.5px solid #f0b4ae; background: #fef3f2; color: #7a271a; }
.mt-form-errors__title { margin: 0 0 6px; font-weight: 700; }
.mt-form-errors ul { margin: 0; padding-left: 1.2em; }
.mt-form-errors a { color: #7a271a; font-weight: 600; }
.mt-form-success { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: 16px; border: 1.5px solid #abefc6; background: #ecfdf3; color: #054f31; animation: mt-drop .4s var(--mt-ease); }
.mt-form-success .mt-card__icon { margin: 0; background: #12b76a; color: var(--mt-white); }
.mt-form-success__title { margin: 0 0 4px; font-family: var(--mt-font-head); font-size: 1.2rem; font-weight: 700; color: #054f31; }
.mt-form-success p { margin: 0 0 6px; }

/* ---------- 16. Responsive ---------- */
@media (max-width: 767px) {
	.mt-form__grid,
	.mt-choices { grid-template-columns: minmax(0, 1fr); }
	.mt-form__actions .mt-btn { width: 100%; }
}
@media (max-width: 767px) {
	.mt-story li { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
}
@media (max-width: 1024px) {
	.mt-fiche__layout { grid-template-columns: minmax(0, 1fr); }
	.mt-fiche__aside { position: static; order: -1; }
}
@media (max-width: 767px) {
	.mt-objectives,
	.mt-labs { grid-template-columns: minmax(0, 1fr); }
	.mt-accordion__body { padding-left: 20px; }
	.mt-catalog__intro { flex-direction: column; gap: 12px; }
	.mt-chips--filter { position: static; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--mt-gutter)); padding-inline: var(--mt-gutter); scrollbar-width: none; }
	.mt-chips--filter button { flex: none; }
}
@media (max-width: 1024px) {
	.mt-grid--4 { --mt-cols: 2; }
	.mt-grid--3 { --mt-cols: 2; }
	.mt-hero__inner,
	.mt-split,
	.mt-split--even { grid-template-columns: minmax(0, 1fr); }
	.mt-split__sticky { position: static; }
	.mt-footer__grid { grid-template-columns: repeat(2, 1fr); }
	.mt-cta { grid-template-columns: minmax(0, 1fr); }
	.mt-hero__visual { min-height: 400px; }
}
@media (max-width: 767px) {
	.mt-grid--2,
	.mt-grid--3,
	.mt-grid--4 { --mt-cols: 1; }
	.mt-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.mt-btn-row .mt-btn { width: 100%; }
	.mt-terminal { font-size: .78rem; }
	.mt-hero__visual { min-height: 0; padding-block: 40px 56px; }
	.mt-rings i:nth-child(3) { display: none; }
	.mt-badge-float { font-size: .75rem; padding: 7px 12px; }
	.mt-badge-float--1 { top: 0; right: 0; }
	.mt-badge-float--2 { bottom: 4px; left: 0; }
	.mt-badge-float--3 { display: none; }
	.mt-related a { grid-template-columns: 1fr auto; }
	.mt-related__type { grid-column: 1 / -1; }
}

/* Footer bottom bar: legal links + developer credit (right side) */
.mt-footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.mt-footer .mt-footer__credit {
	margin: 0;
	padding-left: 20px;
	border-left: 1px solid rgba(255, 255, 255, .16);
	font-size: .8125rem;
	letter-spacing: .01em;
	color: var(--mt-on-dark-muted);
}
@media (max-width: 767px) {
	.mt-footer__bottom { flex-direction: column; }
	.mt-footer__meta { flex-direction: column; align-items: flex-start; }
	.mt-footer .mt-footer__credit { padding-left: 0; border-left: 0; }
}
