:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-2: #eaf1ef;
  --ink: #152a2d;
  --muted: #4e6264;
  --line: #d5e1de;
  --green: #087565;
  --green-soft: #d9eee7;
  --orange: #ed7654;
  --yellow: #e7f58e;
  --blue-soft: #dfedf5;
  --lavender: #ece6f7;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 18px 50px rgba(24, 57, 55, .09);
  --shadow-soft: 0 5px 18px rgba(24, 57, 55, .055);
}
:root[data-theme="dark"] { color-scheme: dark; --bg:#101b1e; --surface:#172629; --surface-2:#213538; --ink:#eff7f4; --muted:#c0d0cc; --line:#3a5052; --green:#71d0bb; --green-soft:#24443e; --orange:#ff9b79; --yellow:#d4ed78; --blue-soft:#253f4b; --lavender:#38334a; --shadow:0 18px 50px rgba(0,0,0,.28); --shadow-soft:0 5px 18px rgba(0,0,0,.16); }
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 16px/1.72 var(--sans); transition: background .2s, color .2s; }
body, button, input { font-family: var(--sans); }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.wrap { width: min(1200px, calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 20; top: 0; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 750; letter-spacing: -.045em; flex: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50% 50% 45% 50%; background: var(--orange); color: #211f18; font: 23px/1 var(--serif); transform: rotate(-8deg); }
.main-nav { display: flex; align-items: center; gap: clamp(13px, 2.2vw, 28px); }
.main-nav a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .menu-toggle { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 8px 11px; cursor: pointer; font-size: 12px; }
.menu-toggle { display: none; }

.eyebrow { color: var(--green); text-transform: uppercase; font-size: 11px; letter-spacing: .13em; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1, .display { font: 500 clamp(44px, 6.7vw, 78px)/.99 var(--serif); letter-spacing: -.045em; }
h1 em, .display em { color: var(--green); font-weight: 400; }
h2 { font: 500 clamp(30px, 4vw, 45px)/1.08 var(--serif); letter-spacing: -.035em; }
h3 { line-height: 1.2; }
.lead { max-width: 700px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); line-height: 1.78; }
.small { font-size: 12px; color: var(--muted); }
.section { padding-block: 58px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 25px; }
.section-head h2 { margin: 7px 0 0; max-width: 650px; }
.section-head p { max-width: 440px; margin: 0; color: var(--muted); font-size: 13px; }
.rule { border-top: 1px solid var(--line); }

.button { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 19px; border: 1px solid var(--green); border-radius: 999px; background: var(--green); color: var(--bg); text-decoration: none; font-size: 13px; font-weight: 750; transition: transform .2s, background .2s; cursor: pointer; }
.button:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--green) 84%, var(--ink)); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { background: var(--surface-2); }
.arrow { font-size: 17px; line-height: .7; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 25px; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 46px; padding-block: 75px 65px; }
.hero-copy { animation: rise .55s both; }
.hero h1 { max-width: 740px; margin: 16px 0 20px; }
.hero-visual { min-height: 330px; display: grid; place-items: center; position: relative; animation: rise .7s .08s both; }
.orbit { width: min(340px, 86%); aspect-ratio: 1; display: grid; place-items: center; position: relative; border: 1px solid var(--line); border-radius: 50%; }
.orbit:before, .orbit:after { content: ""; position: absolute; inset: 11%; border: 1px dashed var(--line); border-radius: 50%; transform: rotate(37deg) scaleX(.73); animation: orbit-turn 64s linear infinite; }
.orbit:after { inset: 21%; border-style: solid; transform: rotate(-32deg) scaleX(.76); animation: orbit-turn 88s linear infinite reverse; }
.orbit-center { z-index: 1; width: 120px; height: 120px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: #25251d; text-align: center; font: 23px/1.02 var(--serif); transform: rotate(-7deg); box-shadow: var(--shadow); }
.orbit-label { position: absolute; z-index: 2; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); font-size: 11px; white-space: nowrap; }
.orbit-label:nth-child(1) { top: 8%; left: 0; transform: rotate(-5deg); }
.orbit-label:nth-child(2) { top: 19%; right: -6%; transform: rotate(4deg); }
.orbit-label:nth-child(3) { bottom: 15%; left: -4%; transform: rotate(3deg); }
.orbit-label:nth-child(4) { right: 0; bottom: 8%; transform: rotate(-4deg); }
.hero-note { padding: 14px 16px; border-left: 3px solid var(--orange); background: var(--surface-2); border-radius: 0 9px 9px 0; color: var(--muted); font-size: 12px; max-width: 570px; margin-top: 24px; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.route-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 28px 0 8px; }
.route-item { display: flex; align-items: center; gap: 12px; min-height: 78px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-soft); transition: transform .2s, border-color .2s; }
.route-item:hover { transform: translateY(-3px); border-color: var(--green); }
.route-num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; }
.route-item:nth-child(2) .route-num { background: var(--blue-soft); color: var(--ink); }
.route-item:nth-child(3) .route-num { background: var(--lavender); color: var(--ink); }
.route-item:nth-child(4) .route-num { background: color-mix(in srgb, var(--orange) 22%, var(--surface)); color: var(--ink); }
.route-title { display: block; font-weight: 750; font-size: 13px; line-height: 1.25; }
.route-note { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.info-card { position: relative; display: flex; flex-direction: column; min-height: 245px; padding: 25px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-soft); transition: transform .24s cubic-bezier(.2,.75,.25,1), box-shadow .24s, border-color .24s; }
.info-card:after { content: ""; position: absolute; width: 125px; height: 125px; right: -54px; top: -58px; border-radius: 50%; background: var(--green-soft); opacity: .7; transition: transform .35s; }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green); }
.info-card:hover:after { transform: scale(1.3); }
.info-card > * { position: relative; z-index: 1; }
.card-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 19px; border-radius: 14px; background: var(--green-soft); color: var(--green); font-size: 19px; font-weight: 750; }
.info-card:nth-child(3n + 2) .card-icon { background: var(--blue-soft); }
.info-card:nth-child(3n) .card-icon { background: var(--lavender); }
.info-card h3 { margin: 0 0 9px; font: 500 23px/1.12 var(--serif); letter-spacing: -.025em; }
.topic-grid .info-card h3 { font: 700 25px/1.15 var(--sans); letter-spacing: -.03em; }
.info-card p { margin: 0 0 17px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.card-link { display: flex; justify-content: space-between; align-items: center; margin-top: auto; color: var(--green); font-size: 11px; font-weight: 800; }
.card-label { margin: 0 0 8px; color: var(--green); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; font-weight: 800; }

.band { position: relative; overflow: hidden; padding-block: 64px; background: linear-gradient(125deg, #075b56, #087565 65%, #198b78); color: #f6fffb; }
.band:after { content: ""; position: absolute; right: 5%; top: -125px; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.035), 0 0 0 75px rgba(255,255,255,.025); pointer-events: none; }
.band .eyebrow { color: #c2d6c5; }
.band h2 { margin: 9px 0 12px; max-width: 720px; }
.band p { max-width: 730px; color: #d6e0d5; font-size: 14px; }
.band .button { margin-top: 11px; background: var(--yellow); border-color: var(--yellow); color: #20231d; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill { display: inline-flex; align-items: center; min-height: 29px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; }
.notice { padding: 17px 19px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.notice strong { color: var(--ink); }
.notice.warm { border-color: color-mix(in srgb, var(--orange) 42%, var(--line)); background: color-mix(in srgb, var(--orange) 10%, var(--surface)); }
.notice.blue { border-color: color-mix(in srgb, #71a3bc 45%, var(--line)); background: color-mix(in srgb, var(--blue-soft) 60%, var(--surface)); }

.page-hero { position: relative; isolation: isolate; padding-block: 60px 38px; border-bottom: 1px solid var(--line); }
.page-hero:before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: radial-gradient(ellipse at 82% 18%, color-mix(in srgb, var(--green-soft) 78%, transparent), transparent 43%), linear-gradient(90deg, var(--bg), color-mix(in srgb, var(--surface) 60%, var(--bg))); }
.breadcrumbs { margin-bottom: 17px; color: var(--muted); font-size: 11px; }
.breadcrumbs a { color: var(--muted); }
.page-hero h1 { max-width: 840px; margin: 10px 0 16px; font-size: clamp(42px, 6vw, 67px); }
.page-hero .lead { max-width: 740px; }
.page-content { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 42px; padding-block: 46px 76px; align-items: start; }
.article { min-width: 0; }
.article section { padding: 29px 4px 34px; margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; scroll-margin-top: 95px; }
.article section:first-child { padding-top: 0; border-top: 0; }
.article h2 { margin: 8px 0 16px; font-family: var(--sans); font-weight: 750; font-size: clamp(25px, 3vw, 31px); letter-spacing: -.035em; line-height: 1.15; text-wrap: balance; }
.article h3 { margin: 20px 0 9px; font: 700 20px/1.25 var(--sans); letter-spacing: -.02em; }
.article p, .article li { max-width: 68ch; color: var(--muted); font-size: 17px; line-height: 1.82; }
.article p { margin-bottom: 1.1em; }
.article ul { padding-left: 20px; }
.article li { padding-left: 4px; margin-bottom: 8px; }
.article strong { color: var(--ink); }
.article .callout { margin-block: 18px; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--green) 18%, var(--line)); border-left: 4px solid var(--green); border-radius: 12px; background: var(--green-soft); color: var(--ink); font-size: 15px; }
.article .callout p:last-child { margin-bottom: 0; }
.article .fact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 24px; }
.fact { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-soft); }
.fact b { display: block; margin-bottom: 4px; color: var(--green); font: 500 20px var(--serif); }
.fact span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.cycle-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 26px; padding: 0; list-style: none; }
.cycle-step { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 142px; padding: 17px; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-soft); }
.article .cycle-step, .article .admission-step { max-width: none; margin: 0; padding: 17px; color: var(--ink); font-size: inherit; line-height: normal; }
.cycle-step:nth-child(2) { border-top-color: #6198aa; }
.cycle-step:nth-child(3) { border-top-color: var(--orange); }
.cycle-level { margin-bottom: 12px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cycle-step strong { margin-bottom: 5px; font: 500 21px var(--serif); }
.cycle-step > span:last-child { color: var(--muted); font-size: 11px; line-height: 1.5; }
.admission-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0 25px; padding: 0; list-style: none; }
.admission-step { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-soft); }
.admission-step > span { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; }
.admission-step:nth-child(2) > span { background: var(--blue-soft); color: var(--ink); }
.admission-step:nth-child(3) > span { background: var(--lavender); color: var(--ink); }
.admission-step strong { display: block; margin-bottom: 4px; font-size: 14px; }
.admission-step p { margin: 0; font-size: 13px; line-height: 1.55; }
.toc { position: sticky; top: 96px; padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-soft); }
.toc strong { display: block; margin-bottom: 9px; font-size: 11px; }
.toc a { display: block; padding: 8px 9px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 12px; line-height: 1.4; transition: background .15s, color .15s; }
.toc a[aria-current="location"] { color: var(--green); background: var(--green-soft); font-weight: 750; }
.toc a:hover { color: var(--green); }
.source-box { padding: 18px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; }
.source-box h3 { margin-top: 0; font-size: 13px; }
.source-box li, .source-box p { font-size: 11px; line-height: 1.6; }
.source-box a { font-weight: 650; }
.reviewed { color: var(--muted); font-size: 10px; }
.term { border-bottom: 1px dotted var(--green); text-decoration: none; font-weight: 650; }

