/*
 * A La Folie Theatre 2026 - Design system
 *
 * This file is the foundation layer for the whole site.
 * It must stay generic: variables, base typography, shared containers,
 * shared buttons, badges and reusable layout helpers.
 *
 * Page-specific fixes stay in global-responsive.css until each template
 * is migrated and checked visually.
 */

/* ==================================================
   01. Tokens
   ================================================== */

:root {
    --alf-red: #e5253f;
    --alf-black: #000;
    --alf-white: #fff;
    --alf-text: #111;
    --alf-muted: #d8d8d8;
    --alf-line: rgba(255, 255, 255, .22);

    --alf-font-family: REM, Arial, Helvetica, sans-serif;
    --alf-font-body-size: 1.1em;
    --alf-font-body-line: 1.35;
    --alf-font-body-weight: 400;

    --alf-font-small-size: 14px;
    --alf-font-small-line: 1.25;

    --alf-font-title-weight: 900;
    --alf-letter-spacing: 0;

    --alf-site-max: 1270px;
    --alf-site-wide: 1600px;
    --alf-site-narrow: 965px;
    --alf-gutter-desktop: 32px;
    --alf-gutter-tablet: 28px;
    --alf-gutter-mobile: 20px;

    --alf-radius: 8px;
    --alf-radius-small: 5px;
    --alf-button-height: 52px;
    --alf-button-padding: 15px 35px;
    --alf-wheel-rotation: 0deg;
}

/* ==================================================
   02. Base
   ================================================== */

body.folie-2026 {
    background: var(--alf-black);
    color: var(--alf-white);
    font-family: var(--alf-font-family);
    letter-spacing: var(--alf-letter-spacing);
}

body.folie-2026 *,
body.folie-2026 *::before,
body.folie-2026 *::after {
    box-sizing: border-box;
}

body.folie-2026 img,
body.folie-2026 video,
body.folie-2026 iframe {
    max-width: 100%;
}

body.folie-2026 a {
    color: inherit;
}

body.folie-2026 .site-footer__cookie-link {
    appearance: none;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

/* Low-specificity defaults. Component styles can still override these. */
body.folie-2026 :where(p, li) {
    font-size: var(--alf-font-body-size);
    line-height: var(--alf-font-body-line);
    font-weight: var(--alf-font-body-weight);
    letter-spacing: var(--alf-letter-spacing);
}

body.folie-2026 :where(h1, h2, h3, h4, h5, h6) {
    font-weight: var(--alf-font-title-weight);
    letter-spacing: var(--alf-letter-spacing);
}

body.folie-2026 :where(button, input, select, textarea) {
    font-family: var(--alf-font-family);
    letter-spacing: var(--alf-letter-spacing);
}

body.folie-2026 .site-main {
    padding-top: 0;
}

body.folie-2026 :where(.alf-news-page, .alfac-page, .alfbo-courses-page, .alf-theatre-page, .alfsalles-page, .alfequipe-page, .alfinfos-page, .alfps-page, .alfsp-page) {
    background: var(--alf-black);
    color: var(--alf-white);
    font-family: var(--alf-font-family);
    /*min-height: 100vh;*/
    position: relative;
    isolation: isolate;
}

body.folie-2026 :where(.alf-news-page, .alfac-page, .alfbo-courses-page, .alf-theatre-page, .alfsalles-page, .alfequipe-page, .alfinfos-page, .alfps-page, .alfsp-page) > * {
    position: relative;
    z-index: 1;
}

body.folie-2026 :where(.alfbo-band, .alfbo-news, .alfbo-offers-block, .alf-news-wrap, .alf-theatre-visual) {
    position: relative;
    isolation: isolate;
}

body.folie-2026 :where(.alfbo-band, .alfbo-news, .alfbo-offers-block, .alf-news-wrap, .alf-theatre-visual) > * {
    position: relative;
    z-index: 1;
}

body.folie-2026 .alfbo-home::after,
body.folie-2026 .alfbo-courses-page::after,
body.folie-2026 .alf-news-page::after,
body.folie-2026 .alf-theatre-page::before,
body.folie-2026 .alfsalles-page::before,
body.folie-2026 .alfsalles-page::after,
body.folie-2026 .alfequipe-page::before,
body.folie-2026 .alfequipe-page::after,
body.folie-2026 .alfinfos-page::before,
body.folie-2026 .alfinfos-page::after,
body.folie-2026 .alfps-page::before,
body.folie-2026 .alfps-page::after,
body.folie-2026 .alfsp-page::before,
body.folie-2026 .alfsp-page::after,
body.folie-2026 .alfbo-courses::before,
body.folie-2026 .alfbo-news::before,
body.folie-2026 .alfbo-offers-block::after,
body.folie-2026 .alf-news-wrap::before,
body.folie-2026 .alf-theatre-visual::before {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
    transform: rotate(var(--alf-wheel-rotation, 0deg));
    transform-origin: center;
    will-change: transform;
    z-index: 0;
}

/* ==================================================
   02b. Cookies & External Content
   ================================================== */

body.folie-2026 .alf-cookie-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100001;
    width: min(560px, calc(100vw - 40px));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: rgba(0, 0, 0, .94);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

body.folie-2026 .alf-cookie-banner__inner {
    display: grid;
    gap: 18px;
    padding: 22px;
}

body.folie-2026 .alf-cookie-banner__copy strong,
body.folie-2026 .alf-external-gate__copy strong {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
}

body.folie-2026 .alf-cookie-banner__copy p,
body.folie-2026 .alf-external-gate__copy p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
}

