/* ==================================================================== */
/* PELLICULE DE NAVIGATION                                               */
/* ==================================================================== */
.pellicule-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 12px 0;
}
.bjf-access--static {
    cursor: default;
}
.bjf-access--static:hover {
    transform: none;
}
.pellicule-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #c00;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, opacity 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.pellicule-arrow:hover {
    background: #a00;
}
.pellicule-arrow.is-disabled {
    opacity: 0.3;
    pointer-events: none;
}
.pellicule-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px;
    flex: 1;
    scrollbar-width: none;
}
.pellicule-strip::-webkit-scrollbar {
    display: none;
}
.pellicule-frame {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 30px;
    background: #fffdf6;
    color: #333;
    text-decoration: none;
    font-size: 1.6rem;
    transition: all 0.15s;
    border: 1px solid #bbb;
    min-width: 90px;
}
.pellicule-frame:hover {
    background: #f0e6d2;
    border-color: #ccc;
}
.pellicule-frame.actif {
    background: #c00;
    color: #fff;
    border-color: #c00;
    box-shadow: 0 2px 8px rgba(200,0,0,0.3);
}
.pellicule-jour {
    font-weight: 700;
    text-transform: capitalize;
    font-size: 1.7rem;
}
.pellicule-date {
    font-size: 1.5rem;
    margin-top: 4px;
    opacity: 0.85;
}

/* ==================================================================== */
/* INVITATION A LA RESERVATION                                           */
/* ==================================================================== */
.invitation-resa {
    text-align: center;
    font-size: 2.2rem;
    color: #c00;
    margin: 0 0 14px;
    font-style: italic;
}

/* ==================================================================== */
/* FILTRES                                                               */
/* ==================================================================== */
.barre-filtres {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 10px 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background: #fffdf6;
    border-radius: 30px;
}
.barre-filtres-label {
    font-weight: 600;
    font-size: 1.6rem;
    color: #555;
}
.filtre-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.15s;
}
.filtre-btn:hover {
    background: #ddd;
}
.filtre-btn.actif {
    background: #c00;
    color: #fff;
}
.filtre-btn--logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
}
.filtre-btn-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 2px;
}

/* ==================================================================== */
/* BADGE JOUR FIXE — logo accessibilité                                  */
/* ==================================================================== */
.bjf-access {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.3);
    text-decoration: none;
    transition: transform 0.15s;
}
.bjf-access:hover {
    transform: scale(1.15);
}
.bjf-access img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #fff;
    padding: 2px;
}

/* ==================================================================== */
/* TABLEAU PLANNING                                                      */
/* ==================================================================== */
.planning-scroll {
    position: relative;
}
.planning-wrapper {
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
}
.planning-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1.6rem;
}
.planning-table th,
.planning-table td {
    box-shadow: inset -1px -1px 0 #e0e0e0;
    padding: 10px 12px;
    text-align: center;
    vertical-align: top;
}
.planning-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f8f8f8;
}
.col-film {
    text-align: left;
    min-width: 180px;
    max-width: 240px;
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 2;
    font-weight: 700;
    font-size: 2.4rem;
}
.col-film a {
    color: #111;
    font-weight: 700;
    text-decoration: none;
}
.col-film a:hover {
    color: #c00;
    text-decoration: underline;
}
.film-duree {
    display: block;
    margin-top: 4px;
    font-size: 1.3rem;
    font-weight: 400;
    color: #888;
}
.planning-table thead th.col-film {
    z-index: 4;
    background: #f8f8f8;
}
.badge-avant-premiere {
    display: block;
    width: fit-content;
    background: #c00;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 6px;
    border-radius: 3px;
    margin: 0 auto 4px;
}
.badge-film-img {
    display: block;
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 6px;
}
.col-jour {
    min-width: 120px;
    font-weight: normal;
    padding: 10px 8px;
}
.jour-nom {
    display: block;
    font-weight: 700;
    text-transform: capitalize;
    font-size: 1.6rem;
}
.jour-date {
    display: block;
    font-size: 1.4rem;
    color: #666;
    margin-top: 3px;
}
.col-seance {
    padding: 14px 8px;
    text-align: left;
}
.seances-cell {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
}
.access-icons {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 2px;
}
.access-icons img {
    width: 26px;
    height: 26px;
    display: block;
}

