/* ==========================================================================
   LTS Academy — feuille principale
   1. Polices  2. Tokens  3. Base  4. Utilitaires  5. Boutons  6. Header / nav
   7. Footer  8. Composants  9. Sections  10. Pages
   ========================================================================== */

/* 1. Polices (hébergées localement, sous-ensemble latin, polices variables) */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/sora.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/manrope.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); }

/* 2. Tokens */
:root {
	--navy: #0E2350;
	--navy-900: #0B1C42;
	--navy-950: #091A3D;
	--cream: #FBFAF6;
	--white: #FFFFFF;
	--sand: #F4EFE2;
	--sand-200: #EFECE2;
	--paper: #EDEAE1;
	--line: #E6E3DA;
	--line-input: #DFDBCF;
	--line-dashed: #D8D3C4;
	--gold: #F4B815;
	--gold-dark: #8A6206;
	--muted: #5A6379;
	--muted-2: #6B7487;
	--brown: #655C43;
	--brown-2: #4A4433;
	--brown-3: #6B6247;
	--on-navy: rgba(251, 250, 246, .76);
	--on-navy-soft: rgba(251, 250, 246, .66);
	--on-navy-line: rgba(251, 250, 246, .16);

	--font-display: "Sora", system-ui, sans-serif;
	--font-body: "Manrope", system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, monospace;

	--container: 1240px;
	--gutter: 24px;
	--radius-pill: 999px;
	--shadow-card: 0 20px 44px rgba(14, 35, 80, .10);
	--shadow-float: 0 22px 50px rgba(6, 15, 40, .34);
	--header-h: 72px;
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--cream);
	color: var(--navy);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .18s; }
a:hover { color: var(--gold-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
/* --site-top-h : hauteur réelle de l'en-tête collant (bandeau d'annonce compris), mesurée par main.js. */
[id] { scroll-margin-top: calc(var(--site-top-h, var(--header-h)) + 24px); }
@media (min-width: 783px) { .admin-bar [id] { scroll-margin-top: calc(var(--site-top-h, var(--header-h)) + 56px); } }
.site-main { display: block; }

@keyframes ltsRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ltsPanel { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 4. Utilitaires */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: var(--cream); padding: 12px 18px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--cream); }
.mono { font-family: var(--font-mono); }
.rise { animation: ltsRise .7s ease both; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* 5. Boutons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 14px 26px; border-radius: var(--radius-pill); border: 1px solid transparent;
	font-size: 15px; font-weight: 800; line-height: 1.2; text-align: center; white-space: nowrap;
	transition: background .2s, color .2s, border-color .2s; cursor: pointer;
}
.btn--sm { min-height: 44px; padding: 12px 20px; font-size: 14px; font-weight: 700; }
.btn--lg { padding: 16px 28px; font-size: 15.5px; }
.btn--block { width: 100%; }
.btn--navy { background: var(--navy); color: var(--cream); }
.btn--navy:hover { background: var(--gold); color: var(--navy); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--cream); color: var(--navy); }
.btn--ghost { border-color: rgba(251, 250, 246, .34); color: var(--cream); font-weight: 700; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--outline { border-color: var(--navy); color: var(--navy); font-weight: 700; }
.btn--outline:hover { background: var(--navy); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.link-arrow { font-size: 14.5px; font-weight: 800; color: var(--navy); display: inline-flex; gap: 8px; align-items: center; }
.link-arrow:hover { color: var(--gold-dark); }

/* 6. Header / navigation */
.site-top { position: sticky; top: 0; z-index: 200; background: var(--cream); }
.admin-bar .site-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-top { top: 0; } }

.annonce {
	background: var(--navy-900); color: var(--cream); padding: 10px 20px;
	display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: center;
	font-size: 13.5px; font-weight: 600; letter-spacing: .01em; text-align: center;
}
.annonce__text { display: inline-flex; align-items: center; gap: 8px; }
.annonce__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; flex-shrink: 0; }
.annonce__link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.annonce__link:hover { color: var(--cream); }
/* Mobile : bandeau masqué (trop haut sur petit écran), l'en-tête démarre en haut de page. */
@media (max-width: 767px) { .annonce { display: none; } }

.site-header { position: relative; background: var(--cream); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; gap: 24px; padding-block: 12px; min-height: var(--header-h); }
.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { height: 46px; width: auto; }
.site-header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.site-header__phone { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }

