:root {
    --dance-black: #050509;
    --dance-panel: #101116;
    --dance-green: var(--sas-yellowgreen, #d7ec75);
    --dance-paper: #f8f8ef;
    --dance-muted: rgba(0, 0, 0, .68);
    --dance-dark-muted: rgba(255, 255, 255, .72);
    --dance-line: rgba(0, 0, 0, .12);
    --dance-green-line: rgba(215, 236, 117, .22);
}

html {
    scroll-behavior: smooth;
}

body.page-dance {
    --sas-signal: var(--dance-green);
    margin: 0;
    min-width: 320px;
    color: #000;
    background: var(--dance-paper);
    font-family: Arial, Helvetica, sans-serif;
}

body.page-dance .sas-test-header {
    background: rgba(5, 5, 9, .90);
    border-bottom-color: rgba(255, 255, 255, .12);
}

body.page-dance .sas-test-mobile-nav {
    background: rgba(5, 5, 9, .98);
}

body.page-dance .sas-test-brand em,
body.page-dance .sas-test-footer-follow strong,
body.page-dance .sas-test-footer-contact strong,
body.page-dance .sas-test-footer-top,
body.page-dance .sas-test-menu:hover,
body.page-dance .sas-test-nav a:hover,
body.page-dance .sas-test-mobile-nav a:hover,
body.page-dance .sas-test-mobile-nav button:hover,
body.page-dance .sas-test-socials a:hover,
body.page-dance .sas-test-footer a:hover {
    color: var(--dance-green);
}

body.page-dance .sas-test-menu-combo > a:last-child:hover,
body.page-dance .sas-test-menu-combo > span a:hover,
body.page-dance .sas-test-menu-combo > button:hover,
body.page-dance .sas-test-menu-group > div a:hover,
body.page-dance .sas-test-menu-group > div button:hover,
body.page-dance .sas-test-menu-group-inline a:hover,
body.page-dance .sas-test-menu-group-inline button:hover,
body.page-dance .sas-test-footer a:hover {
    box-shadow: inset 0 -2px 0 var(--dance-green);
}

body.page-dance .sas-test-menu-hours > span a:hover,
body.page-dance .sas-test-menu-action-pair button:hover,
body.page-dance .sas-test-menu-group-inline button:hover {
    box-shadow: none;
}

body.page-dance .sas-test-brand:hover,
body.page-dance .sas-test-brand:focus-visible,
body.page-dance .sas-test-brand:active,
body.page-dance .sas-test-footer-signature-frame:hover,
body.page-dance .sas-test-footer-signature-frame:focus-within {
    box-shadow: inset 0 0 0 1px var(--dance-green);
}

body.page-dance .sas-test-footer-signature .sas-test-brand:hover,
body.page-dance .sas-test-footer-signature .sas-test-brand:focus-visible,
body.page-dance .sas-test-footer-signature .sas-test-brand:active,
body.page-dance .sas-test-footer-signature-frame a:hover {
    box-shadow: none;
    transform: none;
}

body.page-dance .sas-test-footer {
    background: var(--dance-black);
}

body.page-dance .sas-test-header-pin[aria-pressed="true"],
body.page-dance .sas-test-menu[aria-expanded="true"],
body.page-dance .sas-test-header.is-scrolled .sas-test-header-pin[aria-pressed="true"],
body.page-dance .sas-test-header.is-scrolled .sas-test-menu[aria-expanded="true"],
body.page-dance .sas-test-header-pin[aria-pressed="true"]:hover,
body.page-dance .sas-test-menu[aria-expanded="true"]:hover {
    color: var(--dance-black) !important;
    background: var(--dance-green) !important;
    border-color: var(--dance-green) !important;
}

body.page-dance #iframeHolder,
body.page-dance #iframeHolderblanc,
body.page-dance #iframeHolder3,
body.page-dance #iframeHolderprof {
    inset: 72px 0 0 !important;
    top: 72px !important;
    height: calc(100svh - 72px) !important;
    z-index: 110;
}

body.page-dance .sas-test-header {
    z-index: 140;
}

body.page-dance #iframeCloser,
body.page-dance #iframeCloser2,
body.page-dance #iframeCloserindex {
    z-index: 150;
}

.dance-hero {
    position: relative;
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    color: #fff;
    background: var(--dance-black);
    isolation: isolate;
}

