/*
 * Couche de design « grande école » : sobre, éditoriale, dense en information.
 * Chargée après main.css et content.css : elle recompose les composants sans toucher à la navigation.
 */

@font-face {
	font-family: "Source Serif 4";
	src: url("../fonts/source-serif.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("../fonts/source-serif-ext.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons ---------- */
:root {
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--ink: #0b1f3a;
	--paper: #f5f7fa;
	--line: #dde3ec;
	--muted: #4a5b73;
	--radius: 10px;
	--radius-s: 6px;
	--shadow: 0 1px 2px rgb(0 28 59 / 6%), 0 8px 22px rgb(0 28 59 / 7%);
	--measure: 68ch;
	--hdr-h: 76px;
	/* Teinte par défaut (cycle 1) */
	--hb: #001c3b; /* fond sombre des bandeaux */
	--ha: #f2b31b; /* accent lisible sur fond sombre */
	--tx: #b33926; /* accent lisible sur fond clair (AA) */
	--ts: #fbefec; /* fond d'accent très clair */
	--tt: #7a2112; /* texte sur --ts (AA) */
}
[data-tone="1"] { --hb: #001c3b; --ha: #f2b31b; --tx: #b33926; --ts: #fbefec; --tt: #7a2112; }
[data-tone="2"] { --hb: #0a2d57; --ha: #8bb8ff; --tx: #1f5bbf; --ts: #eaf1fd; --tt: #14408a; }
[data-tone="3"] { --hb: #06302a; --ha: #5fd3ae; --tx: #137a5b; --ts: #e4f5ee; --tt: #0b5640; }
[data-tone="4"] { --hb: #2e1a08; --ha: #f2b31b; --tx: #8a5a00; --ts: #fbf1d8; --tt: #6a4400; }
[data-tone="5"] { --hb: #1b2a6b; --ha: #a9c4ff; --tx: #2a5fd0; --ts: #e9eefc; --tt: #1b3f94; }
[data-tone="6"] { --hb: #3a1410; --ha: #ffb59f; --tx: #9a3b24; --ts: #fbeae4; --tt: #7a2a16; }

html { scroll-padding-top: 150px; }
body { line-height: 1.65; color: var(--ink); }
h1, h2, h3, h4 { text-wrap: balance; }
h2, .section-head h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.18; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.01em; }
.prose { max-width: var(--measure); }
.prose p, .prose li { line-height: 1.7; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.2rem; }
.prose a { color: var(--tx, var(--brick)); text-decoration-thickness: 1px; }

.page-hero :focus-visible, .hero :focus-visible, .cta-band :focus-visible, .section--navy :focus-visible, .site-footer :focus-visible, .apply--dark :focus-visible { outline-color: var(--sun); }

/* ---------- Boutons ---------- */
.btn { border-radius: var(--radius-s); font-weight: 600; letter-spacing: 0; }
.btn--lg { min-height: 54px; }
.btn--brick:hover { background: var(--brick-d); }
.btn--ghost { border-width: 1.5px; }
.link-arrow { border-bottom-color: var(--tx, var(--brick)); }
.link-arrow:hover { color: var(--tx, var(--brick)); }
.eyebrow { display: block; margin: 0 0 .7em; font: 700 .76rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--tx); }
.page-hero .eyebrow, .hero .eyebrow, .section--navy .eyebrow { color: var(--ha, var(--sun)); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(48px, 6.5vw, 92px); }
.section--tint { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { max-width: 64ch; margin-bottom: clamp(24px, 3.5vw, 44px); }
.section-head h2 { margin-bottom: .35em; }
.section-head h2::after { content: ""; display: block; width: 44px; height: 3px; margin-top: .55em; background: var(--tx, var(--brick)); }
.section--navy .section-head h2::after, .section--navy h2::after { background: var(--sun); }
.section-head p { font-size: 1.08rem; line-height: 1.6; }
.section-head--row { max-width: none; }
.group-title { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; padding-bottom: .4em; border-bottom: 1px solid var(--line); }
.empty { border-radius: var(--radius); border-style: solid; border-width: 1px; background: var(--paper); }

/* ---------- Bandeaux de page ---------- */
.page-hero { background: var(--hb); color: #fff; border-bottom: 4px solid var(--ha); }
.page-hero::after { display: none; }
.page-hero__pattern { --pb: var(--hb); opacity: .22; -webkit-mask-image: linear-gradient(100deg, transparent 38%, #000 100%); mask-image: linear-gradient(100deg, transparent 38%, #000 100%); }
.page-hero__in { padding-block: clamp(32px, 4.6vw, 60px) clamp(36px, 5vw, 64px); }
.page-hero--facts .page-hero__in { padding-bottom: calc(clamp(36px, 5vw, 64px) + 40px); }
.page-hero h1 { max-width: 26ch; margin-bottom: .35em; font-family: var(--serif); font-weight: 600; font-size: clamp(1.95rem, 4.2vw, 3.15rem); line-height: 1.1; letter-spacing: -0.015em; color: #fff; }
.page-hero__lead { max-width: 62ch; font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.6; color: rgb(255 255 255 / 90%); }
.page-hero__kicker { margin: 0 0 .9em; font: 700 .78rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ha); }
.page-hero__kicker a { text-decoration: none; }
.page-hero__kicker a:hover { text-decoration: underline; }
.page-hero__kicker span + span::before { content: "·"; margin: 0 .6em; opacity: .7; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.crumbs { margin-bottom: 22px; font-size: .86rem; }
.crumbs ol { gap: 2px 8px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; opacity: .6; }
.crumbs a { opacity: .88; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; opacity: 1; }
.crumbs [aria-current] { opacity: .75; }
.school-hero__kicker { color: var(--ha); }
.school-hero h1 { max-width: 26ch; }
.school-hero__actions { margin-top: 28px; }

/* ---------- Bandeau de chiffres clés ---------- */
.keyfacts { position: relative; z-index: 3; margin-top: -38px; margin-bottom: 0; }
.keyfacts__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-top: 4px solid var(--tx); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.keyfacts__list > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 16px 20px 18px; background: #fff; }
.keyfacts dt { font: 700 .72rem/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.keyfacts dd { margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.keyfacts--figures dd { font-family: var(--serif); font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 600; line-height: 1; color: var(--tx); }
.keyfacts--figures dt { letter-spacing: .06em; }

/* Fiches de données classiques */
.facts { gap: 1px; background: var(--line); border-radius: var(--radius); }
.facts > div { margin: 0; border: 0; background: #fff; padding: 16px 20px; }
.facts dt { font: 700 .72rem/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.facts dd { margin-top: 4px; }

/* ---------- Navigation locale (repères de page) ---------- */
.subnav { position: sticky; top: var(--hdr-h); z-index: 30; margin-top: 28px; background: #fff; border-block: 1px solid var(--line); }
.subnav__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.subnav__list { display: flex; gap: 2px; margin: 0 -8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list a { display: block; padding: 15px 14px 13px; border-bottom: 3px solid transparent; font-size: .95rem; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.subnav__list a:hover { color: var(--ink); }
.subnav__list a.is-active, .subnav__list a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--tx); }
.subnav__cta { flex: none; }
@media (max-width: 760px) {
	.subnav__cta { display: none; }
	.subnav { margin-top: 20px; }
}

/* ---------- Page détail ---------- */
.detail { grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 5vw, 72px); padding-block: clamp(32px, 4.5vw, 56px) clamp(48px, 6vw, 88px); counter-reset: dsec; }
.detail__aside { top: calc(var(--hdr-h) + 72px); display: grid; gap: 16px; }
.detail__main > .prose:first-child { margin-top: 0; }
.dsec { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(28px, 3.5vw, 40px); border-top: 1px solid var(--line); counter-increment: dsec; }
.dsec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.dsec > h2 { margin-bottom: .7em; }
.dsec > h2::before { content: counter(dsec, decimal-leading-zero); display: block; margin-bottom: .45em; font: 700 .78rem/1 var(--font); letter-spacing: .14em; color: var(--tx); }
.dsec > .lead { max-width: var(--measure); margin: -.2em 0 1.4em; font-size: 1.08rem; color: var(--muted); }
.block { margin-top: clamp(36px, 4.5vw, 56px); }
.block h2 { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.detail__img { border-radius: var(--radius); margin-bottom: 28px; }

.callout { margin: 0 0 1.6em; padding: 20px 24px; border-left: 4px solid var(--tx); border-radius: 0 var(--radius) var(--radius) 0; background: var(--ts); color: var(--ink); }
.callout__title { margin: 0 0 .5em; font: 700 .76rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--tt); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout .ticks { gap: 8px; }
.note { border-left-width: 4px; border-left-color: var(--tx); background: var(--ts); border-radius: 0 var(--radius) var(--radius) 0; }
.note h2, .note h3 { font-family: var(--font); font-size: 1rem; }

/* Listes */
.ticks li::before { background-color: var(--tx); }
.chips { gap: 8px; }
.chips li, .chip { border-radius: var(--radius-s); background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--tx); padding: .45em .9em; font-size: .95rem; font-weight: 500; }
.chip { border-left-width: 1px; }
.chip.is-active { background: var(--ink); border-color: var(--ink); }
.cards-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.cards-list li { padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--tx); border-radius: var(--radius-s); background: #fff; font-weight: 500; }

/* ---------- Programme : onglets par année, tableaux par semestre ---------- */
.curriculum__summary { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0 0 20px; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.curriculum__summary strong { color: var(--ink); }
.tabs__list { display: flex; gap: 0; margin-bottom: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.tabs__tab { flex: none; margin-bottom: -1px; padding: 12px 22px 11px; border: 0; border-bottom: 3px solid transparent; background: none; font: 700 1rem/1.25 var(--font); color: var(--muted); text-align: left; cursor: pointer; }
.tabs__tab small { display: block; margin-top: 2px; font-size: .78rem; font-weight: 500; }
.tabs__tab:hover { color: var(--ink); background: var(--paper); }
.tabs__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--tx); }
.tabs__panel { padding-top: 22px; }
.tabs__heading { margin: 0 0 14px; font-size: 1.2rem; }
.is-tabs .tabs__heading { display: none; }
.is-tabs .tabs__panel + .tabs__panel { margin-top: 0; }
.tabs__panel + .tabs__panel { margin-top: 32px; }
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; align-items: start; }
.term { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; break-inside: avoid; }
.term__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
.term__head h3, .term__head h4 { margin: 0; font-size: 1rem; }
.term__head span { font-size: .84rem; color: var(--muted); white-space: nowrap; }
.modules { counter-reset: mod; margin: 0; }
.modules li { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 11px 18px 11px 46px; border-bottom: 1px solid var(--line); counter-increment: mod; line-height: 1.4; }
.modules li:last-child { border-bottom: 0; }
.modules li::before { content: counter(mod, decimal-leading-zero); position: absolute; left: 18px; top: 13px; font: 700 .76rem/1 var(--font); color: var(--tx); font-variant-numeric: tabular-nums; }
.modules__t { flex: 1; }
.modules__h { margin-left: auto; padding-left: 8px; font-size: .84rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.program { display: block; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--paper); font: 700 .74rem/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.table tbody th { font-weight: 600; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table td:last-child, .table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody th { width: 38%; }
.table td:last-child { min-width: 9.5em; }
.table tr.is-total > * { background: var(--ts); color: var(--tt); font-weight: 700; }
.table-note { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- Étapes verticales ---------- */
.steps-v { counter-reset: sv; display: grid; gap: 0; margin: 0 0 1.5em; }
.steps-v li { position: relative; padding: 0 0 26px 58px; counter-increment: sv; }
.steps-v li::before { content: counter(sv); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; }
.steps-v li::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; background: var(--line); }
.steps-v li:last-child { padding-bottom: 0; }
.steps-v li:last-child::after { display: none; }
.steps-v h3 { margin: 0 0 .2em; font-size: 1.08rem; }
.steps-v p { margin: 0; color: var(--muted); max-width: 60ch; }
.doc-list { columns: 2 260px; column-gap: 32px; }
.doc-list li { break-inside: avoid; margin-bottom: 10px; }

/* ---------- Passerelles ---------- */
.pathway__list a { background: var(--paper); }
.pathway__list li[aria-current] a { background: var(--hb); color: #fff; }
.pathway__list li[aria-current] a span { color: rgb(255 255 255 / 85%); }
.pathway__list a:hover { background: var(--ts); }
.pathway__list li[aria-current] a:hover { background: var(--hb); }

/* ---------- Encart d'action ---------- */
.apply { padding: 24px; border-radius: var(--radius); background: #fff; color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--tx); box-shadow: var(--shadow); gap: 14px; }
.apply__label { margin: 0; font: 700 .72rem/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.apply__price { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--ink); }
.apply__price small { font-family: var(--font); color: var(--muted); }
.apply .btn--ghost { border-color: var(--ink); color: var(--ink); }
.apply .btn--ghost:hover { background: var(--ink); color: #fff; }
.apply__note, .apply__closed { color: var(--muted); }
.help { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: .95rem; }
.help h2 { margin: 0 0 .5em; font: 700 .76rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.help .contact-list { gap: 8px; }
.help .contact-list .icon { color: var(--tx); }
.help p { margin: 0 0 .6em; }

/* ---------- Fiches de formation (cartes) ---------- */
.grid { gap: 20px; }
.fcard { display: flex; border: 1px solid var(--line); border-top: 3px solid var(--tx); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.fcard::after { display: none; }
.fcard:hover { transform: none; border-color: var(--ink); border-top-color: var(--tx); box-shadow: var(--shadow); }
.fcard__link { display: flex; flex-direction: column; width: 100%; }
.fcard .media { aspect-ratio: 16 / 8; }
.fcard__body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 16px; }
.fcard__eyebrow { margin: 0 0 .5em; font: 700 .72rem/1.3 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--tx); }
.fcard__title { margin-bottom: .25em; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.22; letter-spacing: -0.005em; }
.fcard__school { margin: 0 0 .7em; font-size: .9rem; }
.fcard__excerpt { margin: 0 0 14px; color: var(--muted); font-size: .94rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fcard__meta { margin-top: auto; padding-top: 12px; }
.fcard__meta span { font-size: .88rem; }
.fcard__meta .fcard__price { color: var(--ink); font-weight: 700; }
.fcard__go { color: var(--tx); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .3em; }
.fcard:hover .fcard__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.media--pattern { background: var(--hb); --pb: var(--hb); }
.media--pattern .pattern { opacity: .3; }
.pcard { border-radius: var(--radius); }
.pcard:hover { transform: none; border-color: var(--ink); }
.pcard__title { font-family: var(--serif); font-weight: 600; }
.pcard .media { aspect-ratio: 16 / 9; }

/* ---------- Recherche de formations ---------- */
.finder { padding-block: clamp(36px, 5vw, 64px); }
.finder__form { gap: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.finder .field label { font: 700 .74rem/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input:not([type=checkbox]):not([type=range]), .field select, .field textarea, .field__box { border-radius: var(--radius-s); border-color: #aeb9cc; }
.finder__count { margin: 0 0 16px; font-weight: 600; color: var(--muted); }
.section--tint .finder__form { background: #fff; }

/* ---------- Page d'école ---------- */
.school-about__in { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.school-about__card { padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--line); border-top: 4px solid var(--tx); background: var(--paper); box-shadow: none; }
.school-about__card h3 { margin-bottom: .8em; font: 700 .76rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.specialties { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.specialty { padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--line); border-top: 4px solid var(--tx); background: #fff; box-shadow: none; }
.specialty h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.specialty h4 { margin: 1.3em 0 .6em; font: 700 .72rem/1.3 var(--font); letter-spacing: .12em; color: var(--muted); }
.specialty--core { background: var(--hb); border-color: var(--hb); border-top-color: var(--ha); color: #fff; }
.specialty--core h4 { color: rgb(255 255 255 / 78%); }
.specialty--core .chips li { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 22%); border-left-color: var(--ha); color: #fff; }
.specialty--core .ticks li::before { background-color: var(--ha); }
.specialty .chips li { font-size: .9rem; }
.cycle-block { margin-bottom: clamp(36px, 5vw, 60px); scroll-margin-top: 150px; }
.cycle-block__head { gap: 6px 28px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); position: relative; }
.cycle-block__head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; background: var(--tx); }
.cycle-block__head h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; }
.cycle-block__head a { text-decoration: none; }
.cycle-block__meta { font-size: .9rem; }
.cycle-about { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }

/* ---------- Page de l'institut ---------- */
.about-mv__card { border-radius: var(--radius); border: 1px solid var(--line); border-top: 4px solid var(--tx); box-shadow: none; }
.about-mv__card h2 { font-size: 1.6rem; }
.values li { border-radius: var(--radius); border-top: 3px solid var(--tx); }
.values__n { font-family: var(--serif); font-weight: 600; color: var(--tx); }
.values h3 { font-family: var(--serif); font-weight: 600; }
.org li { padding-right: 24px; }
.incubator__points { border-radius: var(--radius); }

/* ---------- FAQ ---------- */
.faq__group h3 { font: 700 .76rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--tx); margin-bottom: 1em; }
.faq__item { border-radius: var(--radius); margin-bottom: 8px; }
.faq__item summary { padding: 17px 54px 17px 22px; font-weight: 600; line-height: 1.4; }
.faq__item summary::after { color: var(--tx); }
.faq__item[open] { border-color: var(--ink); box-shadow: none; }
.faq__item[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.faq__item .prose { padding: 0 22px 20px; max-width: 64ch; }

/* ---------- Accueil ---------- */
.hero { background: var(--hb); }
.hero__in { align-items: end; padding-top: clamp(44px, 7vw, 96px); }
.hero__copy { padding-bottom: clamp(36px, 6vw, 84px); }
.hero h1 { max-width: 17ch; font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 4.8vw, 3.9rem); line-height: 1.07; letter-spacing: -0.02em; }
.hero__lead { max-width: 56ch; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgb(255 255 255 / 90%); }
.hero__countdown { border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.stair { align-self: center; margin-bottom: clamp(28px, 5vw, 64px); padding: 22px 24px 14px; border: 1px solid rgb(255 255 255 / 20%); border-radius: var(--radius); background: rgb(255 255 255 / 6%); }
.stair::before { content: "Un cycle pour chaque niveau d'entrée"; display: block; margin-bottom: 10px; font: 700 .74rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ha); }
.stair__steps { display: block; height: auto; }
.stair__step { position: static; height: auto; min-height: 0; animation: none; border-top: 1px solid rgb(255 255 255 / 16%); }
.stair__step a { position: static; display: flex; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 4px; background: none; border: 0; border-radius: 0; overflow: visible; transition: background .15s, padding .15s; }
.stair__pattern { display: none; }
.stair__label { display: contents; }
.stair__label strong { font-size: 1.02rem; font-weight: 600; overflow-wrap: normal; }
.stair__label small { display: block; font-size: .86rem; color: rgb(255 255 255 / 78%); text-align: right; }
.stair__step a:hover, .stair__step a:focus-visible { transform: none; background: rgb(255 255 255 / 8%); padding-inline: 12px; }
.stair__step a::after { display: none; }

.stats { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.stats__list { gap: 0; padding: 0; }
.stats__list > div { padding: 26px 24px; border-left: 1px solid var(--line); }
.stats__list > div:first-child { border-left: 0; padding-left: 0; }
.stats dd { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -0.02em; color: var(--ink); }
.stats dt { font-size: .9rem; color: var(--muted); font-weight: 500; }
@media (max-width: 640px) { .stats__list > div { padding: 18px 12px; border-left: 0; border-top: 1px solid var(--line); } .stats__list > div:first-child { padding-left: 12px; border-top: 0; } }

.school { background: #fff; color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--tx); transition: border-color .15s, box-shadow .15s; }
.school:hover { border-color: var(--ink); border-top-color: var(--tx); box-shadow: var(--shadow); }
.school__body { padding: 18px 22px 20px; }
.school__body::before { display: none; }
.school h3 { margin-top: 0; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--ink); }
.school p { color: var(--muted); font-size: .96rem; }
.school__count { color: var(--tx); }
.school__media { aspect-ratio: 16 / 8; }

.shorts__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.short { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: start; padding: 22px 24px; border: 1px solid var(--line); border-top: 4px solid var(--tx); border-radius: var(--radius); background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.short:hover { border-color: var(--ink); border-top-color: var(--tx); box-shadow: var(--shadow); }
.short h3 { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.short p { grid-column: 1; margin: 0; color: var(--muted); font-size: .96rem; }
.short__meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0; padding: 0; list-style: none; font-size: .88rem; font-weight: 600; color: var(--tt); }
.short .icon { grid-row: 1 / span 3; grid-column: 2; align-self: center; color: var(--tx); }

.cycle-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.cycle-links a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--tx); border-radius: var(--radius-s); background: #fff; text-decoration: none; }
.cycle-links a:hover { border-color: var(--ink); border-left-color: var(--tx); }
.cycle-links span { font-size: .9rem; color: var(--muted); }
.btn--sm { min-height: 40px; padding: .5em 1.1em; font-size: .92rem; }
.mt { margin-top: 1.8em; }
.detail h3 { margin-bottom: .6em; }

.why__list { border-top: 3px solid var(--ink); }
.why__list h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.why__list h3::before { height: 3px; width: 36px; border-radius: 0; background: var(--tx); }
.steps__n { background: transparent; border: 2px solid var(--sun); color: var(--sun); }
.steps__list li { border-top-color: rgb(255 255 255 / 28%); }
.steps__list h3 { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.steps__list p { color: rgb(255 255 255 / 84%); }
.event { border-radius: var(--radius); }
.event:hover { transform: none; }
.event__date { border-radius: var(--radius-s); background: var(--ink); }
.event__date span { color: #ffd77a; }
.event h3 { font-family: var(--serif); font-weight: 600; }
.voice { border-radius: var(--radius); border-top: 4px solid var(--tx); box-shadow: none; border: 1px solid var(--line); border-top: 4px solid var(--tx); }
.voice blockquote { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; }
.voice__avatar { background: var(--tx); }
.teachers__list img { border-radius: var(--radius-s); }
.partners { border-top: 1px solid var(--line); }

/* ---------- Appel à l'action ---------- */
.cta-band { background: var(--hb); }
.cta-band__pattern { --pb: var(--hb); opacity: .16; -webkit-mask-image: linear-gradient(100deg, transparent 40%, #000 100%); mask-image: linear-gradient(100deg, transparent 40%, #000 100%); }
.cta-band h2 { font-family: var(--serif); font-weight: 600; max-width: 24ch; }
.cta-band h2::after { display: none; }

/* ---------- Formulaires, événements, galerie ---------- */
.form-card { border-radius: var(--radius); box-shadow: none; }
.form legend { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; padding-bottom: .4em; border-bottom: 1px solid var(--line); width: 100%; }
.form-aside { border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.form-aside h2 { font: 700 .76rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.form-aside h2::after { display: none; }
.mini-steps li::before { background: var(--ink); }
.dossier { border-radius: var(--radius); border-width: 1px; border-top: 4px solid var(--tx); }
.dossier__head h2 { color: var(--ink); }
.gallery a { border-radius: var(--radius-s); }
.article { padding-block: clamp(32px, 5vw, 64px); }
.article .prose { max-width: 70ch; font-size: 1.08rem; }
.article .detail__img { margin-bottom: 32px; }
.events__list--page .event, .events__list .event { background: #fff; }
.results a { border-radius: var(--radius); }
.hours dd { font-variant-numeric: tabular-nums; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.detail { grid-template-columns: 1fr; }
	.detail__aside { position: static; order: -1; }
	.help { display: none; }
}
@media (max-width: 640px) {
	.page-hero h1 { font-size: clamp(1.8rem, 8vw, 2.3rem); }
	.keyfacts { margin-top: -28px; }
	.keyfacts__list { grid-template-columns: repeat(2, 1fr); }
	.keyfacts__list > div { padding: 14px 16px; }
	.keyfacts dd { font-size: 1.02rem; }
	.table th, .table td { padding: 12px 14px; }
	.tabs__tab { padding: 11px 16px 10px; }
	.school-about__card, .specialty { padding: 22px 20px; }
	.modules li { padding-left: 42px; padding-right: 14px; }
	.modules li::before { left: 14px; }
	.term__head { padding-inline: 14px; }
	.finder__form { padding: 18px; }
}
@media (min-width: 1500px) {
	:root { --wrap: 1280px; }
}

/* ---------- Impression : fiche de formation ---------- */
@media print {
	@page { margin: 16mm 14mm; }
	body { font-size: 11pt; line-height: 1.5; color: #000; background: #fff; }
	.site-header, .site-footer, .wa-float, .banner, .cta-band, .subnav, .finder, .detail__aside .btn, .apply__note, .help, .tabs__list, .partners, .crumbs, .page-hero__actions, .page-hero__pattern, .section--tint.related { display: none !important; }
	.page-hero { background: none !important; color: #000; border-bottom: 2px solid #000; }
	.page-hero h1, .page-hero__lead, .page-hero__kicker { color: #000 !important; }
	.page-hero__in, .page-hero--facts .page-hero__in { padding-block: 0 12pt; }
	.keyfacts { margin-top: 12pt; }
	.keyfacts__list { box-shadow: none; }
	.detail { display: block; padding-block: 12pt; }
	.detail__aside { position: static; margin-top: 18pt; }
	.apply { box-shadow: none; }
	.dsec { margin-top: 18pt; padding-top: 12pt; break-inside: auto; }
	.dsec > h2 { break-after: avoid; }
	.is-tabs .tabs__panel[hidden] { display: block !important; }
	.is-tabs .tabs__heading { display: block; }
	.term, .callout, .table-wrap, .steps-v li { break-inside: avoid; }
	.faq__item .prose { display: block; }
	a { text-decoration: none; color: inherit; }
	* { box-shadow: none !important; }
}

/* ---------- Compléments ---------- */
.modules li.modules__ue { counter-increment: none; margin-top: -1px; padding: 9px 18px; background: var(--ts); border-bottom: 1px solid var(--line); font: 700 .78rem/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--tt); }
.modules li.modules__ue::before { display: none; }
.modules li.modules__ue .modules__h { color: var(--tt); }
.fcard__price small { font-size: .78rem; font-weight: 500; color: var(--muted); }
.section--tight{padding-block:32px}
.short__meta { color: var(--muted); font-weight: 500; }
.short__meta li:first-child { color: var(--tt); font-weight: 700; }
.school__body { padding: 24px 26px 22px; }
.school__body::before { display: block; content: "École"; margin-bottom: 8px; font: 700 .72rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--tx); }
.site-footer__pattern { height: 4px; background: var(--brick); }
.site-footer__pattern svg { display: none; }
.subnav__in > nav { flex: 1 1 auto; min-width: 0; }
.subnav__list { margin: 0; }
@media (max-width: 900px) { .cycle-about, .school-about__in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .keyfacts__list > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---------- Sections longues des pages école (inc/sections.php) ---------- */
.sec { scroll-margin-top: calc(var(--hdr-h, 76px) + 64px); }
.sec__head { max-width: 68ch; }
.sec__intro { margin: 0; color: var(--muted); font-size: 1.1rem; }
.sec__prose { max-width: 72ch; font-size: 1.06rem; line-height: 1.75; }
.sec__prose p { margin: 0 0 1.1em; }
.sec__prose p:first-child { font-size: 1.15rem; color: var(--navy); }
.sec__note { max-width: 72ch; margin: 1.6em 0 0; padding: 14px 18px; border-left: 4px solid var(--sun); background: var(--white); color: var(--muted); font-size: .95rem; }
.sec--tint .sec__note { background: var(--white); }
.sec__subtitle { margin: 0 0 .8em; font: 700 1.2rem/1.3 var(--serif); color: var(--navy); }
.sec__blocks { display: grid; gap: clamp(32px, 5vw, 56px); }
.sec__block + .sec__block { padding-top: clamp(24px, 4vw, 40px); border-top: 1px solid var(--line); }

.sec__list { margin: 0; padding: 0; list-style: none; }
.sec__list--ticks, .sec__list--cols { display: grid; gap: 0; max-width: 78ch; }
.sec__list--cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 40px; max-width: none; }
.sec__list--ticks .sec__item, .sec__list--cols .sec__item { padding-block: 12px; border-bottom: 1px solid var(--line); }
.sec__item-title { color: var(--navy); }
.sec__list--ticks .sec__item-title, .sec__list--cols .sec__item-title { display: block; }
.sec__item-text { color: var(--ink, inherit); }
.sec__list--chips { display: flex; flex-wrap: wrap; gap: 10px; }

.sec__table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--white); box-shadow: var(--shadow); }
.sec__table-wrap:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.sec__table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.sec__table th, .sec__table td { padding: .85em 1.1em; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.sec__table thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.sec__table tbody th { color: var(--navy); font-weight: 700; }
.sec__table tbody tr:nth-child(even) > * { background: var(--paper); }
.sec__table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 640px) {
	.sec__table-wrap { overflow: visible; border: 0; background: none; box-shadow: none; }
	.sec__table, .sec__table tbody { display: block; }
	.sec__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.sec__table tr { display: block; margin-bottom: 12px; padding: 4px 0; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--white); }
	.sec__table tbody tr:nth-child(even) > * { background: none; }
	.sec__table th, .sec__table td { display: block; padding: .35em 1em; border: 0; }
	.sec__table tbody th { padding-top: .7em; font-size: 1.02rem; }
	.sec__table td[data-label]::before { content: attr(data-label); display: block; font: 700 .72rem/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
}

.sec__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.sec-card { padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--pa); box-shadow: var(--shadow); }
.sec-card__tag { margin: 0 0 .5em; font: 700 .74rem/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sec-card__title { margin: 0 0 .5em; font: 600 1.25rem/1.25 var(--serif); color: var(--navy); }
.sec-card__text { margin: 0; color: var(--muted); }
.sec-card__list { margin: .9em 0 0; padding-left: 1.2em; list-style: disc; }
.sec-card__list li { margin-bottom: .3em; }

.sec__figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.sec-fig { padding: 26px 24px; border-left: 1px solid var(--line); border-top: 4px solid var(--pa); }
.sec-fig:first-child { border-left: 0; }
.sec-fig__value { display: block; font: 600 clamp(2rem, 4vw, 2.7rem)/1.05 var(--serif); color: var(--navy); }
.sec-fig__label { display: block; margin-top: .5em; font-size: .92rem; color: var(--muted); }
@media (max-width: 640px) { .sec-fig { border-left: 0; border-bottom: 1px solid var(--line); } }

.sec__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.sec-step { position: relative; padding: 0 0 0 0; }
.sec-step::before { content: ""; position: absolute; top: 20px; left: 48px; right: -24px; height: 2px; background: var(--line); }
.sec-step:last-child::before { display: none; }
.sec-step__n { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: .8em; border-radius: 50%; background: var(--navy); color: #fff; font: 700 1rem/1 var(--font); box-shadow: 0 0 0 5px var(--white); }
.sec--tint .sec-step__n { box-shadow: 0 0 0 5px var(--paper); }
.sec-step__title { margin: 0 0 .35em; font: 600 1.1rem/1.3 var(--serif); color: var(--navy); }
.sec-step__text { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 640px) {
	.sec__steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.sec-step { padding: 0 0 24px 58px; }
	.sec-step::before { top: 40px; bottom: 0; left: 19px; right: auto; width: 2px; height: auto; }
	.sec-step__n { position: absolute; top: 0; left: 0; margin: 0; }
}

.sec__faq { max-width: 860px; }
.sec--cta { background: var(--navy); color: #fff; }
.sec--cta .sec__title, .sec--cta .sec__intro { color: #fff; }
.sec--cta .sec__cta { max-width: 72ch; }
.sec--cta .sec__cta-text { font-size: 1.2rem; line-height: 1.6; color: rgb(255 255 255 / 90%); }
.sec--cta .sec__note { background: rgb(255 255 255 / 8%); color: rgb(255 255 255 / 80%); }
.sec__contacts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0 0 1.6em; padding: 0; list-style: none; font-weight: 600; }
.sec__contacts a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sec__contacts svg { width: 1.1em; height: 1.1em; margin-right: .5em; vertical-align: -.15em; stroke: currentcolor; fill: none; stroke-width: 2; }
.sec__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sec--cta .btn--ghost { color: #fff; border-color: rgb(255 255 255 / 55%); }

.sec-toc { margin: 0 0 clamp(28px, 4vw, 44px); padding: 22px 26px; border: 1px solid var(--line); border-top: 4px solid var(--brick); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.sec-toc__title { margin: 0 0 .8em; font: 700 .76rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sec-toc__list { columns: 2 280px; column-gap: 40px; margin: 0; padding-left: 1.6em; }
.sec-toc__list li { break-inside: avoid; padding: .3em 0; font-weight: 500; }
.sec-toc__list li::marker { color: var(--brick); font-weight: 700; }
.sec-toc__list a { color: var(--navy); text-decoration: none; border-bottom: 1px solid transparent; }
.sec-toc__list a:hover, .sec-toc__list a:focus-visible { border-bottom-color: var(--brick); }
@media print { .sec--cta { background: none; color: inherit; } .sec-step::before { display: none; } }
