/* JT-167 — cadran chrono. Identité actuelle, carré de la colonne, une rangée au-dessus de 959 px. */

.jt-animer-timer-stage .jt-animer-ring-wrap.jt-chrono-scene {
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#jt-animer .jt-animer-timer-band__center:has(.jt-chrono-scene) {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.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%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.jt-chrono-ring-bg,
.jt-animer-ring-track.jt-chrono-ring-bg {
    fill: none;
    stroke: rgba(0, 229, 255, 0.22);
}

.jt-chrono-ring-progress,
.jt-animer-ring-progress.jt-chrono-ring-progress {
    fill: none;
    stroke: #ffffff;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s linear;
}

.jt-chrono-ring-heat {
    width: 520px;
    height: 520px;
    background: conic-gradient(
        from 0deg,
        var(--jt-chrono-grad-5) 0deg,
        var(--jt-chrono-grad-5) 28deg,
        var(--jt-chrono-grad-4) 80deg,
        var(--jt-chrono-grad-3) 160deg,
        var(--jt-chrono-grad-2) 230deg,
        var(--jt-chrono-grad-1) 300deg,
        var(--jt-chrono-grad-1) 360deg
    );
}

.jt-chrono-clock-face {
    position: relative;
    z-index: 2;
    width: 84.6%;
    height: 84.6%;
    min-width: 0;
    min-height: 0;
    max-width: 84.6%;
    max-height: 84.6%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, var(--jt-raw-131f35) 0%, var(--jt-raw-0a1525) 60%, var(--jt-raw-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 var(--jt-raw-00d4c8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(0.25rem, 1vh, 0.65rem);
    color: var(--jt-raw-00d4c8);
    flex-shrink: 0;
}

.jt-chrono-icon-wrap svg {
    width: 46%;
    height: 46%;
    fill: none;
    stroke: var(--jt-raw-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: var(--jt-raw-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: var(--jt-color-white);
    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: var(--jt-raw-00d4c8);
    box-shadow: 0 0 6px var(--jt-raw-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-chrono-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.65rem, 3cqw, 1.25rem);
    margin: 0;
    pointer-events: auto;
}

.jt-chrono-nudge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
    pointer-events: auto;
}

#jt-animer .jt-chrono-btn-nudge.jt-animer-timer-ctl {
    height: clamp(1.65rem, 6.5cqw, 2.05rem);
    padding: 0 0.55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--jt-raw-2a3a52), var(--jt-raw-1d2c42));
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Rajdhani', 'Barlow', sans-serif;
    font-size: clamp(0.62rem, 2.3cqw, 0.78rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

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

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

#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, var(--jt-raw-00e5c8), var(--jt-raw-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: var(--jt-color-white);
}

#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, var(--jt-raw-2a3a52), var(--jt-raw-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;
}

@media (min-width: 960px) {
    #jt-animer .jt-animer-timer-band__center:has(.jt-chrono-scene) .jt-animer-timer-stage,
    #jt-animer .jt-animer-timer-band__center:has(.jt-chrono-scene) .jt-animer-timer-stage__body,
    #jt-animer .jt-animer-timer-band__center:has(.jt-chrono-scene) .jt-animer-pitch-timer-slot {
        padding: 0;
        gap: 0;
        overflow: visible;
    }

    .jt-animer-timer-stage .jt-animer-ring-wrap.jt-chrono-scene {
        flex: 0 0 auto;
        --jt-chrono-halo-margin: 6.5cqmin;
        width: calc(min(100cqw, 100cqh) - 2 * var(--jt-chrono-halo-margin));
        height: calc(min(100cqw, 100cqh) - 2 * var(--jt-chrono-halo-margin));
        max-width: 100%;
        max-height: 100%;
        aspect-ratio: 1;
        container-type: size;
        container-name: jt-chrono-face;
    }

    .jt-chrono-clock-face {
        gap: 1.1cqw;
        padding: 2cqw;
    }

    .jt-chrono-icon-wrap {
        width: 8cqw;
        height: 8cqw;
        margin-bottom: 0;
    }

    .jt-chrono-label {
        font-size: 4cqw;
        margin-bottom: 0;
    }

    .jt-chrono-timer-display {
        font-size: 17cqw;
        margin-bottom: 0;
    }

    .jt-chrono-colon {
        gap: 1.2cqw;
        margin: 0 0.8cqw;
    }

    .jt-chrono-colon span {
        width: 1.4cqw;
        height: 1.4cqw;
    }

    .jt-chrono-duration-badge {
        font-size: 3.2cqw;
        margin-bottom: 0;
        padding: 0.7cqw 2.4cqw;
    }

    .jt-chrono-controls-wrap {
        display: flex;
        flex-flow: row wrap;
        align-items: center;
        justify-content: center;
        gap: 2cqw;
        width: 78%;
        max-width: 78%;
    }

    #jt-animer .jt-chrono-controls,
    #jt-animer .jt-chrono-nudge {
        display: contents;
    }

    #jt-animer .jt-chrono-btn-nudge[data-nudge-sec="-60"] {
        order: 1;
    }

    #jt-animer .jt-ac-play,
    #jt-animer .jt-ac-pitch-play {
        order: 2;
    }

    #jt-animer .jt-ac-stop,
    #jt-animer .jt-ac-pitch-stop {
        order: 3;
    }

    #jt-animer .jt-chrono-btn-nudge[data-nudge-sec="60"] {
        order: 4;
    }

    #jt-animer .jt-chrono-btn-play.jt-animer-timer-ctl {
        width: 14cqw;
        height: 14cqw;
    }

    #jt-animer .jt-chrono-btn-stop.jt-animer-timer-ctl {
        width: 11cqw;
        height: 11cqw;
    }

    #jt-animer .jt-chrono-btn-nudge.jt-animer-timer-ctl {
        height: 7.5cqw;
        padding: 0 2.2cqw;
        font-size: 3cqw;
    }
}

