/*
 * Page: Les salles de spectacles
 *
 * Migrated from page-nos-salles.php. Keep this page-scoped while shared
 * rules are moved gradually into design-system.css.
 */

.alfsalles-page {
    position: relative;
    padding: 42px 0 10px;
    overflow: hidden;
}

.alfsalles-page::before {
    content: "";
    position: absolute;
    right: -135px;
    top: 170px;
    width: clamp(220px, 23vw, 320px);
    height: clamp(220px, 23vw, 320px);
    background-image: url("/wp-content/uploads/2025/08/roue2.png");
    opacity: .95;
}

.alfsalles-page::after {
    content: "";
    position: absolute;
    left: -125px;
    bottom: 240px;
    width: clamp(180px, 18vw, 240px);
    height: clamp(180px, 18vw, 240px);
    background-image: url("/wp-content/uploads/2025/08/roue.svg");
    opacity: .95;
}

.alfsalles-wrap {
    width: min(1320px, calc(100% - 42px));
    margin: 0 auto;
}

.alfsalles-narrow {
    width: min(660px, 100%);
    margin: 0 auto;
}

.alfsalles-title {
    display: inline-block;
    margin: 0;
    padding: 12px 28px 15px;
    font-size: 52px;
    letter-spacing: .04em;
    transform: rotate(1deg);
    width: fit-content;
    max-width: 100%;
}

.alfsalles-hero {
    text-align: center;
    margin-bottom: 56px;
}

.alfsalles-hero .alfsalles-title {
    font-size: 52px;
    margin-bottom: 48px;
}

.alfsalles-copy {
    font-size: 16px;
    line-height: 1.36;
    font-weight: 500;
}

.alfsalles-copy p {
    margin: 0 0 14px;
}

.alfsalles-room {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
    column-gap: 56px;
    row-gap: 24px;
    align-items: start;
    margin: 0 0 105px;
}

.alfsalles-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 11;
    background: #111;
}

.alfsalles-carousel img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alfsalles-carousel.is-carousel img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.15s ease-in-out;
}

.alfsalles-carousel.is-carousel img.is-active {
    opacity: 1;
}

.alfsalles-room h2 {
    font-size: 33px;
    line-height: 1.05;
    margin: 0;
    font-weight: 900;
}

.alfsalles-room-text {
    max-width: 620px;
}

.alfsalles-room > h2 {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
}

.alfsalles-room > .alfsalles-room-text {
    grid-column: 1;
    grid-row: 2;
}

.alfsalles-room > .alfsalles-room-media {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
}

.alfsalles-room + .alfsalles-room > .alfsalles-room-media {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.alfsalles-room + .alfsalles-room > h2 {
    grid-column: 2;
    grid-row: 1;
}

.alfsalles-room + .alfsalles-room > .alfsalles-room-text {
    grid-column: 2;
    grid-row: 2;
}

.alfsalles-room-media,
.alfsalles-room-text {
    width: 100%;
}

.alfsalles-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(80px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: center;
}

.alfsalles-stat strong {
    display: block;
    font-size: 30px;
    line-height: .9;
    font-weight: 900;
}

.alfsalles-stat span {
    display: block;
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
}

.alfsalles-panel {
    text-align: left;
    margin: 76px auto 124px;
}

.alfsalles-panel .alfsalles-title {
    font-size: 48px;
    margin-bottom: 24px;
}

.alfsalles-panel .alfsalles-copy {
    width: min(900px, 100%);
    margin: 0 auto;
}

.alfsalles-actions {
    display: flex;
    justify-content: center;
    gap: 320px;
    align-items: center;
    margin-top: 46px;
}

body.folie-2026 .alfsalles-page .alfsalles-button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    min-height: 58px;
    box-sizing: border-box;
    padding: 0 22px;
    background: linear-gradient(to right, var(--alf-red) 0 50%, var(--alf-white) 50% 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    color: var(--alf-black);
    border: 1px solid var(--alf-black);
    border-radius: var(--alf-radius);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: var(--alf-letter-spacing);
    transition: color .28s ease, border-color .28s ease, background-position .32s ease, transform .25s ease;
}

body.folie-2026 .alfsalles-page .alfsalles-button:hover,
body.folie-2026 .alfsalles-page .alfsalles-button:focus-visible {
    background-position: 0 0;
    color: var(--alf-white);
    border-color: var(--alf-red);
}

.alfsalles-rent {
    text-align: left;
}

.alfsalles-rent .alfsalles-button {
    margin: 28px 0 0 max(0px, calc((100% - 690px) / 2));
}

.alfsalles-program {
    text-align: left;
}

.alfsalles-program .alfsalles-title {
    font-size: 46px;
}

@media (max-width: 900px) {
    .alfsalles-page {
        padding-top: 34px;
    }

    .alfsalles-wrap {
        width: min(100% - 32px, 680px);
    }

    .alfsalles-hero {
        text-align: left;
    }

    .alfsalles-title,
    .alfsalles-hero .alfsalles-title,
    .alfsalles-panel .alfsalles-title,
    .alfsalles-program .alfsalles-title {
        font-size: 34px;
        padding: 10px 16px;
    }

    .alfsalles-room {
        display: flex;
        flex-direction: column;
        gap: 28px;
        margin-bottom: 64px;
    }

    .alfsalles-room > h2,
    .alfsalles-room > .alfsalles-room-text,
    .alfsalles-room > .alfsalles-room-media,
    .alfsalles-room + .alfsalles-room > h2,
    .alfsalles-room + .alfsalles-room > .alfsalles-room-text,
    .alfsalles-room + .alfsalles-room > .alfsalles-room-media {
        grid-column: auto;
        grid-row: auto;
        align-self: auto;
    }

    .alfsalles-carousel {
        aspect-ratio: 4 / 3;
    }

    .alfsalles-room h2 {
        font-size: 28px;
    }

    .alfsalles-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .alfsalles-actions {
        gap: 14px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .alfsalles-panel {
        margin: 58px auto 84px;
    }

    .alfsalles-panel .alfsalles-copy {
        margin-left: 0;
    }

    .alfsalles-rent .alfsalles-button {
        margin-left: 0;
    }
}