.nav { margin-left: auto; display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { display: flex; align-items: center; }
/* Rubriques en navy ; l'or reste un accent (soulignement de la rubrique active). Survol limité aux vrais pointeurs : pas d'état collé après un tap. */
.nav__link {
	display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
	font-size: 14.5px; font-weight: 600; white-space: nowrap; color: var(--navy); transition: background .18s, color .18s;
}
.nav__trigger { background: none; border: 0; line-height: inherit; text-align: left; -webkit-tap-highlight-color: transparent; }
.nav__caret { display: block; flex-shrink: 0; opacity: .75; transition: transform .2s; }
.nav__link:hover { color: var(--navy); }
@media (hover: hover) {
	.nav__link:hover { background: var(--sand); }
}
.nav__item.is-current > .nav__link { font-weight: 700; text-decoration: underline 2px var(--gold); text-underline-offset: 7px; }
.nav__item.is-open > .nav__link { background: var(--sand); color: var(--navy); }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }
.nav__phone { display: none; }

.mega {
	display: none; position: absolute; left: 0; right: 0; top: 100%;
	background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
	box-shadow: 0 26px 54px rgba(14, 35, 80, .13);
}
.nav__item.is-open > .mega { display: block; animation: ltsPanel .18s ease both; }
.mega__inner { display: grid; gap: 30px; padding-block: 34px 30px; }
.mega__inner--formations { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.mega__inner--links { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; padding-block: 30px; }
.mega__col { min-width: 0; }
.mega__pole { padding-bottom: 12px; border-bottom: 2px solid var(--navy); font-family: var(--font-display); font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; }
.mega__pole a { display: inline-flex; align-items: center; gap: 7px; }
.mega__pole a:hover { color: var(--gold-dark); }
.mega__icon { flex-shrink: 0; color: var(--gold-dark); }
.mega__filieres { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.mega__filieres a { display: block; padding: 8px 10px; margin-left: -10px; border-radius: 9px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.mega__filieres a:hover, .mega__links a:hover { background: var(--sand); color: var(--navy); }
.mega__aside { display: flex; flex-direction: column; gap: 12px; }
.mega__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 6px; grid-column: span 2; min-width: 0; align-content: start; }
.mega__links a { display: block; padding: 13px 14px; border-radius: 12px; }
.mega__link-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.3; }
.mega__link-desc { display: block; font-size: 12.5px; color: var(--muted-2); line-height: 1.5; margin-top: 4px; }

.promo { border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.promo--navy { background: var(--navy); color: var(--cream); }
.promo--navy .promo__text { color: rgba(251, 250, 246, .72); }
.promo--gold { background: var(--gold); color: var(--navy); }
.promo--gold .promo__text { color: var(--brown-2); }
.promo--dashed { border: 1px dashed var(--line-dashed); border-radius: 14px; padding: 16px 18px; background: var(--sand); gap: 4px; }
.promo--dashed:hover { border-color: var(--gold-dark); color: var(--navy); }
.promo--dashed .promo__text { color: var(--brown-3); font-size: 12.5px; }
.promo--photo { position: relative; padding: 0; min-height: 170px; overflow: hidden; color: var(--cream); }
.promo--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(9, 26, 61, .92), transparent 62%); }
.promo__caption { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; gap: 3px; }
.promo--photo .promo__text { color: rgba(251, 250, 246, .78); font-size: 12.5px; }
.promo__kicker { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.promo--navy .promo__kicker { color: var(--gold); }
.promo__title { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
.promo__title--sm { font-size: 14.5px; font-weight: 700; letter-spacing: 0; }
.promo--photo .promo__title--sm { font-size: 16px; font-weight: 800; }
.promo__text { font-size: 13px; line-height: 1.55; }
.promo__link { margin-top: 6px; font-size: 13.5px; font-weight: 800; color: var(--gold); }
.promo__link:hover { color: var(--cream); }
/* Encart entièrement cliquable (L'école, Entreprises) */
.promo--link { cursor: pointer; transition: transform .2s, box-shadow .2s; }
.promo--link:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14, 35, 80, .14); color: inherit; }
.promo--photo.promo--link:hover { color: var(--cream); }
.promo--photo img { transition: transform .35s; }
.promo--photo.promo--link:hover img { transform: scale(1.03); }
.promo--photo::after { transition: opacity .2s; }
.promo--photo.promo--link:hover::after { opacity: .85; }
.promo--gold.promo--link:hover { color: var(--navy); }
.promo--gold.promo--link:hover .btn--navy { background: var(--navy-900); }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); padding: 0; place-items: center; }
.burger__bars, .burger__bars::before, .burger__bars::after { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger__bars { position: relative; }
.burger__bars::before, .burger__bars::after { content: ""; position: absolute; left: 0; }
.burger__bars::before { top: -6px; }
.burger__bars::after { top: 6px; }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1199px) {
	.site-header__phone { display: none; }
}
@media (max-width: 1079px) {
	:root { --header-h: 64px; }
	.site-header__bar { gap: 12px; padding-block: 10px; }
	.site-header__logo img { height: 40px; }
	.site-header__actions { margin-left: auto; gap: 10px; }
	.burger { display: grid; }
	.nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
		background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 26px 54px rgba(14, 35, 80, .13);
		flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 24px;
	}
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.nav__link { flex: 1; justify-content: space-between; padding: 16px 0; min-height: 48px; font-size: 16px; border-radius: 0; }
	.nav__link:hover, .nav__item.is-open > .nav__link { background: none; }
	.mega { position: static; width: 100%; border: 0; box-shadow: none; background: none; }
	.nav__item.is-open > .mega { animation: none; }
	.mega .container { padding-inline: 0; }
	.mega__inner { padding-block: 4px 18px; gap: 22px; }
	.mega__inner--formations, .mega__inner--links { grid-template-columns: 1fr; }
	.mega__links { grid-column: auto; grid-template-columns: 1fr; }
	.mega__links a, .mega__filieres a { margin-left: 0; padding-inline: 0; }
	.promo--photo { display: none; }
	.nav__phone { display: block; margin-top: 18px; font-family: var(--font-mono); font-weight: 500; font-size: 15px; }
}
@media (max-width: 479px) {
	:root { --gutter: 16px; }
	.site-header__logo img { height: 34px; }
	.site-header__actions .btn--sm { padding-inline: 14px; }
}
body.nav-open { overflow: hidden; }