.dance-hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(5, 5, 9, .94), rgba(5, 5, 9, .72) 52%, rgba(5, 5, 9, .32)),
        center / cover no-repeat url("../img/danse-background-studio.jpg");
}

.dance-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -12vw;
    bottom: -12vw;
    width: 42vw;
    height: 42vw;
    border: 1px solid rgba(215, 236, 117, .24);
    border-radius: 50%;
}

.dance-hero-content {
    align-self: end;
    width: min(850px, 86vw);
    padding: 132px 0 12vh 7vw;
}

.dance-kicker {
    margin: 0 0 14px;
    color: var(--dance-green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.dance-hero h1,
.dance-section h2,
.dance-section-title h2,
.dance-feature-card h3,
.dance-prepro-card h3,
.dance-program h3 {
    margin: 0;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.dance-hero h1 {
    max-width: 980px;
    font-size: clamp(55px, 9vw, 134px);
    line-height: .86;
}

.dance-hero p:not(.dance-kicker),
.dance-copy p,
.dance-section-title p:not(.dance-kicker) {
    color: var(--dance-muted);
    font-size: clamp(17px, 1.6vw, 22px);
    line-height: 1.45;
}

.dance-hero p:not(.dance-kicker) {
    max-width: 680px;
    margin: 24px 0 0;
    color: var(--dance-dark-muted);
}

.dance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.dance-actions a,
.dance-actions button,
.dance-feature-card a,
.dance-program button,
.dance-gala-copy a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    color: var(--dance-black);
    background: var(--dance-green);
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .22s ease, background-color .22s ease;
}

.dance-actions a:hover,
.dance-actions button:hover,
.dance-feature-card a:hover,
.dance-program button:hover,
.dance-gala-copy a:hover {
    transform: translateY(-2px);
}

.dance-section {
    padding: clamp(78px, 10vw, 152px) 4vw;
    background: var(--dance-paper);
    scroll-margin-top: 92px;
}

.dance-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .75fr);
    gap: clamp(28px, 6vw, 92px);
    align-items: stretch;
}

.dance-copy {
    max-width: 860px;
}

.dance-copy h2,
.dance-section-title h2,
.dance-gala-copy h2 {
    max-width: 920px;
    font-size: clamp(42px, 7vw, 98px);
    line-height: .88;
}

.dance-copy p {
    max-width: 720px;
    margin: 24px 0 0;
}

.dance-feature-card {
    display: grid;
    align-content: end;
    gap: 18px;
    min-height: 520px;
    padding: clamp(26px, 4vw, 48px);
    color: #fff;
    background:
        linear-gradient(180deg, rgba(5, 5, 9, .16), rgba(5, 5, 9, .92)),
        center / cover no-repeat url("../img/danse-prepro-background.jpg");
    border: 1px solid var(--dance-green-line);
}

.dance-feature-card span,
.dance-prepro-card span,
.dance-program span {
    color: var(--dance-green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dance-feature-card h3 {
    max-width: 520px;
    font-size: clamp(32px, 4.2vw, 62px);
    line-height: .9;
}

.dance-feature-card p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 17px;
    line-height: 1.45;
}

.dance-section-title {
    display: grid;
    gap: 18px;
    margin-bottom: clamp(28px, 5vw, 66px);
}

.dance-section-title p:not(.dance-kicker) {
    max-width: 760px;
    margin: 0;
}

.dance-schedule {
    padding-right: 0;
    padding-left: 0;
}

.dance-schedule .dance-section-title {
    padding: 0 4vw;
}

body.page-dance #horairecompletbut #horairecompletdiv {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    max-width: none;
    padding: 0 1vw 34px;
    background: var(--dance-paper);
}

body.page-dance #horairecompletbut #horairecompletdiv .semaine {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

body.page-dance #horairecompletbut #horairecompletdiv .semaine::before {
    display: none !important;
}

body.page-dance #horairecompletbut .horairejour-pc {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin: 0 0 8px;
    color: var(--dance-black) !important;
    background: #449e8d !important;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
}

body.page-dance #horairecompletbut .horairejour {
    display: none !important;
}

body.page-dance #horairecompletbut .horaire {
    grid-template-columns: minmax(0, 1fr);
    min-height: 104px;
    margin: 0;
    background: #fff;
    border-color: rgba(0, 0, 0, .12);
    color: #111 !important;
}

body.page-dance #horairecompletbut .horairetxt,
body.page-dance #horairecompletbut .horairetxt b,
body.page-dance #horairecompletbut .horaire-age,
body.page-dance #horairecompletbut .horaire-prof {
    color: #111 !important;
}

