/* ==========================================================================
   ISPAT — Feuille de styles principale
   Palette tirée du campus (orange des façades, gris béton, toits verts)
   et de la charte (bleu ardoise + or de l'écusson).
   ========================================================================== */

:root {
	--ink: #121b25;
	--slate: #1f2c3a;
	--slate-2: #2b3b4d;
	--slate-3: #3c4f63;
	--orange: #f07d16;
	--orange-2: #ff9a3d;
	--gold: #e2a03a;
	--gold-2: #f7c66b;
	--green: #0f5a46;
	--green-2: #1d7a5f;
	--sand: #f6f2eb;
	--sand-2: #ede6da;
	--paper: #ffffff;
	--text: #1d2733;
	--muted: #5b6878;
	--line: #e2dacd;
	--line-dark: rgba(255, 255, 255, .12);

	--f-display: "Sora", system-ui, sans-serif;
	--f-body: "DM Sans", system-ui, sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, monospace;

	--r: 18px;
	--r-sm: 10px;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 84px;
	--topbar-h: 40px;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--ease-io: cubic-bezier(.77, 0, .175, 1);
	--shadow: 0 20px 50px -20px rgba(18, 27, 37, .25);
	--shadow-lg: 0 40px 90px -30px rgba(18, 27, 37, .45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--sand);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0 0 1em; }
::selection { background: var(--orange); color: #fff; }
.mono { font-family: var(--f-mono); letter-spacing: .04em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; margin-top: 48px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.hide-sm { }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--orange); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Typo utilitaire ---------- */
.kicker {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--f-mono); font-size: 12.5px; font-weight: 500;
	text-transform: uppercase; letter-spacing: .16em; color: var(--orange);
	margin-bottom: 14px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.kicker--light { color: var(--gold-2); }
.title { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; }
.title--sm { font-size: clamp(24px, 3vw, 34px); }
.title--light { color: #fff; }
.lead { font-size: 1.15em; color: var(--text); }
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 52px; }
.section-head .title { max-width: 720px; margin: 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center .kicker::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-head__text { max-width: 420px; color: var(--muted); margin: 0; }

/* ---------- Boutons ---------- */
.btn {
	--bg: var(--slate); --fg: #fff;
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 24px; border-radius: 999px; border: 0;
	background: var(--bg); color: var(--fg);
	font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: .01em;
	overflow: hidden; isolation: isolate; white-space: nowrap;
	transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .3s;
}
.btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--hover, var(--ink));
	transform: translateY(101%); border-radius: inherit;
	transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 14px 30px -12px rgba(240, 125, 22, .55); }