/* 7. Footer */
.site-footer { background: var(--navy-950); color: var(--cream); padding: 64px 0 28px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.site-footer__brand img { height: 50px; width: auto; }
.site-footer__brand p { font-size: 14px; line-height: 1.66; color: var(--on-navy-soft); margin-top: 18px; max-width: 34ch; }
.site-footer__title { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.footer__links { display: flex; flex-direction: column; gap: 11px; margin-top: 16px; font-size: 14.5px; color: rgba(251, 250, 246, .78); }
.footer__links a { color: rgba(251, 250, 246, .78); }
.site-footer a:hover { color: var(--gold); }
.site-footer__bottom {
	margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(251, 250, 246, .14);
	display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
	font-size: 12.5px; color: rgba(251, 250, 246, .6);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer__legal a { color: rgba(251, 250, 246, .6); }

/* 8. Composants */
.kicker { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }
.on-navy .kicker, .kicker--gold { color: var(--gold); }
h2.kicker { font-family: inherit; line-height: inherit; } /* Surtitre porté par un titre (hiérarchie) : même rendu qu'un span. */
.h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.08; margin-top: 14px; text-wrap: balance; }
.h2--md { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; }
.h2--sm { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.12; }
.h1-page { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.06; letter-spacing: -.03em; margin-top: 14px; text-wrap: balance; }
.lead { font-size: 16.5px; line-height: 1.65; color: var(--muted); }
.on-navy { background: var(--navy); color: var(--cream); }
.on-navy .lead { color: var(--on-navy); }

.section { padding-top: 96px; }
.section--sm { padding-top: 80px; }
.section--last { padding-bottom: 96px; }
.section-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; align-items: end; }
.section-head > * { min-width: 0; }
.page-head { padding-top: 64px; }
.page-head .lead { margin-top: 18px; max-width: 60ch; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted-2); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.breadcrumb a { color: inherit; }
.breadcrumb [aria-current] { color: var(--gold-dark); }
.breadcrumb--dark ol { color: rgba(251, 250, 246, .6); }
.breadcrumb--dark a:hover, .breadcrumb--dark [aria-current] { color: var(--gold); }

.check { width: 24px; height: 24px; border-radius: 7px; background: var(--gold); color: var(--navy); display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; flex-shrink: 0; }
.check--navy { background: var(--navy); color: var(--gold); font-size: 12px; }
.diamond-list { display: flex; flex-direction: column; gap: 11px; margin-top: 26px; }
.diamond-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; font-weight: 600; color: var(--navy); }
.diamond-list li::before { content: "◆"; color: var(--gold-dark); flex-shrink: 0; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
	display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 12px 20px; border-radius: var(--radius-pill);
	border: 1px solid var(--line); background: var(--white); color: var(--navy);
	font-size: 14px; font-weight: 700; transition: all .2s;
}
.pill:hover { border-color: var(--navy); }
.pill[aria-selected="true"], .pill[aria-pressed="true"], .pill.is-active { border-color: var(--navy); background: var(--navy); color: var(--cream); }
.pill--lg { padding: 13px 22px; font-size: 14.5px; }
.pill__num { font-family: var(--font-mono); font-size: 11.5px; opacity: .7; }

