/* Prototype : style provisionnel, en attendant les références. Les couleurs des blocs d'écrits sont de l'information, pas de la déco. */
:root {
  --bg: #FFFFFF; --ink: #15171C; --ink-2: #363B46; --mut: #5B6270; --line: #E5E7EB; --line-2: #CDD1D8; --soft: #F4F5F7; --soft-2: #EBEDF0;
  --c-xens: #B3261E; --c-mines: #1D5FB4; --c-cs: #6B3FA0; --c-inp: #A86400; --c-e3a: #237A40; --c-autres: #646B78;
  --f-x: #7B2D3B; --f-ens: #94485F; --f-mp: #2E5274; --f-mt: #3F6582; --f-cs: #5B4596; --f-inp: #85590F; --f-poly: #4E6A2A; --f-e3a: #66612A; --f-autres: #6E655C;
  --m1: #E3EAF4; --m2: #C3D3EA; --m3: #94B2DB; --m4: #5F8BC6; --m5: #2E62A8;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.16, 1, .3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --top-h: 61px; --tab-h: 62px; --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 56px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #1D5FB4; outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- en-tête ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); view-transition-name: top; }
.top-in { max-width: 1180px; margin: 0 auto; height: var(--top-h); padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; min-height: 44px; justify-content: center; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.brand-cat { font-size: 13px; color: var(--mut); }
.topnav { display: none; position: relative; gap: 2px; align-self: stretch; align-items: stretch; }
.topnav a { display: flex; align-items: center; padding: 0 12px; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--mut); transition: color .2s; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--ink); }
.topnav .ind { position: absolute; left: 0; bottom: -1px; height: 2px; width: 10px; background: var(--ink); border-radius: 2px; transform-origin: left; transition: transform .45s var(--spring), width .45s var(--spring), opacity .2s; }
.filbtn { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 8px 0 13px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--bg); font-size: 15px; font-weight: 800; transition: border-color .2s, transform .15s; }
.filbtn:hover { border-color: var(--ink); }
.filbtn:active { transform: scale(.96); }
.filbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 860px) { .topnav { display: flex; } .filbtn { margin-left: auto; } }

/* ---------- barre d'onglets (téléphone) ---------- */
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + var(--safe-b)); padding: 0 6px var(--safe-b); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-top: 1px solid var(--line); view-transition-name: tabbar; }
.tabbar a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; font-size: 12px; font-weight: 600; color: var(--mut); transition: color .25s; }
.tabbar a[aria-current="page"] { color: var(--ink); font-weight: 800; }
.tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--spring); }
.tabbar a[aria-current="page"] svg { transform: translateY(-1px) scale(1.06); }
.tabbar .ind { position: absolute; top: 7px; left: 6px; width: calc((100% - 12px) / 4); height: calc(var(--tab-h) - 14px); padding: 0 6px; transition: transform .5s var(--spring), opacity .2s; }
.tabbar .ind::before { content: ""; display: block; height: 100%; margin: 0 8px; border-radius: 14px; background: var(--soft-2); }
@media (min-width: 860px) { .tabbar { display: none; } }