.glossary-search { display: flex; gap: 9px; max-width: 620px; margin: 20px 0 24px; }
.glossary-search input { flex: 1; min-width: 0; min-height: 45px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-size: 13px; }
.glossary-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.glossary-item { padding: 21px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-soft); transition: transform .2s, border-color .2s; }
.glossary-item:hover { transform: translateY(-2px); border-color: var(--green); }
.glossary-item h3 { margin: 0 0 6px; font: 500 20px var(--serif); }
.glossary-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.no-results { display: none; padding: 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; }
.no-results.visible { display: block; }

.site-footer { border-top: 1px solid var(--line); padding-block: 23px 33px; color: var(--muted); font-size: 10px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-inner a { color: var(--muted); }
.animate-in { animation: rise .45s both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes orbit-turn { to { rotate: 360deg; } }
@media (max-width: 1020px) {
  .header-inner { gap: 12px; }
  .main-nav { display: none; position: absolute; top: 75px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 28px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 6px; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: inline-flex; align-items: center; gap: 7px; }
}
@media (max-width: 880px) { .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .hero { gap: 20px; grid-template-columns: 1fr .75fr; } .page-content { grid-template-columns: minmax(0,1fr) 190px; gap: 24px; } }
@media (max-width: 680px) {
  .wrap { width: min(100% - 32px, 620px); }
  .header-inner { min-height: 66px; gap: 9px; }
  .main-nav { top: 65px; padding-inline: 16px; }
  .header-tools { margin-left: auto; }
  .theme-toggle { padding: 8px 10px; }
  .hero { display: block; padding-block: 48px 39px; }
  .hero h1 { font-size: clamp(43px, 14vw, 63px); }
  .hero-visual { min-height: 255px; margin-top: 6px; }
  .orbit { width: min(265px, 78vw); }
  .orbit-center { width: 96px; height: 96px; font-size: 18px; }
  .orbit-label { font-size: 9px; padding: 7px 9px; }
  .orbit-label:nth-child(2) { right: -4%; }
  .section { padding-block: 46px; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .card-grid { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr; }
  .route-map { grid-template-columns: 1fr 1fr; }
  .route-item { align-items: flex-start; min-height: 88px; }
  .info-card { min-height: 205px; }
  .page-hero { padding-block: 36px 25px; }
  .page-hero h1 { font-size: clamp(39px, 12vw, 56px); }
  .page-content { display: flex; flex-direction: column; padding-block: 25px 48px; gap: 24px; }
  .toc { position: sticky; z-index: 8; top: 70px; width: 100%; order: -1; padding: 11px 12px 8px; }
  .toc strong { margin: 0 0 4px 7px; font-size: 10px; }
  .toc-list { display: flex; gap: 5px; overflow-x: auto; padding: 0 0 4px; scrollbar-width: thin; }
  .toc a { flex: none; white-space: nowrap; padding: 7px 9px; }
  .article { width: 100%; }
  .article section { padding: 25px 0 27px; scroll-margin-top: 145px; }
  .article p, .article li { font-size: 16px; line-height: 1.78; }
  .article .fact-row { grid-template-columns: 1fr 1fr 1fr; }
  .cycle-map { grid-template-columns: 1fr; gap: 8px; }
  .article .cycle-step { min-height: 0; padding: 14px 16px; }
  .cycle-level { margin-bottom: 5px; }
  .admission-steps { grid-template-columns: 1fr; }
  .glossary-list { grid-template-columns: 1fr; }
  .footer-inner { display: block; }
  .footer-inner span { display: block; margin-bottom: 7px; }
}
@media (max-width: 380px) { .article .fact-row { grid-template-columns: 1fr; } .theme-toggle { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Outils de découverte ajoutés : Parcoursup, carte des études et spécialités. */
.feature-hero { position: relative; padding-block: 42px 45px; border-bottom: 1px solid var(--line); }
.feature-hero h1 { max-width: 850px; margin: 16px 0 18px; }
.feature-stamp { display: inline-flex; flex-direction: column; gap: 2px; margin-top: 21px; padding: 10px 14px; border-left: 3px solid var(--orange); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.feature-stamp strong { font: 600 16px var(--serif); }
.feature-stamp span { color: var(--muted); font-size: 11px; }
.feature-section { scroll-margin-top: 90px; }
.feature-grid { display: grid; gap: 14px; margin-block: 24px; }
.feature-grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature-grid.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-card { padding: clamp(19px, 3vw, 28px); border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-soft); }
.feature-card h3 { margin: 8px 0 10px; font: 500 24px/1.2 var(--serif); }
.feature-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.feature-card p:last-child { margin-bottom: 0; }
.feature-kicker { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.feature-icon { display: inline-grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; color: var(--green); background: var(--green-soft); font-size: 11px; font-weight: 800; }
.accent-card { background: linear-gradient(145deg, var(--surface), var(--surface-2)); }
.notice + .notice { margin-top: 14px; }
.psu-timeline { display: grid; gap: 14px; margin: 25px 0 14px; }
.psu-phase { padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-soft); position: relative; overflow: hidden; }
.psu-phase:before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--green); opacity: .72; }
.psu-phase[data-phase="voeux"]:before { background: var(--orange); }
.psu-phase[data-phase="admission"]:before { background: #7585b6; }
.psu-phase-head { display: flex; align-items: center; gap: 13px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.psu-phase-head h3 { margin: 2px 0 0; font: 500 23px var(--serif); }
.phase-number { display: grid; flex: none; width: 39px; height: 39px; place-items: center; border-radius: 13px; color: var(--green); background: var(--green-soft); font-weight: 800; font-size: 12px; }
.phase-date { margin-left: auto; padding: 6px 10px; border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: 11px; font-weight: 700; white-space: nowrap; }
.psu-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 15px; }
.psu-date { padding: 15px; border-radius: 12px; background: var(--surface-2); }
.psu-date time { font-size: 13px; font-weight: 800; color: var(--ink); }
.psu-date p { margin: 7px 0 0; font-size: 12px; line-height: 1.65; color: var(--muted); }
.psu-date.deadline { background: color-mix(in srgb, var(--orange) 13%, var(--surface-2)); }
.timeline-status { min-height: 44px; margin: 14px 0; padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; color: var(--green); background: var(--surface); font-size: 13px; font-weight: 700; }
.timeline-status:before { content: "Aujourd’hui · "; color: var(--muted); font-weight: 600; }
.inline-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; }
.inline-links a { font-size: 13px; font-weight: 700; }
.disclosure { margin-top: 17px; border: 1px solid var(--line); border-radius: 11px; background: color-mix(in srgb, var(--surface) 80%, transparent); }
.disclosure summary { padding: 14px 16px; cursor: pointer; font-size: 13px; font-weight: 750; }
.disclosure[open] summary { border-bottom: 1px solid var(--line); }
.disclosure > div { padding: 14px 16px 16px; }
.disclosure p { color: var(--muted); font-size: 13px; }
.disclosure > div > :last-child { margin-bottom: 0; }
.answer-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 11px; margin-top: 25px; }
.answer-grid article { min-height: 135px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.answer-grid h3 { margin: 0 0 8px; font: 500 22px var(--serif); }
.answer-grid p { margin: 0; color: var(--muted); font-size: 12px; }
.callout-line { margin-top: 15px; padding: 15px 18px; border-left: 3px solid var(--orange); border-radius: 0 10px 10px 0; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.step-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 24px 0; counter-reset: support-step; }
.step-cards article { padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.step-cards article > span { display: block; margin-bottom: 13px; color: var(--green); font-size: 11px; font-weight: 800; }
.step-cards h3 { font: 500 21px var(--serif); margin: 0 0 8px; }
.step-cards p { margin: 0; color: var(--muted); font-size: 13px; }
.wide-disclosure { margin-block: 23px; }
.resource-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 24px; }
.resource-list > a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .18s, transform .18s; }
.resource-list > a:hover { transform: translateY(-2px); border-color: var(--green); }
.resource-list strong, .resource-list small { display: block; }
.resource-list strong { font-size: 13px; }
.resource-list small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.video-resources { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 24px; margin-top: 28px; padding: 23px; border-radius: 15px; background: var(--surface-2); }
.video-resources h3 { margin: 5px 0 7px; font: 500 23px var(--serif); }
.video-resources p { margin: 0; max-width: 440px; color: var(--muted); font-size: 12px; }
.video-links { display: grid; gap: 8px; }
.video-links a { font-size: 12px; font-weight: 700; }
.band-soft { background: var(--surface-2); }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 23px 0 17px; color: var(--muted); font-size: 11px; }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.legend-dot.pro { background: #438d9e; }.legend-dot.prep { background: #8a7db4; }.legend-dot.eco { background: var(--orange); }
.study-map { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--green-soft) 65%, transparent), transparent 55%), var(--surface); box-shadow: var(--shadow-soft); }
.map-origin { width: min(245px,100%); margin: 0 auto 22px; padding: 15px; border: 1px solid color-mix(in srgb,var(--green) 36%,var(--line)); border-radius: 15px; background: var(--green-soft); text-align: center; position: relative; }
.map-origin:after { content: "↓"; position: absolute; left: calc(50% - 9px); bottom: -28px; color: var(--green); font-size: 22px; font-weight: 800; }
.map-origin span, .map-origin strong, .map-origin small { display: block; }
.map-origin span { color: var(--green); font-size: 9px; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; }
.map-origin strong { margin: 2px 0; font: 500 24px var(--serif); }
.map-origin small { color: var(--muted); font-size: 10px; }
.map-branches { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.map-branch { min-width: 0; padding: 16px; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 14px; background: color-mix(in srgb, var(--surface) 92%, var(--green-soft)); }
.branch-pro { border-top-color: #438d9e; background: color-mix(in srgb, var(--surface) 92%, var(--blue-soft)); }
.branch-prep { border-top-color: #8a7db4; background: color-mix(in srgb, var(--surface) 92%, var(--lavender)); }
.branch-school { border-top-color: var(--orange); background: color-mix(in srgb, var(--surface) 92%, var(--orange)); }
.map-branch > header { display: flex; gap: 10px; align-items: start; min-height: 60px; margin-bottom: 13px; }
.map-branch > header > span { display: grid; flex: none; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: var(--surface); color: var(--green); font-size: 10px; font-weight: 800; }
.map-branch h3 { margin: 0 0 4px; font: 500 20px var(--serif); }
.map-branch header p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.map-nodes { display: flex; flex-wrap: wrap; gap: 7px; }
.map-node { flex: 1 1 130px; min-height: 58px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); text-align: left; cursor: pointer; transition: border-color .16s, transform .16s, box-shadow .16s; }
.map-node:hover, .map-node.selected { border-color: var(--green); box-shadow: 0 0 0 2px color-mix(in srgb,var(--green) 15%, transparent); transform: translateY(-1px); }
.map-node strong, .map-node small { display: block; }
.map-node strong { font-size: 12px; }
.map-node small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.map-detail { position: relative; margin-top: 15px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-soft); }
.map-detail h3 { margin: 5px 0 7px; font: 500 25px var(--serif); }
.map-detail p { max-width: 900px; color: var(--muted); font-size: 13px; }
.map-detail .button { min-height: 40px; font-size: 11px; }
.map-detail-empty p { margin-bottom: 0; }
.bridge-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-top: 24px; }
.bridge-list article { padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.bridge-list span { color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.bridge-list p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.map-caution { margin: 17px 0 0; color: var(--muted); font-size: 12px; }
.feature-link-card { display: block; color: var(--ink); text-decoration: none; transition: transform .2s,border-color .2s; }
.feature-link-card:hover { transform: translateY(-3px); border-color: var(--green); }
.feature-link-card .card-link { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 800; color: var(--green); }
.specialty-panel { padding: clamp(17px,3vw,28px); border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-soft); }
.specialty-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.specialty-fieldset + .specialty-fieldset { margin-top: 27px; padding-top: 24px; border-top: 1px solid var(--line); }
.specialty-fieldset legend { margin-bottom: 13px; font: 500 21px var(--serif); }
.year-tag { display: inline-block; margin-right: 5px; padding: 5px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); font: 800 9px var(--sans); text-transform: uppercase; letter-spacing: .07em; vertical-align: middle; }
.year-tag.second { background: var(--blue-soft); color: var(--ink); }
.specialty-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.specialty-options label { display: flex; align-items: flex-start; gap: 9px; min-height: 46px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 11px; line-height: 1.45; cursor: pointer; transition: border-color .15s, background .15s; }
.specialty-options label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.specialty-options label.unavailable { opacity: .48; cursor: not-allowed; }
.specialty-options input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--green); }
.field-hint { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.specialty-controls { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.specialty-controls p { margin: 0; color: var(--muted); font-size: 12px; }
.specialty-controls .button { min-height: 40px; font-size: 11px; }
.specialty-results { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.specialty-result-intro { padding: 12px 15px; border-radius: 10px; background: var(--green-soft); color: var(--ink); font-size: 12px; }
.specialty-result-card { display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-soft); }
.specialty-result-card h3 { margin: 7px 0 8px; font: 500 21px/1.2 var(--serif); }
.specialty-result-card > p { flex: 1; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.68; }
.match-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 13px 0; }
.match-chips span { padding: 4px 7px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 9px; font-weight: 750; }
.result-links { display: flex; flex-direction: column; gap: 5px; padding-top: 12px; border-top: 1px solid var(--line); }
.result-links a { font-size: 11px; font-weight: 700; }
.advice-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 22px 0 27px; }
.advice-row article { padding-top: 13px; border-top: 2px solid var(--green); }
.advice-row strong { font-size: 13px; }
.advice-row p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.support-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 14px; margin-top: 18px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); font-size: 12px; }
.support-contact strong { color: var(--ink); }
.support-contact span { color: var(--muted); }
@media (max-width: 880px) {
  .feature-grid.three-up, .specialty-results { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .psu-dates { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .map-branches { grid-template-columns: 1fr; }
  .specialty-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .feature-hero { padding-block: 32px; }
  .feature-hero h1 { font-size: clamp(40px,12vw,59px); }
  .feature-grid.two-up, .feature-grid.three-up, .answer-grid, .step-cards, .resource-list, .video-resources, .bridge-list, .specialty-results, .advice-row { grid-template-columns: 1fr; }
  .psu-phase { padding: 16px; }
  .psu-phase-head { align-items: flex-start; flex-wrap: wrap; }
  .psu-phase-head > div { flex: 1; }
  .phase-date { margin: 0 0 0 52px; }
  .psu-dates { grid-template-columns: 1fr; }
  .answer-grid article { min-height: 0; }
  .study-map { padding: 12px; }
  .map-branch { padding: 13px; }
  .map-node { flex-basis: 100%; }
  .map-detail { position: static; padding: 17px; }
  .specialty-options { grid-template-columns: 1fr; }
  .specialty-controls { align-items: flex-start; flex-direction: column; }
  .inline-links { display: grid; gap: 9px; }
}