.card { border: 1px solid var(--line); border-radius: 16px; background: var(--white); padding: 22px; min-width: 0; transition: all .2s; }
.card--hover:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(14, 35, 80, .08); }
.card--hover-gold:hover { border-color: var(--gold); box-shadow: 0 16px 34px rgba(14, 35, 80, .07); }
.grid-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(265px, 100%), 1fr)); margin-top: 32px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(178px, 100%), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.facts > div { background: var(--white); padding: 22px 20px; min-width: 0; }
.facts dt { font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--gold-dark); }
.facts dd { margin: 8px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 16.5px; line-height: 1.3; }

.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--on-navy-line); }
.step__num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--gold); flex-shrink: 0; width: 34px; }
.step__title { font-family: var(--font-display); font-weight: 700; font-size: 17.5px; line-height: 1.25; }
.step__desc { font-size: 14.5px; line-height: 1.6; color: rgba(251, 250, 246, .72); margin-top: 6px; }
.steps--light .step { gap: 18px; padding: 20px 0; border-bottom-color: var(--paper); }
.steps--light .step__num { color: var(--gold-dark); font-size: 14px; width: 30px; }
.steps--light .step__title { font-size: 16.5px; }
.steps--light .step__desc { color: var(--muted); font-size: 14px; margin-top: 5px; }

.panel-navy { position: relative; overflow: hidden; background: var(--navy); color: var(--cream); border-radius: 26px; padding: clamp(30px, 3.6vw, 52px); }
.panel-navy::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 400px at 90% 100%, rgba(244, 184, 21, .14), transparent 62%); }
.panel-navy > * { position: relative; }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: 16px; background: var(--white); overflow: hidden; transition: border-color .2s; }
.faq__item[open] { border-color: var(--navy); }
.faq__q {
	display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 20px 22px; cursor: pointer; list-style: none;
	font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.35;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--sand); color: var(--navy); display: grid; place-items: center; font-size: 14px; font-weight: 800; transition: transform .25s; }
.faq__item[open] .faq__icon { background: var(--navy); color: var(--gold); transform: rotate(45deg); }
.faq__a { padding: 0 22px 22px; font-size: 14.5px; line-height: 1.68; color: var(--muted); max-width: 64ch; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; margin-top: 34px; }
.gallery figure { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--paper); min-width: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(to top, rgba(9, 26, 61, .88), transparent); color: var(--cream); font-size: 12.5px; font-weight: 700; line-height: 1.35; }

/* Carrousel de photos : 4 visibles (desktop), 2 (tablette), 1 principale (mobile) */
.carousel { margin-top: 34px; }
.gallery--carousel { margin-top: 0; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 14px) / 4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; }
.gallery--carousel::-webkit-scrollbar { display: none; }
.gallery--carousel figure { scroll-snap-align: start; }
@media (max-width: 1079px) { .gallery--carousel { grid-auto-columns: calc((100% - 14px) / 2); } }
@media (max-width: 639px) { .gallery--carousel { grid-auto-columns: 86%; } }
.carousel__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.carousel.is-static .carousel__nav { display: none; }
.carousel__btn { width: 46px; height: 46px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--navy); cursor: pointer; transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.carousel__btn:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.carousel__btn:disabled { opacity: .4; cursor: default; }

.tabs { display: flex; gap: 8px; background: var(--sand-200); border-radius: var(--radius-pill); padding: 5px; flex-wrap: wrap; }
.tabs__btn { border: 0; border-radius: var(--radius-pill); min-height: 44px; padding: 11px 20px; font-size: 14px; font-weight: 700; background: transparent; color: var(--muted); transition: all .2s; }
.tabs__btn[aria-selected="true"] { background: var(--navy); color: var(--cream); }