/* ---------- page ---------- */
#view { display: block; max-width: 1180px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right)) calc(var(--tab-h) + var(--safe-b) + 36px) max(16px, env(safe-area-inset-left)); min-height: calc(100vh - var(--top-h)); outline: none; }
@media (min-width: 860px) { #view { padding: 32px 32px 72px; } }
.boot { display: flex; gap: 6px; justify-content: center; padding: 30vh 0; }
.boot span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); animation: boot 1s var(--ease) infinite alternate; }
.boot span:nth-child(2) { animation-delay: .15s; } .boot span:nth-child(3) { animation-delay: .3s; }
@keyframes boot { to { background: var(--ink); transform: translateY(-4px); } }
.h1 { margin: 0; font-size: clamp(32px, 7vw, 52px); font-weight: 800; letter-spacing: -.025em; line-height: 1.04; }
.h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.lede { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 64ch; }
.mut { color: var(--mut); }
.small { font-size: 14px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -6px 0 6px -4px; padding: 0 4px; text-decoration: none; font-size: 15.5px; font-weight: 600; color: var(--ink-2); }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--spring); }
.back:hover svg { transform: translateX(-3px); }
.srcs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--mut); }
.srcs a { color: var(--ink-2); text-underline-offset: 3px; }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px; background: var(--c, var(--ink)); color: #fff; font-size: 13px; font-weight: 800; white-space: nowrap; }
.chev { width: 18px; height: 18px; fill: none; stroke: #8E95A2; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .25s var(--spring), stroke .2s; }

/* ---------- accueil ---------- */
.home { display: grid; gap: 28px; }
@media (min-width: 980px) { .home { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; } .home-side { position: sticky; top: calc(var(--top-h) + 32px); } }
.classe { display: flex; flex-direction: column; gap: 10px; }
.classe-h { font-size: 15px; font-weight: 800; }
.classe-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.classe-row > span { width: 72px; font-size: 14px; color: var(--mut); }
.seg { min-height: 44px; min-width: 54px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--bg); font-size: 16px; font-weight: 700; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s, transform .15s; }
.seg:hover { border-color: var(--ink); }
.seg:active { transform: scale(.95); }
.seg[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.vue { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px; border-radius: 14px; background: var(--soft); width: max-content; max-width: 100%; position: relative; }
.vue > span { padding: 0 6px 0 8px; font-size: 14px; color: var(--mut); }
.vue .seg { min-height: 38px; border-color: transparent; background: transparent; }
.vue .seg[aria-pressed="true"] { background: var(--bg); color: var(--ink); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(20, 23, 30, .08); }
.searchbox { display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 14px; text-decoration: none; color: var(--mut); font-size: 16.5px; transition: border-color .2s, box-shadow .2s; view-transition-name: searchbox; }
.searchbox:hover { border-color: var(--ink); box-shadow: 0 4px 18px rgba(20, 23, 30, .07); }
.searchbox svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.net { display: flex; flex-direction: column; }
.bloc { padding-top: 18px; }
.bloc-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bloc-h .date { font-size: 13.5px; color: var(--mut); }
.line { position: relative; }
.rail { position: absolute; left: 11px; top: 36px; bottom: 36px; width: 6px; border-radius: 3px; background: var(--c); transform-origin: top; }
.stn { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; min-height: 70px; padding: 6px 0; text-decoration: none; border-radius: 12px; transition: background .2s; }
.stn .dot { width: 14px; height: 14px; margin-left: 4px; border-radius: 50%; background: var(--bg); border: 4px solid var(--c); position: relative; z-index: 1; transition: transform .3s var(--spring); }
.stn .nm { display: block; width: max-content; max-width: 100%; font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.stn .fg { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 3px; font-size: 14.5px; color: var(--mut); }
.stn:hover .dot { transform: scale(1.25); }
.stn:hover .chev { transform: translateX(3px); stroke: var(--ink); }
.stn:active { background: var(--soft); }
.joint { margin: 2px 0 -6px 13px; height: 22px; border-left: 4px dotted #A3AAB6; }
.joint span, .bloc-note { display: none; }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qk { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 92px; padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--soft); text-decoration: none; font-size: 16px; font-weight: 800; transition: transform .3s var(--spring), border-color .2s, background .2s; }
.qk:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--bg); }
.qk svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qk.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 60px; }
.foot { margin-top: 8px; font-size: 13.5px; color: var(--mut); }

