/* OSDIGITALIS · espace formation
   Styles propres au catalogue, aux pages de technologie et à la page de cours. Réutilise les jetons et les composants
   de styles.css (listes à filets, bande contact).
   Sommaire : 1 catalogue et recherche · 2 domaines et technologies · 3 fiches et filtres
   · 4 pages de technologie · 5 page de cours (sommaire, texte, code, tableau) · 6 adaptations
   · 7 fiche de formation (blocs, séances, modalités). */

/* Contournement d'un défaut de styles.css : un fil d'Ariane d'un seul mot court (« Python ») fait 43 px de large. */
.breadcrumb a { min-width: 44px; }

/* ===== 1. Catalogue : héros et recherche ===== */
.hub-hero { padding-block: 8px 0; }
.hub-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(16px, 2vw, 24px); align-items: start; }
.hub-hero-main { grid-column: 1 / -1; }
.hub-hero-main .page-hero-label { margin-bottom: 14px; }
.page-hero .hub-lead { grid-column: 1 / span 7; margin-top: 0; }
.hub-note { grid-column: 8 / -1; max-width: none; margin-top: 0; padding: 14px 20px; font-size: 14px; line-height: 1.6; }
@media (min-width: 901px) {
  /* Le titre tient sur une ligne dès 901 px de large. */
  .hub-hero h1.is-wide { max-width: none; font-size: clamp(40px, 4.4vw, 56px); }
}