/* Formulaires */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 16px; }
.form__full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); min-width: 0; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 50px; border: 1px solid var(--line-input); border-radius: 11px; padding: 14px 15px;
	font-size: 16px; color: var(--navy); background: var(--cream); text-transform: none; letter-spacing: normal; font-weight: 500;
	transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background-color: var(--white); box-shadow: 0 0 0 3px rgba(244, 184, 21, .35); }
.field [aria-invalid="true"] { border-color: #B42318; }
.field__error { font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #B42318; }
.form__note { font-size: 12.5px; line-height: 1.6; color: var(--muted-2); }
.form__alert { padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; background: #FDECEA; color: #8A1C12; }
.form .btn { margin-top: 6px; min-height: 54px; font-size: 15.5px; }
.form [aria-busy="true"] { opacity: .7; pointer-events: none; }
.form-success { display: flex; flex-direction: column; justify-content: center; gap: 14px; text-align: center; padding: 30px 0; height: 100%; }
.form-success__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-size: 24px; font-weight: 800; margin: 0 auto; }
.form-success__title { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.form-success__text { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 38ch; margin: 0 auto; }

.split-card { border: 1px solid var(--line); border-radius: 26px; background: var(--white); overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.split-card > * { padding: clamp(30px, 3.4vw, 50px); min-width: 0; }
.split-card__aside { background: var(--sand); }
.split-card__aside .h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); max-width: 20ch; }
.split-card__aside p.split-card__text { font-size: 15.5px; line-height: 1.66; color: var(--brown); margin-top: 18px; max-width: 42ch; }

.prose { max-width: 760px; font-size: 16.5px; line-height: 1.75; color: var(--muted); }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { color: var(--navy); margin-top: 1.8em; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.25rem; }
.prose a { color: var(--gold-dark); text-decoration: underline; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }

/* 9. Sections partagées */
.section--md { padding-top: 72px; }
.h2--xs { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.12; margin: 0; }
.list-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: 0; margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; }
.tag { border-radius: var(--radius-pill); padding: 6px 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; }
.tag--outline { border: 1px solid rgba(251, 250, 246, .3); color: var(--gold); font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.tag--soft { background: rgba(251, 250, 246, .12); }
.pill-kicker { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(251, 250, 246, .28); border-radius: var(--radius-pill); padding: 7px 15px; font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--gold); }

.hero-page { position: relative; overflow: hidden; }
.hero-page::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(880px 480px at 82% 0%, rgba(244, 184, 21, .16), transparent 62%); }
.hero-page > .container { position: relative; }
.hero-page .breadcrumb { padding-top: 22px; }
.hero-page__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr)); gap: 48px; align-items: center; padding-block: 34px 60px; }
.hero-page__content, .hero-page__media { min-width: 0; }
.hero-page__title { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.06; letter-spacing: -.03em; margin-top: 20px; text-wrap: balance; }
.hero-page__text { font-size: clamp(15.5px, 1.25vw, 18px); line-height: 1.62; color: rgba(251, 250, 246, .78); max-width: 52ch; margin-top: 18px; }
.hero-page__media { position: relative; }
.hero-page__img { aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; border: 1px solid rgba(251, 250, 246, .18); background: var(--navy-900); }
.hero-page__img img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; left: -10px; bottom: -22px; background: var(--cream); color: var(--navy); border-radius: 15px; padding: 14px 17px; box-shadow: var(--shadow-float); max-width: 230px; }
.float-card__kicker { font-size: 11px; color: var(--gold-dark); letter-spacing: .1em; }
.float-card__kicker:not(.mono) { font-family: var(--font-body); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.float-card__text { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.3; margin-top: 5px; }
@media (max-width: 640px) { .float-card { left: 12px; } }

.subnav { background: var(--white); border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; gap: 24px; overflow-x: auto; font-size: 14px; font-weight: 700; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a { padding: 16px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { border-color: var(--gold); color: var(--navy); }
.subnav .subnav__cta { color: var(--gold-dark); }

.section--level { padding-top: 44px; }
.level-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.level-bar__label { font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }
.tabs__btn[aria-pressed="true"] { background: var(--navy); color: var(--cream); }
.level-title { margin-top: 14px; font-size: 13.5px; color: var(--muted-2); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 52px; align-items: start; }
.split > * { min-width: 0; }
.split__lead { margin-top: 18px; max-width: 52ch; line-height: 1.68; }
.note { margin-top: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); padding: 22px; display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.note .check { width: 26px; height: 26px; border-radius: 8px; }
.note--lg { margin-top: 0; font-size: 16px; }
.check-list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: start; font-size: 15px; line-height: 1.6; }

.module { display: flex; gap: 14px; align-items: flex-start; padding: 20px; }
.module__num { font-size: 12px; color: var(--gold-dark); flex-shrink: 0; padding-top: 2px; }
.module__name { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; line-height: 1.38; }

.admission-card { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.admission-card > * { padding: clamp(28px, 3.2vw, 46px); min-width: 0; }
.admission-card__main { background: var(--sand); }
.admission-card__main .h2 { max-width: 20ch; }
.admission-card__text { font-size: 15.5px; line-height: 1.66; color: var(--brown); margin-top: 16px; max-width: 44ch; }
.admission-card__aside { background: var(--white); }
.admission-card__aside .steps { margin-bottom: 24px; }

.job { display: flex; flex-direction: column; gap: 7px; }
.job__title { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.3; }
.job__ctx { font-size: 13.5px; line-height: 1.55; color: var(--muted-2); }

.panel-navy--top::before { background: radial-gradient(640px 380px at 92% 0%, rgba(244, 184, 21, .15), transparent 62%); }
.suite { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 40px; align-items: center; }
.suite > * { min-width: 0; }
.suite__title { max-width: 22ch; }
.suite__text { font-size: 15.5px; line-height: 1.66; color: var(--on-navy); margin: 16px 0 24px; max-width: 46ch; }
.suite__points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; margin: 0; }
.suite__points > div { border: 1px solid rgba(251, 250, 246, .22); border-radius: 14px; padding: 18px; min-width: 0; }
.suite__points dt { font-size: 11px; color: var(--gold); letter-spacing: .1em; }
.suite__points dd { margin: 7px 0 0; font-size: 14.5px; line-height: 1.5; font-weight: 600; }

/* Carte filière (grille d'un pôle, « Autres filières » d'une fiche) : template-parts/components/filiere-card.php */
.filiere-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.filiere-card { height: 100%; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.filiere-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(11, 27, 58, .45); color: var(--navy); }
.filiere-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); }
.filiere-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.filiere-card:hover .filiere-card__img img { transform: scale(1.04); }
.filiere-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.filiere-card__codes { display: block; min-height: 18px; font-size: 11px; line-height: 18px; letter-spacing: .04em; color: var(--gold-dark); }
.filiere-card__name { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; line-height: 1.3; color: var(--navy); }
.filiere-card__desc { font-size: 13.5px; line-height: 1.5; color: var(--muted-2); }
.filiere-card__arrow { margin-top: auto; align-self: flex-end; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--navy); transition: background .2s, border-color .2s; }
.filiere-card:hover .filiere-card__arrow { background: var(--gold); border-color: var(--gold); }
@media (max-width: 1079px) { .filiere-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .filiere-grid { grid-template-columns: 1fr; } }