body.folie-2026 .alf-cookie-banner__copy a,
body.folie-2026 .alf-external-gate__link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--alf-white);
    font-size: 14px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.folie-2026 .alf-cookie-banner__actions,
body.folie-2026 .alf-external-gate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.folie-2026 .alf-cookie-banner__button,
body.folie-2026 .alf-external-gate__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--alf-red);
    border-radius: 999px;
    background: var(--alf-red);
    color: var(--alf-white);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

body.folie-2026 .alf-cookie-banner__ghost,
body.folie-2026 .alf-cookie-banner__ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: transparent;
    color: var(--alf-white);
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

body.folie-2026 .alf-cookie-banner__button:hover,
body.folie-2026 .alf-external-gate__button:hover,
body.folie-2026 .alf-cookie-banner__ghost:hover,
body.folie-2026 .alf-cookie-banner__ghost:hover {
    transform: translateY(-1px);
}

body.folie-2026 .alf-external-gate__link {
    appearance: none;
    border: 0;
    background: none;
    cursor: pointer;
}

body.folie-2026 .alf-external-gate {
    position: relative;
    width: 100%;
    min-height: 100%;
}

body.folie-2026 .alf-external-gate__target,
body.folie-2026 .alf-external-gate__target > * {
    width: 100%;
    height: 100%;
}

body.folie-2026 .alf-external-gate__placeholder {
    display: grid;
    place-items: center;
    gap: 14px;
    min-height: 100%;
    padding: 28px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background-color: rgba(15, 15, 15, .88);
    background-position: center;
    background-size: cover;
}

body.folie-2026 .alf-external-gate.is-loaded .alf-external-gate__placeholder {
    display: none;
}

body.folie-2026 .alf-external-gate--hero,
body.folie-2026 .alf-external-gate--hero .alf-external-gate__target,
body.folie-2026 .alf-external-gate--hero .alf-external-gate__placeholder {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: 0;
    border-radius: 0;
}

body.folie-2026 .alf-external-gate--map .alf-external-gate__placeholder {
    min-height: 280px;
}

body.folie-2026 .alf-external-gate--spectacle {
    position: absolute;
    inset: 0;
}

body.folie-2026 .alf-external-gate--spectacle .alf-external-gate__placeholder {
    position: absolute;
    inset: 0;
    border-radius: 14px;
}

@media (max-width: 767px) {
    body.folie-2026 .alf-cookie-banner {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }

    body.folie-2026 .alf-cookie-banner__copy strong,
    body.folie-2026 .alf-external-gate__copy strong {
        font-size: 22px;
    }
}

/* ==================================================
   03. Containers
   ================================================== */

.alf-container {
    width: min(var(--alf-site-max), calc(100% - var(--alf-gutter-desktop)));
    margin-inline: auto;
}

.alf-container--wide {
    width: min(var(--alf-site-wide), calc(100% - var(--alf-gutter-desktop)));
    margin-inline: auto;
}

.alf-container--narrow {
    width: min(var(--alf-site-narrow), calc(100% - var(--alf-gutter-desktop)));
    margin-inline: auto;
}

