/* ==========================================================================
   SÉANCE ÉVÉNEMENT
   ========================================================================== */
.ligne-jour-fiche a.blockhorairefilm.seance-evenement {
    background: #fffdf6 !important; color: #1a1a1a !important;
    border: 3px solid #d32f2f !important;
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px #d32f2f !important;
    border-radius: 4px !important; transform: translateY(-2px); position: relative;
    -webkit-mask: none !important; -webkit-mask-composite: unset !important;
    mask: none !important; mask-composite: unset !important;
}
.ligne-jour-fiche a.blockhorairefilm.seance-evenement strong { color: #b00000 !important; font-size: 1.3em; }
.ligne-jour-fiche a.blockhorairefilm.seance-evenement .petit { color: #000 !important; font-weight: 700; }
.ligne-jour-fiche a.blockhorairefilm.seance-evenement .icones-access img,
.ligne-jour-fiche a.blockhorairefilm.seance-evenement .imageACCESSIBILITE { filter: none; }
.ligne-jour-fiche a.blockhorairefilm.seance-evenement .ticket-evenement {
    font-size: 1.15rem; font-weight: 900; text-transform: uppercase;
    letter-spacing: 1px; color: #d32f2f; background: transparent; box-shadow: none;
}
.ligne-jour-fiche a.blockhorairefilm.seance-evenement .ticket-reserver { display: none !important; }
.ligne-jour-fiche a.blockhorairefilm.seance-evenement:hover {
    background: #fff3e0 !important; transform: translateY(-3px);
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px #b71c1c !important;
}
.ligne-jour-fiche a.blockhorairefilm.seance-evenement.passee {
    background: #f0f0f0 !important; border-color: #ddd !important;
    box-shadow: none !important; transform: none;
}
.ligne-jour-fiche a.blockhorairefilm.seance-evenement.passee .ticket-evenement { color: #999; }

/* ==========================================================================
   ARTICLES LIÉS AU FILM
   ========================================================================== */
.articles-film { margin-top: 2.5em; padding-top: 1.5em; border-top: 2px solid #2b2b2b; }
.articles-film > h2 { font-size: 2.5em; letter-spacing: 0.02em; margin: 0 0 1.2em 0; color: #1a1a1a; }
.article-item {
    margin-bottom: 3em; padding: 1.2em 1.4em; background: #fafafa;
    border: 1px solid #e6e6e6; border-left: 4px solid #c00; border-radius: 6px;
}
.article-item h3 { font-size: 1.4em; margin: 0 0 0.4em 0; color: #1a1a1a; }
.article-meta { font-size: 2em; color: #777; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 0.9em 0; }
.article-contenu { line-height: 2.2; color: #2a2a2a; font-size: 2em; }
.article-contenu a { color: #c00; text-decoration: underline; }
.article-lien { margin-top: 1em; }
.article-lien a {
    display: inline-block; padding: 9px 18px; background: #1a1a1a; color: #fff;
    text-decoration: none; border-radius: 4px; font-size: 2em; transition: background .2s;
}
@media (max-width: 800px) {
    .articles-film > h2 { font-size: 2rem; }
    .article-item h3    { font-size: 1.7rem; }
    .article-meta       { font-size: 1.5rem; }
    .article-contenu {
        font-size: 1.7rem;     /* était 1.05em (~10px) → lisible */
        line-height: 1.7;
    }
}

/* ==========================================================================
   HORAIRES FICHE FILM — LIGNES DE JOUR
   ========================================================================== */
.wrapper-fiche-horaires .ligne-jour-fiche,
.wrapper-fiche-horaires .ligne-jour-fiche:nth-child(odd),
.wrapper-fiche-horaires .ligne-jour-fiche:nth-child(even) {
    background-color: transparent; border-radius: 0;
}
.wrapper-fiche-horaires .ligne-jour-fiche {
    border-bottom: 1px solid #e0e0e0; padding-bottom: 12px; margin-bottom: 12px;
}
.wrapper-fiche-horaires .ligne-jour-fiche:last-child { border-bottom: none; margin-bottom: 0; }

/* ==========================================================================
   TICKET SOBRE
   ========================================================================== */
.ligne-jour-fiche a.blockhorairefilm {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; min-width: 100px; min-height: 60px; width: auto; height: auto; margin: 0;
    padding: 8px 12px; background: #fff8e6; border: 2px solid #d9c9a3; border-radius: 70px;
    box-shadow: none; color: #2b2b2b; text-decoration: none; transition: background 0.12s ease;
    -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;
}
.ligne-jour-fiche a.blockhorairefilm:hover { background: #f3ecd9; }
.ligne-jour-fiche a.blockhorairefilm strong { color: #b00000; background: transparent; box-shadow: none; }
.ligne-jour-fiche a.blockhorairefilm .petit,
.ligne-jour-fiche a.blockhorairefilm .icones-access { background: transparent; box-shadow: none; }
.ligne-jour-fiche a.blockhorairefilm .icones-access img,
.ligne-jour-fiche a.blockhorairefilm .imageACCESSIBILITE {
    float: none; display: inline-block; width: 2rem; height: 2rem;
    margin: 2px 1px 0; vertical-align: middle; box-shadow: none;
}
.ligne-jour-fiche .blockhorairefilm :hover,
.ligne-jour-fiche .blockhorairefilm strong:hover,
.ligne-jour-fiche .blockhorairefilm .petit:hover,
.ligne-jour-fiche .blockhorairefilm .icones-access:hover,
.ligne-jour-fiche .blockhorairefilm img:hover {
    color: inherit; box-shadow: none; background: transparent;
}
.ligne-jour-fiche a.blockhorairefilm.passee {
    background: #f0f0f0; border-color: #ddd; opacity: 0.6; box-shadow: none; pointer-events: none;
}
.ligne-jour-fiche a.blockhorairefilm.passee strong { text-decoration: line-through; color: #999; }

/* ==========================================================================
   CORRECTION CASCADE — ticket crème + survol
   ========================================================================== */
.wrapper-fiche-horaires .ligne-jour-fiche:nth-child(even) .blockhorairefilm,
.wrapper-fiche-horaires .ligne-jour-fiche:nth-child(odd)  .blockhorairefilm,
.ligne-jour-fiche a.blockhorairefilm {
    background-color: #fffdf6 !important; box-shadow: none !important;
}
.wrapper-fiche-horaires .ligne-jour-fiche:nth-child(even) .blockhorairefilm:hover,
.wrapper-fiche-horaires .ligne-jour-fiche:nth-child(odd)  .blockhorairefilm:hover,
.ligne-jour-fiche a.blockhorairefilm:hover { background-color: #f3ecd9 !important; }
.wrapper-fiche-horaires .ligne-jour-fiche:nth-child(even) .blockhorairefilm.passee,
.wrapper-fiche-horaires .ligne-jour-fiche:nth-child(odd)  .blockhorairefilm.passee,
.ligne-jour-fiche a.blockhorairefilm.passee {
    background-color: #f0f0f0 !important; opacity: 0.6; pointer-events: none;
}

/* ==========================================================================
   BLOC JOUR — nom du jour SANS FOND
   ========================================================================== */
.ligne-jour-fiche .blockhorairedate {
    background: transparent !important; border-color: transparent !important;
    border-radius: 0 !important; color: #1a1a1a !important; box-shadow: none !important;
    height: auto !important; min-height: 0 !important; align-self: stretch; font-weight: 700;
}
.ligne-jour-fiche { align-items: stretch; }
.ligne-jour-fiche a.blockhorairefilm .ticket-reserver {
    margin-top: auto; padding-top: 3px; font-size: 1.1rem; font-weight: 300;
    text-transform: uppercase; letter-spacing: 0.3px; color: #b00000;
    background: transparent; box-shadow: none;
}
.ligne-jour-fiche a.blockhorairefilm .ticket-reserver:hover {
    color: #b00000; background: transparent; box-shadow: none;
}

/* ==========================================================================
   ★ ONGLETS DE JOURS
   ========================================================================== */
.horaires-tabs-wrapper {
    position: relative; border: 1px solid red; border-radius: 12px;
    padding: 16px 18px; background: #ffffff; margin-top: 2.5em; margin-bottom: 2em;
}
.horaires-tabs {
    display: flex; gap: 8px; overflow-x: auto; padding: 0 0 14px; margin-bottom: 4px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.horaires-tabs::-webkit-scrollbar { display: none; }
.horaires-tabs button {
    flex: 0 0 auto; padding: 10px 22px; border: 2px solid #d9c9a3; border-radius: 30px;
    background: #fffdf6; color: #1a1a1a; font-size: 1.3rem; font-weight: 700;
    text-transform: capitalize; cursor: pointer; white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}
.horaires-tabs button:hover { background: #f3ecd9; }
.horaires-tabs button.active { background: red; color: #fff; border-color: #1a1a1a; }
.wrapper-fiche-horaires .ligne-jour-fiche { display: none; }
.wrapper-fiche-horaires .ligne-jour-fiche.tab-visible { display: flex; }
.horaires-tabs--single { display: none; }
.wrapper-fiche-horaires .ligne-jour-fiche.tab-visible--single { display: flex; }

/* ==========================================================================
   ★ HAUTEUR DU DÉTAIL + suppression du trait sous la ligne affichée
   ========================================================================== */
.wrapper-fiche-horaires {
    min-height: 130px; max-height: 260px; overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch; padding-right: 4px;
}
.wrapper-fiche-horaires .ligne-jour-fiche.tab-visible,
.wrapper-fiche-horaires .ligne-jour-fiche.tab-visible--single {
    border-bottom: none !important; margin-bottom: 0 !important;
}
.wrapper-fiche-horaires::-webkit-scrollbar { width: 6px; }
.wrapper-fiche-horaires::-webkit-scrollbar-thumb { background: #d9c9a3; border-radius: 3px; }
.wrapper-fiche-horaires::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 600px) {
    .horaires-tabs button { padding: 8px 16px; font-size: 1.1rem; }
}

/* ==========================================================================
   ★ AUTRES FILMS À L'AFFICHE — fichefilm-pellicule (version épurée)
   ========================================================================== */
.fichefilm-autres-affiche {
    margin: 2.5em 0; padding: 0; border: none;
    background: transparent;
}
.fichefilm-autres-affiche > h2 {
    font-size: 1.8rem; color: #1a1a1a; margin: 0 0 1em;
    padding: 0 20px;
}
.fichefilm-pellicule {
    position: relative;
    background: #ffffff;
    border: 2px solid #d32f2f;
    border-radius: 6px;
    padding: 16px 0;
    overflow: hidden;
}




/* Zone défilable */
.fichefilm-pellicule-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.fichefilm-pellicule-track::-webkit-scrollbar { display: none; }

/* Chaque photogramme */
.fichefilm-pellicule-frame {
    flex: 0 0 140px;   /* ★ au lieu de "0 0 auto" → largeur fixe et égale */
    width: 140px;
    position: relative;
    padding: 4px 8px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, filter .2s ease;
}
.fichefilm-pellicule-frame:hover {
    transform: scale(1.04);
    z-index: 5;
}
.fichefilm-pellicule-frame:hover .fichefilm-pellicule-img {
    filter: brightness(1.05) saturate(1.05);
}
.fichefilm-pellicule-img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 3px;
    background: #f5f5f5;
    transition: filter .2s ease;
}


/* Wrapper : référence de positionnement pour les flèches en overlay */
.fichefilm-pellicule-wrapper {
    position: relative;
}

/* La pellicule prend toute la largeur (les flèches ne prennent plus de place) */
.fichefilm-pellicule {
    width: 100%;
}

/* Flèches en overlay, centrées verticalement, par-dessus les affiches */
.fichefilm-pellicule-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1a1a1a;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s, color .2s;
    line-height: 1;
}
.fichefilm-pellicule-prev { left: 10px; }
.fichefilm-pellicule-next { right: 10px; }

.fichefilm-pellicule-nav:hover {
    background: #fff;
    border-color: #d32f2f;
    color: #d32f2f;
}

.fichefilm-pellicule-nav:hover {
    background: #fff5f5;
    border-color: #d32f2f;
    color: #d32f2f;
}

@media (max-width: 800px) {
    .fichefilm-pellicule-track {
        display: flex;
        flex-wrap: nowrap;
        padding: 0;
        gap: 6px;
    }
    .fichefilm-pellicule-frame {
        flex: 0 0 calc((100% - 96px) / 2);   /* 2 grandes affiches visibles */
        width: auto;
        padding: 4px;
    }
	.fiche-film .textefilmencours {
        font-size: 1.5rem;     /* était 1.9rem → plus raisonnable */
        line-height: 1.55;
    }
    .fiche-film .textefilmencours .label-fiche {
        font-size: 1.5rem;     /* libellés "Réalisation :", "Durée :"… alignés */
    }
}

/* ==========================================================================
   ★ AUTRES FILMS DU FESTIVAL — LIENS PAR BADGE
   ========================================================================== */
.badge-films { margin: 2.5em 0; }
.badge-films > h2 { font-size: 1.8rem; color: #1a1a1a; margin: 0 0 1em; }
.badge-films-cadre { background: transparent; }
.badge-films-liste { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; padding: 0; margin: 0; }
.badge-film-card { margin: 0; }
.badge-film-lien {
    display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 180px;
    padding: 16px 22px; background: #fffdf6; border: 2px solid #d9c9a3; border-radius: 12px;
    text-decoration: none; color: #1a1a1a !important;
    transition: background .15s, border-color .15s, transform .15s;
}
.badge-films :is(.badge-film-lien, .badge-film-lien:hover, .badge-film-cta:hover, .badge-film-lien:hover .badge-film-cta) {
    color: #555 !important;
}
.badge-films .badge-film-lien:hover {
    background: #f3ecd9 !important;
    border-color: #999 !important;
    transform: translateY(-2px);
}
.badge-film-nom {
    font-size: 1.15rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .03em; text-align: center;
}
.badge-film-cta {
    font-size: 1.5rem;
    color: #555 !important;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}
.badge-films .badge-film-lien:active,
.badge-films .badge-film-lien:focus {
    background: #f3ecd9 !important;
    border-color: #999 !important;
}

/* ==========================================================================
   SLIDER PHOTOS
   ========================================================================== */
.slide-photos {
    position: relative; width: 100%; margin: 0 0 2em;
    overflow: hidden; border-radius: 8px; background: #111; aspect-ratio: 16 / 9;
}
.slide-photos-track { display: flex; height: 100%; transition: transform 0.45s cubic-bezier(.4, 0, .2, 1); }
.slide-photos-item { flex: 0 0 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.slide-photos-item img { width: 100%; height: 100%; object-fit: contain; user-select: none; }
.slide-photos-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 44px; height: 44px; border: none; border-radius: 50%;
    background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 1.3rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background 0.2s; line-height: 1;
}
.slide-photos-btn:hover { background: rgba(180, 0, 0, 0.8); }
.slide-photos-prev { left: 12px; }
.slide-photos-next { right: 12px; }
.slide-photos-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slide-photos-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; transition: background 0.2s; }
.slide-photos-dot.active { background: #fff; }
@media (max-width: 600px) { .slide-photos { border-radius: 0; aspect-ratio: 4 / 3; } .slide-photos-btn { width: 36px; height: 36px; font-size: 1rem; } }
@media (max-width: 380px) { .slide-photos-btn { display: none; } }

/* ==========================================================================
   FICHE FILM + ENCART ÉVÉNEMENT
   ========================================================================== */
.fiche-film .titrefilmencours { margin-bottom: 0.8em; }
.fiche-film .textefilmencours {
    display: block; margin-top: 0; padding: 0;
    line-height: 1.6; margin-bottom: 0;
    font-size: 1.9rem;
}
.fiche-film .textefilmencours:last-child { margin-bottom: 0; }
.fiche-film .textefilmencours .label-fiche {
    font-weight: 700; font-style: normal; color: #1a1a1a;
}
.encart-evenement { margin: 2rem 0; padding: 1.5rem; background: #fff; border-left: 5px solid #d32f2f; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.encart-evenement > h2 { font-family: 'Poppins', sans-serif; font-size: 2rem; color: #1a1a1a; margin: 0 0 1rem; }
.encart-evenement-carte { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.2rem; border: 1px solid #ddd; border-radius: 8px; text-decoration: none; color: #1a1a1a; transition: background .2s, border-color .2s, transform .2s; margin-bottom: .6rem; }
.encart-evenement-carte:last-child { margin-bottom: 0; }
.encart-evenement-carte:hover { background: #ebe0d3; border-color: #d32f2f; transform: translateX(4px); }
.encart-evenement-titre { font-size: 1.7rem; font-weight: 700; }
.encart-evenement-date { font-size: 1.4rem; color: #777; text-transform: uppercase; letter-spacing: .04em; }
.encart-evenement-remarque { font-size: 1.4rem; color: #555; font-style: italic; }
.encart-evenement-cta { font-size: 1.4rem; font-weight: 600; color: #c00; margin-top: .2rem; }
.ligne-jour-fiche a.blockhorairefilm .ticket-evenement {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: #e65100; background: transparent; box-shadow: none;
}
.badge-film-img {
    display: block;
    max-width: 160px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 4px;
}