/*
 * JouteTrack — theme-pages-joutes-animer.css
 * Vue animateur plein écran, timer SVG, bons coups.
 */




/* ═══════════════════════════════════════════
   Animer wizard (slice 9)
   ═══════════════════════════════════════════ */

:root {
    --jt-animer-card-rouge: color-mix(in srgb, #e11d48 22%, transparent);
    --jt-animer-card-vert: color-mix(in srgb, #22c55e 22%, transparent);
    --jt-animer-card-bleu: color-mix(in srgb, #3b82f6 22%, transparent);
    --jt-animer-border-rouge: color-mix(in srgb, #f43f5e 55%, transparent);
    --jt-animer-border-vert: color-mix(in srgb, #4ade80 55%, transparent);
    --jt-animer-border-bleu: color-mix(in srgb, #60a5fa 55%, transparent);
    --jt-animer-overlay: rgba(8, 12, 24, 0.72);
}

html:has(body.jt-body--animer-minimal) {
    height: 100%;
    overflow: hidden;
}

body.jt-body--animer-minimal {
    margin: 0;
    height: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--text-primary);
    background-color: var(--bg-darker);
    background-image: linear-gradient(var(--jt-animer-overlay), var(--jt-animer-overlay)),
        url('../assets/img/background_joute.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.jt-animer-minimal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 20;
}

.jt-animer-minimal-brand {
    font-weight: 700;
    color: var(--text-primary);
}


.jt-animer-minimal-main {
    box-sizing: border-box;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: 80vw;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    overflow: hidden;
}

/* Pages publiques mobile (QR bons coups / dépôt solution) — scroll natif */
body.jt-body--public-minimal {
    margin: 0;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    color: var(--text-primary);
    background-color: var(--bg-darker);
    background-image: linear-gradient(var(--jt-animer-overlay), var(--jt-animer-overlay)),
        url('../assets/img/background_joute.png');
    background-size: cover;
    background-position: center;
}

body.jt-body--public-minimal .jt-animer-minimal-main {
    flex: none;
    min-height: auto;
    max-width: 100%;
    overflow: visible;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
}

.jt-animer-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: 40;
    box-sizing: border-box;
    width: 80vw;
    max-width: 80vw;
    transform: translateX(-50%);
    padding: clamp(0.4rem, 0.9vh, 0.55rem) 0
        calc(clamp(0.4rem, 0.9vh, 0.55rem) + env(safe-area-inset-bottom, 0));
    border-top: 1px solid var(--border-color);
    background: var(--bg-dark);
}

.jt-animer-bottom-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.jt-animer-bottom-bar-cluster--right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.jt-animer-bottom-bar .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: clamp(0.72rem, 1.05vw, 0.85rem);
    padding: clamp(0.32rem, 0.65vh, 0.45rem) clamp(0.55rem, 1.2vw, 0.85rem);
    line-height: 1.2;
}

/* Pleine page foncée : retirer le bloc carte global .school-section pour /animer */
#jt-animer.jt-animer-root.school-section {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

#jt-animer.jt-animer-screen {
    box-sizing: border-box;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: 80vw;
    height: 100%;
    max-height: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

#jt-animer .jt-animer-screen__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
}


#jt-animer .jt-animer-screen__main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
}

#jt-animer .jt-animer-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.jt-animer-panel[hidden] {
    display: none !important;
}

.jt-animer-panel--stack,
.jt-animer-panel {
    flex: 1 1 auto;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.jt-animer-panel--stack:has(.jt-animer-bc-wrap):has(> .jt-animer-timer-stage),
.jt-animer-panel--stack:has(.jt-animer-results-mid):has(> .jt-animer-timer-stage) {
    grid-template-rows: auto minmax(0, 0.32fr) minmax(0, 1fr) auto;
}

.jt-animer-panel--stack:has(.jt-animer-results-mid):not(:has(> .jt-animer-timer-stage)) {
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.jt-animer-panel--stack:has(.jt-animer-bc-wrap):not(:has(> .jt-animer-timer-stage)) {
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.jt-animer-panel--stack > .jt-animer-top {
    grid-row: 1;
    position: relative;
    z-index: 30;
    overflow: visible;
}

.jt-animer-panel--stack > .jt-animer-timer-band,
.jt-animer-panel--stack > .jt-animer-timer-stage {
    grid-row: 2;
    min-height: 0;
    height: 100%;
    max-height: 100%;
}

.jt-animer-panel--stack > .jt-animer-timer-band .jt-animer-timer-band__center,
.jt-animer-panel--stack > .jt-animer-timer-stage {
    container-type: size;
    container-name: jt-animer-timer;
}

.jt-animer-timer-band {
    display: grid;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    align-items: stretch;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: minmax(50%, 1fr);
}

.jt-animer-timer-band:has(.jt-animer-side-card--rules) {
    grid-template-columns: minmax(0, 25%) minmax(50%, 1fr);
}

.jt-animer-timer-band:has(.jt-animer-side-card--todo):not(:has(.jt-animer-side-card--rules)) {
    grid-template-columns: minmax(50%, 1fr) minmax(0, 25%);
}

.jt-animer-timer-band:has(.jt-animer-side-card--rules):has(.jt-animer-side-card--todo) {
    grid-template-columns: minmax(0, 25%) minmax(50%, 1fr) minmax(0, 25%);
}

.jt-animer-timer-band:has(.jt-animer-side-card--pitch-teams):has(.jt-animer-side-card--todo) {
    grid-template-columns: minmax(0, 25%) minmax(50%, 1fr) minmax(0, 25%);
}

.jt-animer-timer-band:has(.jt-animer-side-card--solutions-qr):has(.jt-animer-side-card--todo) {
    grid-template-columns: minmax(0, 25%) minmax(50%, 1fr) minmax(0, 25%);
}

.jt-animer-timer-band:has(.jt-animer-side-card--bc-qr):has(.jt-animer-side-card--bc-status) {
    grid-template-columns: minmax(0, 25%) minmax(50%, 1fr) minmax(0, 25%);
}

/* Même colonnes 25 % / 50 %+ / 25 % pour l’en-tête et la bande chrono (alignement Livrables ↔ À faire) */
.jt-animer-panel--stack:has(> .jt-animer-timer-band) {
    grid-template-columns: minmax(0, 25%) minmax(50%, 1fr) minmax(0, 25%);
}

.jt-animer-panel--stack:has(> .jt-animer-timer-band) > .jt-animer-top {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.jt-animer-panel--stack:has(> .jt-animer-timer-band) > .jt-animer-timer-band {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.jt-animer-panel--stack:has(> .jt-animer-timer-band) .jt-animer-top-col--phase {
    grid-column: 1;
    justify-self: start;
}

.jt-animer-panel--stack:has(> .jt-animer-timer-band) .jt-animer-top-col--main {
    grid-column: 2 / 4;
    justify-self: stretch;
    min-width: 0;
    max-width: 100%;
}

.jt-animer-panel--stack:has(> .jt-animer-timer-band) .jt-animer-side-card--rules {
    grid-column: 1;
}

.jt-animer-panel--stack:has(> .jt-animer-timer-band) .jt-animer-side-card--pitch-teams {
    grid-column: 1;
}

.jt-animer-panel--stack:has(> .jt-animer-timer-band) .jt-animer-side-card--solutions-qr {
    grid-column: 1;
}

.jt-animer-panel--stack:has(> .jt-animer-timer-band) .jt-animer-side-card--bc-qr {
    grid-column: 1;
}

.jt-animer-panel--stack:has(> .jt-animer-timer-band) .jt-animer-timer-band__center {
    grid-column: 2;
}

.jt-animer-panel--stack:has(> .jt-animer-timer-band) .jt-animer-side-card--todo {
    grid-column: 3;
}

.jt-animer-panel--stack:has(> .jt-animer-timer-band) .jt-animer-side-card--bc-status {
    grid-column: 3;
}

.jt-animer-panel--stack:has(> .jt-animer-timer-band):not(:has(.jt-animer-side-card--rules)):not(:has(.jt-animer-side-card--pitch-teams)):not(:has(.jt-animer-side-card--solutions-qr)):not(:has(.jt-animer-side-card--bc-qr)) .jt-animer-timer-band__center {
    grid-column: 1 / 3;
}

.jt-animer-panel--stack:has(> .jt-animer-timer-band):not(:has(.jt-animer-side-card--todo)):not(:has(.jt-animer-side-card--bc-status)) .jt-animer-timer-band__center {
    grid-column: 2 / 4;
}

.jt-animer-panel--stack:has(> .jt-animer-timer-band) .jt-animer-top-main-panel__labels .jt-animer-top-help-trigger,
.jt-animer-panel--stack:has(> .jt-animer-timer-band) .jt-animer-top-main-panel__labels .jt-animer-top-help-static {
    justify-content: center;
}

.jt-animer-timer-band__center {
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

.jt-animer-timer-band__center .jt-animer-timer-stage {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: 100%;
}

#jt-animer .jt-animer-side-card {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    gap: clamp(0.5rem, 1.5vw, 0.9rem);
    align-items: flex-start;
    padding: clamp(0.85rem, 1.5vh, 1.1rem) clamp(0.75rem, 1.5vw, 1rem);
    background: rgba(10, 15, 35, 0.5);
    border: 1px solid rgba(80, 100, 160, 0.25);
    border-radius: 1rem;
}

#jt-animer .jt-animer-timer-band__center,
#jt-animer .jt-animer-panel--stack > .jt-animer-timer-stage {
    box-sizing: border-box;
    background: rgba(10, 15, 35, 0.5);
    border: 1px solid rgba(80, 100, 160, 0.25);
    border-radius: 1rem;
    padding: clamp(0.35rem, 1vh, 0.65rem) clamp(0.5rem, 1vw, 0.75rem);
}

#jt-animer .jt-animer-side-card-body {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 960px) {
    .jt-animer-panel--stack:has(> .jt-animer-timer-band) {
        grid-template-columns: minmax(0, 1fr);
    }

    .jt-animer-panel--stack:has(> .jt-animer-timer-band) > .jt-animer-top {
        grid-template-columns: minmax(0, 1fr);
    }

    .jt-animer-panel--stack:has(> .jt-animer-timer-band) .jt-animer-top-col--phase,
    .jt-animer-panel--stack:has(> .jt-animer-timer-band) .jt-animer-top-col--main {
        grid-column: 1;
    }

    .jt-animer-timer-band:has(.jt-animer-side-card--rules),
    .jt-animer-timer-band:has(.jt-animer-side-card--todo) {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .jt-animer-timer-band:has(.jt-animer-side-card--rules) .jt-animer-side-card--rules {
        grid-row: 1;
    }

    .jt-animer-timer-band:has(.jt-animer-side-card--todo) .jt-animer-side-card--todo {
        grid-row: 3;
    }

    .jt-animer-timer-band__center {
        grid-row: 2;
    }
}

.jt-animer-panel--stack:has(.jt-animer-bc-wrap):not(:has(> .jt-animer-timer-stage)) > .jt-animer-bc-wrap {
    grid-row: 2;
    min-height: 0;
}

.jt-animer-panel--stack:has(.jt-animer-bc-wrap) > .jt-animer-bc-wrap,
.jt-animer-panel--stack:has(.jt-animer-results-mid):has(> .jt-animer-timer-stage) > .jt-animer-results-mid {
    grid-row: 3;
    min-height: 0;
}

.jt-animer-panel--stack:has(.jt-animer-results-mid):not(:has(> .jt-animer-timer-stage)) > .jt-animer-results-mid {
    grid-row: 2;
    min-height: 0;
}

.jt-animer-panel--stack > .jt-animer-bottom {
    grid-row: -1;
    grid-column: 1 / -1;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
}

.jt-animer-top,
.jt-animer-top--meta {
    flex: 0 0 auto;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 25%) minmax(0, 1fr);
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    align-items: stretch;
    min-height: min(18vh, 100%);
    padding: clamp(1rem, 3vh, 2.5rem) 0;
}

.jt-animer-top-col--phase {
    justify-self: start;
    text-align: left;
}

.jt-animer-top-col--main {
    justify-self: stretch;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.jt-animer-top-main-panel {
    box-sizing: border-box;
    flex: 1 1 auto;
    min-height: min(14vh, 100%);
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.jt-animer-top-main-panel__title {
    flex: 4 1 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(0.5rem, 1.2vh, 0.85rem) clamp(0.75rem, 1.5vw, 1.25rem);
}

.jt-animer-top-main-panel__labels {
    flex: 1 1 0;
    min-height: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    padding: clamp(0.35rem, 0.8vh, 0.55rem) clamp(0.75rem, 1.5vw, 1rem);
}

.jt-animer-top-label-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jt-animer-top-main-empty {
    margin: 0;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
}

#jt-animer .jt-animer-top-help-static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
}

#jt-animer .jt-animer-top-help-label {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--warning-color);
    line-height: 1.2;
}

#jt-animer .jt-animer-top-help-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    outline: none;
    min-height: 1.75rem;
    vertical-align: top;
}

#jt-animer .jt-animer-top-label-slot--livrables .jt-animer-top-help-trigger {
    justify-content: center;
}

#jt-animer .jt-animer-top-help-icon {
    flex-shrink: 0;
    width: clamp(1rem, 1.35vw, 1.2rem);
    height: clamp(1rem, 1.35vw, 1.2rem);
    color: var(--warning-color);
}

#jt-animer .jt-animer-top-help-trigger:hover .jt-animer-top-help-label,
#jt-animer .jt-animer-top-help-trigger:hover .jt-animer-top-help-icon,
#jt-animer .jt-animer-top-help-trigger:focus-visible .jt-animer-top-help-label,
#jt-animer .jt-animer-top-help-trigger:focus-visible .jt-animer-top-help-icon {
    color: #fff;
}