@media (max-width: 959px) {
    #jt-animer .jt-animer-timer-band__center:has(.jt-chrono-scene) {
        container-type: normal;
        min-height: 0;
        height: auto;
        overflow: visible;
    }

    #jt-animer .jt-animer-timer-band__center:has(.jt-chrono-scene) .jt-animer-timer-stage,
    #jt-animer .jt-animer-timer-stage:has(.jt-chrono-scene) {
        height: auto;
        min-height: min(28vh, 14rem);
        max-height: none;
        overflow: visible;
        flex: 0 1 auto;
        justify-content: flex-start;
        padding-bottom: 0;
    }

    #jt-animer .jt-animer-timer-stage__body:has(.jt-chrono-scene),
    #jt-animer .jt-animer-timer-stage__body--pitch:has(.jt-chrono-scene) {
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
        flex: 0 1 auto;
        width: 100%;
        position: static;
    }

    #jt-animer .jt-animer-timer-stage__body--pitch .jt-animer-pitch-timer-slot {
        position: static;
        inset: auto;
        height: auto;
        min-height: 0;
        overflow: visible;
        width: 100%;
    }

    #jt-animer .jt-chrono-outer-ring,
    #jt-animer .jt-animer-ring-svg,
    #jt-animer .jt-chrono-ring-svg,
    #jt-animer .jt-chrono-ticks-svg,
    #jt-animer .jt-chrono-glow-bottom,
    #jt-animer .jt-chrono-icon-wrap,
    #jt-animer .jt-chrono-label {
        display: none !important;
    }

    #jt-animer .jt-animer-ring-wrap.jt-chrono-scene,
    #jt-animer .jt-animer-timer-stage .jt-animer-ring-wrap.jt-chrono-scene,
    #jt-animer .jt-animer-timer-stage--pitch .jt-animer-ring-wrap.jt-chrono-scene {
        position: static;
        container-type: normal;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
        max-height: none;
        min-height: 0;
        height: auto;
        aspect-ratio: auto;
        margin: 0;
        padding: 0;
        background: none;
        border: none;
        flex: 0 1 auto;
    }

    #jt-animer .jt-chrono-clock-face {
        position: static;
        z-index: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        width: 100%;
        height: auto;
        min-height: 0;
        border-radius: 0.75rem;
        gap: 0;
        padding: clamp(0.5rem, 2.5vw, 0.85rem) clamp(0.75rem, 3vw, 1.25rem)
            clamp(0.35rem, 1.5vw, 0.5rem);
        background: rgba(10, 15, 35, 0.88);
        box-shadow: none;
    }

    #jt-animer .jt-chrono-scene .jt-animer-clock {
        pointer-events: auto;
        order: 1;
    }

    #jt-animer .jt-chrono-timer-display {
        font-size: clamp(2.75rem, 12vw, 4rem);
        margin-bottom: 0.35rem;
        color: var(--jt-color-white);
    }

    #jt-animer .jt-chrono-duration-badge {
        order: 2;
        align-self: center;
        margin-bottom: 0.5rem;
    }

    #jt-animer .jt-chrono-controls-wrap {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        position: static;
        width: 100%;
        max-width: none;
        margin-top: 0.35rem;
        margin-bottom: 0;
        order: 3;
        flex-shrink: 0;
        pointer-events: auto;
    }

    #jt-animer .jt-chrono-controls,
    #jt-animer .jt-animer-timer-controls,
    #jt-animer .jt-chrono-nudge {
        display: flex;
    }

    #jt-animer .jt-chrono-controls,
    #jt-animer .jt-animer-timer-controls {
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
        width: 100%;
        gap: 0.5rem;
    }

    #jt-animer .jt-chrono-btn-play.jt-animer-timer-ctl,
    #jt-animer .jt-chrono-btn-stop.jt-animer-timer-ctl {
        flex: 1 1 0;
        width: auto;
        min-height: 3rem;
        border-radius: var(--radius, 8px);
        height: auto;
        order: 0;
    }

    #jt-animer .jt-chrono-btn-play svg,
    #jt-animer .jt-chrono-btn-stop svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    #jt-animer .jt-chrono-nudge {
        flex: 0 0 auto;
        flex-direction: row;
        width: 100%;
        margin-top: 0.4rem;
    }

    #jt-animer .jt-chrono-btn-nudge.jt-animer-timer-ctl {
        flex: 0 0 auto;
        width: auto;
        min-height: 0;
        height: 2rem;
        padding: 0 0.55rem;
        font-size: clamp(0.62rem, 2.3cqw, 0.78rem);
        border-radius: 999px;
        order: 0;
    }
}