/* Recherche : une ligne de 56 px. L'état du résultat s'affiche à droite de l'étiquette, sans pousser la page. */
.finder-zone { padding-block: clamp(20px, 1.7vw, 24px) clamp(24px, 2vw, 28px); }
.finder { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 24px; row-gap: 10px; }
.finder-label { grid-column: 1; grid-row: 1; color: var(--muted); font-size: 13px; line-height: 1.4; }
.finder-field { position: relative; grid-column: 1 / -1; grid-row: 2; }
.finder-input { display: block; width: 100%; min-height: 56px; padding: 0 56px 0 52px; border: 1px solid var(--ghost); border-radius: 6px; background: transparent; color: var(--text); font-family: var(--display); font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; -webkit-appearance: none; appearance: none; transition: border-color .2s var(--ease); }
.finder-input::placeholder { color: var(--off); opacity: 1; }
.finder-input:hover { border-color: var(--muted); }
.finder-input:focus { border-color: var(--accent-line, var(--accent)); }
.finder-input::-webkit-search-decoration, .finder-input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.finder-icon { position: absolute; top: 50%; left: 18px; width: 22px; height: 22px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.finder-clear { position: absolute; top: 50%; right: 4px; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.finder-clear:hover { background: var(--surface); color: var(--text); }
.finder-clear svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.finder-meta { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0 20px; min-width: 0; text-align: right; }
.finder-status { color: var(--muted); font-family: var(--mono); font-size: 13px; line-height: 1.5; text-wrap: balance; }
.finder-jump { display: inline-flex; align-items: center; min-height: 44px; margin-block: -13px; color: var(--link); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.finder-jump:hover { text-decoration-thickness: 2px; }

/* ===== 2. Domaines et technologies (la signature de l'espace) ===== */
/* Les couleurs de domaine (--fam-os, --fam-prog, --fam-devops, --fam-db) sont définies dans styles.css, jetons de la charte. */
.family--os { --fam: var(--fam-os); }
.family--prog { --fam: var(--fam-prog); }
.family--devops { --fam: var(--fam-devops); }
.family--db { --fam: var(--fam-db); }
.dot--fam { background: var(--fam, var(--brand-blue)); }

.families { padding-block: clamp(24px, 2vw, 28px) clamp(40px, 4vw, 56px); }
.hub .families .section-head { align-items: center; margin-bottom: 16px; }
.hub .families .section-label { margin-bottom: 0; }
.hub .families .section-head > :last-child:not(:first-child) { grid-column: 8 / -1; padding-bottom: 0; font-size: 14px; line-height: 1.5; text-align: right; }
.families--compact { padding-block: var(--section-y-tight, 88px); }
.families--compact .section-head { margin-bottom: clamp(28px, 3.4vw, 48px); }

.family-list { counter-reset: tech; border-bottom: 1px solid var(--line); }
.family { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 16px; align-items: start; padding-block: clamp(20px, 2.2vw, 28px); border-top: 1px solid var(--line); }
.family-head { grid-column: 1 / span 3; display: flex; flex-direction: column; align-items: flex-start; padding-top: 2px; }
.family-bar { display: block; width: 24px; height: 3px; margin-bottom: 14px; background: var(--fam); }
.family-title { font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -.03em; line-height: 1.25; }
.family-count { margin-top: 6px; color: var(--muted); font-family: var(--mono); font-size: 12px; line-height: 1.4; }
.tech-grid { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tech-grid > li { display: flex; }

.tech-tile { position: relative; flex: 1 1 auto; display: flex; align-items: center; gap: 16px; min-height: 96px; padding: 16px 48px 14px 18px; background: var(--tile-bg); border: 1px solid var(--tile-line); border-top: 3px solid var(--fam); border-radius: 6px; counter-increment: tech; transition: border-color .2s var(--ease), color .3s var(--ease); }
.tech-tile .tech-logo { flex-basis: 44px; width: 44px; height: 30px; color: var(--fam); }
.tech-text { min-width: 0; }
.tech-name { display: block; font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.03em; line-height: 1.25; }
.tech-count { display: block; margin-top: 5px; color: var(--muted); font-family: var(--mono); font-size: 12px; line-height: 1.4; }
.tech-tile::after { content: counter(tech, decimal-leading-zero); content: counter(tech, decimal-leading-zero) / ""; position: absolute; top: 12px; right: 14px; color: var(--muted); font-family: var(--mono); font-size: 12px; line-height: 1; transition: opacity .2s var(--ease); }
.tech-arrow { position: absolute; top: 50%; right: 16px; color: var(--link); font-size: 20px; line-height: 1; opacity: 0; transform: translate(-6px, -50%); transition: opacity .2s var(--ease), transform .2s var(--ease); }
a.tech-tile:hover { border-color: var(--text); border-top-color: var(--fam); }
a.tech-tile:hover .tech-arrow, a.tech-tile:focus-visible .tech-arrow { opacity: 1; transform: translate(0, -50%); }
a.tech-tile:hover::after, a.tech-tile:focus-visible::after { opacity: 0; }
.tech-tile.is-soon { color: var(--off); background: transparent; border-color: var(--line); border-top-color: var(--fam); }
.tech-tile.is-soon .tech-count, .tech-tile.is-soon::after { color: var(--off); }
.tech-tile.is-soon .tech-logo, .tech-tile.is-dim .tech-logo { color: inherit; }
:root[data-theme="light"] .tech-tile.is-soon { background: var(--bg); }
.tech-tile.is-dim { color: var(--off); }
.tech-tile.is-dim .tech-count { color: var(--off); }
.tech-tile[aria-current="page"] { border-color: var(--text); border-top-color: var(--fam); }
.tech-tile[aria-current="page"] .tech-arrow { display: none; }
.tech-tile[aria-current="page"]:hover::after { opacity: 1; }

/* ===== 3. Supports : lignes, filtres, état vide ===== */
.supports { padding-block: var(--section-y-tight, 88px) clamp(40px, 5vw, 72px); scroll-margin-top: calc(24px - var(--section-y-tight, 88px)); }
.supports .section-head { align-items: last baseline; margin-bottom: clamp(28px, 3.4vw, 48px); }
.supports .section-head > .supports-count { justify-self: end; padding-bottom: 0; color: var(--text); font-family: var(--display); font-size: clamp(28px, 3vw, 44px); font-weight: 600; letter-spacing: -.045em; line-height: 1.1; text-align: right; }
.support-section { padding-block: var(--section-y-tight, 88px); }
.support-section .section-head { margin-bottom: clamp(24px, 3vw, 40px); }
.support-note { max-width: none; margin: 0 0 clamp(20px, 2.4vw, 28px); }

.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 40px; margin-bottom: clamp(24px, 3vw, 40px); }
.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-label { color: var(--muted); font-size: 13px; line-height: 1.4; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { min-height: 44px; padding: 8px 18px; border: 1px solid var(--ghost); border-radius: 6px; background: transparent; font-size: 14px; font-weight: 500; line-height: 1.25; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.filter-btn:hover { border-color: var(--text); }
.filter-btn[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--bg); }
.select { position: relative; min-width: 260px; }
.select select { display: block; width: 100%; min-height: 44px; padding: 8px 44px 8px 16px; border: 1px solid var(--ghost); border-radius: 6px; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 14px; font-weight: 500; line-height: 1.25; -webkit-appearance: none; appearance: none; }
.select select:hover { border-color: var(--text); }
.select::after { content: ""; position: absolute; top: 50%; right: 18px; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-72%) rotate(45deg); pointer-events: none; }
.filter-reset { margin-left: auto; min-height: 44px; padding: 8px 2px; border: 0; background: none; color: var(--link); font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.filter-reset:hover { text-decoration-thickness: 2px; }

.support-list { border-bottom: 1px solid var(--line); }
.support-row { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 10px; align-items: start; padding-block: clamp(22px, 2.4vw, 32px); border-top: 1px solid var(--line); transition: border-color 200ms var(--ease); }
.support-type { grid-column: 1 / span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 4px; }
.support-label { font-family: var(--mono); font-size: 13px; line-height: 1.4; }
.support-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 1px 9px; border: 1px solid var(--ghost); border-radius: 4px; color: var(--muted); font-family: var(--mono); font-size: 12px; line-height: 1.4; }
.support-tag--ex { border-color: var(--brand-amber); color: var(--text); }
.support-main { grid-column: 3 / span 5; }
.support-title { font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -.03em; line-height: 1.3; text-wrap: pretty; transition: transform 200ms var(--ease); }
.support-desc { max-width: 52ch; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Regroupement par technologie : un titre de groupe, puis la liste à filets de ses supports. */
.support-groups > .support-group + .support-group { margin-top: clamp(40px, 5vw, 64px); }
.support-group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-bottom: 16px; }
.support-fam { flex: 0 0 22px; width: 22px; height: 3px; background: var(--fam, var(--brand-blue)); }
.support-group-title { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.04em; line-height: 1.15; }
.support-group-sub { color: var(--muted); font-size: 14px; line-height: 1.4; }
.support-group-count { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 12.5px; line-height: 1.4; }
.support-meta { grid-column: 8 / span 2; display: flex; flex-direction: column; gap: 4px; padding-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.support-meta > span + span { font-family: var(--mono); font-size: 12.5px; }
.support-actions { grid-column: 10 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 24px; }
.act { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 500; line-height: 1.3; }
.act > span[aria-hidden="true"] { color: var(--link); font-size: 18px; line-height: 1; transition: transform .2s var(--ease); }
.act:hover, .act:focus-visible { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.act--read:hover > span[aria-hidden="true"] { transform: translateX(3px); }
.act--dl { grid-column: 2; white-space: nowrap; }
.act--dl:hover > span[aria-hidden="true"] { transform: translateY(2px); }

/* Ligne entièrement cliquable : le lien principal (« Lire », sinon « Télécharger ») s'étire sur toute la ligne.
   L'autre action reste au-dessus et cliquable. Le focus clavier entoure la ligne entière. */
.support-actions > .act:first-child::after { content: ""; position: absolute; inset: 0 -14px; }
.support-actions > .act + .act { position: relative; z-index: 1; }
.support-actions > .act:first-child:focus-visible { outline: none; }
.support-actions > .act:first-child:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 6px; }
@media (hover: hover) {
  .support-row:hover { border-top-color: var(--text); }
  .support-row:hover .support-title { transform: translateX(6px); }
}
.support-row:has(.act:focus-visible) .support-title { transform: translateX(6px); }

.supports-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-block: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line); }
.supports-empty-text { max-width: 40ch; font-family: var(--display); font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.035em; line-height: 1.25; }

.referral { padding-block: clamp(8px, 2vw, 24px) clamp(56px, 7vw, 104px); }
.referral-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 40px; padding-block: clamp(28px, 3.4vw, 44px); border-block: 1px solid var(--line); }
.referral-title { font-size: clamp(26px, 3vw, 42px); letter-spacing: -.045em; line-height: 1.15; }

/* ===== 4. Pages de technologie ===== */
.theme-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px; align-items: end; }
.theme-hero-main { grid-column: 1 / span 8; }
.element { --tile: var(--fam, var(--brand-blue)); grid-column: 10 / -1; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; aspect-ratio: 1 / 1; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--tile); border-radius: 6px; }
.element-num, .element-name { color: var(--muted); font-family: var(--mono); font-size: 13px; line-height: 1.4; }
.element .tech-logo { --logo-size: clamp(56px, 5.8vw, 84px); color: var(--tile); }