@media (max-width: 960px) {
    .jt-animer-top,
    .jt-animer-top--meta {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 1.25rem 1rem;
    }

    .jt-animer-top-col--phase,
    .jt-animer-top-col--main {
        justify-self: stretch;
        text-align: left;
        max-width: none;
        margin-inline: 0;
    }

    .jt-animer-top-main-panel {
        min-height: 0;
    }

    .jt-animer-top-main-panel__title {
        flex: 1 1 auto;
        min-height: 4rem;
    }

    .jt-animer-top-main-panel__labels {
        flex: 0 0 auto;
    }

    #jt-animer .jt-animer-top-main-panel__labels .jt-animer-top-help-trigger,
    #jt-animer .jt-animer-top-main-panel__labels .jt-animer-top-help-static {
        justify-content: flex-start;
    }
}

.jt-animer-timer-stage {
    min-height: 0;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.35rem, 1vh, 0.875rem);
    padding: clamp(0.25rem, 1vh, 0.5rem) 0;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.jt-animer-timer-stage--compact {
    justify-content: center;
    gap: 0.75rem;
    padding: 0.25rem 0;
}


.jt-animer-timer-stage__body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.35rem, 1vh, 0.875rem);
    overflow: hidden;
    box-sizing: border-box;
}

.jt-animer-timer-stage__body--pitch {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
}