body.folie-2026 :where(.alf-theatre-wrap, .content-wrap, .page-content, .single-content, .container, .atelier-single-container, .stage-single-container) {
    width: min(var(--alf-site-max), calc(100% - var(--alf-gutter-desktop)));
    max-width: none;
    margin-inline: auto;
}

body.folie-2026 :where(.content-wrap, .page-content, .single-content, .container) {
    padding-left: 0;
    padding-right: 0;
}

.alf-stack {
    display: grid;
    gap: var(--alf-stack-gap, 24px);
}

.alf-center {
    text-align: center;
}

/* ==================================================
   04. Shared Components
   ================================================== */

.alf-button,
body.folie-2026 :where(.alfbo-main-button, .alfbo-mini-button, .alfbo-reserve-button, .alfcs-info, .alfcs-book, .single-news-all__button, .alf-before-footer__button, .alf-before-footer__newsletter input[type="submit"], .alf-before-footer__newsletter button, .alfsalles-button, .alfequipe-btn) {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--alf-button-height);
    box-sizing: border-box;
    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-text);
    border: 1px solid var(--alf-black);
    border-radius: var(--alf-radius);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: var(--alf-letter-spacing);
    padding: var(--alf-button-padding);
    cursor: pointer;
    transition: color .28s ease, border-color .28s ease, background-position .32s ease, transform .25s ease;
}

body.folie-2026 a.alf-button,
body.folie-2026 a:where(.alfbo-main-button, .alfbo-mini-button, .alfbo-reserve-button, .alfcs-info, .alfcs-book, .single-news-all__button, .alf-before-footer__button, .alfsalles-button, .alfequipe-btn) {
    color: var(--alf-text);
}

.alf-button:hover,
.alf-button:focus-visible,
body.folie-2026 :where(.alfbo-main-button, .alfbo-mini-button, .alfbo-reserve-button, .alfcs-info, .alfcs-book, .single-news-all__button, .alf-before-footer__button, .alf-before-footer__newsletter input[type="submit"], .alf-before-footer__newsletter button, .alfsalles-button, .alfequipe-btn):hover,
body.folie-2026 :where(.alfbo-main-button, .alfbo-mini-button, .alfbo-reserve-button, .alfcs-info, .alfcs-book, .single-news-all__button, .alf-before-footer__button, .alf-before-footer__newsletter input[type="submit"], .alf-before-footer__newsletter button, .alfsalles-button, .alfequipe-btn):focus-visible {
    background-position: 0 0;
    color: var(--alf-white);
    border-color: var(--alf-red);
}

body.folie-2026 a.alf-button:hover,
body.folie-2026 a.alf-button:focus-visible,
body.folie-2026 a:where(.alfbo-main-button, .alfbo-mini-button, .alfbo-reserve-button, .alfcs-info, .alfcs-book, .single-news-all__button, .alf-before-footer__button, .alfsalles-button, .alfequipe-btn):hover,
body.folie-2026 a:where(.alfbo-main-button, .alfbo-mini-button, .alfbo-reserve-button, .alfcs-info, .alfcs-book, .single-news-all__button, .alf-before-footer__button, .alfsalles-button, .alfequipe-btn):focus-visible {
    color: var(--alf-white);
}

.alf-red-title,
body.folie-2026 :where(.alfbo-red-title, .alf-news-title, .alfsalles-title, .alfinfos-title, .alf-theatre-title, .alfequipe-title, .alf-before-footer__red-title, .alfcs-page-title span) {
    display: inline-block;
    background: var(--alf-red);
    color: var(--alf-white);
    border-radius: 0;
    font-weight: 900;
    line-height: 1;
    letter-spacing: var(--alf-letter-spacing);
}

.alf-badge {
    display: inline-block;
    background: var(--alf-white);
    color: var(--alf-black);
    border-radius: var(--alf-radius-small);
    padding: 8px 14px 9px;
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
    transform: rotate(-2deg);
}

.alf-badge--red {
    background: var(--alf-red);
    color: var(--alf-white);
}

.alf-chip,
body.folie-2026 .alfcs-chip,
body.folie-2026 .alfcs-panel-head span {
    display: inline-block;
    width: auto;
    color: var(--alf-black);
    font-weight: 900;
    line-height: 1;
}

