.program-container {
    max-width: 1320px;
}

.program-directory {
    --program-blue: #1f2f56;
    --program-red: #dc0d15;
    --program-sky: #9ed6e5;
    --program-ink: #17223e;
    color: var(--program-ink);
}

.program-intro {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 330px;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4.5rem);
    border-radius: 30px;
    background:
        linear-gradient(90deg, rgba(20, 35, 72, .97) 0%, rgba(31, 47, 86, .92) 48%, rgba(31, 47, 86, .43) 100%),
        url('/img/paquier-annecy.jpg') center 58% / cover;
    color: #fff;
    isolation: isolate;
}

.program-intro::after {
    position: absolute;
    right: -70px;
    bottom: -120px;
    width: 340px;
    height: 340px;
    border: 70px solid rgba(158, 214, 229, .22);
    border-radius: 50%;
    content: '';
    z-index: -1;
}

.program-intro__content {
    align-self: center;
    max-width: 720px;
}

.program-kicker {
    margin: 0 0 1rem;
    color: var(--program-sky);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.program-lead {
    max-width: 650px;
    margin: 0;
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    font-weight: 650;
    line-height: 1.45;
}

.program-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, .82);
    font-size: .85rem;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.program-stats span {
    display: flex;
    align-items: baseline;
    gap: .5rem;
}

.program-stats strong {
    color: #fff;
    font-family: "Abril Fatface", serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
}

.program-intro__mark {
    display: flex;
    align-self: end;
    align-items: flex-end;
    padding-left: 2rem;
    opacity: .92;
    line-height: .75;
}

.program-hours {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    width: calc(100% - 5rem);
    margin: -34px auto 1rem;
    padding: .75rem;
    border: 1px solid rgba(31, 47, 86, .08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(31, 47, 86, .16);
}

.program-hours article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .85rem;
    align-items: center;
    min-height: 72px;
    padding: .8rem 1rem;
    border-radius: 15px;
    background: #f7fafc;
}

.program-hours strong,
.program-hours small {
    display: block;
}

.program-hours strong {
    color: var(--program-blue);
    font-size: .86rem;
    font-weight: 900;
    line-height: 1.2;
}

.program-hours small {
    margin-top: .28rem;
    color: #65708b;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.35;
}

.program-hours__letter {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 950;
}

.program-hours__letter.is-red {
    background: var(--program-red);
}

.program-hours__letter.is-blue {
    background: #14569d;
}

.program-hours__letter.is-green {
    background: #38a431;
}

.program-track-switcher {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    width: calc(100% - 5rem);
    margin: 0 auto 3rem;
    padding: .75rem;
    border: 1px solid rgba(31, 47, 86, .08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 48px rgba(31, 47, 86, .16);
}

.program-track-button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    min-height: 88px;
    padding: 1rem 1.2rem;
    border-radius: 15px;
    color: var(--program-blue);
    text-align: left;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.program-track-button:hover {
    background: #eef8fb;
    transform: translateY(-2px);
}

.program-track-button:focus-visible {
    box-shadow: 0 0 0 4px rgba(158, 214, 229, .7);
}

.program-track-button.is-active {
    background: var(--program-blue);
    color: #fff;
}

.program-track-button__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: var(--program-sky);
    color: var(--program-blue);
}

.program-track-button__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.program-track-button strong,
.program-track-button small {
    display: block;
}

.program-track-button strong {
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    font-weight: 850;
    line-height: 1.2;
}

.program-track-button small {
    margin-top: .3rem;
    color: #6c7896;
    font-size: .78rem;
    font-weight: 650;
}

.program-track-button.is-active small {
    color: rgba(255, 255, 255, .72);
}

.program-track-button b {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: #eef3f6;
    color: var(--program-blue);
    font-size: .85rem;
}

.program-track-button.is-active b {
    background: var(--program-red);
    color: #fff;
}

.program-track-panel[hidden] {
    display: none;
}

.program-day-nav {
    position: sticky;
    top: 92px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: .5rem;
    overflow-x: auto;
    margin: 0 0 3.5rem;
    padding: .75rem;
    border: 1px solid rgba(31, 47, 86, .08);
    border-radius: 18px;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 10px 30px rgba(31, 47, 86, .08);
    backdrop-filter: blur(14px);
    scrollbar-width: none;
}

