@font-face {
    font-family: "Font Awesome 7 Free";
    src: url("webfonts/fa-solid-900.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
    font-display: block;
}

@font-face {
    font-family: "Font Awesome 7 Brands";
    src: url("webfonts/fa-brands-400.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: block;
}

:root {
    --footer-height: calc(24px + env(safe-area-inset-bottom, 0px));
    --floating-action-size: 54px;
    --floating-action-gap: 0.75rem;
    --pad-background: #edf3fa;
    --surface: #ffffff;
    --ink: #203044;
    --muted: #596b80;
    --accent: #285b91;
    --accent-hover: #1c436e;
    --line: #d5dfe9;
    --focus: #285b91;
    --shadow: 0 3px 12px rgb(25 45 65 / 6%);
}

:root[data-theme="vert"] {
    --pad-background: #edf5f0;
    --surface: #fff;
    --ink: #213c32;
    --muted: #546f62;
    --accent: #286447;
    --accent-hover: #194930;
    --line: #d2e3d8;
    --focus: #286447;
}

:root[data-theme="violet"] {
    --pad-background: #f1eef8;
    --surface: #fff;
    --ink: #332c47;
    --muted: #6a607d;
    --accent: #665095;
    --accent-hover: #4e3878;
    --line: #ded6ec;
    --focus: #665095;
}

:root[data-theme="rose"] {
    --pad-background: #fbf0f3;
    --surface: #fff;
    --ink: #472d38;
    --muted: #7c5b69;
    --accent: #974967;
    --accent-hover: #76354f;
    --line: #ecd7df;
    --focus: #974967;
}

:root[data-theme="orange"] {
    --pad-background: #fff3e9;
    --surface: #fff;
    --ink: #473326;
    --muted: #7c624e;
    --accent: #984b20;
    --accent-hover: #753816;
    --line: #ebd9c9;
    --focus: #984b20;
}

:root[data-theme="sable"] {
    --pad-background: #f6f2e8;
    --surface: #fff;
    --ink: #3e3728;
    --muted: #74664e;
    --accent: #76602e;
    --accent-hover: #56451e;
    --line: #e1d9c7;
    --focus: #76602e;
}

:root[data-theme="gris"] {
    --pad-background: #f0f2f4;
    --surface: #fff;
    --ink: #2d3540;
    --muted: #606a77;
    --accent: #4d5c70;
    --accent-hover: #344155;
    --line: #d9dfe5;
    --focus: #4d5c70;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

.fa-solid,
.fa-brands {
    display: inline-block;
    font-family: "Font Awesome 7 Free";
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}
.fa-brands { font-family: "Font Awesome 7 Brands"; font-weight: 400; }

html { height: 100%; overflow: hidden; color-scheme: light; scroll-behavior: smooth; }

body {
    min-width: 280px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    background: var(--pad-background);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 0.5rem;
    left: 0.75rem;
    z-index: 10;
    padding: 0.65rem 0.9rem;
    border-radius: 0.5rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.site-header {
    flex: none;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 0.5rem 1.25rem;
    gap: 1rem;
}
.brand { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; gap: 0.7rem; }
.brand-mark {
    display: grid;
    flex: none;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 800;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand h1 {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-actions { position: relative; display: flex; flex: 0 0 auto; align-items: center; gap: 0.75rem; }
.tag-filter { display: flex; align-items: center; gap: 0.25rem; }
.compact-all-toggle,
.tag-filter-toggle,
.tag-filter-clear {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 0.5rem;
    background: var(--surface);
    color: var(--accent);
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}
.compact-all-toggle,
.tag-filter-toggle { position: relative; display: grid; width: 44px; padding: 0; place-items: center; }
.compact-all-toggle:disabled { cursor: default; opacity: 0.38; }
.tag-filter-toggle.is-active { border-color: var(--accent); background: var(--pad-background); font-weight: 700; }
.tag-filter-toggle.is-active::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    border: 2px solid var(--surface);
    border-radius: 50%;
    background: var(--accent);
}
.tag-filter-clear { display: grid; width: 36px; place-items: center; }
.compact-all-toggle:hover:not(:disabled),
.tag-filter-toggle:hover,
.tag-filter-clear:hover { background: var(--pad-background); }
.tag-filter-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    width: min(20rem, calc(100vw - 1.5rem));
    max-height: min(24rem, calc(100vh - 6rem));
    max-height: min(24rem, calc(100dvh - 6rem));
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--surface);
    box-shadow: 0 6px 24px rgb(25 45 65 / 18%);
}
.tag-filter-panel h2 { flex: none; margin: 0 0 0.4rem; color: var(--ink); font-size: 0.85rem; }
.tag-filter-options { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 0.25rem; }
.tag-choice {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
}
.tag-choice:hover,
.tag-choice[aria-pressed="true"] { background: var(--pad-background); }
.tag-choice[aria-pressed="true"] { font-weight: 700; }
.tag-check { flex: none; width: 1rem; color: var(--accent); visibility: hidden; }
.tag-choice[aria-pressed="true"] .tag-check { visibility: visible; }
.tag-name { min-width: 0; overflow-wrap: anywhere; }
.tag-count { flex: none; margin-left: auto; color: var(--muted); font-size: 0.75rem; }
.add-tile {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right, 0px));
    bottom: calc(var(--footer-height) + var(--floating-action-gap));
    z-index: 10;
    display: flex;
    width: var(--floating-action-size);
    height: var(--floating-action-size);
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: var(--shadow);
}
.add-tile:hover { background: var(--accent-hover); color: #fff; }
.add-tile > span {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    font-size: 0;
}
.add-tile > span::before,
.add-tile > span::after {
    grid-area: 1 / 1;
    background: currentColor;
    content: "";
}
.add-tile > span::before { width: 18px; height: 2px; }
.add-tile > span::after { width: 2px; height: 18px; }
.board-navigation {
    position: fixed;
    left: max(1rem, env(safe-area-inset-left, 0px));
    bottom: calc(var(--footer-height) + var(--floating-action-gap));
    z-index: 10;
    display: flex;
    gap: 0.25rem;
    padding: 0.2rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.board-navigation-button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.board-navigation-button:hover:not(:disabled) { background: var(--pad-background); color: var(--accent); }
.board-navigation-button:disabled { cursor: default; opacity: 0.38; }

main { display: flex; flex: 1; min-height: 0; min-width: 0; overflow: hidden; }
.status {
    display: flex;
    width: min(32rem, calc(100% - 2rem));
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    margin: 2rem auto;
    padding: 1.5rem;
    border: 1px dashed var(--line);
    border-radius: 0.75rem;
    background: var(--surface);
    color: var(--muted);
    text-align: center;
}
.status p { margin: 0; }
.status-error { border-color: #a44c3c; }
.loading-illustration {
    display: block;
    width: 18rem;
    max-width: 100%;
    height: auto;
}

.board {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    align-items: stretch;
    gap: 1.1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1rem 1.25rem 0.375rem;
    scroll-padding-inline: 1.25rem;
    scroll-snap-type: x proximity;
    scrollbar-color: var(--muted) transparent;
}
.board-column {
    display: flex;
    flex: 0 0 19rem;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    scroll-snap-align: start;
}
.column-header { display: flex; flex: 0 0 auto; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem; padding: 0 0.2rem 0.1rem; border-bottom: 2px solid var(--line); }
.column-header h2 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.column-sort-toggle {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
}
.column-sort-toggle:hover,
.column-sort-toggle[aria-expanded="true"] { background: var(--surface); color: var(--accent-hover); }
.column-sort-panel {
    position: fixed;
    z-index: 30;
    width: min(16rem, calc(100vw - 1rem));
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.column-sort-panel h2 { margin: 0 0 0.4rem; color: var(--ink); font-size: 0.85rem; }
.card-list {
    display: grid;
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 0.75rem;
    padding: 0.2rem 0.25rem calc(var(--floating-action-size) + 2 * var(--floating-action-gap));
    scroll-padding-bottom: calc(var(--floating-action-size) + 2 * var(--floating-action-gap));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
}
.resource-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow-wrap: anywhere;
}
.card-heading { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.55rem; }
.card-title { flex: 1 1 auto; min-width: 0; margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.35; }
.card-compact-toggle {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0.4rem;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.75rem;
    cursor: pointer;
}
.card-compact-toggle:hover { background: var(--pad-background); color: var(--accent); }
.card-body { display: flex; flex-direction: column; min-width: 0; }
.resource-card.is-compact { padding: 0.35rem 0.6rem; }
.resource-card.is-compact .card-heading { margin-bottom: 0; }
.card-preview { position: relative; max-height: 20rem; overflow: hidden; }
.resource-card.is-expanded .card-preview { max-height: none; overflow: visible; }
.resource-card.is-collapsible:not(.is-expanded) .card-preview::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2.5rem;
    background: linear-gradient(to bottom, transparent, var(--surface));
    content: "";
    pointer-events: none;
}
.card-expand {
    display: inline-flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.5rem;
    padding: 0.35rem 0.5rem;
    border: 0;
    border-radius: 0.4rem;
    background: var(--pad-background);
    color: var(--accent);
    cursor: pointer;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 650;
}
.card-expand:hover { color: var(--accent-hover); }
.card-expand-icon { font-size: 0.7rem; }
.markdown-body { min-width: 0; color: var(--ink); font-size: 0.9rem; }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body > :last-child { margin-bottom: 0; }
.markdown-body h4, .markdown-body h5, .markdown-body h6 { margin: 0.9rem 0 0.4rem; font-size: 0.95rem; line-height: 1.35; }
.markdown-body p, .markdown-body ul, .markdown-body ol, .markdown-body blockquote, .markdown-body pre { margin-block: 0.6rem; }
.markdown-body ul, .markdown-body ol { padding-left: 1.25rem; }
.markdown-body img { display: block; max-width: 100%; height: auto; margin-block: 0.6rem; border-radius: 0.35rem; }
.markdown-body img[data-lightbox="true"] { cursor: zoom-in; pointer-events: auto; }
.image-lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 3.5rem 1rem 1rem;
    border: 0;
    background: transparent;
    color: #fff;
    overflow: hidden;
}
.image-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.image-lightbox::backdrop { background: rgb(10 18 30 / 90%); }
.image-lightbox figure { min-width: 0; max-width: 100%; margin: 0; text-align: center; }
.image-lightbox img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 8rem);
    max-height: calc(100dvh - 8rem);
    width: auto;
    height: auto;
    margin-inline: auto;
    object-fit: contain;
}
.image-lightbox figcaption {
    margin-top: 0.75rem;
    overflow: hidden;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 40%);
    border-radius: 50%;
    background: rgb(0 0 0 / 30%);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0;
}
.lightbox-close::before,
.lightbox-close::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: currentColor;
    content: "";
}
.lightbox-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lightbox-close:hover { background: rgb(255 255 255 / 15%); }
.lightbox-close:focus-visible { outline-color: #fff; }
.iframe-responsive {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 0.5rem;
}
.iframe-responsive iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.markdown-body blockquote { margin-inline: 0; padding: 0.15rem 0 0.15rem 0.75rem; border-left: 3px solid var(--line); color: var(--muted); }
.markdown-body code { padding: 0.1rem 0.25rem; border-radius: 0.25rem; background: var(--pad-background); font-family: Consolas, "Liberation Mono", monospace; font-size: 0.88em; }
.markdown-body pre { max-width: 100%; overflow-x: auto; padding: 0.7rem; border-radius: 0.35rem; background: var(--ink); color: var(--surface); }
.markdown-body mjx-container { max-width: 100%; }
.markdown-body mjx-container[display="true"] { overflow-x: auto; overflow-y: hidden; padding-block: 0.2rem; }
.markdown-body mjx-container[display="true"] > svg { max-width: none; }
.markdown-body pre code { padding: 0; background: transparent; color: inherit; }
.markdown-body table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.markdown-body th, .markdown-body td { padding: 0.3rem; border: 1px solid var(--line); }
.markdown-body hr { border: 0; border-top: 1px solid var(--line); margin-block: 0.85rem; }
.empty-description { color: var(--muted); font-style: italic; }
.attachments { margin-top: 0.75rem; padding-top: 0.6rem; border-top: 1px solid var(--line); }
.attachments h4 { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.4rem; font-size: 0.8rem; }
.attachments h4 .fa-solid { color: var(--accent); }
.attachments ul { display: grid; margin: 0; padding: 0; gap: 0.3rem; list-style: none; }
.attachments a { display: block; padding: 0.4rem 0.5rem; border-radius: 0.35rem; background: var(--pad-background); font-size: 0.85rem; overflow-wrap: anywhere; }
.card-footer { margin-top: 0.75rem; padding-top: 0.55rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.7rem; }
.card-footer p { margin: 0; }
.card-metadata { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 0.75rem; }
.card-metadata > p { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.card-tag {
    max-width: 100%;
    min-height: 32px;
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--pad-background);
    color: var(--accent);
    font: inherit;
    font-size: 0.75rem;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.card-tag:hover { border-color: var(--accent); }
.card-tag[aria-pressed="true"] { border-color: var(--accent); font-weight: 700; text-decoration: underline; }

.project-links {
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: flex-start;
    min-height: var(--footer-height);
    padding: 0 0.5rem env(safe-area-inset-bottom, 0px);
}
.project-info { flex: none; }
.project-info > summary {
    display: grid;
    flex: none;
    width: 24px;
    height: 24px;
    place-items: center;
    color: var(--muted);
    font-size: 0.65rem;
    text-decoration: none;
}
.project-info > summary { list-style: none; cursor: pointer; border-radius: 0.3rem; }
.project-info > summary::-webkit-details-marker { display: none; }
.project-info > summary:hover { color: var(--accent); }
.project-info > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.project-info[open] > summary { background: var(--surface); color: var(--accent); }
.project-info-panel {
    position: absolute;
    left: 0.5rem;
    bottom: calc(100% + 0.5rem);
    z-index: 20;
    width: min(20rem, calc(100vw - 1rem));
    max-height: calc(100vh - 6rem);
    max-height: calc(100dvh - 6rem);
    overflow-y: auto;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0.65rem;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow);
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}
.project-info-panel p { margin: 0; }
.project-info-panel p + p { margin-top: 0.6rem; }
.content-info-panel { left: auto; right: 0.5rem; }
.project-credits { display: flex; flex: none; align-items: center; gap: 0.2rem; margin-left: auto; }
.project-credit-toggle,
.project-work-items {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 24px;
    height: 24px;
    padding: 0 0.3rem;
    border: 0;
    border-radius: 0.3rem;
    background: transparent;
    color: var(--muted);
    font-size: 0.75rem;
    text-decoration: none;
    cursor: pointer;
}
.project-credit-toggle:hover,
.project-work-items:hover { color: var(--accent); }
.project-credit-toggle:focus-visible,
.project-work-items:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.project-work-items[aria-disabled="true"] { cursor: default; }
.project-credit-toggle[aria-expanded="true"] { background: var(--surface); color: var(--accent); }
.project-credit-section { margin-top: 0.75rem; }
.project-credit-section:first-child { margin-top: 0; }
.project-credit-section h2 { margin: 0 0 0.2rem; font-size: inherit; }
.project-license-icons { display: flex; gap: 0.3rem; margin-top: 0.4rem; font-size: 1rem; }
.project-info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--line);
}
.project-info-actions a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 0.4rem;
    background: var(--pad-background);
    font-size: 0.75rem;
    text-decoration: none;
}
.project-info-actions a:hover { border-color: var(--accent); }

