.ja-jds {
    --ja-jds-indigo: #3f4876;
    --ja-jds-paper: #fff;
    --ja-jds-panel: #edf2fa;
    --ja-jds-line: #dce3f1;
    --ja-jds-ink: #222b47;
    container: ja-jds-page / inline-size;
    max-width: 1450px;
    margin-inline: auto;
    color: var(--ja-jds-indigo);
    font-family: "Instrument Sans", system-ui, sans-serif;
    line-height: 1.45;
}
.ja-jds *, .ja-jds *::before, .ja-jds *::after { box-sizing: border-box; }
.ja-jds p, .ja-jds h1, .ja-jds h2, .ja-jds h3, .ja-jds h4 { margin: 0; }
.ja-jds h1, .ja-jds h2, .ja-jds h3, .ja-jds h4 { color: inherit; }
.ja-jds .ja-jds-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 200px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--ja-jds-indigo);
    color: #fff;
}
.ja-jds .ja-jds-photo {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -1;
    width: 56%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
}
.ja-jds .ja-jds-hero-copy { width: 54%; padding: clamp(16px, 3.2cqi, 40px); }
.ja-jds .ja-jds-hero h1 { font-family: inherit; font-weight: 800; font-size: clamp(1.55rem, 4.1cqi, 3.3rem); line-height: 1.04; }
.ja-jds .ja-jds-hero p { margin-block: 8px 15px; font-size: clamp(.9rem, 1.65cqi, 1.2rem); }
.ja-jds .ja-jds-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ja-jds a.ja-jds-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42em;
    min-height: 40px;
    border: 1px solid var(--ja-jds-indigo);
    border-radius: 24px;
    padding: 5px 14px;
    background: var(--ja-jds-paper);
    color: var(--ja-jds-indigo);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}