.alf-chip,
body.folie-2026 .alfcs-chip {
    background: var(--alf-white);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 17px;
}

body.folie-2026 .alfcs-panel-head span {
    background: var(--alf-white);
    border-radius: 3px;
    padding: 10px 16px;
    font-size: 28px;
    transform: rotate(-2deg);
}

body.folie-2026 .alfcs-red-badge {
    display: inline-block;
    background: var(--alf-red);
    color: var(--alf-white);
    border-radius: 3px;
    font-weight: 900;
    transform: rotate(-2deg);
}

.alf-card,
body.folie-2026 :where(.alfcs-filter-panel, .alfcs-teaser) {
    background: var(--alf-white);
    color: var(--alf-black);
    border-radius: var(--alf-radius);
    overflow: hidden;
}

body.folie-2026 :where(.alfbo-today-poster, .alfps-poster, .show-card__media) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

body.folie-2026 :where(.alfbo-today-poster, .alfps-poster, .show-card__media) img {
    display: block;
    transform: scale(1);
    transition: transform .55s cubic-bezier(.22, 1, .36, 1), filter .55s ease;
    will-change: transform;
}

body.folie-2026 :where(.alfbo-today-poster, .alfps-poster, .show-card__media) .poster-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 18px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, .48);
    opacity: 0;
    transition: opacity .38s ease;
    pointer-events: none;
}

body.folie-2026 :where(.alfbo-today-poster, .alfps-poster, .show-card__media) .overlay-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 156px;
    min-height: 58px;
    box-sizing: border-box;
    padding: 0 28px;
    background: var(--alf-white);
    color: var(--alf-black);
    border-radius: 999px;
    font-size: 20px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: lowercase;
    transform: translateY(18px);
    transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .38s ease;
    opacity: 0;
}

body.folie-2026 :where(.alfbo-today-poster, .alfps-poster, .show-card__media):hover img,
body.folie-2026 :where(.alfbo-today-poster, .alfps-poster, .show-card__media):focus-visible img {
    transform: scale(1.08);
    filter: brightness(.7);
}

body.folie-2026 :where(.alfbo-today-poster, .alfps-poster, .show-card__media):hover .poster-overlay,
body.folie-2026 :where(.alfbo-today-poster, .alfps-poster, .show-card__media):focus-visible .poster-overlay {
    opacity: 1;
}

body.folie-2026 :where(.alfbo-today-poster, .alfps-poster, .show-card__media):hover .overlay-label,
body.folie-2026 :where(.alfbo-today-poster, .alfps-poster, .show-card__media):focus-visible .overlay-label {
    opacity: 1;
    transform: translateY(0);
}

body.folie-2026 .alfps-poster::after {
    z-index: 1;
    pointer-events: none;
}

/* ==================================================
   05. Responsive Foundations
   ================================================== */

@media (max-width: 900px) {
    :root {
        --alf-gutter-desktop: var(--alf-gutter-tablet);
    }

    body.folie-2026 :where(.alf-theatre-wrap, .content-wrap, .page-content, .single-content, .container, .atelier-single-container, .stage-single-container) {
        width: min(100% - var(--alf-gutter-tablet), 720px);
    }
}

@media (max-width: 760px) {
    body.folie-2026 :is(h1, h2, h3, h4, h5, h6, p, li) {
        line-height: 1.4;
    }
}

@media (max-width: 640px) {
    :root {
        --alf-gutter-desktop: var(--alf-gutter-mobile);
        --alf-button-height: 48px;
        --alf-button-padding: 13px 22px;
    }

    body.folie-2026 :where(.alf-theatre-wrap, .content-wrap, .page-content, .single-content, .container, .atelier-single-container, .stage-single-container) {
        width: calc(100% - var(--alf-gutter-mobile));
    }

    body.folie-2026 :where(p, li) {
        overflow-wrap: anywhere;
    }

    body.folie-2026 :where(.alfbo-today-poster, .alfps-poster, .show-card__media) .poster-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, .18);
    }

    body.folie-2026 :where(.alfbo-today-poster, .alfps-poster, .show-card__media) .overlay-label {
        min-width: 132px;
        min-height: 48px;
        padding: 0 22px;
        font-size: 16px;
        opacity: .5;
        transform: translateY(0);
    }
}