/* ===== 5. Page de cours ===== */
.course-hero .page-meta dd a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; margin-block: -12px; text-underline-offset: 4px; }
.course-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: clamp(28px, 3.4vw, 40px); }
.course { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); padding-block: clamp(40px, 5vw, 72px) clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.toc { grid-column: 1 / span 3; position: sticky; top: calc(var(--hdr-compact) + 32px); align-self: start; }
.toc-title { margin-bottom: 14px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.toc-list { position: relative; border-left: 1px solid var(--line); }
.toc-list a { display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 10px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: 15px; line-height: 1.35; transition: color .2s var(--ease), border-color .2s var(--ease); }
.toc-list a:hover { color: var(--text); }
.toc-list a[aria-current] { border-left-color: var(--accent-line, var(--accent)); color: var(--text); }
.toc-num { font-family: var(--mono); font-size: 12.5px; }

.article { grid-column: 5 / span 7; min-width: 0; }
.article > section + section { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.article > section > * + * { margin-top: 20px; }
.article h2 { font-size: clamp(28px, 3vw, 42px); letter-spacing: -.045em; line-height: 1.12; }
.article > section > h2 + * { margin-top: 24px; }
.article p { max-width: 60ch; color: var(--muted); font-size: 17px; line-height: 1.75; text-wrap: pretty; }
.article li { text-wrap: pretty; }
.course-hero .lead { text-wrap: balance; }
.article strong { color: var(--text); font-weight: 600; }
.h-num { margin-right: .45em; color: var(--muted); font-family: var(--mono); font-size: .62em; font-weight: 500; letter-spacing: -.02em; vertical-align: .14em; }
.article section { scroll-margin-top: 8px; }
.article .code + p { margin-top: 32px; }
.article .code { margin-top: 28px; }

.check-list { display: grid; gap: 12px; }
.check-list li { position: relative; max-width: 60ch; padding-left: 30px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.check-list li::before { content: ""; position: absolute; top: .86em; left: 0; width: 16px; height: 2px; background: var(--accent-line, var(--accent)); }
code.inline { padding: .12em .42em; border-radius: 3px; background: var(--surface-deep); color: var(--text); font-family: var(--mono); font-size: .86em; font-variant-ligatures: none; }

.code { --code-bg: #14233B; --code-fg: #F4F6F9; --code-muted: #B6C3D2; --code-line: #354359; --code-hover: #1D3252; overflow: hidden; border: 1px solid var(--code-line); border-radius: 8px; background: var(--code-bg); color: var(--code-fg); }
.code-head { display: flex; align-items: center; gap: 16px; min-height: 48px; padding: 0 6px 0 20px; border-bottom: 1px solid var(--code-line); }
.code-title { flex: 1 1 auto; min-width: 0; color: var(--code-muted); font-size: 13px; line-height: 1.4; }
.code-lang { color: var(--code-muted); font-family: var(--mono); font-size: 12px; }
.code-copy { min-width: 84px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 4px; background: transparent; color: var(--code-fg); font-size: 13px; font-weight: 500; transition: background-color .2s var(--ease), color .2s var(--ease); }
.code-copy:hover { background: var(--code-hover); }
.code-copy[data-state="copied"] { color: #1EBA61; }
.code pre { margin: 0; padding: 20px 22px 22px; overflow-x: auto; font-family: var(--mono); font-size: 14px; font-variant-ligatures: none; line-height: 1.75; tab-size: 4; }
.code code { font-family: inherit; }
.code pre:focus-visible, .code-copy:focus-visible { outline-color: #F8B021; outline-offset: -3px; }
.tok-k { color: #1EBA61; }
.tok-s { color: #F8B021; }
.tok-n { color: #17A7CE; }
.tok-f { color: #92BFFF; }
.tok-c { color: var(--code-muted); }

.table-scroll { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: 8px; }
.compare { width: 100%; min-width: 460px; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.5; text-align: left; }
.compare th, .compare td { padding: 14px 18px; vertical-align: top; text-align: left; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; background: var(--surface); color: var(--text); font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.compare thead th:first-child, .compare tbody th { position: sticky; left: 0; z-index: 1; }
.compare tbody th { width: 21%; background: var(--bg); color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
.compare thead th:first-child { background: var(--surface); }
.article .table-hint { display: none; margin-top: 12px; font-size: 13px; line-height: 1.5; }
.compare td { color: var(--text); }

.article-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }

/* ===== 6. Adaptations ===== */
@media (max-width: 1100px) {
  .tech-tile { gap: 12px; padding-inline: 14px 40px; }
  .tech-tile .tech-logo { flex-basis: 36px; width: 36px; height: 26px; }
  .support-main { grid-column: 3 / span 4; }
  .support-meta { grid-column: 7 / span 2; }
  .support-actions { grid-column: 9 / -1; }
}
@media (max-width: 900px) {
  .hub-hero-main, .page-hero .hub-lead, .hub-note, .theme-hero-main { grid-column: 1 / -1; }
  .hub-hero { padding-block: 12px 28px; }
  .hub-hero-grid { row-gap: 20px; }
  .hub-hero-main .page-hero-label { margin-bottom: 14px; }
  .hub-note { padding: 12px 16px; }

  /* Mobile : pas de réordonnancement visuel (recherche, domaines, supports comme dans le DOM) ; le lien « Voir la liste » de la recherche mène aux supports. */
  .hub .families { padding-block: 28px 36px; }
  .hub .families .section-head { row-gap: 8px; margin-bottom: 20px; }
  .hub .families .section-head > :last-child:not(:first-child) { grid-column: 1 / -1; text-align: left; }
  .family { row-gap: 14px; padding-block: 20px; }
  .family-head { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding-top: 0; }
  .family-bar { margin-bottom: 0; }
  .tech-grid { grid-column: 1 / -1; }
  .support-group-count { margin-left: 0; }
  .element { grid-column: 1 / -1; order: -1; width: 148px; gap: 8px; padding: 14px; }
  .element .tech-logo { --logo-size: 44px; }
  .element-num, .element-name { font-size: 12px; }
  .supports .section-head > .supports-count { justify-self: start; text-align: left; }
  .filter-reset { margin-left: 0; }

  .support-row { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .support-type, .support-main, .support-meta, .support-actions { grid-column: 1 / -1; }
  .support-type { flex-direction: row; align-items: center; gap: 14px; padding-top: 0; }
  .support-meta { flex-direction: row; flex-wrap: wrap; gap: 0; padding-top: 0; }
  .support-meta > span + span::before { content: "·"; margin-inline: 10px; font-family: var(--body); }
  .support-actions { display: flex; flex-wrap: wrap; gap: 0 28px; }

  .course { display: block; padding-top: 0; border-top: 0; }
  .toc { position: sticky; top: var(--hdr-compact); z-index: 20; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); }
  .toc-title { display: none; }
  .toc-list { display: flex; gap: 2px; overflow-x: auto; border-left: 0; scrollbar-width: none; }
  .toc-list::-webkit-scrollbar { display: none; }
  .toc-list a { flex: 0 0 auto; margin-left: 0; padding: 10px 14px; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .toc-list li:first-child a { padding-left: 0; }
  .toc-list a[aria-current] { border-bottom-color: var(--accent-line, var(--accent)); }
  .article { padding-top: clamp(32px, 6vw, 48px); }
  .article section { scroll-margin-top: 56px; }
}
@media (max-width: 640px) {
  .tech-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tech-tile { min-height: 68px; padding-block: 10px; }
  .tech-tile.is-soon { min-height: 60px; }
  .finder { grid-template-columns: minmax(0, 1fr); }
  .finder-label { grid-column: 1; }
  .finder-field { grid-column: 1; }
  .finder-meta { grid-column: 1; grid-row: 3; justify-content: flex-start; text-align: left; }
  .finder-status { margin-top: 2px; }
  .finder-status:empty { display: none; }
}
@media (max-width: 560px) {
  .filter-group--select, .select { width: 100%; }
  .select { min-width: 0; }
  .filter-buttons { gap: 6px; }
  .filter-btn { padding-inline: 14px; }
  .code pre { padding-inline: 16px; font-size: 13px; }
  .code-head { padding-left: 16px; }
  .compare th, .compare td { padding: 12px 12px; }
  .compare { font-size: 14px; }
  .article .table-hint { display: block; }
}

/* Mouvement réduit : les lignes de supports changent de filet, sans déplacement. */
@media (prefers-reduced-motion: reduce) {
  .support-title, .act > span[aria-hidden="true"], .tech-arrow, .tech-tile::after { transition: none; }
  .support-row:hover .support-title, .support-row:has(.act:focus-visible) .support-title { transform: none; }
  .act--read:hover > span[aria-hidden="true"], .act--dl:hover > span[aria-hidden="true"] { transform: none; }
}

/* ===== 7. Fiche de formation (pages de formation et rappel « sur demande » du catalogue) ===== */
.ondemand-note { max-width: none; margin-top: 0; padding: 14px 20px; border-left: 3px solid var(--accent-line, var(--accent)); background: var(--surface); color: var(--muted); font-size: 14px; line-height: 1.6; }
.ondemand-note strong { color: var(--text); font-weight: 600; }
.ondemand-note a { white-space: nowrap; color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ondemand-note a:hover { text-decoration-thickness: 2px; }

.fiche-block { padding-block: clamp(36px, 4.4vw, 64px); }
.fiche-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 24px; align-items: start; }
.fiche-head { grid-column: 1 / span 4; }
.fiche-head h2 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.04em; line-height: 1.12; }
.fiche-aside { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.fiche-body { grid-column: 5 / -1; min-width: 0; }
.fiche-text > p, .fiche-text-p { max-width: 62ch; color: var(--muted); font-size: 17px; line-height: 1.75; text-wrap: pretty; }
.fiche-text > p + p { margin-top: 18px; }
.fiche-text-p { margin-top: 16px; }
.fiche-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 48px); }
.fiche-sub { margin-bottom: 18px; color: var(--text); font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.fiche-body .check-list li { font-size: 16px; line-height: 1.65; }
.fiche-dl > div { display: grid; grid-template-columns: minmax(96px, 30%) minmax(0, 1fr); gap: 4px 16px; padding-block: 14px; border-top: 1px solid var(--line); }
.fiche-dl > div:last-child { border-bottom: 1px solid var(--line); }
.fiche-dl dt { color: var(--muted); font-size: 14px; line-height: 1.5; }
.fiche-dl dd { font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.fiche-demande .lead { color: var(--text); }
.fiche-demande .course-actions { margin-top: 28px; }
.fiche-adapt { max-width: 62ch; margin-top: 24px; color: var(--muted); font-size: 15px; line-height: 1.7; }

.seances { border-bottom: 1px solid var(--line); }
.seance { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; column-gap: clamp(12px, 2vw, 28px); padding-block: clamp(18px, 2vw, 26px); border-top: 1px solid var(--line); }
.seance-num, .seance-time { padding-top: 5px; color: var(--muted); font-family: var(--mono); font-size: 13px; line-height: 1.4; }
.seance-time { white-space: nowrap; text-align: right; }
.seance-title { font-size: clamp(18px, 1.6vw, 21px); letter-spacing: -.03em; line-height: 1.3; text-wrap: pretty; }
.seance-text { max-width: 62ch; margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.seance-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.seance-tags li { display: inline-flex; align-items: center; min-height: 24px; padding: 1px 9px; border: 1px solid var(--ghost); border-radius: 4px; color: var(--muted); font-family: var(--mono); font-size: 12px; line-height: 1.4; }

@media (max-width: 900px) {
  .fiche-head, .fiche-body { grid-column: 1 / -1; }
  .fiche-grid { row-gap: 20px; }
}
@media (max-width: 700px) {
  .fiche-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .seance { grid-template-columns: 36px minmax(0, 1fr); }
  .seance-time { grid-column: 2; padding-top: 10px; text-align: left; }
  .fiche-dl > div { grid-template-columns: minmax(0, 1fr); }
}