.program-day-nav::-webkit-scrollbar {
    display: none;
}

.program-day-nav a {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: auto auto auto;
    gap: .35rem;
    align-items: baseline;
    min-width: 150px;
    padding: .7rem 1rem;
    border-radius: 12px;
    color: var(--program-blue);
    text-align: center;
    white-space: nowrap;
}

.program-day-nav a:hover,
.program-day-nav a.is-current {
    background: #eef8fb;
    color: var(--program-red);
}

.program-day-nav span,
.program-day-nav small {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.program-day-nav strong {
    font-family: "Abril Fatface", serif;
    font-size: 1.5rem;
    font-weight: 400;
}

.program-day {
    scroll-margin-top: 190px;
    margin-bottom: clamp(4rem, 8vw, 7rem);
}

.program-day:last-child {
    margin-bottom: 1rem;
}

.program-day__heading {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 2.25rem;
    align-items: center;
    margin-bottom: 2.25rem;
}

.program-date-card {
    display: grid;
    min-height: 142px;
    place-content: center;
    border-radius: 24px;
    background: var(--program-blue);
    color: #fff;
    text-align: center;
    box-shadow: 12px 12px 0 var(--program-sky);
}

.program-date-card span,
.program-date-card small {
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.program-date-card strong {
    margin: .2rem 0;
    font-family: "Abril Fatface", serif;
    font-size: 3.7rem;
    font-weight: 400;
    line-height: .9;
}

.program-day__eyebrow {
    margin: 0 0 .25rem;
    color: var(--program-red);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.pageSimple .txt .program-day__heading h2 {
    margin: 0;
    color: var(--program-blue);
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 900;
}

.program-day__notice {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    margin: .8rem 0 0;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: #fff4e5;
    color: #80530b;
    font-size: .82rem;
    font-weight: 750;
}

.program-day__notice svg,
.program-event__time svg,
.program-event__meta svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.program-timeline {
    position: relative;
}

.program-timeline::before {
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 178px;
    width: 2px;
    background: linear-gradient(var(--program-sky), rgba(158, 214, 229, .12));
    content: '';
}

.program-event {
    position: relative;
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 2.8rem;
    align-items: start;
    margin-bottom: 1rem;
}

.program-event::before {
    position: absolute;
    top: 28px;
    left: 172px;
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--program-red);
    box-shadow: 0 0 0 3px rgba(220, 13, 21, .15);
    content: '';
    z-index: 1;
}

.program-event__time {
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: flex-end;
    min-height: 68px;
    color: var(--program-blue);
    font-size: .92rem;
    font-weight: 900;
    text-align: right;
}

.program-event__time.is-tbc {
    color: #7a6270;
    font-size: .8rem;
}

.program-event__body {
    padding: 1.35rem 1.5rem 1.3rem;
    border: 1px solid rgba(31, 47, 86, .09);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 47, 86, .07);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.program-event:hover .program-event__body {
    border-color: rgba(158, 214, 229, .9);
    box-shadow: 0 16px 34px rgba(31, 47, 86, .12);
    transform: translateY(-3px);
}

.program-event.is-highlighted .program-event__body {
    border-color: rgba(220, 13, 21, .22);
    background: linear-gradient(135deg, #fff 60%, #fff5f5);
}

.program-event__topline {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem .8rem;
    align-items: center;
    margin-bottom: .65rem;
}

.program-category {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .32rem .65rem;
    border-radius: 999px;
    background: #eef3f6;
    background: color-mix(in srgb, var(--category-color) 12%, white);
    color: var(--category-color);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.program-category::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--category-color);
    content: '';
}

.program-organizer {
    color: var(--program-red);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pageSimple .txt .program-event h3 {
    margin: 0;
    color: var(--program-blue);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    font-weight: 800;
    line-height: 1.4;
}

.program-event__description {
    margin-top: .75rem;
    color: #56617b;
    font-size: .92rem;
}

.program-event__description > :last-child {
    margin-bottom: 0;
}

.program-event__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1.25rem;
    margin-top: .9rem;
    color: #65708b;
    font-size: .78rem;
    font-weight: 700;
}

.program-event__meta > span {
    display: inline-flex;
    gap: .4rem;
    align-items: center;
}

.program-event__meta svg {
    color: var(--program-red);
}

.program-empty {
    padding: 4rem 1rem;
    border-radius: 20px;
    background: #f2f8fa;
    color: var(--program-blue);
    font-weight: 800;
    text-align: center;
}

@media (max-width: 991.98px) {
    .program-intro {
        display: block;
    }
    .program-intro__mark{
        padding-left: 0;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    .program-track-switcher {
        width: calc(100% - 2rem);
    }

    .program-hours {
        width: calc(100% - 2rem);
    }

    .program-day-nav {
        top: 82px;
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .program-intro {
        min-height: 300px;
        border-radius: 22px;
        background:
            linear-gradient(90deg, rgba(20, 35, 72, .97), rgba(31, 47, 86, .76)),
            url('/img/paquier-annecy.jpg') center / cover;
    }

    .program-track-switcher {
        grid-template-columns: 1fr;
        margin-bottom: 2rem;
    }

    .program-hours {
        grid-template-columns: 1fr;
    }

    .program-track-button {
        min-height: 76px;
    }

    .program-day-nav {
        margin-bottom: 2.5rem;
    }

    .program-day {
        scroll-margin-top: 175px;
        margin-bottom: 4rem;
    }

    .program-day__heading {
        grid-template-columns: 95px minmax(0, 1fr);
        gap: 1.4rem;
    }

    .program-date-card {
        min-height: 105px;
        border-radius: 18px;
        box-shadow: 7px 7px 0 var(--program-sky);
    }

    .program-date-card strong {
        font-size: 2.7rem;
    }

    .program-timeline::before {
        left: 7px;
    }

    .program-event {
        grid-template-columns: 1fr;
        gap: .45rem;
        padding-left: 27px;
        margin-bottom: 1.5rem;
    }

    .program-event::before {
        top: 13px;
        left: 1px;
    }

    .program-event__time {
        justify-content: flex-start;
        min-height: auto;
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .program-intro {
        padding: 2rem 1.35rem 3.4rem;
    }

    .program-stats {
        gap: 1rem;
    }

    .program-stats span {
        align-items: flex-start;
        flex-direction: column;
        gap: .2rem;
    }

    .program-track-switcher {
        width: calc(100% - 1rem);
        padding: .5rem;
        border-radius: 18px;
    }

    .program-hours {
        width: calc(100% - 1rem);
        margin-top: -30px;
        padding: .5rem;
        border-radius: 18px;
    }

    .program-hours article {
        min-height: 64px;
        padding: .65rem .75rem;
    }

    .program-track-button {
        grid-template-columns: auto minmax(0, 1fr);
        gap: .75rem;
        padding: .8rem;
    }

    .program-track-button b {
        display: none;
    }

    .program-track-button__icon {
        width: 42px;
        height: 42px;
    }

    .program-day-nav {
        margin-right: -.75rem;
        margin-left: -.75rem;
        padding: .55rem .75rem;
        border-radius: 14px;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: .75rem;
        scroll-snap-type: inline proximity;
        -webkit-overflow-scrolling: touch;
    }

    .program-day-nav a {
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        flex-basis: 124px;
        min-width: 124px;
        gap: .05rem .35rem;
        justify-content: center;
        padding: .55rem .65rem;
        scroll-snap-align: start;
    }

    .program-day-nav a span {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
    }

    .program-day-nav a strong {
        justify-self: end;
    }

    .program-day-nav a small {
        justify-self: start;
    }

    .program-day__heading {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 1.1rem;
    }

    .program-date-card {
        min-height: 92px;
    }

    .program-date-card span,
    .program-date-card small {
        font-size: .6rem;
    }

    .program-date-card strong {
        font-size: 2.25rem;
    }

    .program-day__notice {
        align-items: flex-start;
        border-radius: 12px;
    }

    .program-event__body {
        padding: 1.1rem;
        border-radius: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .program-track-button,
    .program-event__body {
        transition: none;
    }
}