.btn .ico { transition: transform .4s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn--accent { --bg: linear-gradient(120deg, var(--orange), var(--gold)); --hover: var(--slate); }
.btn--accent { background: linear-gradient(120deg, var(--orange), var(--gold)); }
.btn--dark { --bg: var(--slate); --hover: var(--orange); }
.btn--ghost { --bg: transparent; --fg: var(--slate); --hover: var(--slate); box-shadow: inset 0 0 0 1.5px var(--slate); }
.btn--ghost:hover { color: #fff; }
.btn--ghost-light { --bg: rgba(255, 255, 255, .06); --fg: #fff; --hover: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { color: var(--ink); }
.btn--wa { --bg: #1fa855; --hover: #128c46; margin-top: 8px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 600; color: var(--slate); }
.link-arrow .ico { transition: transform .4s var(--ease); color: var(--orange); }
.link-arrow:hover .ico { transform: translateX(6px); }

.tag {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px; border-radius: 999px;
	background: var(--sand-2); color: var(--slate); font-size: 13px; font-weight: 500;
}
.tag--accent { background: rgba(240, 125, 22, .12); color: #b85a08; }
.pill {
	display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px;
	border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
	color: #fff; font-size: 13.5px; backdrop-filter: blur(8px); margin-bottom: 22px;
}
.pill__dot { width: 9px; height: 9px; border-radius: 50%; background: #3ee08f; position: relative; }
.pill__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #3ee08f; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* ==========================================================================
   Préchargeur
   ========================================================================== */
.preloader { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; pointer-events: none; }
.preloader__shutter { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--slate); transition: transform 1s var(--ease-io); }
.preloader__shutter--l { left: 0; }
.preloader__shutter--r { right: 0; background: var(--ink); }
.preloader__inner { position: relative; z-index: 2; text-align: center; color: #fff; transition: opacity .4s, transform .6s var(--ease); }
.preloader__crest { width: 130px; margin: 0 auto 14px; animation: crest 2.2s var(--ease) infinite; }
@keyframes crest { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-3deg); } }
.preloader__name { font-family: var(--f-display); font-weight: 800; font-size: 28px; letter-spacing: .35em; margin-right: -.35em; }
.preloader__bar { width: 180px; height: 2px; background: rgba(255, 255, 255, .15); margin: 16px auto 8px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--gold-2)); transition: width .25s; }
.preloader__pct { font-size: 12px; color: var(--gold-2); }
body.is-loaded .preloader__inner { opacity: 0; transform: translateY(-20px); }
body.is-loaded .preloader__shutter--l { transform: translateX(-100%); transition-delay: .25s; }
body.is-loaded .preloader__shutter--r { transform: translateX(100%); transition-delay: .25s; }
body.is-loaded .preloader { visibility: hidden; transition: visibility 0s 1.4s; }

/* ---------- Progression / curseur ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--orange), var(--gold-2), var(--green-2)); }
.cursor-glow {
	position: fixed; top: 0; left: 0; width: 420px; height: 420px; margin: -210px 0 0 -210px;
	border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0;
	background: radial-gradient(circle, rgba(240, 125, 22, .14), transparent 65%);
	transition: opacity .4s; mix-blend-mode: screen;
}
body.has-cursor .cursor-glow { opacity: 1; }

/* ==========================================================================
   En-tête
   ========================================================================== */
.topbar {
	position: absolute; top: 0; left: 0; right: 0; z-index: 90; height: var(--topbar-h);
	color: rgba(255, 255, 255, .78); font-size: 13.5px;
	border-bottom: 1px solid var(--line-dark);
}
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar__info { display: flex; gap: 22px; align-items: center; }
.topbar__info a, .topbar__info span { display: inline-flex; align-items: center; gap: 7px; transition: color .3s; }
.topbar__info a:hover { color: var(--gold-2); }
.topbar__info .ico { color: var(--orange); }
.topbar__slogan { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }

.site-header {
	position: fixed; left: 0; right: 0; top: var(--topbar-h); z-index: 100; height: var(--header-h);
	transition: top .45s var(--ease), background .45s, box-shadow .45s, height .45s var(--ease), transform .45s var(--ease);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
body.is-scrolled .site-header {
	top: 0; height: 70px;
	background: rgba(255, 255, 255, .88); backdrop-filter: saturate(160%) blur(14px);
	box-shadow: 0 10px 30px -18px rgba(18, 27, 37, .35);
}
body.is-scrolled.is-hidden-header .site-header { transform: translateY(-100%); }
body.admin-bar .site-header { margin-top: 32px; }
body.admin-bar .topbar { margin-top: 32px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-crest { width: 64px; height: auto; flex: none; transition: transform .6s var(--ease), width .45s var(--ease); }
body.is-scrolled .site-header .brand-crest { width: 52px; }
.brand:hover .brand-crest { transform: rotate(-8deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--f-display); font-size: 22px; font-weight: 800; letter-spacing: .14em; }
.brand__text small { font-size: 11px; opacity: .75; max-width: 210px; line-height: 1.25; margin-top: 3px; }
body.is-scrolled .site-header .brand { color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav .menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; }
.main-nav .menu > li { position: relative; }
.main-nav .menu a {
	position: relative; display: block; padding: 10px 14px;
	font-family: var(--f-display); font-weight: 600; font-size: 15px; color: rgba(255, 255, 255, .9);
	transition: color .3s;
}
.main-nav .menu > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
	background: var(--orange); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.main-nav .menu > li > a:hover::after,
.main-nav .menu > .current-menu-item > a::after,
.main-nav .menu > .current_page_item > a::after { transform: scaleX(1); transform-origin: left; }
.main-nav .menu a:hover { color: #fff; }
body.is-scrolled .main-nav .menu a { color: var(--slate); }
body.is-scrolled .main-nav .menu a:hover { color: var(--orange); }
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 10px;
	background: #fff; border-radius: 14px; box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: .35s var(--ease);
}
.main-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { color: var(--slate) !important; border-radius: 8px; }
.main-nav .sub-menu a:hover { background: var(--sand); }

.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .1); position: relative; z-index: 120; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: .45s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; right: 18px; }
.burger span:nth-child(3) { top: 28px; }
body.is-scrolled .burger { background: var(--sand-2); }
body.is-scrolled .burger span { background: var(--ink); }
body.nav-open .burger span { background: #fff; }
body.nav-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; transform: translateX(10px); }
body.nav-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ==========================================================================
   Héros accueil
   ========================================================================== */
.hero {
	position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
	color: #fff; overflow: hidden; background: var(--ink);
	padding: calc(var(--topbar-h) + var(--header-h) + 40px) 0 120px;
}
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide {
	background-size: cover; background-position: center; opacity: 0; transform: scale(1.18);
	transition: opacity 1.6s ease, transform 8s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1.02); }
.hero__shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(100deg, rgba(18, 27, 37, .96) 0%, rgba(18, 27, 37, .82) 38%, rgba(18, 27, 37, .35) 75%, rgba(18, 27, 37, .55) 100%),
		linear-gradient(0deg, rgba(18, 27, 37, .9), transparent 40%);
}
.hero__blueprint { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero__stripes { position: absolute; right: -6%; bottom: 14%; width: 46%; display: grid; gap: 14px; transform: rotate(-12deg); pointer-events: none; opacity: .9; }
.hero__stripes span { display: block; height: 14px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--orange)); transform: scaleX(0); transform-origin: right; animation: stripe 1.4s var(--ease) forwards; }
.hero__stripes span:nth-child(2) { width: 80%; justify-self: end; animation-delay: .15s; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero__stripes span:nth-child(3) { width: 60%; justify-self: end; animation-delay: .3s; background: linear-gradient(90deg, transparent, var(--green-2)); }
body:not(.is-loaded) .hero__stripes span { animation-play-state: paused; }
@keyframes stripe { to { transform: scaleX(1); } }

.hero__inner { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: 50px; align-items: end; }
.hero__content .kicker { display: flex; }
.hero__title { font-size: clamp(36px, 5.2vw, 70px); font-weight: 800; color: #fff; margin: 0 0 24px; line-height: 1.02; }
.split-line { display: block; overflow: hidden; padding-bottom: .08em; }
.split-line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.split-line:nth-child(2) > span { transition-delay: .12s; }
body.is-loaded .split-line > span { transform: none; transition-delay: .55s; }
body.is-loaded .split-line:nth-child(2) > span { transition-delay: .7s; }
.typed {
	background: linear-gradient(100deg, var(--orange) 10%, var(--gold-2) 60%, var(--orange));
	background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
	animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }
.typed-caret { display: inline-block; width: .08em; height: .9em; margin-left: .08em; vertical-align: -.08em; background: var(--gold-2); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__text { font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .8); max-width: 580px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__anim { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
body.is-loaded .hero__anim { opacity: 1; transform: none; transition-delay: calc(var(--d, 0s) + .45s); }

.hero__cards { display: grid; gap: 14px; }
.hero-card {
	position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 16px;
	padding: 18px 20px; border-radius: 16px; overflow: hidden;
	background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(12px);
	transition: background .4s, transform .5s var(--ease), border-color .4s;
}
.hero-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--orange); transform: scaleY(0); transition: transform .5s var(--ease); }
.hero-card:hover { background: rgba(255, 255, 255, .13); transform: translateX(-8px); border-color: rgba(240, 125, 22, .5); }
.hero-card:hover::before { transform: scaleY(1); }
.hero-card__num { grid-row: span 2; align-self: center; font-size: 13px; color: var(--gold-2); padding: 8px 10px; border: 1px solid rgba(247, 198, 107, .35); border-radius: 8px; }
.hero-card__label { font-family: var(--f-display); font-weight: 700; font-size: 17px; line-height: 1.25; }
.hero-card__meta { grid-column: 2; font-size: 13px; color: rgba(255, 255, 255, .65); }
.hero-card__count { grid-row: 1 / span 2; grid-column: 3; align-self: center; font-size: 12.5px; color: var(--ink); background: var(--gold-2); padding: 5px 10px; border-radius: 999px; font-weight: 700; }

.hero__dots { position: absolute; z-index: 4; left: var(--gutter); bottom: 44px; display: flex; gap: 10px; }
.hero__dots button { width: 34px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.hero__dots button::after { content: ""; position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.hero__dots button.is-active::after { animation: dot 6s linear forwards; }
@keyframes dot { to { transform: scaleX(1); } }
@media (min-width: 1320px) { .hero__dots { left: calc((100vw - var(--wrap)) / 2 + var(--gutter)); } }
.hero__scroll { position: absolute; z-index: 4; left: 50%; bottom: 30px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.hero__coords { position: absolute; z-index: 4; right: var(--gutter); bottom: 40px; font-size: 11px; color: rgba(255, 255, 255, .5); writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .2em; }

/* ---------- Bandeau défilant ---------- */
.marquee { position: relative; z-index: 5; overflow: hidden; background: var(--orange); color: #fff; padding: 16px 0; transform: rotate(-1.2deg) scale(1.02); margin-top: -26px; box-shadow: 0 20px 40px -20px rgba(240, 125, 22, .6); }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; font-family: var(--f-display); font-weight: 600; white-space: nowrap; font-size: 15px; }
.marquee__item b { font-family: var(--f-mono); font-size: 12px; background: var(--ink); color: var(--gold-2); padding: 3px 8px; border-radius: 6px; }
.marquee__item::after { content: "✦"; margin-left: 26px; color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Chiffres ---------- */
.stats { padding: 90px 0 30px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
	position: relative; padding: 34px 28px; border-radius: var(--r); background: var(--paper);
	border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 5vw, 64px); line-height: 1; color: var(--slate); }
.stat__num .count { background: linear-gradient(120deg, var(--slate), var(--slate-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { margin-top: 10px; color: var(--muted); font-size: 15px; }
.stat__ring { position: absolute; right: -24px; top: -24px; width: 120px; height: 120px; transform: rotate(-90deg); }
.stat__ring circle { fill: none; stroke: var(--orange); stroke-width: 3; stroke-dasharray: 340; stroke-dashoffset: 340; opacity: .5; transition: stroke-dashoffset 2s var(--ease) .3s; }
.stat.is-in .stat__ring circle { stroke-dashoffset: 90; }

/* ==========================================================================
   À propos
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__media { position: relative; min-height: 560px; }
.about__img { position: absolute; margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__img:hover img { transform: scale(1.06); }
.about__img--main { left: 0; top: 0; width: 78%; height: 78%; }
.about__img--sub { right: 0; bottom: 0; width: 56%; height: 50%; border: 8px solid var(--sand); }
.about__badge { position: absolute; left: 6%; bottom: 2%; width: 150px; height: 150px; display: grid; place-items: center; border-radius: 50%; background: var(--slate); box-shadow: var(--shadow-lg); z-index: 3; }
.about__badge-crest { width: 72px; }
.about__badge-text { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.about__badge-text text { fill: var(--gold-2); font-family: var(--f-mono); font-size: 13.5px; letter-spacing: 2.4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.about__content .title { margin-bottom: 22px; }
.about__content .lead { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist__ico { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(15, 90, 70, .12); color: var(--green); margin-top: 1px; }
.checklist__ico .ico { width: 16px; height: 16px; stroke-width: 2.4; }

/* ==========================================================================
   Filières
   ========================================================================== */
.filieres { background: var(--paper); overflow: hidden; }
.filieres__bg {
	position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: linear-gradient(var(--sand-2) 1px, transparent 1px), linear-gradient(90deg, var(--sand-2) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 80% 0%, #000 0%, transparent 60%);
	-webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000 0%, transparent 60%);
}
.tabs { position: relative; display: inline-flex; padding: 6px; background: var(--sand); border-radius: 999px; border: 1px solid var(--line); }
.tabs__btn { position: relative; z-index: 2; border: 0; background: none; padding: 11px 22px; border-radius: 999px; font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--muted); transition: color .4s; }
.tabs__btn.is-active { color: #fff; }
.tabs__ink { position: absolute; z-index: 1; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 999px; background: var(--slate); transition: transform .6s var(--ease), width .6s var(--ease); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: panelIn .7s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.tab-panel__intro { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 30px; }
.tab-panel__intro p { margin: 0 0 0 10px; color: var(--muted); flex: 1 1 320px; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.f-card {
	position: relative; display: flex; flex-direction: column; padding: 28px 26px 26px;
	border-radius: var(--r); background: var(--paper); border: 1px solid var(--line);
	overflow: hidden; transform-style: preserve-3d; will-change: transform;
	transition: box-shadow .5s var(--ease), border-color .5s, transform .5s var(--ease);
}
.f-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.f-card::before {
	content: ""; position: absolute; inset: 0; z-index: 0;
	background: linear-gradient(150deg, var(--slate), var(--ink));
	opacity: 0; transition: opacity .5s var(--ease);
}
.f-card:hover::before { opacity: 1; }
.f-card > * { position: relative; z-index: 1; }
.f-card__glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .18), transparent 45%); opacity: 0; transition: opacity .4s; }
.f-card:hover .f-card__glare { opacity: 1; }
.f-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.f-card__ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(240, 125, 22, .1); color: var(--orange); transition: transform .6s var(--ease), background .5s, color .5s; }
.f-card__ico .ico { width: 28px; height: 28px; }
.f-card:hover .f-card__ico { background: var(--orange); color: #fff; transform: rotate(-8deg) scale(1.08) translateZ(30px); }
.f-card__code { font-size: 12.5px; padding: 5px 10px; border-radius: 8px; background: var(--sand); color: var(--slate); transition: background .5s, color .5s; }
.f-card:hover .f-card__code { background: rgba(255, 255, 255, .1); color: var(--gold-2); }
.f-card__title { font-size: 19px; margin-bottom: 10px; transition: color .5s; }
.f-card__text { font-size: 15px; color: var(--muted); flex: 1; transition: color .5s; }
.f-card:hover .f-card__title { color: #fff; }
.f-card:hover .f-card__text { color: rgba(255, 255, 255, .72); }
.f-card__more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--orange); }
.f-card__more .ico { transition: transform .4s var(--ease); }
.f-card:hover .f-card__more .ico { transform: translateX(6px); }
.f-card__line { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--orange), var(--gold-2)); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); z-index: 3 !important; }
.f-card:hover .f-card__line { transform: scaleX(1); }
.f-card[data-cycle="tertiaires"] .f-card__ico { background: rgba(31, 44, 58, .08); color: var(--slate-2); }
.f-card[data-cycle="professionnel"] .f-card__ico { background: rgba(15, 90, 70, .1); color: var(--green); }
.f-card.is-filtered { display: none; }

/* Page Filières */
.filter-bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 40px; position: sticky; top: 80px; z-index: 20; padding: 12px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--paper); padding: 9px 16px; border-radius: 999px; font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--slate); transition: .35s var(--ease); }
.chip b { font-family: var(--f-mono); font-size: 11px; margin-left: 4px; padding: 2px 7px; border-radius: 999px; background: var(--sand); }
.chip:hover { border-color: var(--orange); }
.chip.is-active { background: var(--slate); color: #fff; border-color: var(--slate); }
.chip.is-active b { background: var(--orange); color: #fff; }
.search-field { position: relative; flex: 1 1 260px; max-width: 380px; }
.search-field .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field input { width: 100%; padding: 12px 16px 12px 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--sand); font: inherit; font-size: 15px; outline: none; transition: border-color .3s, box-shadow .3s; }
.search-field input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(240, 125, 22, .15); }
.cycle-block { margin-bottom: 80px; scroll-margin-top: 170px; }
.cycle-block.is-hidden { display: none; }
.cycle-block__head { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: center; margin-bottom: 30px; padding: 16px; background: var(--sand); border-radius: calc(var(--r) + 6px); }
.cycle-block__img { height: 200px; border-radius: var(--r); background-size: cover; background-position: center; }
.cycle-block__info p { color: var(--muted); }
.cycle-block__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.empty-state { text-align: center; padding: 60px 0; color: var(--muted); }

/* ==========================================================================
   Pourquoi
   ========================================================================== */
.why { background: var(--slate); color: #fff; overflow: hidden; }
.why__grid-bg {
	position: absolute; inset: 0; opacity: .5; pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 60px 60px; animation: gridpan 30s linear infinite;
}
@keyframes gridpan { to { background-position: 60px 60px; } }
.why .wrap { position: relative; }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card {
	position: relative; padding: 36px 30px; border-radius: var(--r); overflow: hidden;
	background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
	border: 1px solid var(--line-dark); transform-style: preserve-3d;
	transition: border-color .5s, background .5s;
}
.why-card:hover { border-color: rgba(240, 125, 22, .6); background: linear-gradient(160deg, rgba(240, 125, 22, .15), rgba(255, 255, 255, .02)); }
.why-card__num { position: absolute; top: 24px; right: 26px; font-size: 12px; color: rgba(255, 255, 255, .35); }
.why-card__ico { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 24px; border-radius: 16px; background: rgba(240, 125, 22, .14); color: var(--orange-2); transition: transform .6s var(--ease); }
.why-card__ico .ico { width: 30px; height: 30px; }
.why-card:hover .why-card__ico { transform: translateZ(40px) rotate(-6deg); }
.why-card h3 { color: #fff; font-size: 21px; }
.why-card p { color: rgba(255, 255, 255, .66); margin: 0; font-size: 15.5px; }
.why-card__corner { position: absolute; right: 0; bottom: 0; width: 60px; height: 60px; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); border-bottom-right-radius: var(--r); opacity: 0; transform: translate(10px, 10px); transition: .5s var(--ease); }
.why-card:hover .why-card__corner { opacity: 1; transform: none; }

/* ==========================================================================
   Galerie bento
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 16px; }
.bento--3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; margin-top: 34px; }
.bento__item { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--slate); }
.bento__item--big { grid-column: span 2; grid-row: span 2; }
.bento__item--wide { grid-column: span 2; }
.bento__item a, .bento__item img { display: block; width: 100%; height: 100%; }
.bento__item img { object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.bento__item:hover img { transform: scale(1.08); filter: saturate(1.15); }
.bento__item figcaption {
	position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 12px 16px; border-radius: 12px; color: #fff; font-family: var(--f-display); font-weight: 600; font-size: 14.5px;
	background: rgba(18, 27, 37, .55); backdrop-filter: blur(10px);
	transform: translateY(20px); opacity: 0; transition: .5s var(--ease);
}
.bento__item:hover figcaption { transform: none; opacity: 1; }
.bento__item figcaption .ico { color: var(--gold-2); }

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 30px; background: rgba(12, 18, 25, .92); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: .4s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 86vh; border-radius: 14px; box-shadow: var(--shadow-lg); transform: scale(.92); transition: transform .6s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; }

/* ==========================================================================
   Étapes / timeline
   ========================================================================== */
.steps { background: var(--sand); }
.timeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.timeline__line { position: absolute; left: 12%; right: 12%; top: 37px; width: 76%; height: 4px; overflow: visible; }
.timeline__line line { stroke: var(--orange); stroke-width: 3; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2.2s var(--ease) .2s; }
.timeline.is-in .timeline__line line { stroke-dashoffset: 0; }
.timeline::before { content: ""; position: absolute; left: 12%; right: 12%; top: 38px; border-top: 2px dashed var(--line); }
.timeline__step { position: relative; text-align: center; padding: 0 8px; }
.timeline__dot { position: relative; z-index: 2; display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; background: var(--paper); color: var(--orange); border: 2px solid var(--line); box-shadow: 0 0 0 8px var(--sand); transition: .6s var(--ease); }
.timeline__dot .ico { width: 30px; height: 30px; }
.timeline__step:hover .timeline__dot { background: var(--orange); color: #fff; border-color: var(--orange); transform: translateY(-6px) rotate(-8deg); }
.timeline__num { display: block; font-size: 12px; color: var(--orange); margin-bottom: 8px; }
.timeline__step h3 { font-size: 19px; }
.timeline__step p { color: var(--muted); font-size: 15px; }

/* ==========================================================================
   Bandeau citation
   ========================================================================== */
.quote-band { position: relative; padding: clamp(120px, 16vw, 200px) 0; overflow: hidden; color: #fff; text-align: center; }
.quote-band__img { position: absolute; inset: -20% 0; background-size: cover; background-position: center 30%; will-change: transform; }
.quote-band__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 90, 70, .78), rgba(18, 27, 37, .88)); }
.quote-band__inner { position: relative; }
.quote-band__mark { font-family: var(--f-display); font-size: 140px; line-height: .6; color: var(--orange); margin: 0; }
.quote-band__text { margin: 10px auto 18px; max-width: 900px; font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.1; letter-spacing: -.02em; }
.quote-band__by { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .18em; font-size: 13px; color: var(--gold-2); }

/* ==========================================================================
   Articles
   ========================================================================== */
.news { background: var(--paper); }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.p-card { border-radius: var(--r); overflow: hidden; background: var(--paper); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s; display: flex; flex-direction: column; }
.p-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.p-card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.p-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.p-card:hover .p-card__media img { transform: scale(1.07); }
.p-card__date { position: absolute; left: 14px; top: 14px; font-size: 12px; padding: 6px 10px; border-radius: 8px; background: var(--orange); color: #fff; }
.p-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-card__body .tag { align-self: flex-start; }
.p-card__title { font-size: 20px; margin: 0; }
.p-card__title a { background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease); }
.p-card:hover .p-card__title a { background-size: 100% 2px; }
.p-card__body p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.pagination { margin-top: 50px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--slate); color: #fff; border-color: var(--slate); }

/* ==========================================================================
   Héros pages intérieures
   ========================================================================== */
.page-hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; padding: calc(var(--topbar-h) + var(--header-h) + 70px) 0 90px; overflow: hidden; color: #fff; background: var(--ink); }
.page-hero__img { position: absolute; inset: -15% 0; background-size: cover; background-position: center; will-change: transform; animation: kenburns 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.18) translateX(-2%); } }
.page-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 27, 37, .95) 0%, rgba(18, 27, 37, .7) 55%, rgba(18, 27, 37, .4)); }
.page-hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__title { color: #fff; font-size: clamp(36px, 5.6vw, 70px); font-weight: 800; max-width: 900px; margin-bottom: 18px; }
.page-hero__text { max-width: 640px; color: rgba(255, 255, 255, .8); font-size: 18px; margin: 0; }
.hero__stripes--small { width: 30%; bottom: 18%; opacity: .7; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: rgba(255, 255, 255, .6); margin-bottom: 24px; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs em { font-style: normal; color: #fff; }

/* ==========================================================================
   À propos (page) / valeurs / infra
   ========================================================================== */
.values { background: var(--paper); }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { padding: 40px 32px; border-radius: var(--r); background: var(--sand); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s, background .5s; transform-style: preserve-3d; }
.value-card:hover { background: var(--paper); box-shadow: var(--shadow-lg); }
.value-card__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 22px; background: var(--slate); color: var(--gold-2); }
.value-card__ico .ico { width: 30px; height: 30px; }
.value-card p { color: var(--muted); margin: 0; }
.infra { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.infra__item { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.infra__item .ico { width: 30px; height: 30px; color: var(--orange); }

/* ==========================================================================
   Admissions
   ========================================================================== */
.admit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.admit-card { position: relative; padding: 38px 32px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d; transition: box-shadow .5s; }
.admit-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--orange), var(--gold)); }
.admit-card:nth-child(3)::after { background: linear-gradient(90deg, var(--green), var(--green-2)); }
.admit-card:hover { box-shadow: var(--shadow-lg); }
.admit-card__level { display: inline-block; font-size: 12px; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.admit-card p { color: var(--muted); }
.admit-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.admit-card li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.admit-card li .ico { color: var(--green); }
.docs { background: var(--paper); }
.docs__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.docs__card { border-radius: calc(var(--r) + 6px); overflow: hidden; background: var(--slate); color: #fff; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1.1fr; }
.docs__card img { width: 100%; height: 100%; object-fit: cover; }
.docs__card-body { padding: 34px 28px; align-self: center; }
.docs__card-body h3 { color: #fff; }
.docs__card-body p { color: rgba(255, 255, 255, .72); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; margin-bottom: 60px; }
.contact__info { display: grid; gap: 14px; }
.info-card { display: flex; gap: 18px; padding: 22px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s; }
.info-card:hover { transform: translateX(8px); box-shadow: var(--shadow); }
.info-card__ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(240, 125, 22, .12); color: var(--orange); }
.info-card__ico .ico { width: 24px; height: 24px; }
.info-card h3 { font-size: 16px; margin: 0 0 4px; }
.info-card p { margin: 0; color: var(--muted); font-size: 15px; }
.info-card a:hover { color: var(--orange); }
.form-card { padding: clamp(28px, 4vw, 48px); border-radius: calc(var(--r) + 6px); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 110px; }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; display: block; }
.field input, .field textarea, .field select {
	width: 100%; padding: 24px 18px 10px; border-radius: 14px; border: 1.5px solid var(--line);
	background: var(--sand); font: inherit; font-size: 16px; color: var(--text); outline: none; resize: vertical;
	transition: border-color .3s, box-shadow .3s, background .3s;
}
.field select { padding: 17px 18px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field span { position: absolute; left: 19px; top: 17px; color: var(--muted); font-size: 16px; pointer-events: none; transform-origin: left; transition: transform .3s var(--ease), color .3s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(240, 125, 22, .12); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-10px) scale(.76); color: var(--orange); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.notice { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.notice--ok { background: rgba(15, 90, 70, .12); color: var(--green); }
.notice--err { background: rgba(200, 50, 30, .1); color: #a3311d; }
.map { border-radius: calc(var(--r) + 6px); overflow: hidden; height: 420px; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) contrast(1.05); }

/* ==========================================================================
   Fiche filière
   ========================================================================== */
.single-filiere__grid { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: start; }
.fact-card { position: sticky; top: 100px; padding: 32px; border-radius: calc(var(--r) + 6px); background: var(--slate); color: #fff; box-shadow: var(--shadow-lg); display: grid; gap: 14px; }
.fact-card__ico { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 18px; background: linear-gradient(135deg, var(--orange), var(--gold)); }
.fact-card__ico .ico { width: 34px; height: 34px; }
.fact-card__code { font-size: 28px; font-weight: 500; color: var(--gold-2); }
.fact-card dl { margin: 0 0 10px; display: grid; }
.fact-card dl div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.fact-card dt { color: rgba(255, 255, 255, .6); }
.fact-card dd { margin: 0; font-weight: 600; text-align: right; }
.fact-card .btn--ghost { --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); --hover: #fff; }
.fact-card .btn--ghost:hover { color: var(--ink); }
.debouches { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.debouches li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); margin: 0 !important; transition: border-color .4s, transform .4s var(--ease); }
.debouches li:hover { border-color: var(--orange); transform: translateY(-4px); }
.debouches .ico { color: var(--orange); width: 22px; height: 22px; }
.filieres--related { background: var(--sand-2); }

/* ---------- Contenu éditorial ---------- */
.entry-content { font-size: 17.5px; }
.entry-content--narrow { max-width: 780px; margin: 0 auto; }
.entry-content h2 { font-size: 32px; margin-top: 1.4em; }
.entry-content h3 { font-size: 24px; margin-top: 1.4em; }
.entry-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: var(--r); }
.entry-content blockquote { margin: 1.6em 0; padding: 20px 26px; border-left: 4px solid var(--orange); background: var(--paper); border-radius: 0 var(--r) var(--r) 0; font-size: 1.1em; }
.entry-content .wp-block-button__link { background: var(--orange); border-radius: 999px; color: #fff; text-decoration: none; }
.entry-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav { display: flex; justify-content: space-between; gap: 20px; font-family: var(--f-display); font-weight: 600; }
.post-nav a { text-decoration: none; color: var(--slate); }
.comments { margin-top: 60px; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.search-form { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.search-form input[type="search"] { padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); font: inherit; }
.search-form input[type="submit"] { padding: 12px 20px; border-radius: 999px; border: 0; background: var(--slate); color: #fff; font: inherit; }

/* ==========================================================================
   404
   ========================================================================== */
.notfound { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--ink); color: rgba(255, 255, 255, .75); overflow: hidden; padding: 160px 0 80px; }
.notfound__inner { position: relative; z-index: 2; }
.notfound__inner .hero__actions { justify-content: center; }
.notfound__code { position: relative; font-size: clamp(110px, 22vw, 260px); line-height: 1; margin: 0; font-weight: 500; color: transparent; -webkit-text-stroke: 2px var(--orange); }
.notfound__code::before, .notfound__code::after { content: attr(data-glitch); position: absolute; inset: 0; -webkit-text-stroke: 2px var(--gold-2); animation: glitch 2.6s steps(2) infinite; clip-path: inset(0 0 60% 0); }
.notfound__code::after { -webkit-text-stroke-color: var(--green-2); animation-delay: -1.3s; clip-path: inset(55% 0 0 0); }
@keyframes glitch { 0%, 88%, 100% { transform: none; } 90% { transform: translate(-6px, 2px); } 94% { transform: translate(5px, -3px); } }

/* ==========================================================================
   Bandeau CTA + pied de page
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--orange) 0%, #e8892a 45%, var(--gold) 100%); color: #fff; padding: 80px 0; }
.cta-band__grid { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band__title { color: #fff; font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; max-width: 680px; margin-bottom: 10px; }
.cta-band__text { max-width: 600px; color: rgba(255, 255, 255, .9); margin: 0; }
.cta-band .kicker--light { color: var(--ink); }
.cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn--accent { background: var(--ink); }
.cta-band .btn--accent::before { background: #fff; }
.cta-band .btn--accent:hover { color: var(--ink); }

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .66); padding: 90px 0 0; font-size: 15.5px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.brand--footer { margin-bottom: 20px; }
.site-footer__slogan { font-family: var(--f-display); font-weight: 600; color: var(--gold-2); }
.site-footer__title { color: #fff; font-size: 17px; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.site-footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--orange); }
.footer-menu, .site-footer .menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-menu a, .site-footer .menu a { position: relative; transition: color .3s, padding .4s var(--ease); }
.footer-menu a:hover, .site-footer .menu a:hover { color: var(--orange); padding-left: 8px; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact .ico { color: var(--orange); margin-top: 4px; }
.footer-contact a:hover { color: #fff; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: #fff; transition: .4s var(--ease); }
.socials a:hover { background: var(--orange); transform: translateY(-4px); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px var(--gutter); border-top: 1px solid var(--line-dark); font-size: 13.5px; }
.site-footer__bottom .mono { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Flottants ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--slate); color: #fff; opacity: 0; visibility: hidden; transform: translateY(20px); transition: .5s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--gold-2); stroke-width: 2.5; stroke-dasharray: 132; stroke-dashoffset: 132; }
.wa-float { position: fixed; left: 22px; bottom: 22px; z-index: 80; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1fa855; color: #fff; box-shadow: 0 14px 30px -10px rgba(31, 168, 85, .7); transition: transform .4s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1fa855; animation: ping 2.2s var(--ease) infinite; }
.wa-float .ico { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.1) rotate(-8deg); }

/* ==========================================================================
   Révélations au défilement
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--clip { opacity: 1; transform: none; overflow: hidden; }
.reveal--clip:not(.about__img) { position: relative; }
.reveal--clip::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: var(--orange); transform-origin: 50% 0; transition: transform 1.2s var(--ease-io); transition-delay: var(--d, 0s); }
.reveal--clip.is-in::after { transform: scaleY(0); }
.reveal--clip > img { transform: scale(1.25); transition: transform 1.6s var(--ease); transition-delay: var(--d, 0s); }
.reveal--clip.is-in > img { transform: none; }
.reveal--zoom { transform: scale(.88); }
.reveal--zoom.is-in { transform: none; }
.tilt { transition: transform 1s var(--ease), box-shadow .5s var(--ease), border-color .5s, background .5s, opacity 1s var(--ease); transition-delay: var(--d, 0s), 0s, 0s, 0s, var(--d, 0s); }
.tilt:hover { transition-delay: 0s; }
.magnetic { will-change: transform; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.main-nav .menu a { padding: 10px 10px; font-size: 14.5px; }
	.brand__text small { display: none; }
}
@media (max-width: 1024px) {
	:root { --header-h: 72px; }
	.brand-crest { width: 54px; }
	.burger { display: block; }
	.main-nav {
		position: fixed; inset: 0; z-index: 110; flex-direction: column; justify-content: center; align-items: flex-start;
		padding: 100px 32px 40px; gap: 30px; background: var(--ink);
		clip-path: circle(0 at calc(100% - 46px) 46px); transition: clip-path .8s var(--ease-io); visibility: hidden;
	}
	body.nav-open .main-nav { clip-path: circle(150% at calc(100% - 46px) 46px); visibility: visible; }
	body.nav-open { overflow: hidden; }
	body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; box-shadow: none; transform: none !important; }
	body.nav-open .site-header .brand { color: #fff; position: relative; z-index: 120; }
	.main-nav .menu { flex-direction: column; gap: 0; width: 100%; }
	.main-nav .menu a, body.is-scrolled .main-nav .menu a { color: #fff; font-size: clamp(26px, 6vw, 38px); font-weight: 800; padding: 10px 0; }
	.main-nav .menu > li { opacity: 0; transform: translateX(-30px); transition: .6s var(--ease); }
	body.nav-open .main-nav .menu > li { opacity: 1; transform: none; }
	body.nav-open .main-nav .menu > li:nth-child(1) { transition-delay: .25s; }
	body.nav-open .main-nav .menu > li:nth-child(2) { transition-delay: .3s; }
	body.nav-open .main-nav .menu > li:nth-child(3) { transition-delay: .35s; }
	body.nav-open .main-nav .menu > li:nth-child(4) { transition-delay: .4s; }
	body.nav-open .main-nav .menu > li:nth-child(5) { transition-delay: .45s; }
	body.nav-open .main-nav .menu > li:nth-child(6) { transition-delay: .5s; }
	body.nav-open .main-nav .menu > li:nth-child(7) { transition-delay: .55s; }
	.main-nav .menu > li > a::after { left: 0; right: auto; width: 40px; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; padding: 0 0 0 16px; }
	.main-nav .sub-menu a { color: rgba(255, 255, 255, .7) !important; font-size: 18px !important; }
	.hero__inner { grid-template-columns: 1fr; gap: 40px; }
	.hero__cards { grid-template-columns: repeat(3, 1fr); }
	.hero-card { grid-template-columns: 1fr; }
	.hero-card__num { grid-row: auto; justify-self: start; margin-bottom: 10px; }
	.hero-card__meta { grid-column: 1; }
	.hero-card__count { grid-row: auto; grid-column: 1; justify-self: start; margin-top: 10px; }
	.stats__grid { grid-template-columns: repeat(2, 1fr); }
	.about__grid, .docs__grid, .contact__grid, .single-filiere__grid { grid-template-columns: 1fr; }
	.about__media { min-height: 480px; }
	.why__grid, .values__grid, .admit-grid { grid-template-columns: repeat(2, 1fr); }
	.timeline { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
	.timeline::before, .timeline__line { display: none; }
	.bento { grid-template-columns: repeat(2, 1fr); }
	.infra { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.fact-card { position: static; }
	.cycle-block__head { grid-template-columns: 220px 1fr; }
}
@media (max-width: 720px) {
	body { font-size: 16px; }
	.hide-sm { display: none !important; }
	.topbar__info { gap: 14px; font-size: 12.5px; }
	.topbar__info a:nth-child(2) { display: none; }
	.hero { padding-bottom: 110px; }
	.hero__cards { grid-template-columns: 1fr; }
	.hero-card { grid-template-columns: auto 1fr auto; }
	.hero-card__num { grid-row: span 2; margin: 0; align-self: center; }
	.hero-card__meta { grid-column: 2; }
	.hero-card__count { grid-row: 1 / span 2; grid-column: 3; margin: 0; align-self: center; }
	.hero__coords { display: none; }
	.hero__stripes { width: 80%; bottom: 6%; opacity: .5; }
	.hero__actions .btn { width: 100%; }
	.stats__grid, .why__grid, .values__grid, .admit-grid, .timeline, .infra, .form__row, .debouches { grid-template-columns: 1fr; }
	.about__media { min-height: 380px; }
	.about__badge { width: 116px; height: 116px; }
	.about__badge-crest { width: 56px; }
	.about__badge-text text { font-size: 12.5px; }
	.tabs { display: flex; width: 100%; overflow-x: auto; }
	.tabs__btn { padding: 10px 14px; font-size: 14px; flex: 1; white-space: nowrap; }
	.tab-panel__intro p { margin: 6px 0 0; }
	.bento, .bento--3 { grid-template-columns: 1fr; grid-auto-rows: 240px; }
	.bento__item--big, .bento__item--wide { grid-column: auto; grid-row: auto; }
	.bento__item figcaption { opacity: 1; transform: none; }
	.cycle-block__head { grid-template-columns: 1fr; }
	.cycle-block__img { height: 170px; }
	.filter-bar { position: static; }
	.docs__card { grid-template-columns: 1fr; }
	.docs__card img { max-height: 300px; object-position: top; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
	.cta-band__actions, .cta-band__actions .btn { width: 100%; }
	.page-hero { min-height: 440px; padding-bottom: 60px; }
	.to-top { right: 16px; bottom: 16px; }
	.wa-float { left: 16px; bottom: 16px; }
	body.admin-bar .site-header, body.admin-bar .topbar { margin-top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.reveal, .hero__anim { opacity: 1; transform: none; }
	.reveal--clip::after { display: none; }
	.split-line > span { transform: none; }
}