@media (max-width: 760px) {
    .header-inner { min-height: 60px; padding: 0.5rem 0.75rem; gap: 0.6rem; }
    .brand { gap: 0.5rem; }
    .brand-mark { width: 36px; height: 36px; }
    .brand h1 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        max-height: 2.4em;
        font-size: 1rem;
        line-height: 1.2;
        white-space: normal;
        overflow-wrap: anywhere;
        text-overflow: clip;
    }
    .board-navigation { display: none; }
    .board {
        padding: 0.85rem 0.75rem 0.375rem;
        /* Laisser aussi la dernière colonne atteindre l’alignement à gauche. */
        padding-inline-end: calc(13vw - 0.75rem);
        scroll-padding-inline: 0.75rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0.85rem;
    }
    .board-column { flex-basis: 87vw; scroll-snap-stop: always; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Seules les formules attendent le moteur ; les tuiles restent utilisables. */
.math-source { max-width:100%; overflow-x:auto; overflow-y:hidden; }
.math-inline { display:inline-block; vertical-align:middle; white-space:nowrap; }
.math-block { display:block; margin:.6rem 0; text-align:center; }
.math-source[data-math-state="pending"] { visibility:hidden; }
.math-source[data-math-state="error"] { font-family:monospace; white-space:pre-wrap; }