.ja-jds a.ja-jds-button:hover { background: #f4f6ff; text-decoration: underline; }
.ja-jds a.ja-jds-button:focus-visible { outline: 2px solid #696fc0; outline-offset: 2px; }
.ja-jds .ja-jds-hero a { border-color: #fff; font-size: .83rem; text-align: center; }
.ja-jds .ja-jds-hero a.ja-jds-button-secondary { background: transparent; color: #fff; }
.ja-jds .ja-jds-section { margin-block: 26px 34px; scroll-margin-top: 90px; }
.ja-jds .ja-jds-intro { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.ja-jds .ja-jds-intro > div { flex: 1; min-width: 0; }
.ja-jds .ja-jds-intro > img { width: clamp(42px, 7cqi, 85px); height: auto; flex: none; }
.ja-jds .ja-jds-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: "DM Serif Text", Georgia, serif;
    font-size: clamp(1.25rem, 3.25cqi, 2.35rem);
    line-height: 1.1;
    margin-bottom: 12px;
}
.ja-jds .ja-jds-heading::after {
    content: "";
    flex: 1 0 80px;
    height: 42px;
    background: url("assets/societe-horizon.png") right center / contain no-repeat;
}
.ja-jds .ja-jds-intro p { font-size: .9rem; }
.ja-jds .ja-jds-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.ja-jds .ja-jds-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 calc((100% - 14px) / 2);
    min-width: 0;
    padding: 12px 10px;
    border: 2px solid var(--ja-jds-line);
    border-radius: 10px;
    background: var(--ja-jds-panel);
    text-align: center;
}
.ja-jds .ja-jds-card > img { width: clamp(42px, 5.5cqi, 70px); height: auto; }
.ja-jds .ja-jds-card h3 { font-family: "DM Serif Text", Georgia, serif; font-size: clamp(.95rem, 1.7cqi, 1.2rem); line-height: 1.22; overflow-wrap: normal; word-break: normal; }
.ja-jds .ja-jds-card p { margin-block: 5px 2px; font-size: .87rem; }
.ja-jds .ja-jds-card cite { display: block; margin: auto 0 9px; padding-top: 3px; font-size: .84rem; }
.ja-jds .ja-jds-card .ja-jds-button { width: min(100%, 190px); padding-inline: 7px; font-size: .8rem; }
.ja-jds .ja-jds-card .ja-jds-button::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.ja-jds .ja-jds-card:has(.ja-jds-button:hover),
.ja-jds .ja-jds-card:focus-within { border-color: var(--ja-jds-indigo); }
.ja-jds .ja-jds-button img { object-fit: contain; flex: none; }
.ja-jds .ja-jds-day { border: 1px solid var(--ja-jds-line); border-radius: 18px; overflow: hidden; margin-top: 8px; }
.ja-jds .ja-jds-day > h3 { padding: 7px 18px; background: var(--ja-jds-indigo); color: #fff; font: 700 clamp(1.2rem, 2.2vw, 1.85rem)/1.3 system-ui, sans-serif; }
.ja-jds .ja-jds-day time { text-transform: capitalize; }
.ja-jds .ja-jds-session {
    display: grid;
    grid-template-columns: auto minmax(0, 2fr) minmax(0, 1.25fr) auto;
    align-items: center;
    gap: 10px 18px;
    padding: 12px 16px;
    background: var(--ja-jds-panel);
    color: var(--ja-jds-ink);
}
.ja-jds .ja-jds-session + .ja-jds-session { border-top: 1px solid var(--ja-jds-line); }
.ja-jds .ja-jds-hour, .ja-jds .ja-jds-status { border-radius: 20px; padding: 4px 12px; font-weight: 750; }
.ja-jds .ja-jds-hour { background: #dce1fa; color: var(--ja-jds-indigo); font-size: 1.2rem; }
.ja-jds .ja-jds-game { display: flex; align-items: center; gap: 8px; }
.ja-jds .ja-jds-game .ja-icon { width: 34px; height: 34px; flex: none; object-fit: contain; }
.ja-jds .ja-jds-game > div { flex: 1; min-width: 0; }
.ja-jds .ja-jds-game h4 { padding: 5px 11px; border-radius: 20px; background: #efb600; color: #241b00; font: 750 1.03rem/1.25 system-ui, sans-serif; overflow-wrap: anywhere; }
.ja-jds .ja-jds-organizer { display: flex; align-items: center; gap: 6px; }
.ja-jds .ja-jds-organizer img { flex: none; object-fit: contain; }
.ja-jds .ja-jds-game p, .ja-jds .ja-jds-places p { margin-top: 4px; font-size: .9rem; }
.ja-jds .ja-jds-status { display: inline-block; background: #e1e4ef; }
.ja-jds .ja-jds-status-open { background: #c9edd4; color: #1d452a; }
.ja-jds .ja-jds-calendar { margin-top: 12px; text-align: right; }
.ja-jds .ja-jds-calendar a { color: inherit; }
@container ja-jds-page (min-width: 510px) {
    .ja-jds .ja-jds-card { flex-basis: calc((100% - 28px) / 3); }
}
@container ja-jds-page (min-width: 1000px) {
    .ja-jds .ja-jds-card { flex-basis: calc((100% - 56px) / 5); }
}
@container ja-jds-page (max-width: 480px) {
    .ja-jds .ja-jds-hero { flex-direction: column-reverse; align-items: stretch; }
    .ja-jds .ja-jds-photo { position: static; z-index: auto; width: 100%; height: auto; aspect-ratio: 2.6; clip-path: none; }
    .ja-jds .ja-jds-hero-copy { width: 100%; }
    .ja-jds .ja-jds-intro .ja-jds-heading::after { display: none; }
}
@container ja-jds-page (max-width: 285px) {
    .ja-jds .ja-jds-card { flex-basis: 100%; }
}
@media (max-width: 690px) {
    .ja-jds .ja-jds-heading::after { display: none; }
    .ja-jds .ja-jds-session { grid-template-columns: auto minmax(0, 1fr); }
    .ja-jds .ja-jds-session > .ja-jds-button, .ja-jds .ja-jds-places { grid-column: 2; justify-self: start; }
    .ja-jds a.ja-jds-button { min-height: 44px; }
}

.asgard-plugin-frise {
    position: relative;
    display: flex;
    flex: 1 1 5rem;
    min-width: 0;
    height: clamp(1.5rem, 3vw, 2.6rem);
    overflow: hidden;
}
.asgard-plugin-frise img {
    display: block;
    flex: none;
    width: auto;
    height: 100%;
    max-width: none;
}
.asgard-plugin-frise-end {
    flex: 1;
    height: 100%;
    background: url(assets/frise-modulaire/5-aligne.png) left top / 100% 100% no-repeat;
}

.ja-jds .ja-jds-heading.asgard-frise-active::after { display: none; }
@media (max-width: 690px) {
    .ja-jds .ja-jds-heading.asgard-frise-active { flex-wrap: wrap; }
    .ja-jds .ja-jds-heading > .asgard-plugin-frise { flex-basis: 100%; height: 1.6rem; }
}

.ja-practice-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin-block: .75rem 1rem; }
.ja-practice-filters label { display: grid; gap: .2rem; max-width: 100%; }
.ja-practice-filters select, .ja-practice-filters button { min-height: 42px; max-width: 100%; }
.ja-practice-facts { margin-block: 1rem; }

.ja-figurine-classification-label { margin: .65rem 0 .3rem; }
.ja-figurine-classifications {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    list-style: none;
    padding: 0;
    margin: .35rem 0;
}
.ja-figurine-classifications li {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .55rem;
    border-radius: 1rem;
    background: #edf1fa;
    color: #3f4876;
    font-size: .82rem;
    line-height: 1.35;
}
.ja-jds .ja-figurine-classifications img {
    display: block;
    width: 22px;
    height: 22px;
    flex: none;
    object-fit: contain;
    border-radius: 0;
}
