/* =========================================================
   TATEA — S08 « Admission & tarifs » : 4 mises en page dans la grille commune (pilotées par le défilement)
   A le panneau · B le billet · C l'escalier · D les deux temps
   Même départ sous le titre, même colonne de texte (--col), même bouton jaune en bas à gauche, même arrondi (--r).
   ========================================================= */
[data-trf] .trf__steps, [data-trf] .trf__prices, [data-trf] .trf__cond { display: none; }
.trfx ol, .trfx ul { margin: 0; padding: 0; list-style: none; }

/* la grille commune */
.trfx { position: absolute; left: var(--edge); right: var(--edge); top: calc(var(--top) + var(--tth, 110px) + var(--tg)); bottom: calc(var(--bh9, 0px) + var(--bot));
  display: grid; grid-template-columns: minmax(0, var(--col)) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "intro vis" "opts vis" "cond vis" "foot vis"; gap: 16px var(--gap); }
.trfx .trf__intro { grid-area: intro; margin: 0; font-size: var(--intro); line-height: 1.45; color: var(--text); max-width: 38ch; }
.trfx__vis { grid-area: vis; position: relative; min-height: 0; }
.trfx .trf__foot { grid-area: foot; display: grid; justify-items: start; }

/* choix de l'académie et de la devise : pastilles pleines, sans contour */
.trfx__opts { grid-area: opts; display: grid; gap: 8px; justify-items: start; }
.trfx__seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgb(22 33 61 / .07); }
.trfx__seg button { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink); transition: background-color .3s, color .3s; }
.trfx__seg button[aria-pressed="true"] { background: var(--night); color: #fff; }

/* les 4 conditions */
.trfx__cond { grid-area: cond; align-self: center; }
.trfx__cond li { padding: 9px 0; border-top: 1px solid rgb(22 33 61 / .12); font-size: clamp(13.5px, 1vw, 15px); line-height: 1.35; color: var(--ink); }
.trfx__note { margin: 0; font-size: 12px; line-height: 1.4; color: var(--text); }

/* textes communs */
.trfx__k { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-strong); }
.trfx__lv { display: grid; gap: 1px; }
.trfx__lv i { font-style: normal; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.trfx__lv b { font-size: clamp(17px, 1.35vw, 22px); font-weight: 500; line-height: 1.1; }
.trfx__lv small { font-size: 12.5px; opacity: .65; }
.trfx__n { display: block; font-size: clamp(24px, 2.2vw, 36px); font-weight: 500; line-height: 1; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.trfx__n small { margin: 0 .3em; font-size: .4em; font-weight: 600; letter-spacing: .08em; opacity: .7; }
.trfx__st { display: flex; gap: 12px; align-items: flex-start; transition: opacity .4s; opacity: .35; }
.trfx__st.on { opacity: 1; }
.trfx__st > i { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgb(22 33 61 / .08); font-style: normal; font-size: 12px; font-weight: 600; transition: background-color .4s, color .4s; }
.trfx__st.on > i { background: var(--gold); color: var(--ink); }
.trfx__st > span { display: grid; gap: 3px; }
.trfx__st b { font-size: clamp(15px, 1.15vw, 18px); font-weight: 600; line-height: 1.2; }
.trfx__st small { font-size: 13px; line-height: 1.35; opacity: .7; }

/* ---------- A : le panneau ---------- */
.trfx__pn { position: absolute; inset: 0; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; gap: clamp(12px, 2vh, 20px); padding: clamp(20px, 2.6vw, 40px); border-radius: var(--r); background: var(--night); color: #fff; }
.trfx__line { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 0; }
.trfx__line .trfx__st { flex-direction: column; }
.trfx__line .trfx__st > i { position: relative; z-index: 1; background: #1c2a42; color: #fff; }
.trfx__line .trfx__st.on > i { background: var(--gold); color: var(--ink); }
.trfx__rail { position: absolute; left: 17px; right: calc(33.3% - 17px); top: 16px; height: 2px; background: rgb(255 255 255 / .14); }
.trfx__rail i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); will-change: transform; }
.trfx__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-content: stretch; }
.trfx__pc { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: clamp(14px, 1.4vw, 22px); border-radius: calc(var(--r) - 4px); background: rgb(255 255 255 / .06); will-change: transform, opacity; }
.trfx__pc:last-child { background: var(--gold); color: var(--ink); }
.trfx--a .trfx__n { font-size: clamp(22px, 1.9vw, 32px); }
.trfx--a .trfx__note { color: rgb(255 255 255 / .55); }

/* ---------- B : le billet ---------- */
.trfx--b .trfx__vis { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; }
.trfx__tk { --notch: 16px; position: relative; display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); min-height: 0;
  -webkit-mask: radial-gradient(circle var(--notch) at 34% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 34% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle var(--notch) at 34% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 34% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.trfx__stub { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(20px, 2.4vw, 36px); border-radius: var(--r) 0 0 var(--r); background: var(--night); color: #fff; }
.trfx__stub ol { display: grid; gap: clamp(12px, 2.2vh, 22px); }
.trfx__stub .trfx__st > i { background: #1c2a42; color: #fff; }
.trfx__stub .trfx__st.on > i { background: var(--gold); color: var(--ink); }
.trfx__body { position: relative; display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 2.4vw, 36px); border-radius: 0 var(--r) var(--r) 0; background: #fff; }
.trfx__acn { color: var(--ink); letter-spacing: .12em; }
.trfx__cols { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; }
.trfx--b .trfx__pc { background: rgb(22 33 61 / .05); opacity: .4; transition: opacity .4s; }
.trfx--b .trfx__pc.on { opacity: 1; }
.trfx--b .trfx__pc:last-child { background: var(--gold); }
.trfx--b .trfx__n { font-size: clamp(26px, 2.5vw, 42px); }

/* ---------- C : l'escalier ---------- */
.trfx--c .trfx__vis { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 14px; }
.trfx__pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.trfx__pills .trfx__st { padding: 12px 14px; border-radius: calc(var(--r) - 4px); background: #fff; }
.trfx__stair { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; min-height: 0; }
.trfx__mh { position: relative; height: var(--h); display: flex; flex-direction: column; justify-content: flex-end; }
.trfx__bar { position: absolute; inset: 0; border-radius: calc(var(--r) - 4px) calc(var(--r) - 4px) 0 0; background: var(--night); transform-origin: 50% 100%; will-change: transform; }
.trfx__mh:last-child .trfx__bar { background: var(--gold); }
.trfx__mt { position: relative; display: grid; gap: 10px; padding: clamp(12px, 1.3vw, 20px); color: #fff; will-change: transform, opacity; }
.trfx__mh:last-child .trfx__mt { color: var(--ink); }
.trfx--c .trfx__n { font-size: clamp(20px, 1.8vw, 30px); }
.trfx--c .trfx__mh:first-child .trfx__lv small { display: none; }

/* ---------- D : les deux temps ---------- */
.trfx__win { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r); }
.trfx__trk { height: 100%; will-change: transform; }
.trfx__sl { height: 100%; display: flex; flex-direction: column; gap: clamp(14px, 2vh, 22px); padding: clamp(20px, 2.4vw, 36px); }
.trfx__sl--1 { background: var(--night); color: #fff; }
.trfx__sl--2 { background: #fff; }
.trfx__cards { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trfx__cards .trfx__st { flex-direction: column; justify-content: space-between; padding: clamp(16px, 1.6vw, 24px); border-radius: calc(var(--r) - 4px); background: rgb(255 255 255 / .06); }
.trfx__cards .trfx__st > i { width: auto; height: auto; place-items: start; border-radius: 0; background: none; font-size: clamp(48px, 5vw, 84px); font-weight: 500; line-height: .9; color: rgb(255 255 255 / .25); }
.trfx__cards .trfx__st.on > i { background: none; color: var(--gold); }
.trfx__cards .trfx__st b { font-size: clamp(18px, 1.5vw, 24px); }
.trfx__tbl { flex: 1; display: grid; grid-template-rows: auto repeat(2, minmax(0, 1fr)); }
.trfx__tr { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(4, minmax(0, 1fr)); gap: 10px; align-items: center; padding: 12px 14px; border-top: 1px solid rgb(22 33 61 / .1); border-radius: calc(var(--r) - 4px); transition: background-color .4s, color .4s; }
.trfx__th { border-top: 0; align-items: end; }
.trfx__tr > span:first-child { font-size: clamp(14px, 1.1vw, 17px); line-height: 1.25; }
.trfx__tr.on { background: var(--night); color: #fff; border-color: transparent; }
.trfx__tr.on .trfx__n:last-child { color: var(--gold-strong); }
.trfx--d .trfx__n { font-size: clamp(18px, 1.6vw, 27px); }
.trfx--d .trfx__note { margin-top: auto; }

/* ---------- pistes d'après les références ---------- */
:where(.trfx) button { font: inherit; color: inherit; text-align: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.trfx svg { flex: none; width: 16px; height: 16px; fill: currentColor; }
.trfx__go { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; background: var(--night); color: #fff; font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.trfx__go--gold { background: var(--gold); color: var(--ink); font-weight: 600; }

/* questions fréquentes (piste 1) */
.trfx__acc { grid-area: cond; align-self: center; display: grid; }
.trfx__qa { border-top: 1px solid rgb(22 33 61 / .12); }
.trfx__qa > button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 11px 0; font-size: clamp(14px, 1.05vw, 16px); font-weight: 500; color: var(--ink); }
.trfx__qa > button i { position: relative; flex: none; width: 12px; height: 12px; }
.trfx__qa > button i::before, .trfx__qa > button i::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .3s var(--ease); }
.trfx__qa > button i::after { transform: rotate(90deg); }
.trfx__qa.on > button i::after { transform: rotate(0deg); }
.trfx__ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.trfx__qa.on .trfx__ans { grid-template-rows: 1fr; }
.trfx__ans > div { overflow: hidden; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.trfx__qa.on .trfx__ans > div { padding-bottom: 12px; }
.trfx__ans ol { display: grid; gap: 4px; }
.trfx__ans ol b { color: var(--gold-strong); margin-right: 4px; }

/* piste 1 : les 4 formules empilées */
.trfx--r1 .trfx__vis { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; }
.trfx__plans { display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 10px; min-height: 0; }
.trfx__plan { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 24px; padding: 14px 22px; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1px rgb(22 33 61 / .08); transition: background-color .4s, box-shadow .4s; will-change: transform, opacity; }
.trfx__plan.on { background: color-mix(in srgb, var(--gold) 16%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 60%, #fff); }
.trfx__pl { display: grid; justify-items: start; gap: 4px; }
.trfx__pl p { margin: 0 0 6px; font-size: 13.5px; color: var(--text); }
.trfx--r1 .trfx__n { font-size: clamp(22px, 1.9vw, 30px); }
.trfx__plan ul { display: grid; gap: 5px; font-size: 13.5px; line-height: 1.3; color: var(--ink); }
.trfx__plan li { position: relative; padding-left: 14px; }
.trfx__plan li::before { content: ""; position: absolute; left: 0; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.trfx__chip { position: absolute; top: 10px; right: 10px; padding: 3px 9px; border-radius: 6px; background: rgb(22 33 61 / .07); font-size: 11.5px; font-weight: 600; color: var(--ink); }
.trfx__plan.on .trfx__chip { background: var(--gold); }

/* piste 2 : un onglet par formule, une seule fiche */
.trfx--r2 .trfx__vis { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
.trfx__steps2 { display: grid; gap: 12px; margin-top: 6px; }
.trfx__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.trfx__tabs button { display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 14px; border-radius: 10px; background: #fff; font-size: 14px; font-weight: 500; color: var(--ink); transition: background-color .3s; }
.trfx__tabs i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--gold-strong); }
.trfx__tabs small { font-size: 12px; color: var(--text); }
.trfx__tabs button.on { background: var(--gold); }
.trfx__tabs button.on i, .trfx__tabs button.on small { color: var(--ink); }
.trfx__sheet { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: clamp(18px, min(2.4vw, 3.6vh), 34px); border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1px rgb(22 33 61 / .1); }
.trfx__sin { flex: 1; display: flex; flex-direction: column; gap: clamp(6px, 1.2vh, 10px); animation: adx-in .45s var(--ease) both; }
@keyframes adx-in { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
.trfx__sheet h3 { margin: 0; font-size: clamp(20px, min(2vw, 3.6vh), 32px); font-weight: 500; letter-spacing: -.01em; }
.trfx__desc { margin: 0; max-width: 52ch; font-size: 14px; color: var(--text); }
.trfx__big { display: flex; align-items: baseline; gap: 8px; margin: clamp(2px, 1vh, 10px) 0 0; }
.trfx--r2 .trfx__big .trfx__n { font-size: clamp(32px, min(3.6vw, 6.4vh), 58px); }
.trfx__big > span { font-size: 18px; color: var(--ink); }
.trfx__cta { display: flex; align-items: center; gap: 16px; }
.trfx__cta p { margin: 0; font-size: 14px; color: var(--text); }
.trfx__cta p b { color: var(--ink); font-weight: 600; }
.trfx__inc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: auto; padding-top: clamp(10px, 2vh, 18px); border-top: 1px solid rgb(22 33 61 / .1); }
.trfx__inc p { margin: 0 0 10px; font-size: 13.5px; color: var(--text); }
.trfx__inc ul { display: grid; gap: clamp(4px, .9vh, 8px); font-size: 14px; line-height: 1.3; }
.trfx__inc li { position: relative; padding-left: 20px; }
.trfx__inc li::before, .trfx__inc li::after { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 1.5px; background: var(--ink); }
.trfx__inc li::after { transform: rotate(90deg); }
.trfx--r2 .trfx__note { margin-top: auto; padding-top: 10px; }

/* piste 2 : l'onglet « Admission » et la colonne « Bon à savoir » */
.trfx__tabs button:first-child { padding-inline: 16px; }
.trfx__adm { flex: 1; min-height: 0; max-height: 300px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(8px, 2vh, 20px); }
.trfx__adm .trfx__st > span { margin-top: auto; }
.trfx__adm .trfx__st { flex-direction: column; gap: 14px; padding: clamp(14px, 1.8vw, 24px); border-radius: calc(var(--r) - 4px); background: #f3f4f6; }
.trfx__adm .trfx__st > i { width: 44px; height: 44px; font-size: 14px; }
.trfx__adm .trfx__st b { font-size: clamp(16px, 1.3vw, 20px); font-weight: 600; line-height: 1.2; }
.trfx__adm .trfx__st small { font-size: 13.5px; line-height: 1.4; color: var(--text); }
.trfx__adm .trfx__st { transform: translate3d(0, 10px, 0); transition: opacity .4s, transform .5s var(--ease); }
.trfx__adm .trfx__st.on { transform: none; }
.trfx--r2 .trfx__inc { grid-template-columns: minmax(0, 1fr); }
.trfx--r2 .trfx__inc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.trfx--r2 .trfx__cond::before { content: "Bon à savoir"; display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-strong); }

/* piste 3 : l'académie, puis le niveau dans la liste ; l'admission en frise */
.trfx--r3 .trfx__seg--ac { display: none; }
.trfx--r3 .trfx__vis { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; }
.trfx__picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trfx__picks button { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "i b" "i s"; align-items: center; gap: 2px 12px; padding: 14px 18px; border-radius: var(--r); background: rgb(22 33 61 / .06); color: var(--text); transition: background-color .3s, box-shadow .3s, color .3s; }
.trfx__picks svg { grid-area: i; width: 26px; height: 26px; }
.trfx__picks b { grid-area: b; font-size: 15px; font-weight: 600; color: var(--ink); }
.trfx__picks small { grid-area: s; font-size: 12.5px; }
.trfx__picks button.on { background: #fff; color: var(--gold-strong); box-shadow: inset 0 0 0 2px var(--gold), 0 8px 24px rgb(11 22 38 / .08); }
.trfx__picks button.on b::before { content: "✓ "; color: var(--gold-strong); }
.trfx__box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; padding: clamp(18px, 2.2vw, 30px); border-radius: var(--r); background: #fff; }
.trfx__lab { margin: 0 0 8px; font-size: 13.5px; color: var(--text); }
.trfx--r3 .trfx__bl .trfx__n { font-size: clamp(36px, 3.6vw, 58px); font-weight: 600; }
.trfx__sub { margin: 10px 0 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.trfx__sel { position: relative; }
.trfx__sel > button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 14px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 2px var(--gold); font-size: 15px; font-weight: 500; color: var(--ink); }
.trfx__chev { width: 16px; height: 16px; fill: none !important; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.trfx__sel.open .trfx__chev { transform: rotate(180deg); }
.trfx__sel ul { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 4; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgb(11 22 38 / .16); opacity: 0; visibility: hidden; transform: translate3d(0, -6px, 0); transition: opacity .25s, transform .25s, visibility 0s .25s; }
.trfx__sel.open ul { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
.trfx__sel li { padding: 9px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.trfx__sel li:hover, .trfx__sel li[aria-selected="true"] { background: #f3f4f6; }
.trfx__chk { display: grid; gap: 9px; margin-top: 14px; font-size: 14.5px; color: var(--ink); }
.trfx__chk li { display: flex; gap: 10px; align-items: flex-start; }
.trfx__chk svg { width: 18px; height: 18px; color: rgb(22 33 61 / .35); }
.trfx__tl { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 4px; min-height: 0; }
.trfx__tl > p { margin: 0; text-align: center; font-size: 14px; color: var(--text); }
.trfx__tl > p b { color: var(--ink); font-weight: 600; }
.trfx__rail2 { position: relative; min-height: 96px; }
.trfx__ln { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgb(22 33 61 / .12); }
.trfx__ln i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.trfx__node { position: absolute; left: var(--x); top: 50%; }
.trfx__node::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px rgb(22 33 61 / .25); transition: box-shadow .3s; }
.trfx__node.on::before { box-shadow: inset 0 0 0 2px var(--ink); }
.trfx__node::after { content: ""; position: absolute; left: -.5px; width: 1px; height: 16px; background: rgb(22 33 61 / .2); }
.trfx__node:nth-child(odd)::after { bottom: 6px; }
.trfx__node:nth-child(even)::after { top: 6px; }
.trfx__pip { position: absolute; left: 0; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgb(22 33 61 / .07); color: var(--ink); font-size: 13.5px; white-space: nowrap; translate: -50% 0; transition: background-color .3s, color .3s; }
.trfx__node:nth-child(odd) .trfx__pip { bottom: 22px; }
.trfx__node:nth-child(even) .trfx__pip { top: 22px; }
.trfx__pip em { font-style: normal; }
.trfx__pip svg { display: none; width: 15px; height: 15px; }
.trfx__node.on .trfx__pip { background: var(--night); color: #fff; }
.trfx__node.on .trfx__pip svg { display: block; color: var(--gold); }


/* ---------- piste 2 sur écrans peu hauts (portables) ---------- */
@media (min-width: 900px) and (max-height: 860px) {
  .trfx__desc, .trfx--r2 .trfx__note { display: none; }
  .trfx__inc p { margin-bottom: 6px; }
  .trfx__inc ul { font-size: 13px; }
  .trfx__steps2 .trfx__st { padding: 6px 0; }
  .trfx__steps2 .trfx__st small { font-size: 12px; }
  .trfx__opts { display: flex; flex-wrap: wrap; gap: 6px; }
}
@media (min-width: 900px) and (max-height: 740px) {
  .trfx__steps2 .trfx__st small { display: none; }
  .trfx__steps2 .trfx__st { align-items: center; }
}

/* ---------- tablette en paysage ---------- */
@media (min-width: 900px) and (max-width: 1180px) {
  .trfx__cond:not(.trfx__steps2) li:nth-child(n+3) { display: none; }
  .trfx__seg button { padding: 6px 10px; font-size: 12.5px; }
  .trfx__st small { display: none; }
  .trfx__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trfx--a .trfx__note { display: none; }
  .trfx__pn { gap: 10px; padding: 18px; }
  .trfx__pc { gap: 6px; padding: 10px 12px; }
  .trfx--a .trfx__n { font-size: 20px; }
  .trfx__tk { grid-template-columns: minmax(0, 36%) minmax(0, 1fr); }
  .trfx__tr { padding: 10px 8px; gap: 6px; }
  .trfx__qa > button { padding: 7px 0; font-size: 13px; }
  .trfx__qa:nth-child(n+4) { display: none; }
  .trfx__opts { display: flex; flex-wrap: wrap; gap: 6px; }
  .trfx__steps2 { gap: 0; }
  .trfx__steps2 .trfx__st { padding: 5px 0; align-items: center; }
  .trfx__steps2 .trfx__st > i { width: 26px; height: 26px; font-size: 11px; }
  .trfx__steps2 .trfx__st b { font-size: 13px; }
  .trfx__ans > div { font-size: 12px; }
  .trfx__plan ul { padding-right: 64px; }
  .trfx__inc div:first-child li:nth-child(n+4) { display: none; }
  .trfx__steps2 { gap: 8px; }
  .trfx__plan { padding: 10px 16px; gap: 14px; }
  .trfx__plan li:nth-child(n+3) { display: none; }
  .trfx--r1 .trfx__note { display: none; }
  .trfx__pl p { margin: 0; }
  .trfx__pl .trfx__go { display: none; }
  .trfx__sheet { padding: 18px 20px; }
  .trfx__inc { gap: 14px; padding-top: 12px; }
  .trfx__inc ul { gap: 5px; font-size: 12.5px; }
  .trfx__inc div:last-child li:nth-child(n+3) { display: none; }
  .trfx--r2 .trfx__note, .trfx__desc { display: none; }
  .trfx__adm .trfx__st small { font-size: 12px; }
  .trfx__adm .trfx__st { padding: 12px; gap: 8px; }
  .trfx__tabs button { padding: 7px 10px; font-size: 13px; }
  .trfx__tabs small { display: none; }
  .trfx__picks button { padding: 10px 12px; }
  .trfx__picks small { display: none; }
  .trfx__box { padding: 16px 18px; gap: 16px; }
  .trfx__chk { gap: 6px; font-size: 13px; margin-top: 10px; }
  .trfx__chk li:nth-child(n+3) { display: none; }
  .trfx__pip { padding: 6px 10px; font-size: 12px; }
  .trfx__rail2 { min-height: 84px; }
}

/* ---------- téléphone et tablette en portrait ---------- */
@media (max-width: 899px) {
  .trfx { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "intro" "opts" "vis" "foot"; gap: 10px; }
  .trfx__cond { display: none; }
  .trfx__opts { display: flex; flex-wrap: wrap; gap: 6px; }
  .trfx__steps2 { gap: 0; }
  .trfx__steps2 .trfx__st { padding: 5px 0; align-items: center; }
  .trfx__steps2 .trfx__st > i { width: 26px; height: 26px; font-size: 11px; }
  .trfx__steps2 .trfx__st b { font-size: 13px; }
  .trfx__seg button { padding: 6px 10px; font-size: 12.5px; }
  .trfx__note { display: none; }
  .trfx__st small { display: none; }
  .trfx__st b { font-size: 14px; }
  .trfx__n { font-size: 22px; }
  .trfx__pn { padding: 16px; gap: 10px; }
  .trfx__line { gap: 8px; }
  .trfx__line .trfx__st b { font-size: 12.5px; }
  .trfx__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .trfx__pc { padding: 12px; gap: 8px; }
  .trfx--a .trfx__n, .trfx--b .trfx__n { font-size: 20px; }
  .trfx__tk { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); -webkit-mask: none; mask: none; }
  .trfx__stub { border-radius: var(--r) var(--r) 0 0; padding: 14px 16px; gap: 10px; }
  .trfx__stub ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .trfx__stub .trfx__st { flex-direction: column; gap: 6px; }
  .trfx__stub .trfx__st b { font-size: 12px; }
  .trfx__body { border-radius: 0 0 var(--r) var(--r); padding: 14px 16px; gap: 10px; }
  .trfx__body::before { display: none; }
  .trfx__pills { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .trfx__pills .trfx__st { padding: 8px 10px; }
  .trfx__pills .trfx__st > i { width: 26px; height: 26px; }
  .trfx__stair { gap: 4px; }
  .trfx__mt { padding: 8px; gap: 6px; }
  .trfx--c .trfx__n { font-size: 14px; }
  .trfx--c .trfx__n small { display: block; margin: 2px 0 0; font-size: 9px; }
  .trfx--c .trfx__lv b { font-size: 13px; }
  .trfx--c .trfx__lv i { font-size: 9.5px; letter-spacing: .06em; }
  .trfx__sl { padding: 16px; gap: 10px; }
  .trfx__cards { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .trfx__cards .trfx__st { flex-direction: row; align-items: center; padding: 12px; }
  .trfx__cards .trfx__st > i { font-size: 36px; }
  .trfx__tbl { grid-template-rows: auto; grid-auto-rows: auto; align-content: start; }
  .trfx__tr { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px 6px; gap: 4px; }
  .trfx__tr > span:first-child { grid-column: 1 / -1; }
  .trfx__th > span:first-child { display: none; }
  .trfx--d .trfx__n { font-size: 13px; white-space: normal; }
  .trfx--d .trfx__n small { display: block; margin: 2px 0 0; }
  .trfx--d .trfx__lv b { font-size: 13px; }
  .trfx__acc { display: none; }
  .trfx--r1 .trfx__plans { gap: 6px; }
  .trfx__plan { grid-template-columns: minmax(0, 1fr); padding: 10px 14px; gap: 4px; }
  .trfx__plan ul, .trfx__pl .trfx__go { display: none; }
  .trfx__pl p { margin: 0; font-size: 12.5px; }
  .trfx--r1 .trfx__n { font-size: 20px; }
  .trfx__chip { top: 50%; translate: 0 -50%; }
  .trfx__steps2 { display: none; }
  .trfx__tabs { flex-wrap: nowrap; gap: 4px; }
  .trfx__tabs button { flex: 1; justify-content: center; padding: 7px 4px; font-size: 12px; }
  .trfx__tabs small, .trfx__tabs i { display: none; }
  .trfx__sheet { padding: 16px; }
  .trfx__sheet h3 { font-size: 20px; }
  .trfx__desc { display: none; }
  .trfx--r2 .trfx__big .trfx__n { font-size: 30px; }
  .trfx__big > span { font-size: 14px; }
  .trfx__cta { flex-wrap: wrap; gap: 8px; }
  .trfx__inc { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 10px; }
  .trfx__inc div + div { display: none; }
  .trfx--r2 .trfx__inc ul { grid-template-columns: minmax(0, 1fr); }
  .trfx__adm { flex: none; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 8px; }
  .trfx__adm .trfx__st > span { margin-top: 0; }
  .trfx__adm .trfx__st { flex-direction: row; align-items: center; padding: 10px; gap: 10px; }
  .trfx__adm .trfx__st > i { width: 30px; height: 30px; font-size: 12px; }
  .trfx__adm .trfx__st b { font-size: 14px; }
  .trfx__tabs button:first-child { padding-inline: 6px; }
  .trfx__inc ul { gap: 4px; font-size: 12.5px; }
  .trfx__inc li:nth-child(n+4) { display: none; }
  .trfx__tl { display: none; }
  .trfx__picks { gap: 6px; }
  .trfx__picks button { padding: 10px; gap: 2px 8px; }
  .trfx__picks svg { width: 20px; height: 20px; }
  .trfx__picks b { font-size: 12.5px; }
  .trfx__picks small { display: none; }
  .trfx__box { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; }
  .trfx--r3 .trfx__bl .trfx__n { font-size: 28px; }
  .trfx__sub { margin-top: 4px; font-size: 13px; }
  .trfx__lab { margin-bottom: 4px; font-size: 12px; }
  .trfx__chk { display: none; }
  .trfx__tl > p { font-size: 12px; }
  .trfx__pip { padding: 5px 8px; font-size: 10.5px; }
  .trfx__pip svg { width: 12px; height: 12px; }
}


/* =========================================================
   2026-10-16 : piste 10 « trois cartes » retenue (planche-s08-landing.png) ; les autres pistes : bak/*.pre-choix-10
   ========================================================= */
.trfx--t10 .trfx__cond::before { content: "Bon à savoir"; display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-strong); }

/* l'admission en une ligne  */
.t10__al { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.t10__al p { margin: 0; font-size: 14px; color: var(--text); }
.t10__al p b { font-weight: 600; color: var(--ink); }
.t10__al ol { display: flex; flex-wrap: wrap; gap: 6px; }
.t10__al li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.t10__al li i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); font-style: normal; font-size: 11px; font-weight: 700; }

/* ---------- 10 : trois cartes, celle du milieu en photo ---------- */
.trfx--t10 .trfx__vis { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; }
.t10 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-height: 0; }
.t10__c { position: relative; overflow: hidden; display: flex; min-height: 0; border-radius: var(--r); background: #fff; box-shadow: inset 0 0 0 1px rgb(22 33 61 / .1); }
.t10__in { position: relative; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(6px, 1.1vh, 10px); padding: clamp(16px, min(1.8vw, 2.8vh), 26px); min-height: 0; }
.t10__c--mid { background: var(--night); color: #fff; box-shadow: none; }
.t10__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.t10__c--mid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 22 38 / .25), rgb(11 22 38 / .92) 70%); }
.t10__c--mid .t10__in { z-index: 1; }
.t10__lv { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-strong); }
.t10__tag { padding: 4px 10px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 10.5px; letter-spacing: .08em; }
.t10__c h3 { margin: 0; font-size: clamp(22px, min(2vw, 3.4vh), 32px); font-weight: 500; letter-spacing: -.01em; }
.t10__fmt { margin: 0; padding: 7px 0; font-size: 13.5px; color: var(--text); }
.t10__seg { background: rgb(255 255 255 / .12); }
.t10__seg button { color: #fff; }
.t10__seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.t10__p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.t10__p .trfx__n { font-size: clamp(24px, min(2.3vw, 4.2vh), 38px); }
.t10__d { font-size: 13.5px; opacity: .7; }
.t10__ul { display: grid; gap: clamp(4px, .8vh, 8px); width: 100%; margin-top: auto; padding-top: clamp(8px, 1.4vh, 14px); border-top: 1px solid rgb(22 33 61 / .1); font-size: 13.5px; line-height: 1.3; }
.t10__c--mid .t10__ul { border-color: rgb(255 255 255 / .16); }
.t10__ul li { display: flex; gap: 8px; align-items: flex-start; }
.t10__ul svg { width: 16px; height: 16px; margin-top: 1px; color: var(--gold-strong); }


@media (min-width: 900px) and (max-height: 860px) {
  .t10__ul li:nth-child(n+4) { display: none; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .t10__al p { display: none; }
  .t10__ul li:nth-child(n+3), .t10__tag { display: none; }
  .t10__seg button { padding: 6px 9px; font-size: 12px; }
}
@media (max-width: 899px) {
  .t10__al p { display: none; }
  .t10__al li { padding-right: 10px; font-size: 12px; }
  .t10__al li i { width: 20px; height: 20px; font-size: 10px; }
  /* 10 : les trois cartes en rail, on glisse au doigt */
  .t10 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--edge) * -1); padding-inline: var(--edge); scroll-padding-inline: var(--edge); }
  .t10::-webkit-scrollbar { display: none; }
  .t10__c { flex: 0 0 78%; scroll-snap-align: start; }
  .t10__ul li:nth-child(n+3), .t10__tag { display: none; }
  .t10__ul { margin-top: 6px; }
}

/* 2026-10-16 (2) : tablette / mobile, rien de coupé */
@media (max-width: 1180px), (max-height: 760px) {
  .t10__ul { display: none; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .t10__al li { padding-right: 10px; font-size: 12.5px; }
}

/* =========================================================
   2026-10-21 : mise en page d'après le croquis de l'utilisateur — le titre, les deux choix (académie, devise)
   côte à côte au centre, puis les trois cartes sur toute la largeur. Intro, « Bon à savoir », les 3 étapes et
   le bouton jaune ne sont plus affichés ici (version d'avant : bak/tatea-admission-pistes.css.pre-wire)
   ========================================================= */
.trfx--t10 { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "opts" "vis"; gap: clamp(14px, 2.6vh, 28px) 0; }
.trfx--t10 .trf__intro, .trfx--t10 .trfx__cond, .trfx--t10 .trf__foot, .trfx--t10 .t10__al { display: none; }
.trfx--t10 .trfx__opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
.trfx--t10 .trfx__opts > .trfx__seg { background: #fff; box-shadow: 0 1px 2px rgb(22 33 61 / .06), 0 8px 24px -12px rgb(22 33 61 / .25); }
.trfx--t10 .trfx__opts .trfx__seg button { padding: 8px 18px; }
.trfx--t10 .trfx__vis { grid-template-rows: minmax(0, 1fr); }
.trfx--t10 .t10 { gap: clamp(12px, 1.4vw, 22px); }
@media (min-width: 1181px) and (min-height: 761px) { .trfx--t10 .t10__ul li:nth-child(n+3) { display: flex; } .trfx--t10 .t10__ul { display: grid; } }
@media (max-width: 1180px) and (min-height: 700px) { .trfx--t10 .t10__ul { display: grid; } } /* tablette / mobile : les 2 premières lignes */
@media (max-width: 899px) {
  .trfx--t10 .trfx__opts { justify-content: flex-start; }
  .trfx--t10 .trfx__opts .trfx__seg button { padding: 7px 12px; font-size: 12.5px; }
}
@media (min-width: 900px) and (max-width: 1180px) and (min-height: 700px) { .trfx--t10 .t10__ul li:nth-child(-n+3) { display: flex; } } /* tablette : avec le titre réduit, 3 lignes tiennent */
/* 2026-10-21 : titre de la S08 plus petit (et sur toute la largeur) pour laisser de la hauteur aux trois cartes */
html[data-e~="8"] .trfb .trfb__next { right: var(--edge); }
html[data-e~="8"] .trfb .trfb__next .s02__title { font-size: calc(var(--ttl) * .62); line-height: 1.08; }
@media (max-width: 899px) { html[data-e~="8"] .trfb .trfb__next .s02__title { font-size: calc(var(--ttl) * .78); } }
html .trfx--t10 .t10__ul { margin-top: auto; } /* la liste se pose en bas de la carte (« .trfx ul » mettait la marge à 0) */
/* 2026-10-21 : la liste respire — elle occupe le bas de la carte au lieu d'être tassée (lignes plus espacées, texte un peu plus grand) */
html .trfx--t10 .t10__ul { gap: clamp(10px, 2.2vh, 22px); padding-top: clamp(14px, 2.6vh, 26px); font-size: clamp(13.5px, 1.05vw, 15.5px); line-height: 1.35; }
.trfx--t10 .t10__ul svg { width: 18px; height: 18px; margin-top: 0; flex: none; }
.trfx--t10 .t10__ul li { gap: 10px; }
.trfx--t10 .t10__p { margin-top: clamp(4px, 1.4vh, 14px); }
@media (max-width: 1180px) { html .trfx--t10 .t10__ul { gap: 10px; padding-top: 12px; font-size: 13.5px; } }
@media (max-width: 899px) and (min-height: 700px) { html .trfx--t10 .t10__ul li:nth-child(n+3) { display: flex; } html .trfx--t10 .t10__ul { gap: 14px; padding-top: 16px; font-size: 14px; } } /* mobile : les 4 lignes, la place est là */