.jt-animer-timer-stage__body--pitch .jt-animer-pitch-timer-slot {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 0;
    overflow: hidden;
    padding: clamp(0.25rem, 1vh, 0.5rem) 0;
    box-sizing: border-box;
}

.jt-animer-timer-stage__body--pitch .jt-animer-pitch-timer-slot[hidden] {
    display: none !important;
}

.jt-animer-timer-stage__label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jt-animer-timer-stage--pitch .jt-animer-timer-stage__body--pitch {
    flex: 1 1 auto;
    min-height: 0;
}

#jt-animer .jt-animer-timer-band--pitch .jt-animer-timer-stage--pitch {
    justify-content: center;
    gap: 0;
    padding: clamp(0.15rem, 0.4vh, 0.35rem) clamp(0.25rem, 0.6vw, 0.5rem);
    height: 100%;
    min-height: 0;
}

.jt-animer-timer-band--pitch .jt-animer-timer-stage__body--pitch .jt-animer-pitch-timer-slot {
    justify-content: center;
    padding: 0;
}

@container jt-animer-timer (min-height: 1px) {
    .jt-animer-timer-stage--pitch .jt-animer-ring-wrap.jt-chrono-scene {
        flex: 0 0 auto;
        width: min(
            100cqw,
            calc(95cqh - var(--jt-timer-controls-reserve, 2rem))
        );
        height: min(
            100cqw,
            calc(95cqh - var(--jt-timer-controls-reserve, 2rem))
        );
        max-width: 100%;
        max-height: calc(95cqh - var(--jt-timer-controls-reserve, 2rem));
        --jt-ring-side: min(
            100cqw,
            calc(95cqh - var(--jt-timer-controls-reserve, 2rem))
        );
    }
}

#jt-animer .jt-animer-badge--coach {
    width: fit-content;
    margin-bottom: 0.25rem;
    padding: 0.2em 0.9em;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #cdd6f5;
}

#jt-animer .jt-animer-brand-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

#jt-animer .jt-animer-phase-bolt {
    flex-shrink: 0;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1;
    background: linear-gradient(160deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: none;
}

#jt-animer .jt-animer-phase-title {
    margin: 0;
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: clamp(2rem, 4vw, 5rem);
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#jt-animer .jt-animer-phase-sub {
    margin: 0;
    margin-left: clamp(2rem, 6vw, 3.25rem);
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #22d3ee;
}

.jt-animer-kicker {
    margin: 0 0 0.5rem;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
}


.jt-animer-center-label {
    margin: 0.5rem 0 0;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
}

/* Minuterie circulaire — docs/design/chrono.html */
.jt-animer-timer-stage .jt-animer-ring-wrap.jt-chrono-scene {
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 0;
    width: min(58vw, 62vh, 100%);
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1;
    height: auto;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    --jt-ring-side: min(58vw, 62vh, 100%);
}

@container jt-animer-timer (min-height: 1px) {
    .jt-animer-timer-stage .jt-animer-ring-wrap.jt-chrono-scene {
        width: min(
            58vw,
            62vh,
            100cqw,
            100cqh
        );
        max-height: 100cqh;
        --jt-ring-side: min(58vw, 62vh, 100cqw, 100cqh);
    }
}

.jt-chrono-outer-ring {
    position: absolute;
    top: -2.3%;
    left: -2.3%;
    width: 104.6%;
    height: 104.6%;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
    z-index: 0;
}

.jt-chrono-ring-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    z-index: 1;
    pointer-events: none;
}

.jt-chrono-ring-bg,
.jt-animer-ring-track.jt-chrono-ring-bg {
    fill: none;
    stroke: #0d1f3a;
    stroke-width: 10;
}

.jt-chrono-ring-progress,
.jt-animer-ring-progress.jt-chrono-ring-progress {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s linear;
    filter: drop-shadow(0 0 8px #00e5ff) drop-shadow(0 0 16px #00b8d4);
}

.jt-chrono-clock-face {
    position: relative;
    z-index: 2;
    width: 84.6%;
    height: 84.6%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #131f35 0%, #0a1525 60%, #080f1e 100%);
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.8),
        0 0 0 1.5px rgba(255, 255, 255, 0.05),
        0 8px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: clamp(0.35rem, 1.5vh, 0.75rem);
}