body.page-dance #horairecompletbut .horairetxt > span:last-of-type,
body.page-dance #horairecompletbut .horairetxt > span:last-of-type > span {
    color: rgba(0, 0, 0, .64) !important;
}

body.page-dance #horairecompletbut .bordhorairedanse,
body.page-dance #horairecompletbut .bordhorairedanse2 {
    border-left-color: #449e8d;
}

body.page-dance #horairecompletbut .bordhorairedanse .horairetxt > span:first-of-type,
body.page-dance #horairecompletbut .bordhorairedanse2 .horairetxt > span:first-of-type {
    color: #449e8d !important;
}

@media (min-width: 981px) {
    body.page-dance #horairecompletbut .horaire {
        min-height: 88px;
    }

    body.page-dance #horairecompletbut .horairetxt {
        padding: 8px 10px;
    }

    body.page-dance #horairecompletbut .horairetxt b {
        margin-bottom: 6px;
        font-size: 11px;
    }

    body.page-dance #horairecompletbut .horairetxt > span:first-of-type {
        margin-bottom: 7px;
        font-size: 14px;
    }

    body.page-dance #horairecompletbut .horairetxt > span:last-of-type,
    body.page-dance #horairecompletbut .horaire-age,
    body.page-dance #horairecompletbut .horaire-prof {
        font-size: 12px;
    }
}

.dance-prof-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    background: var(--dance-line);
}

.dance-prof {
    display: grid;
    gap: 10px;
    align-content: start;
    min-width: 0;
    padding: 0 0 18px;
    color: #fff;
    background: var(--dance-black);
    border: 0;
    text-align: left;
    cursor: pointer;
}

.dance-prof:not(button) {
    cursor: default;
}

.dance-prof img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: grayscale(1);
    transition: filter .26s ease, transform .26s ease;
}

.dance-prof:hover img,
.dance-prof:focus-visible img {
    filter: grayscale(0);
    transform: scale(1.025);
}

.dance-prof-letter::before {
    content: attr(data-initials);
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 5;
    color: var(--dance-black);
    background:
        linear-gradient(135deg, rgba(215, 236, 117, .9), rgba(255, 255, 255, .86)),
        var(--dance-green);
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(46px, 5vw, 82px);
    line-height: 1;
    letter-spacing: .04em;
}

.dance-prof span,
.dance-prof small {
    padding: 0;
    margin-right: 14px;
    margin-left: 14px;
}

.dance-prof span {
    color: var(--dance-green);
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.dance-prof small {
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    line-height: 1.3;
}

.dance-prepro {
    background:
        linear-gradient(180deg, rgba(248, 248, 239, .96), rgba(248, 248, 239, .88)),
        center / cover fixed no-repeat url("../img/sastv-udc-background.jpg");
}

.dance-prepro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--dance-line);
}

.dance-program-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--dance-line);
}

.dance-prepro-card {
    display: grid;
    align-content: start;
    gap: 18px;
    min-height: 430px;
    padding: clamp(22px, 3vw, 42px);
    color: #fff;
    background: var(--dance-black);
}

.dance-prepro-card > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: grayscale(.18);
}

.dance-prepro-card > span {
    color: var(--dance-green);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .14em;
}

.dance-prepro-card h3 {
    font-size: clamp(30px, 4vw, 58px);
    line-height: .88;
}

.dance-prepro-card p,
.dance-prepro-card small {
    margin: 0;
    color: rgba(255, 255, 255, .76);
    line-height: 1.45;
}

.dance-prepro-card small {
    color: rgba(255, 255, 255, .58);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.dance-prepro-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 48px;
    padding: 0 18px;
    color: var(--dance-black);
    background: var(--dance-green);
    border: 1px solid var(--dance-green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: transform .22s ease, color .22s ease, background-color .22s ease, border-color .22s ease;
}

.dance-prepro-card a:hover {
    color: var(--dance-black);
    background: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.dance-graduate-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: rgba(215, 236, 117, .18);
}

.dance-graduate-grid .dance-prof {
    gap: 7px;
    min-height: 0;
    padding-bottom: 12px;
}

.dance-graduate-grid .dance-prof img {
    aspect-ratio: 1 / 1;
}

.dance-graduate-grid .dance-prof span,
.dance-graduate-grid .dance-prof small {
    margin: 0 8px;
}

.dance-graduate-grid .dance-prof span {
    font-size: clamp(11px, 1vw, 14px);
    line-height: 1.05;
}

.dance-graduate-grid .dance-prof small {
    font-size: clamp(10px, .8vw, 11px);
    line-height: 1.2;
}

.dance-program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dance-program {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
    min-height: 440px;
    color: #fff;
    background: var(--dance-black);
}

.dance-program img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.dance-program div {
    display: grid;
    align-content: end;
    gap: 18px;
    padding: clamp(24px, 4vw, 46px);
}

.dance-program h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(28px, 3.2vw, 46px);
    line-height: .94;
}