/* ---------- page de concours ---------- */
.c-head { display: flex; gap: 16px; }
.c-rail { width: 6px; border-radius: 3px; background: var(--c); flex: none; transform-origin: top; }
.c-id { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.c-tag { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14.5px; color: var(--mut); }
.facts { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { padding: 12px 10px 12px 14px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.fact span { font-size: 13.5px; color: var(--mut); line-height: 1.3; }
@media (min-width: 860px) { .facts { max-width: 720px; } }
.tabs { position: sticky; top: var(--top-h); z-index: 10; margin: 14px -16px 0; padding: 0 16px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tabs-in { position: relative; display: flex; gap: 20px; }
.tab { min-height: 50px; padding: 0 2px; border: 0; background: none; font-size: 15.5px; font-weight: 700; color: var(--mut); white-space: nowrap; transition: color .25s; }
.tab:hover, .tab[aria-selected="true"] { color: var(--ink); }
.tabs .ind { position: absolute; left: 0; bottom: -1px; height: 3px; width: 10px; border-radius: 3px; background: var(--c); transition: transform .45s var(--spring), width .45s var(--spring); }
@media (min-width: 860px) { .tabs { margin: 20px 0 0; padding: 0; } .tabs-in { gap: 30px; } }
.panels { position: relative; overflow: clip; overflow-clip-margin: 8px; touch-action: pan-y; }
.panel { padding-top: 18px; }
.panel[aria-hidden="true"] { pointer-events: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.sel { min-height: 44px; max-width: 100%; padding: 0 34px 0 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315171C' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; -webkit-appearance: none; appearance: none; font: 600 15px var(--font); color: var(--ink); }
.cid { margin-top: 18px; }
.cid-h { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.cid-h b { font-size: 16px; }
.cid-h span { font-size: 14px; color: var(--mut); }
.cols-h { display: grid; grid-template-columns: minmax(0, 1fr) 64px 84px 18px; gap: 10px; padding: 10px 0 6px; font-size: 12.5px; color: var(--mut); border-bottom: 1px solid var(--line); }
.cols-h span { text-align: right; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) 64px 84px 18px; gap: 10px; align-items: center; min-height: 68px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.srow:hover .chev { transform: translateX(3px); stroke: var(--ink); }
.srow:active { background: var(--soft); }
.srow .nm { display: block; width: max-content; max-width: 100%; font-size: 16.5px; font-weight: 700; line-height: 1.25; }
.srow .sub { display: block; font-size: 14px; color: var(--mut); margin-top: 2px; }
.srow .pl { text-align: right; font-size: 15px; color: var(--ink-2); }
.srow .pl small { display: block; font-size: 12px; color: var(--mut); line-height: 1.2; }
.srow .md { text-align: right; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.srow .md small { display: block; font-size: 12px; font-weight: 400; color: var(--mut); letter-spacing: 0; line-height: 1.2; }
.srow .info { text-align: right; font-size: 13px; color: var(--mut); line-height: 1.3; }
.empty { padding: 28px 0; color: var(--mut); }
.more { margin-top: 12px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--bg); font-weight: 700; }
.ep { display: flex; flex-direction: column; gap: 20px; }
.ep-t { margin: 0; font-size: 18px; font-weight: 800; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step-h { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; }
.step-h i { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; font-size: 13px; }
.step p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.eprow { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.eprow small { display: block; font-size: 13px; color: var(--mut); }
.eprow .d { color: var(--mut); text-align: right; white-space: nowrap; }
.eprow .c { text-align: right; font-weight: 800; white-space: nowrap; }
@media (min-width: 860px) { .ep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.ep-grid { display: flex; flex-direction: column; gap: 20px; }
.btnlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--ink); text-underline-offset: 3px; }
.style-g { display: grid; gap: 22px; }
@media (min-width: 860px) { .style-g { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; max-width: 980px; } }
.style-g h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.style-g p { margin: 0 0 8px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.ins { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.ins h3 { margin: 10px 0 0; font-size: 17px; font-weight: 800; }
.ins p { margin: 0; color: var(--ink-2); }
.ins ul { margin: 0; padding-left: 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }

/* ---------- fiche école ---------- */
.e-grid { display: grid; gap: 28px; margin-top: 22px; }
@media (min-width: 980px) { .e-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; } .e-side { position: sticky; top: calc(var(--top-h) + 24px); } }
.e-head { display: flex; flex-direction: column; gap: 10px; }
.e-head .h1 { width: max-content; max-width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.voie { display: flex; gap: 16px; padding: 4px 0 6px; }
.voie + .voie { margin-top: 18px; }
.voie-c { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; }
.voie-c p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.big b { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.big span { font-size: 16px; color: var(--ink-2); }
details.det summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; list-style: none; font-weight: 700; font-size: 15px; }
details.det summary::-webkit-details-marker { display: none; }
details.det summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; transition: transform .35s var(--spring); }
details.det[open] summary svg { transform: rotate(180deg); }
table.stats { border-collapse: collapse; width: 100%; font-size: 14.5px; font-variant-numeric: tabular-nums; }
table.stats th, table.stats td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: right; }
table.stats th:first-child, table.stats td:first-child { text-align: left; padding-left: 0; }
table.stats th { font-size: 12.5px; font-weight: 600; color: var(--mut); }
.flag { display: block; font-size: 12.5px; color: var(--mut); }
@media (max-width: 719px) {
  table.stats, table.stats tbody, table.stats tr, table.stats td { display: block; }
  table.stats thead { display: none; }
  table.stats tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  table.stats td { border: 0; padding: 2px 0; text-align: left; }
  table.stats td:first-child { grid-column: 1 / -1; font-weight: 700; padding-bottom: 4px; }
  table.stats td[data-l] { display: flex; justify-content: space-between; gap: 10px; }
  table.stats td[data-l]::before { content: attr(data-l); color: var(--mut); }
}
.byfil { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.byfil th { font-size: 12.5px; font-weight: 600; color: var(--mut); text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.byfil td { text-align: right; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.byfil th:first-child, .byfil td:first-child { text-align: left; font-weight: 800; }
.byfil tr.on td { background: var(--soft); }
.byfil tr.on td:first-child { border-radius: 8px 0 0 8px; padding-left: 8px; }
.byfil tr.on td:last-child { border-radius: 0 8px 8px 0; }
.byfil td.md { font-weight: 800; }
.cost { display: flex; flex-direction: column; gap: 0; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.kv b { text-align: right; }
.note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--soft); font-size: 14.5px; color: var(--ink-2); }

/* ---------- carte ---------- */
.carte { display: grid; gap: 22px; }
@media (min-width: 980px) { .carte { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; } .carte-map { position: sticky; top: calc(var(--top-h) + 24px); } }
.map { width: 100%; max-width: 620px; height: auto; margin: 0 auto; display: block; }
.map .rg { stroke: var(--bg); stroke-width: 2.5; stroke-linejoin: round; cursor: pointer; transition: fill .35s var(--ease), opacity .2s; }
.map .rg:hover { opacity: .85; }
.map .rg.sel { fill: var(--ink); }
.map .inset { fill: none; stroke: var(--line-2); stroke-dasharray: 4 4; }
.map .badge circle { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.map .badge text { font: 800 20px var(--font); fill: var(--ink); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.regs { display: flex; flex-wrap: wrap; gap: 8px; }
.rchip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--bg); font-size: 15px; font-weight: 700; text-decoration: none; transition: background .25s, color .25s, border-color .25s, transform .15s; }
.rchip span { color: var(--mut); font-weight: 600; transition: color .25s; }
.rchip:active { transform: scale(.96); }
.rchip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.rchip[aria-current="true"] span { color: #D5D9E0; }

/* ---------- listes d'écoles (recherche, région, domaine) ---------- */
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 10px; align-items: center; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.row .nm { display: block; width: max-content; max-width: 100%; font-size: 16.5px; font-weight: 700; line-height: 1.25; }
.row .sub { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 14px; color: var(--mut); margin-top: 3px; }
.row .sw { display: inline-flex; align-items: center; gap: 6px; }
.row .sw i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.row:hover .chev { transform: translateX(3px); stroke: var(--ink); }
.doms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 860px) { .doms { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dom { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 96px; padding: 14px; border: 1.5px solid var(--line); border-radius: 16px; text-decoration: none; transition: transform .3s var(--spring), border-color .2s, background .2s; }
.dom:hover { transform: translateY(-2px); border-color: var(--line-2); }
.dom b { font-size: 16px; line-height: 1.25; }
.dom span { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.qbox { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 14px; view-transition-name: searchbox; }
.qbox svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; flex: none; }
.qbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 17px var(--font); color: var(--ink); }
.prose { max-width: 720px; }
.prose h2 { margin: 30px 0 8px; font-size: 21px; font-weight: 800; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }

/* ---------- feuille « Ta classe » ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-bg { position: absolute; inset: 0; background: rgba(15, 17, 22, .38); opacity: 0; transition: opacity .35s var(--ease); }
.sheet-card { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 20px calc(26px + var(--safe-b)); background: var(--bg); border-radius: 22px 22px 0 0; transform: translateY(100%); transition: transform .5s var(--spring); outline: none; display: flex; flex-direction: column; gap: 14px; }
.sheet-grip { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); }
.sheet h2 { margin: 0; font-size: 20px; font-weight: 800; }
.sheet.open .sheet-bg { opacity: 1; }
.sheet.open .sheet-card { transform: none; }
@media (min-width: 860px) {
  .sheet-card { left: auto; right: 24px; bottom: auto; top: calc(var(--top-h) + 10px); width: 400px; border-radius: 18px; padding: 18px 20px 22px; box-shadow: 0 18px 50px rgba(20, 23, 30, .18); transform: translateY(-8px) scale(.97); opacity: 0; transition: transform .4s var(--spring), opacity .25s; }
  .sheet-grip { display: none; }
  .sheet-bg { background: transparent; }
  .sheet.open .sheet-card { opacity: 1; }
}

/* ---------- transitions entre pages (View Transitions API) ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .42s; animation-timing-function: var(--spring); }
html[data-dir="fwd"]::view-transition-old(root) { animation-name: vt-out-l; }
html[data-dir="fwd"]::view-transition-new(root) { animation-name: vt-in-r; }
html[data-dir="back"]::view-transition-old(root) { animation-name: vt-out-r; }
html[data-dir="back"]::view-transition-new(root) { animation-name: vt-in-l; }
html[data-dir="fade"]::view-transition-old(root) { animation-name: vt-fade-out; animation-duration: .22s; }
html[data-dir="fade"]::view-transition-new(root) { animation-name: vt-fade-in; animation-duration: .32s; }
::view-transition-old(top), ::view-transition-new(top), ::view-transition-old(tabbar), ::view-transition-new(tabbar) { animation: none; }
::view-transition-group(top), ::view-transition-group(tabbar) { animation: none; z-index: 5; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--spring); }
::view-transition-old(*):only-child, ::view-transition-new(*):only-child { animation-duration: .3s; }
@keyframes vt-out-l { to { opacity: 0; transform: translateX(-36px); } }
@keyframes vt-in-r { from { opacity: 0; transform: translateX(56px); } }
@keyframes vt-out-r { to { opacity: 0; transform: translateX(48px); } }
@keyframes vt-in-l { from { opacity: 0; transform: translateX(-36px); } }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