.jt-chrono-ticks-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.jt-chrono-icon-wrap {
    width: clamp(2rem, 8cqw, 2.65rem);
    height: clamp(2rem, 8cqw, 2.65rem);
    border-radius: 50%;
    border: 1.5px solid #00d4c8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(0.25rem, 1vh, 0.65rem);
    color: #00d4c8;
    flex-shrink: 0;
}

.jt-chrono-icon-wrap svg {
    width: 46%;
    height: 46%;
    fill: none;
    stroke: #00d4c8;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jt-chrono-label {
    font-family: 'Rajdhani', 'Barlow', sans-serif;
    font-weight: 600;
    font-size: clamp(0.65rem, 2.8cqw, 0.95rem);
    letter-spacing: 0.28em;
    color: #00d4c8;
    text-transform: uppercase;
    margin-bottom: clamp(0.15rem, 0.6vh, 0.4rem);
    line-height: 1.2;
}

#jt-animer .jt-chrono-scene .jt-animer-clock {
    position: static;
    display: block;
    margin: 0;
    padding: 0;
    pointer-events: none;
    width: 100%;
    text-align: center;
}

.jt-chrono-timer-display {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: clamp(1.75rem, 15cqw, 5rem);
    color: #ffffff;
    letter-spacing: -0.04em;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    line-height: 1;
    margin-bottom: clamp(0.35rem, 1.2vh, 1.1rem);
    font-variant-numeric: tabular-nums;
}

.jt-chrono-colon {
    display: flex;
    flex-direction: column;
    gap: clamp(0.35rem, 1.2cqw, 0.65rem);
    align-items: center;
    margin: 0 clamp(0.1rem, 0.8cqw, 0.25rem);
    padding-bottom: 0.15em;
}

.jt-chrono-colon span {
    width: clamp(0.35rem, 1.5cqw, 0.5rem);
    height: clamp(0.35rem, 1.5cqw, 0.5rem);
    border-radius: 50%;
    background: #00d4c8;
    box-shadow: 0 0 6px #00d4c8;
}

.jt-chrono-duration-badge {
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: clamp(0.25rem, 0.8vh, 0.4rem) clamp(0.65rem, 3cqw, 1.1rem);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Rajdhani', 'Barlow', sans-serif;
    font-size: clamp(0.55rem, 2.2cqw, 0.82rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: clamp(0.35rem, 1.2vh, 1rem);
    flex-shrink: 0;
}

.jt-chrono-duration-badge svg {
    width: 0.95em;
    height: 0.95em;
    stroke: rgba(255, 255, 255, 0.5);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.jt-chrono-controls-wrap {
    pointer-events: auto;
    flex-shrink: 0;
}

.jt-chrono-glow-bottom {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 36%;
    height: 4px;
    background: radial-gradient(ellipse, rgba(0, 200, 255, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}


.jt-animer-mission-title {
    margin: 0;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2.5rem);
    line-height: 1.2;
}

#jt-animer .jt-animer-top-main-panel__title .jt-animer-mission-title {
    margin: 0;
    color: var(--primary-color);
}

#jt-animer .jt-animer-top-main-panel__title .jt-animer-muted {
    margin: 0;
}

#jt-animer .jt-animer-top-popover {
    position: fixed;
    left: 50%;
    top: clamp(5.5rem, 16vh, 11rem);
    z-index: 100;
    box-sizing: border-box;
    width: min(52rem, 92vw);
    max-height: min(52vh, 32rem);
    padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2.25rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    border: 1px solid rgba(80, 100, 160, 0.45);
    background: rgba(8, 12, 28, 0.96);
    color: #cdd6f5;
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.12),
        0 20px 50px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(0.35rem);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

#jt-animer .jt-animer-top-popover-kicker {
    margin: 0 0 0.75rem;
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #22d3ee;
}

#jt-animer .jt-animer-top-popover-body {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.55;
    color: #a0b8cc;
    text-align: left;
}

@media (min-width: 1200px) {
    #jt-animer .jt-animer-top-popover {
        width: min(56rem, 70vw);
        max-height: min(48vh, 36rem);
        top: clamp(6rem, 14vh, 10rem);
    }
}

#jt-animer .jt-animer-mission-trigger:hover .jt-animer-top-popover,
#jt-animer .jt-animer-mission-trigger:focus-within .jt-animer-top-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

#jt-animer .jt-animer-livrables-trigger:hover .jt-animer-top-popover,
#jt-animer .jt-animer-livrables-trigger:focus-within .jt-animer-top-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

#jt-animer .jt-animer-top-label-slot--has-popover .jt-animer-livrables-trigger {
    position: relative;
    max-width: 100%;
    anchor-name: --jt-animer-livrables;
}

/* Popover Livrables : ancré au bouton d’aide */
#jt-animer .jt-animer-livrables-trigger .jt-animer-top-popover {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: min(36rem, calc(80vw - 1.5rem));
    max-width: min(36rem, calc(80vw - 1.5rem));
    transform: translateY(0.35rem);
}

#jt-animer .jt-animer-livrables-trigger .jt-animer-top-popover::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 0.65rem;
}

@supports (anchor-name: --jt-animer-livrables) {
    #jt-animer .jt-animer-livrables-trigger .jt-animer-top-popover {
        position: fixed;
        position-anchor: --jt-animer-livrables;
        top: anchor(bottom);
        right: anchor(right);
        margin-top: 0.35rem;
    }
}

.jt-animer-panel--stack:has(.jt-animer-livrables-trigger:hover),
.jt-animer-panel--stack:has(.jt-animer-livrables-trigger:focus-within) {
    overflow: visible;
}


.jt-animer-top-main-panel__title .jt-animer-muted {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
}


#jt-animer .jt-animer-icon path,
#jt-animer .jt-animer-icon circle {
    stroke: currentColor;
}

#jt-animer .jt-animer-icon {
    width: 1.45rem;
    height: 1.45rem;
    flex-shrink: 0;
    color: #fff;
}

.jt-animer-bottom {
    flex: 0 0 auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 max(3.25rem, 5.5vh);
    margin-top: 0;
    width: 100%;
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    overflow: hidden;
    min-height: 0;
}

#jt-animer .jt-animer-footer-row {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2vh, 1.35rem);
    background: rgba(10, 15, 35, 0.7);
    border: 1px solid rgba(80, 100, 160, 0.25);
    border-radius: 1rem;
    padding: clamp(1rem, 2vh, 1.4rem) clamp(1rem, 2vw, 1.85rem);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

#jt-animer .jt-animer-footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    min-width: 0;
}