/* ==================================================================== */
/* SEANCES STYLE "TICKET DE CINEMA"                                      */
/* ==================================================================== */
.seance-link {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 96px;
    box-sizing: border-box;
    min-width: 96px;
    padding: 8px 16px 10px;
    background: #fffdf6;
    color: #2b2b2b;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.18);
    transition: transform 0.12s, box-shadow 0.12s;
    -webkit-mask:
        radial-gradient(circle 7px at left  center, transparent 6.5px, #000 7px),
        radial-gradient(circle 7px at right center, transparent 6.5px, #000 7px);
    -webkit-mask-composite: source-in;
    mask:
        radial-gradient(circle 7px at left  center, transparent 6.5px, #000 7px),
        radial-gradient(circle 7px at right center, transparent 6.5px, #000 7px);
    mask-composite: intersect;
}
.seance-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.22);
}
.seance-link strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-bottom: 1px dashed #c9b78f;
}
.salle-label {
    display: block;
    font-size: 1.1rem;
    color: #7a6f57;
    margin-top: 2px;
}

/* Avant-premiere : ticket premium */
.seance-link.ap {
    background: linear-gradient(180deg, #fffdf6 0%, #fff8ec 100%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.20);
}
.seance-link.ap:hover {
    box-shadow: 0 6px 12px rgba(0,0,0,0.26);
}
.seance-link.ap strong {
    color: #b00000;
    border-bottom-color: #d9b38c;
}

.seance-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.ap-tag {
    display: inline-block;
    background: linear-gradient(135deg, #c00 0%, #8a0000 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 4px;
    box-shadow: 0 1px 3px rgba(138, 0, 0, 0.4);
}

.ev-tag {
    display: inline-block;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 4px;
    box-shadow: 0 1px 3px rgba(13, 71, 161, 0.4);
}
.seance-link.ev {
    background: linear-gradient(180deg, #fffdf6 0%, #eef4fb 100%);
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.20);
}
.seance-link.ev:hover {
    box-shadow: 0 6px 12px rgba(26, 115, 232, 0.26);
}
.seance-link.ev strong {
    color: #0d47a1;
    border-bottom-color: #9bb8d9;
}

/* Seance passee : ticket "tamponne" */
.seance-link.passee {
    filter: grayscale(1);
    opacity: 0.55;
    pointer-events: none;
}
.seance-link.passee strong {
    text-decoration: line-through;
}
/* Mention "Reserver" sur chaque creneau */
.cta-resa {
    display: block;
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #c00;
    opacity: 0.55;
    transition: opacity 0.15s;
}
.seance-link:hover .cta-resa {
    opacity: 1;
}

.film-row:nth-child(even) td {
    background: #fafafa;
}
.film-row:nth-child(even) .col-film {
    background: #fafafa;
}
.film-row:hover td {
    background: #e8f4ff;
}
.film-row:hover .col-film {
    background: #e8f4ff;
}
.aucune-seance {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
    font-size: 1.6rem;
}
.filtre-separateur {
    display: none;
}

/* ==================================================================== */
/* RESPONSIVE                                                            */
/* ==================================================================== */
@media (max-width: 768px) {
    .barre-filtres {
        width: 100%;
        justify-content: center;
        row-gap: 8px;
        padding: 10px 12px;
    }
    .filtre-separateur {
        display: block;
        flex-basis: 100%;
        height: 0;
        margin: 0;
        padding: 0;
    }
    .filtre-btn--logo {
        padding: 4px 6px;
    }
    .bjf-access img {
        width: 20px;
        height: 20px;
    }
    .filtre-btn-logo {
        width: 26px;
        height: 26px;
    }
    .access-info {
        font-size: 1.3rem;
        gap: 8px;
        padding: 10px 12px;
    }
    .access-info-logo {
        width: 28px;
        height: 28px;
    }
    .pellicule-container .pellicule-arrow {
        position: static !important;
        display: flex !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 1.2rem !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .cta-resa {
        opacity: 1;
    }
    .planning-wrapper {
        max-height: none;
    }
    .planning-table {
        font-size: 1.3rem;
    }
    .col-film {
        min-width: 110px;
        max-width: 140px;
        font-size: 1.5rem;
        padding: 8px 4px;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .film-duree {
        font-size: 1.1rem;
    }
    .col-jour {
        min-width: 80px;
        padding: 8px 5px;
    }
    .jour-nom {
        font-size: 1.3rem;
    }
    .jour-date {
        font-size: 1.1rem;
    }
    .seance-link {
        min-width: 64px;
        padding: 5px 8px 7px;
    }
    .seance-link strong {
        font-size: 1.6rem;
    }
    .salle-label {
        font-size: 1rem;
    }
    .access-icons img {
        width: 18px;
        height: 18px;
    }
    .pellicule-frame {
        padding: 8px 10px;
        min-width: 58px;
    }
    .pellicule-jour {
        font-size: 1.4rem;
    }
    .pellicule-date {
        font-size: 1.2rem;
    }
    .badge-film-img {
        height: 40px;
    }
    .invitation-resa { font-size: 1.2rem; }
    .badge-jour-fixe { padding: 10px 8px; gap: 2px; }
    .bjf-jour { font-size: 1.3rem; }
    .bjf-date { font-size: 1.2rem; }
}

/* ==================================================================== */
/* BADGE JOUR FIXE (visible quand le tableau est à l'écran)              */
/* ==================================================================== */
.badge-jour-fixe {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: #c00;
    color: #fff;
    padding: 14px 12px;
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.25);
    text-transform: capitalize;
    font-weight: 700;
    line-height: 1.1;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.badge-jour-fixe.visible {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}
.badge-jour-fixe.has-access {
    pointer-events: auto;
}
.bjf-jour { font-size: 2.2rem; }
.bjf-date { font-size: 1.8rem; opacity: 0.9; }

@media (max-width: 768px) {
    .badge-jour-fixe {
        padding: 8px 8px;
        gap: 2px;
        border-radius: 8px 0 0 8px;
    }
    .bjf-jour { font-size: 1.4rem; }
    .bjf-date { font-size: 1.2rem; }
    .bjf-access img {
        width: 18px;
        height: 18px;
    }
}

/* ==================================================================== */
/* BANDEAU INFO ACCESSIBILITÉ (SME + Audiodescription)                   */
/* ==================================================================== */
.access-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff8ec;
    border: 1px solid #d9b38c;
    border-left: 5px solid #c00;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 0 0 16px;
    font-size: 1.6rem;
    color: #2b2b2b;
    line-height: 1.4;
}
.access-info-logo {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 4px;
    background: #fff;
    padding: 2px;
}
.access-info a {
    color: #c00;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.access-info a:hover {
    color: #8a0000;
}
/* Variante audiodescription (bleu) */
.access-info--ad {
    background: #eef4fb;
    border-color: #9bb8d9;
    border-left-color: #1a73e8;
}
.access-info--ad a {
    color: #1a73e8;
}
.access-info--ad a:hover {
    color: #0d47a1;
}

/* ==================================================================== */
/* BADGE JOUR — DÉPLOIEMENT DE LA LISTE DES JOURS                        */
/* ==================================================================== */
.badge-jour-fixe.visible {
    pointer-events: auto;
}
.bjf-chevron {
    margin-top: 4px;
    font-size: 1.4rem;
    opacity: 0.85;
    transition: transform .2s ease;
}

/* Panneau — s'ouvre vers la GAUCHE (badge collé à droite) */
.bjf-jours {
    position: absolute;
    top: 0;
    right: calc(100% + 8px);
    min-width: 200px;
    max-height: 60vh;
    overflow-y: auto;
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: -4px 4px 20px rgba(0,0,0,.2);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 60;
    text-transform: capitalize;
    font-weight: 400;
    line-height: 1.3;
}
.bjf-jour-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 1.5rem;
}
.bjf-jour-item:hover { background: #f0e6d2; }
.bjf-jour-item.actif { background: #c00; color: #fff; font-weight: 700; }
.bjf-jour-date { color: #777; }
.bjf-jour-item.actif .bjf-jour-date { color: #fff; }

/* Ouverture au survol / focus clavier / classe .ouvert (mobile) */
.badge-jour-fixe.visible:hover .bjf-jours,
.badge-jour-fixe.visible:focus-within .bjf-jours,
.badge-jour-fixe.ouvert .bjf-jours {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
.badge-jour-fixe.visible:hover .bjf-chevron,
.badge-jour-fixe.ouvert .bjf-chevron {
    transform: rotate(180deg);
}