.dance-program p {
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 17px;
    line-height: 1.45;
}

.dance-program button {
    width: fit-content;
    color: var(--dance-black);
    background: var(--dance-green);
    border-color: var(--dance-green);
}

.dance-gala {
    min-height: 78vh;
    display: grid;
    align-items: end;
    color: #fff;
    background:
        linear-gradient(100deg, rgba(5, 5, 9, .92), rgba(5, 5, 9, .68) 54%, rgba(5, 5, 9, .22)),
        center / cover no-repeat url("../img/gala-archive-2023-background.jpg");
}

.dance-gala-copy {
    max-width: 850px;
}

.dance-gala-copy .dance-kicker {
    color: var(--dance-green);
}

.dance-gala-copy p {
    margin: 24px 0 28px;
    color: var(--dance-dark-muted);
    font-size: clamp(17px, 1.6vw, 22px);
    line-height: 1.45;
}

.dance-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .72s ease, transform .72s cubic-bezier(.16, .84, .24, 1);
}

.dance-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1180px) {
    .dance-prof-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dance-prepro-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dance-graduate-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    body.page-dance #iframeHolder,
    body.page-dance #iframeHolderblanc,
    body.page-dance #iframeHolder3,
    body.page-dance #iframeHolderprof {
        inset: 64px 0 0 !important;
        top: 64px !important;
        height: calc(100svh - 64px) !important;
    }

    .dance-hero-content {
        width: auto;
        padding: 112px 5vw 58px;
    }

    .dance-hero h1 {
        font-size: clamp(52px, 18vw, 86px);
    }

    .dance-section {
        padding: 64px 5vw;
        scroll-margin-top: 76px;
    }

    .dance-intro,
    .dance-program,
    .dance-program-grid {
        grid-template-columns: 1fr;
    }

    .dance-feature-card {
        min-height: 420px;
    }

    .dance-schedule {
        padding-right: 0;
        padding-left: 0;
    }

    .dance-schedule .dance-section-title {
        padding: 0 5vw;
    }

    body.page-dance #horairecompletbut #horairecompletdiv {
        padding: 0 12px 32px;
        display: block;
    }

    body.page-dance #horairecompletbut #horairecompletdiv .semaine {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 26px;
    }

    body.page-dance #horairecompletbut .horairejour {
        display: block !important;
        margin-left: 0;
        padding-left: 0;
        color: #449e8d;
        border-left: 0;
    }

    body.page-dance #horairecompletbut .horairejour h2 {
        padding-left: 12px;
    }

    body.page-dance #horairecompletbut .horairejour-pc {
        display: none !important;
    }

    body.page-dance #horairecompletbut .horaire {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dance-profs {
        display: none;
    }

    .dance-prof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dance-prof span,
    .dance-prof small {
        margin: 0 10px;
    }

    .dance-prepro {
        background-attachment: scroll;
    }

    .dance-prepro-card {
        min-height: 330px;
    }

    .dance-prepro-grid {
        grid-template-columns: 1fr;
    }

    .dance-graduate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dance-program {
        position: relative;
        overflow: hidden;
    }

    .dance-program img {
        min-height: 68vw;
    }

    .dance-program div {
        position: relative;
        z-index: 1;
        margin-top: -18vw;
        background: linear-gradient(180deg, rgba(5, 5, 9, .78), rgba(5, 5, 9, .96));
        border-top: 1px solid rgba(215, 236, 117, .26);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

@media (max-width: 460px) {
    .dance-graduate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .dance-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Shared header collapse state, kept after page-specific header colors. */
body[class] .sas-test-header.is-hidden {
    right: 0 !important;
    left: auto !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 16px 4vw 0 0 !important;
    background: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body[class] .sas-test-header.is-hidden .sas-test-brand,
body[class] .sas-test-header.is-hidden .sas-test-nav {
    display: none !important;
}