#jt-animer .jt-animer-footer-top > .jt-animer-footer-section {
    min-width: 0;
    padding: clamp(0.35rem, 1vh, 0.65rem) clamp(0.75rem, 2vw, 1.25rem);
}

#jt-animer .jt-animer-footer-top > .jt-animer-footer-section:first-child {
    padding-left: 0;
    border-right: 1px solid rgba(80, 100, 160, 0.4);
}

#jt-animer .jt-animer-footer-top > .jt-animer-footer-section:last-child {
    padding-right: 0;
}

#jt-animer .jt-animer-footer-section {
    display: flex;
    gap: clamp(0.5rem, 1.5vw, 0.9rem);
    align-items: flex-start;
    min-width: 0;
}

#jt-animer .jt-animer-footer-section-body {
    flex: 1 1 auto;
    min-width: 0;
}

#jt-animer .jt-animer-footer-icon {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    line-height: 1;
    opacity: 0.75;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

#jt-animer .jt-animer-footer-label {
    margin: 0 0 0.5rem;
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    font-size: clamp(0.95rem, 1.4vw, 1.4rem);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #22d3ee;
}

#jt-animer .jt-animer-rules-list {
    margin: 0;
    padding-left: 1em;
    font-size: clamp(1rem, 1.75vw, 1.55rem);
    line-height: 1.4;
    color: #a0b8cc;
}

#jt-animer .jt-animer-rules-list li {
    margin-bottom: 0.35rem;
}

#jt-animer .jt-animer-todo-text {
    margin: 0;
    font-size: clamp(1rem, 1.75vw, 1.55rem);
    line-height: 1.55;
    color: #a0b8cc;
}

#jt-animer .jt-animer-progress.jt-animer-footer-section {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 0;
    padding-top: clamp(1rem, 2vh, 1.35rem);
    border-top: 1px solid rgba(80, 100, 160, 0.4);
}

#jt-animer .jt-animer-progress {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 0;
}

#jt-animer .jt-animer-prog-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: clamp(0.5rem, 1.5vh, 0.9rem);
}

#jt-animer .jt-animer-prog-diamond {
    color: #22d3ee;
    font-size: clamp(0.95rem, 1.4vw, 1.4rem);
    line-height: 1;
}

#jt-animer .jt-animer-prog-head .jt-animer-footer-label {
    margin-bottom: 0;
}

#jt-animer .jt-animer-prog-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

#jt-animer .jt-animer-prog-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    position: relative;
    text-align: center;
}

#jt-animer .jt-animer-prog-connector {
    flex: 1 1 0;
    min-width: 0.5rem;
    height: 0.125rem;
    max-width: 2.5vw;
    background: #1e2e50;
    margin-bottom: clamp(1rem, 3vh, 1.4rem);
    align-self: center;
}

#jt-animer .jt-animer-prog-step-circle {
    width: clamp(1.75rem, 3vw, 2.15rem);
    height: clamp(1.75rem, 3vw, 2.15rem);
    min-width: clamp(1.75rem, 3vw, 2.15rem);
    min-height: clamp(1.75rem, 3vw, 2.15rem);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: clamp(0.85rem, 1.25vw, 1.2rem);
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
    z-index: 1;
    background: #1a2240;
    color: #5a6a8a;
    border: 2px solid #2a3560;
    box-sizing: border-box;
}

#jt-animer .jt-animer-prog-step-name {
    margin: 0.35rem 0 0;
    font-size: clamp(0.85rem, 1.25vw, 1.2rem);
    color: #6a80a0;
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    overflow: visible;
    white-space: normal;
}

#jt-animer .jt-animer-stepper-item.jt-wizard-step--active .jt-animer-prog-step-circle {
    background: #22d3ee;
    color: #04111f;
    border-color: #22d3ee;
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.53);
}

#jt-animer .jt-animer-stepper-item.jt-wizard-step--active .jt-animer-prog-step-name {
    color: #fff;
    font-weight: 700;
}

/* Périodes passées : même rendu « éteint » que les étapes futures (seule --active est allumée) */
#jt-animer .jt-animer-stepper-item.jt-wizard-step--done .jt-animer-prog-step-circle {
    background: #1a2240;
    color: #5a6a8a;
    border-color: #2a3560;
    box-shadow: none;
}

#jt-animer .jt-animer-stepper-item.jt-wizard-step--done .jt-animer-prog-step-name {
    color: #6a80a0;
    font-weight: inherit;
}

@media (max-width: 960px) {
    #jt-animer .jt-animer-footer-row {
        padding: clamp(1rem, 2vh, 1.15rem) clamp(1rem, 3vw, 1.25rem);
    }

    #jt-animer .jt-animer-footer-top {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #jt-animer .jt-animer-footer-top > .jt-animer-footer-section {
        padding: clamp(0.5rem, 1.5vh, 0.85rem) 0;
    }

    #jt-animer .jt-animer-footer-top > .jt-animer-footer-section:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(80, 100, 160, 0.4);
        padding-bottom: clamp(0.85rem, 2vh, 1.1rem);
    }

    #jt-animer .jt-animer-footer-top > .jt-animer-footer-section:last-child {
        padding-top: clamp(0.85rem, 2vh, 1.1rem);
    }
}

.jt-animer-bc-wrap,
.jt-animer-results-mid {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    max-height: none;
    gap: 0.65rem;
    overflow: hidden;
    padding: 0.25rem 0;
}

#jt-animer .jt-animer-side-card--pitch-teams {
    align-items: stretch;
    justify-content: center;
    padding-inline: clamp(0.5rem, 1vw, 0.75rem);
}

#jt-animer .jt-animer-pitch-teams-body {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.35rem, 0.8vh, 0.5rem);
    overflow-y: auto;
}

#jt-animer .jt-animer-side-card--pitch-teams .jt-animer-pitch-plateau {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
}

#jt-animer .jt-animer-side-card--pitch-teams .jt-animer-pitch-order {
    flex: 0 0 auto;
    margin-top: 0;
    width: 100%;
    max-width: 13.5rem;
    padding: 0;
    grid-template-columns: 1fr;
    gap: clamp(0.45rem, 1vh, 0.65rem);
}

#jt-animer .jt-animer-side-card--pitch-teams .jt-animer-pitch-hint {
    flex: 0 0 auto;
    margin-top: clamp(0.35rem, 0.7vh, 0.5rem);
    text-align: center;
    max-width: 13.5rem;
}