.chip { border: 1px solid var(--navy); background: var(--navy); color: var(--cream); border-radius: var(--radius-pill); padding: 10px 16px; min-height: 40px; font-size: 13.5px; font-weight: 700; }
.chip--empty { border: 1px dashed var(--line-input); background: transparent; color: var(--muted-2); display: inline-flex; align-items: center; }
.chip--link { cursor: pointer; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: border-color .2s, color .2s, text-decoration-color .2s; }
.chip--link:hover { border-color: var(--gold-dark); color: var(--navy); text-decoration-color: currentColor; }

.mosaic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.mosaic > div { border-radius: 18px; overflow: hidden; min-width: 0; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__wide { grid-column: span 2; aspect-ratio: 16 / 10; }
.mosaic__wide img { object-position: center 34%; }
.mosaic__square { aspect-ratio: 1; }
.mosaic__card { aspect-ratio: 1; background: var(--navy); color: var(--cream); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; overflow-wrap: break-word; }
.mosaic__kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.mosaic__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3vw, 38px); line-height: 1; letter-spacing: -.03em; }
.mosaic__text { font-size: clamp(12px, 1.2vw, 13.5px); color: rgba(251, 250, 246, .74); font-weight: 600; line-height: 1.5; margin-top: 8px; }

.ecole { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 52px; align-items: center; }
.ecole > * { min-width: 0; }
.section--mid { padding-top: 84px; }