#jt-animer .jt-animer-side-card--pitch-teams .jt-animer-plateau-tabs--pitch {
    flex: 0 0 auto;
    width: 100%;
    max-width: 13.5rem;
    justify-content: center;
}

.jt-animer-pitch-order {
    list-style: none;
    margin: 0;
    padding: 0 clamp(0.35rem, 1vw, 0.75rem);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2vw;
    overflow: visible;
    box-sizing: border-box;
}

@media (max-width: 720px) {
    .jt-animer-pitch-order {
        grid-template-columns: 1fr;
    }
}

#jt-animer .jt-animer-pitch-team {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.15rem 0.1rem;
    overflow: visible;
    min-width: 0;
}

#jt-animer .jt-animer-pitch-team-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 999px;
    overflow: visible;
    min-width: 0;
}

#jt-animer .jt-animer-pitch-team-btn:hover .jt-animer-pitch-chip {
    opacity: 0.85;
}

#jt-animer .jt-animer-pitch-team-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

#jt-animer .jt-animer-pitch-chip {
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: min(2.25rem, 100%);
    white-space: normal;
    word-break: break-word;
    padding: clamp(0.4rem, 1vh, 0.55rem) clamp(0.45rem, 1.1vw, 0.65rem);
    font-size: clamp(0.72rem, 1.05vw, 0.9rem);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-transform: none;
    letter-spacing: 0.02em;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#jt-animer .jt-animer-side-card--pitch-teams .jt-animer-pitch-chip {
    opacity: 1;
    padding: clamp(0.55rem, 1.4vh, 0.75rem) clamp(0.65rem, 1.3vw, 0.85rem);
    font-size: clamp(0.78rem, 1.05vw, 0.92rem);
    border-width: 1.5px;
    border-style: solid;
}

#jt-animer .jt-animer-side-card--pitch-teams .jt-animer-pitch-chip.jt-chip--legend-rouge {
    background: color-mix(in srgb, #f43f5e 42%, rgba(10, 15, 35, 0.55));
    border-color: #f43f5e;
    color: #fff;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.35);
}

#jt-animer .jt-animer-side-card--pitch-teams .jt-animer-pitch-chip.jt-chip--legend-vert {
    background: color-mix(in srgb, #4ade80 38%, rgba(10, 15, 35, 0.5));
    border-color: #4ade80;
    color: #ecfdf5;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.32);
}

#jt-animer .jt-animer-side-card--pitch-teams .jt-animer-pitch-chip.jt-chip--legend-bleu {
    background: color-mix(in srgb, #60a5fa 40%, rgba(10, 15, 35, 0.52));
    border-color: #60a5fa;
    color: #eff6ff;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.35);
}

#jt-animer .jt-animer-pitch-team--pulse .jt-animer-pitch-chip {
    animation: jt-animer-pitch-pulse 1.55s ease-in-out infinite;
}

@keyframes jt-animer-pitch-pulse {
    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.045);
        filter: brightness(1.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    #jt-animer .jt-animer-pitch-team--pulse .jt-animer-pitch-chip {
        animation: none;
        box-shadow: 0 0 16px rgba(34, 211, 238, 0.45);
    }
}

#jt-animer .jt-animer-pitch-team--active .jt-animer-pitch-chip {
    opacity: 1;
    filter: brightness(1.08);
}

#jt-animer .jt-animer-side-card--pitch-teams .jt-animer-pitch-team--active .jt-animer-pitch-chip.jt-chip--legend-rouge {
    background: color-mix(in srgb, #f43f5e 55%, rgba(10, 15, 35, 0.45));
    border-color: #fb7185;
    box-shadow: 0 0 14px rgba(244, 63, 94, 0.5);
}

#jt-animer .jt-animer-side-card--pitch-teams .jt-animer-pitch-team--active .jt-animer-pitch-chip.jt-chip--legend-vert {
    background: color-mix(in srgb, #4ade80 48%, rgba(10, 15, 35, 0.42));
    border-color: #86efac;
    box-shadow: 0 0 14px rgba(74, 222, 128, 0.45);
}

#jt-animer .jt-animer-side-card--pitch-teams .jt-animer-pitch-team--active .jt-animer-pitch-chip.jt-chip--legend-bleu {
    background: color-mix(in srgb, #60a5fa 52%, rgba(10, 15, 35, 0.44));
    border-color: #93c5fd;
    box-shadow: 0 0 14px rgba(96, 165, 250, 0.48);
}

#jt-animer .jt-animer-pitch-team--active .jt-animer-pitch-chip.jt-chip--legend-rouge {
    background: rgba(229, 115, 115, 0.32);
    border-color: rgba(244, 63, 94, 0.75);
    box-shadow: 0 0 12px rgba(229, 115, 115, 0.4);
}

#jt-animer .jt-animer-pitch-team--active .jt-animer-pitch-chip.jt-chip--legend-vert {
    background: rgba(129, 199, 132, 0.32);
    border-color: rgba(74, 222, 128, 0.75);
    box-shadow: 0 0 12px rgba(129, 199, 132, 0.4);
}

#jt-animer .jt-animer-pitch-team--active .jt-animer-pitch-chip.jt-chip--legend-bleu {
    background: rgba(100, 181, 246, 0.32);
    border-color: rgba(96, 165, 250, 0.75);
    box-shadow: 0 0 12px rgba(100, 181, 246, 0.4);
}

#jt-animer .jt-animer-pitch-hint {
    margin: clamp(0.35rem, 0.8vh, 0.5rem) 0 0;
    padding: 0 0.25rem;
    font-size: clamp(0.72rem, 1vw, 0.85rem);
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.4;
}

.jt-animer-pitch-timer-slot[hidden] {
    display: none !important;
}

.jt-animer-bc-wrap {
    padding: 0.5rem 0;
}


.jt-animer-alert {
    margin-bottom: 0.75rem;
}

@media (max-width: 720px) {
    .jt-animer-minimal-main,
    #jt-animer.jt-animer-screen,
    .jt-animer-bottom-bar {
        width: 100%;
        max-width: 80vw;
    }
}


.jt-animer-muted {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
}


.jt-animer-clock {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.03em;
}

.jt-chrono-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.65rem, 3cqw, 1.25rem);
    margin: 0;
    pointer-events: auto;
}

#jt-animer .jt-chrono-btn-play.jt-animer-timer-ctl {
    width: clamp(2.5rem, 11cqw, 3.75rem);
    height: clamp(2.5rem, 11cqw, 3.75rem);
    border-radius: 50%;
    background: linear-gradient(135deg, #00e5c8, #00b8a0);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow:
        0 0 0 4px rgba(0, 200, 180, 0.2),
        0 0 20px rgba(0, 220, 200, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

#jt-animer .jt-chrono-btn-play.jt-animer-timer-ctl:hover {
    transform: scale(1.06);
    box-shadow:
        0 0 0 6px rgba(0, 200, 180, 0.25),
        0 0 30px rgba(0, 220, 200, 0.7),
        0 4px 14px rgba(0, 0, 0, 0.4);
}

#jt-animer .jt-chrono-btn-play.jt-animer-timer-ctl:active {
    transform: scale(0.97);
}

#jt-animer .jt-chrono-btn-play svg {
    width: 38%;
    height: 38%;
    fill: #fff;
}

#jt-animer .jt-chrono-btn-play .jt-ac-play-icon--play svg {
    margin-left: 8%;
}

#jt-animer .jt-chrono-btn-stop.jt-animer-timer-ctl {
    width: clamp(2.35rem, 10.5cqw, 3.5rem);
    height: clamp(2.35rem, 10.5cqw, 3.5rem);
    border-radius: 50%;
    background: linear-gradient(135deg, #2a3a52, #1d2c42);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease;
}

#jt-animer .jt-chrono-btn-stop.jt-animer-timer-ctl:hover {
    transform: scale(1.06);
}

#jt-animer .jt-chrono-btn-stop.jt-animer-timer-ctl:active {
    transform: scale(0.97);
}

#jt-animer .jt-chrono-btn-stop svg {
    width: 32%;
    height: 32%;
    fill: rgba(255, 255, 255, 0.7);
}

#jt-animer .jt-animer-timer-ctl .jt-ac-play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#jt-animer .jt-animer-timer-ctl .jt-ac-play-icon[hidden] {
    display: none !important;
}


#jt-animer .jt-animer-center-label {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.jt-animer-plateau-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.jt-animer-tab {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.jt-animer-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.jt-animer-tab--active {
    border-color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 14%, transparent);
    color: var(--primary-color);
}


#jt-animer .jt-animer-bc-matrice-heading {
    margin: 0 0 clamp(0.65rem, 1.5vh, 1rem);
    width: 100%;
    text-align: center;
    font-weight: 700;
}

.jt-animer-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.jt-animer-matrix th,
.jt-animer-matrix td {
    border: none;
    padding: 0.45rem 0.35rem;
    vertical-align: middle;
}

#jt-animer .jt-animer-bc-wrap .jt-animer-matrix,
#jt-animer .jt-animer-bc-wrap .jt-animer-matrix thead,
#jt-animer .jt-animer-bc-wrap .jt-animer-matrix tbody,
#jt-animer .jt-animer-bc-wrap .jt-animer-matrix tr,
#jt-animer .jt-animer-bc-wrap .jt-animer-matrix th,
#jt-animer .jt-animer-bc-wrap .jt-animer-matrix td {
    border: none;
    border-top: none;
    border-bottom: none;
    box-shadow: none;
}

.jt-animer-matrix th[scope='row'],
.jt-animer-matrix-donneuse {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    min-width: min(8rem, 22vw);
}

.jt-animer-bc-wrap .jt-animer-matrix-donneuse {
    width: 11.25rem;
    min-width: 11.25rem;
    max-width: 11.25rem;
    box-sizing: border-box;
}

.jt-animer-bc-wrap .jt-animer-bc-donneuse-wrap {
    display: block;
    width: 100%;
}

#jt-animer .jt-animer-matrix-donneuse .jt-animer-bc-donneuse-chip {
    opacity: 0.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
    border-width: 1.5px;
    border-style: solid;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#jt-animer .jt-animer-bc-wrap .jt-animer-bc-donneuse-chip.jt-chip--legend-rouge {
    background: color-mix(in srgb, #f43f5e 42%, rgba(10, 15, 35, 0.55));
    border-color: #f43f5e;
    color: #fff;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.35);
}

#jt-animer .jt-animer-bc-wrap .jt-animer-bc-donneuse-chip.jt-chip--legend-vert {
    background: color-mix(in srgb, #4ade80 38%, rgba(10, 15, 35, 0.5));
    border-color: #4ade80;
    color: #ecfdf5;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.32);
}

#jt-animer .jt-animer-bc-wrap .jt-animer-bc-donneuse-chip.jt-chip--legend-bleu {
    background: color-mix(in srgb, #60a5fa 40%, rgba(10, 15, 35, 0.52));
    border-color: #60a5fa;
    color: #eff6ff;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.35);
}

#jt-animer .jt-animer-bc-donneuse-wrap.jt-animer-pitch-team--active .jt-animer-bc-donneuse-chip {
    opacity: 1;
}

#jt-animer .jt-animer-bc-wrap .jt-animer-bc-donneuse-wrap.jt-animer-pitch-team--active .jt-animer-bc-donneuse-chip.jt-chip--legend-rouge {
    background: color-mix(in srgb, #f43f5e 55%, rgba(10, 15, 35, 0.45));
    border-color: #fb7185;
    box-shadow: 0 0 14px rgba(244, 63, 94, 0.5);
}

#jt-animer .jt-animer-bc-wrap .jt-animer-bc-donneuse-wrap.jt-animer-pitch-team--active .jt-animer-bc-donneuse-chip.jt-chip--legend-vert {
    background: color-mix(in srgb, #4ade80 48%, rgba(10, 15, 35, 0.42));
    border-color: #86efac;
    box-shadow: 0 0 14px rgba(74, 222, 128, 0.45);
}

#jt-animer .jt-animer-bc-wrap .jt-animer-bc-donneuse-wrap.jt-animer-pitch-team--active .jt-animer-bc-donneuse-chip.jt-chip--legend-bleu {
    background: color-mix(in srgb, #60a5fa 52%, rgba(10, 15, 35, 0.44));
    border-color: #93c5fd;
    box-shadow: 0 0 14px rgba(96, 165, 250, 0.48);
}

.jt-animer-bc-row-done {
    width: 2.25rem;
    text-align: center;
    vertical-align: middle;
}

.jt-animer-bc-row-check {
    display: inline-block;
    min-width: 1.25em;
    font-weight: 800;
    font-size: 1.05em;
    color: transparent;
}

.jt-animer-bc-row-check--ok {
    color: var(--jt-success, #22c55e);
}

.jt-animer-bc-row-status-col {
    width: 2.25rem;
}

.jt-animer-panel--stack:has(.jt-animer-timer-band--solutions) {
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.jt-animer-panel--stack:has(.jt-animer-timer-band--solutions) > .jt-animer-timer-band--solutions {
    grid-row: 2;
    min-height: 0;
    height: 100%;
}

#jt-animer .jt-animer-side-card--solutions-qr {
    align-items: stretch;
    justify-content: center;
}

#jt-animer .jt-animer-solutions-qr-body {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1vh, 0.75rem);
    text-align: center;
}

#jt-animer .jt-animer-solutions-qr-mount {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 168px;
    padding: 0.35rem;
    background: #fff;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

#jt-animer .jt-animer-solutions-qr-mount img,
#jt-animer .jt-animer-solutions-qr-mount canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

#jt-animer .jt-animer-solutions-qr-caption {
    margin: 0;
    font-size: clamp(0.72rem, 1vw, 0.85rem);
    color: var(--text-secondary);
    line-height: 1.35;
    letter-spacing: 0.02em;
}

#jt-animer .jt-animer-solutions-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: auto;
    padding: clamp(0.35rem, 0.8vh, 0.65rem) clamp(0.35rem, 0.8vw, 0.55rem);
    box-sizing: border-box;
}

#jt-animer .jt-animer-solutions-inner {
    flex: 0 0 auto;
    width: min(100%, 28rem);
    margin-inline: auto;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#jt-animer .jt-animer-solutions-flash {
    flex: 0 0 auto;
    margin: 0 0 0.65rem;
}

#jt-animer .jt-animer-sol-status-list {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

#jt-animer .jt-animer-sol-status-item {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: clamp(0.78rem, 1vw, 0.9rem);
    line-height: 1.35;
}

#jt-animer .jt-animer-sol-status-mark {
    flex-shrink: 0;
    font-weight: 800;
    width: 1.1rem;
    text-align: center;
}

#jt-animer .jt-animer-sol-status-mark--ok {
    color: var(--jt-success, #22c55e);
}

#jt-animer .jt-animer-sol-status-mark--miss {
    color: #f87171;
}

#jt-animer .jt-animer-sol-status-name {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}

#jt-animer .jt-animer-solutions-list {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

#jt-animer .jt-animer-sol-row {
    margin: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--jt-border-subtle, rgba(0, 0, 0, 0.08));
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

#jt-animer .jt-animer-sol-form {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.65rem;
    margin: 0;
    width: max-content;
    max-width: 100%;
    box-sizing: border-box;
}

#jt-animer .jt-animer-sol-chip {
    flex: 0 0 11.25rem;
    width: 11.25rem;
    min-width: 11.25rem;
    max-width: 11.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
    padding: clamp(0.55rem, 1.5vh, 0.8rem) clamp(0.7rem, 1.6vw, 1rem);
    font-size: clamp(0.82rem, 1.2vw, 1rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: none;
    opacity: 1;
    border-width: 1.5px;
    border-style: solid;
}

#jt-animer .jt-animer-sol-chip.jt-chip--legend-rouge {
    background: color-mix(in srgb, #f43f5e 42%, rgba(10, 15, 35, 0.55));
    border-color: #f43f5e;
    color: #fff;
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.4);
}

#jt-animer .jt-animer-sol-chip.jt-chip--legend-vert {
    background: color-mix(in srgb, #4ade80 38%, rgba(10, 15, 35, 0.5));
    border-color: #4ade80;
    color: #ecfdf5;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.35);
}

#jt-animer .jt-animer-sol-chip.jt-chip--legend-bleu {
    background: color-mix(in srgb, #60a5fa 40%, rgba(10, 15, 35, 0.52));
    border-color: #60a5fa;
    color: #eff6ff;
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.38);
}

#jt-animer .jt-animer-sol-fname {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    font-size: 0.9rem;
    color: var(--jt-text-muted, #94a3b8);
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
    line-height: 1.35;
}

#jt-animer .jt-animer-sol-fname:empty {
    display: none;
}

#jt-animer .jt-animer-sol-form .jt-animer-sol-action {
    flex-shrink: 0;
}

#jt-animer .jt-animer-sol-done {
    color: var(--jt-success, #22c55e);
    font-weight: 700;
    flex-shrink: 0;
}

#jt-animer .jt-animer-solutions-warning {
    margin-top: 0.75rem;
    margin-bottom: 0;
    width: 100%;
}

/* JT-44 — Bons coups QR + statut votes */
#jt-animer .jt-animer-side-card--bc-qr {
    align-items: stretch;
    justify-content: center;
}

#jt-animer .jt-animer-bc-qr-body {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1vh, 0.75rem);
    text-align: center;
}

#jt-animer .jt-animer-bc-qr-mount {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 168px;
    padding: 0.35rem;
    background: #fff;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

#jt-animer .jt-animer-bc-qr-caption {
    margin: 0;
    font-size: clamp(0.72rem, 1vw, 0.85rem);
    color: var(--text-secondary);
}

#jt-animer .jt-animer-bc-center {
    min-height: 0;
    overflow: auto;
}

#jt-animer .jt-animer-side-card--bc-status {
    display: none !important;
}

.jt-animer-panel--stack:has(> .jt-animer-timer-band--bc) .jt-animer-timer-band__center,
.jt-animer-timer-band--bc .jt-animer-timer-band__center {
    grid-column: 2 / 4;
}

.jt-animer-timer-band--bc {
    grid-template-columns: minmax(0, 25%) minmax(0, 1fr);
}

#jt-animer .jt-animer-bc-status-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: clamp(0.72rem, 1vw, 0.82rem);
}

#jt-animer .jt-bc-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.2rem 0;
}

#jt-animer .jt-bc-status-item .jt-chip {
    flex: 1 1 auto;
    min-width: 0;
}

#jt-animer .jt-bc-status-axes {
    display: flex;
    flex-shrink: 0;
    gap: 0.5rem;
    padding-left: 0.35rem;
    font-size: 0.9em;
    letter-spacing: 0.02em;
    justify-content: flex-end;
}

#jt-animer .jt-bc-status-axe {
    display: inline-block;
    min-width: 1.15em;
    text-align: center;
}

#jt-animer .jt-bc-status-item--done .jt-bc-status-axes {
    color: var(--jt-success, #22c55e);
}

#jt-animer .jt-bc-status-item--pending .jt-bc-status-axes {
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .jt-animer-timer-band--bc {
        grid-template-columns: minmax(0, 1fr);
    }

    .jt-animer-panel--stack:has(> .jt-animer-timer-band--bc) .jt-animer-timer-band__center,
    .jt-animer-timer-band--bc .jt-animer-timer-band__center {
        grid-column: 1;
    }
}
