/* ==========================================================================
   INITIALISATION ET POLICES DE CARACTÈRES
   ========================================================================== */
.unselectable * {
    cursor: no-drop;
}

@font-face {
    font-family: 'Roboto';
    src: url("../need/css/fonts/Robot-Regular.ttf") format('truetype');
}

@font-face {
    font-family: 'Poppins';
    src: url("../need/css/fonts/Poppins-Regular.ttf") format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    font-size: 62.5%;
    cursor: default;
}

body {
    width: 100%;
    background: #f5f5f5;
    font-family: 'Roboto', 'Poppins', 'Lato', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.clear {
    display: block;
    clear: both;
}

.btn-reserver {
    display: inline-block;
    background-color: #000;
    color: #fff;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-size: clamp(1.5rem, 1.2rem + 0.6vw, 1.8rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-reserver:hover {
    background-color: #d32f2f;
    color: #fff;
}

/* ==========================================================================
   PAGE ÉVÉNEMENT — titre, visuel et texte visibles & responsive
   ========================================================================== */

/* Visuel principal de l'événement */
.affiche-evenement-principal {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 1rem 0 2rem;
    border-radius: 12px;
}

/* Description de l'événement */
.texte_evenement {
    background-color: #ffffff;
    border-left: 5px solid #d32f2f;     /* filet rouge du site */
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0 2.5rem;
    color: #1a1a1a;
    font-size: clamp(1.6rem, 1.2rem + 0.9vw, 2.1rem);   /* 16px → 21px */
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Films liés : libellés réduits, texte XML agrandi (comme la section Prochainement) */
.container-prochainement2 .italiquegris {
    font-size: clamp(1.3rem, 1rem + 0.6vw, 1.6rem);     /* libellés compacts */
}

.container-prochainement2 .espaceentrebloc,
.container-prochainement2 .synopsis-texte {
    font-size: clamp(1.7rem, 1.3rem + 0.9vw, 2.2rem);   /* texte du XML plus grand */
    line-height: 1.5;
    color: #1a1a1a;
}

.container-prochainement2 .prochtitre2 {
    font-size: clamp(2.2rem, 1.6rem + 1.4vw, 3rem);     /* titre de film responsive */
}

/* ==========================================================================
   PLANNING — fond uni par film
   ========================================================================== */

/* Le wrapper porte la couleur, en continu sur tout le bloc du film */
.wrapper-film-planning {
    padding: 1rem 1.5rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.wrapper-film-planning.fond-G { background-color: #ffffff; }
.wrapper-film-planning.fond-B { background-color: #ebe0d3; }

/* Tous les enfants deviennent transparents : c'est le wrapper qui colore */
.wrapper-film-planning #container-titrefilm-ad-pmr-vfstf-G,
.wrapper-film-planning #container-titrefilm-ad-pmr-vfstf-B,
.wrapper-film-planning #container-horairefilm-ad-pmr-vfstf-G,
.wrapper-film-planning #container-horairefilm-ad-pmr-vfstf-B,
.wrapper-film-planning .jour-seance-label--G,
.wrapper-film-planning .jour-seance-label--B {
    background-color: transparent;
}

/* Le titre du film garde une légère distinction (optionnel) */
.wrapper-film-planning #container-titrefilm-ad-pmr-vfstf-G,
.wrapper-film-planning #container-titrefilm-ad-pmr-vfstf-B {
    margin-top: 0;
    padding: 1rem 0;
}


/* ==========================================================================
   AFFICHES
   ========================================================================== */
/* 4 colonnes par défaut (grands écrans) */
.blockaffiche {
    flex: 0 1 calc((100% - 60px) / 4);   /* = calc(25% - 15px) */
    max-width: 100%;
    box-sizing: border-box;
    background: transparent;
    position: relative;
}

/* 3 colonnes sur écrans intermédiaires (tablettes) */
@media (max-width: 900px) and (min-width: 641px) {
    .blockaffiche {
        flex: 0 1 calc((100% - 40px) / 3);   /* ≈ calc(33.333% - 13.33px) */
    }
}

/* 2 colonnes sur mobile */
@media (max-width: 640px) {
    .blockaffiche {
        flex: 0 1 calc((100% - 20px) / 2);   /* = calc(50% - 10px) */
    }
}

/* le lien et le conteneur d'affiche ne doivent pas être noirs */
.blockaffiche a,
.blockaffiche .affiche-crop {
    background: transparent;
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.blockaffiche img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.blockaffiche :hover img {
    -webkit-filter: grayscale(100%);
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}

/* ---------- Carte au survol ---------- */
.movie-card-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(calc(-50% + 8px));
    height: 55%;
    background: rgba(15, 17, 21, .92);
    color: #e8eaf0;
    border-radius: 14px;
    padding: 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 5;
    pointer-events: none;
}

/*.blockaffiche:hover .movie-card-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
}*/

/* Le survol ne s'active que sur les appareils à pointeur (souris) */
@media (hover: hover) and (pointer: fine) {
    .blockaffiche:hover .movie-card-overlay {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%);
    }
}

.mc-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}
.mc-meta {
    font-size: 1.5rem;
    margin: 0;
    color: #9aa3b2;
}
.mc-resume {
    font-size: 1.5rem;
    line-height: 1.4;
    margin: 4px 0 0;
    color: #cdd3dc;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

.flagProgramme {
    display: block;
    width: 100%;
    padding: 0.6rem 1rem;
    border: none;
    background-color: #cfcfcf;       /* gris soutenu */
    color: #1a1a1a;                  /* texte sombre bien lisible sur le gris */
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



#container-affiches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.affiche-crop {
    position: relative;
    aspect-ratio: 2 / 3;
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 14px;
}

.affiche-crop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 14px;
}

.ruban-premiere-semaine {
    position: absolute;
    top: 18px;
    right: -50px;
    width: 170px;
    padding: 7px 0;
    text-align: center;
    background: #f1c40f;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    transform: rotate(45deg);
    z-index: 2;
    pointer-events: none;
}

.ruban-dernier-jour {
    background: #d32f2f;   /* rouge alerte */
    color: #fff;
    font-weight: 700;
}

.ruban-date-seance {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1px 0;
    text-align: center;
    background: #000;
    color: #fff;
    font-size: clamp(9px, 1.2vw, 12px);
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 480px) {
    .ruban-date-seance {
        font-size: 9px;
        padding: 0 3px;
    }
}

@media (min-width: 1200px) {
    .ruban-date-seance {
        font-size: 12px;
        padding: 1px 6px;
    }
}

.ruban-avant-premiere {
    background: #d32f2f;
}

/* ---------- Carrousel ---------- */
.affiche-crop.carrousel .carrousel-track {
    display: flex;
    height: 100%;
}
.affiche-crop.carrousel .carrousel-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.affiche-crop.carrousel .ruban-date-seance {
    z-index: 3;
}

.carrousel {
    overflow: hidden;
    position: relative;
}

.carrousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carrousel-track img {
    flex: 0 0 100%;
    width: 100%;
    object-fit: cover;
}

/* --- LAYOUT GLOBAL --- */
.container, main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.content-wrapper, #content-wrapper { width: 100%; }


/* ==========================================================================
   PROCHAINEMENT — libellés réduits, texte XML agrandi (responsive)
   ========================================================================== */

/* Libellés (Réalisation, Durée, Casting, Synopsis) : plus petits */
.prochtexte2 .italiquegris {
    font-size: clamp(1.3rem, 1rem + 0.6vw, 1.6rem);   /* 13px → 16px */
}

/* Texte du XML : plus grand */
.prochtexte2 .espaceentrebloc {
    font-size: clamp(1.7rem, 1.3rem + 0.9vw, 2.2rem);  /* 17px → 22px */
    line-height: 1.5;
}

/* --- 7. WIDGETS & TARIFS --- */
.footer-widgets-container {
    display: flex; justify-content: center; gap: 30px; flex-wrap: wrap;
    margin: 50px 0 20px; padding-top: 30px;
    border-top: 2px solid var(--cinema-border-soft);
}
.widget {
    background-color: var(--cinema-card-bg); padding: 20px; border-radius: 12px;
    border: 1px solid var(--cinema-border-soft); min-width: 280px;
    max-width: 400px; flex: 1;
}
.widget h4 {
    font-family: var(--font-titles); font-size: 1.9rem; margin-bottom: 15px;
    border-bottom: 2px solid rgba(139,74,34,0.2); padding-bottom: 5px;
    color: var(--cinema-wood);
}
.info-txt { font-size: 1.2rem; color: var(--cinema-dark); margin-bottom: 10px; }
.price-list { list-style: none; }
.price-list li {
    display: flex; justify-content: space-between; padding: 6px 0;
    border-bottom: 1px dashed rgba(139,74,34,0.2); font-size: 1.2rem;
    gap: 20px; color: var(--cinema-dark);
}

/* ==========================================================================
   BANDEAU RAPPEL NEWSLETTER
   ========================================================================== */
.flagLettreInfos {
    display: flex;
    align-items: center;
    justify-content: center;          /* centre le contenu horizontalement */
    gap: 1rem;
    width: 100%;
    margin: 1.5rem 0;
    padding: 1.2rem 1.5rem;
    background-color: #ffc107;        /* fond jaune-orangé vif */
    border-left: 5px solid #d32f2f;   /* filet rouge du site */
    border-radius: 6px;
    color: #1a1a1a;                   /* texte sombre, très lisible sur fond vif */
    text-align: center;               /* centre le texte sur plusieurs lignes */
    font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.9rem);
    line-height: 1.4;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.flagLettreInfos::before {
    content: "✉";
    font-size: 1.6em;
    line-height: 1;
}

/* --- 8. FOOTER --- */
footer {
    background-color: var(--cinema-dark); color: var(--cinema-cream);
    padding: 40px 0 20px; margin-top: 50px;
    border-top: 4px solid var(--cinema-gold); text-align: center; font-size: 0.9rem;
}
footer p { margin: 5px 0; font-size: 0.9rem; opacity: 0.85; }
footer .maintenance-text {
    font-size: 0.75rem; margin-top: 12px; opacity: 0.5; letter-spacing: 0.5px;
}
.labels-container {
    display: flex; justify-content: center; align-items: center;
    flex-wrap: wrap; gap: 25px; margin-bottom: 25px;
    filter: grayscale(30%) brightness(95%); transition: filter 0.3s ease;
}
.labels-container:hover { filter: none; }
.labels-container img {
    max-height: 45px; width: auto; object-fit: contain; border-radius: 4px;
}

/* ==========================================================================
   BLOCS HORAIRES
   ========================================================================== */
#container-horairefilm .blockhorairefilm img {
    height: 25px;
    width: 25px;
    position: relative;
    float: right;
    margin-left: 2px;
    box-shadow: 8px 8px 10px 0 rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.blockhorairefilm :hover {
    color: red;
    box-shadow: 8px 8px 10px 0 rgba(0, 0, 0, 0.5);
}

.blockhorairefilm-block :hover {
    color: white;
}

.blockhorairefilm-box {
    display: flex;
    flex-direction: row;
    z-index: 2;
    height: 150px;
    width: 260px;
    align-items: center;
    justify-content: center;
    border: 1px solid black;
    border-radius: 5px;
    color: black;
    font-weight: 100;
    text-align: center;
    font-size: 1.9rem;
    box-shadow: 8px 8px 10px 0 rgba(0, 0, 0, 0.5);
}

.blockhorairefilm {
    display: flex;
    flex-direction: row;
    z-index: 2;
    height: 70px;
    width: 130px;
    align-items: center;
    justify-content: center;
    border: 1px solid black;
    border-radius: 5px;
    color: black;
    font-weight: 100;
    text-align: center;
    font-size: 1.9rem;
    margin: 10px;
    box-shadow: 8px 8px 10px 0 rgba(0, 0, 0, 0.5);
}

.blockhorairefilmtroptard {
    display: flex;
    flex-direction: row;
    z-index: 2;
    height: 70px;
    width: 130px;
    align-items: center;
    justify-content: center;
    border: 1px solid black;
    border-radius: 5px;
    color: black;
    background-color: grey;
    font-weight: 100;
    text-align: center;
    font-size: 1.9rem;
    box-shadow: 8px 8px 10px 0 rgba(0, 0, 0, 0.5);
}

.blockhorairedate {
    display: flex;
    flex-direction: row;
    z-index: 2;
    height: 70px;
    width: 130px;
    align-items: center;
    justify-content: center;
    border: 1px solid black;
    border-radius: 5px;
    color: black;
    font-weight: 100;
    text-align: center;
    font-size: 1.9rem;
    box-shadow: 8px 8px 10px 0 rgba(0, 0, 0, 0.5);
}

#container-horairefilm img {
    float: left;
    z-index: 1;
    height: 50px;
    width: 120px;
}


/* ==========================================================================
   TITRES DE FILMS
   ========================================================================== */
#container-titrefilm-ad-pmr-vfstf-G {
    display: grid;
    grid-template-columns: 1fr;
    color: red;
    font-weight: 100;
    text-align: center;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    background-color: white;
    margin-top: 30px;
}

.imgVFSTF {
    width: 100px;
    height: 100px;
}

#container-titrefilm-ad-pmr-vfstf-B {
    display: grid;
    grid-template-columns: 1fr;
    color: red;
    font-weight: 100;
    text-align: center;
    align-items: center;
    justify-content: center;
    background-color: #ebe0d3;
    margin-top: 30px;
}

#container-horairefilm-ad-pmr-vfstf-G {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    color: black;
    font-weight: 100;
    text-align: center;
    font-size: 2rem;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-bottom: 1px solid black;
}

#container-horairefilm-ad-pmr-vfstf-B {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    color: black;
    font-weight: 100;
    text-align: center;
    font-size: 2rem;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
    background-color: #ebe0d3;
    border-bottom: 1px solid black;
}

.blockhorairefilm-ad-vfstf-pmr {
    display: flex;
    flex-direction: row;
    z-index: 2;
    height: 60px;
    width: 220px;
    align-items: center;
    justify-content: center;
    border: 1px solid black;
    border-radius: 5px;
    color: black;
    font-weight: 100;
    text-align: center;
    font-size: 1.9rem;
    background-color: white;
    box-shadow: 8px 8px 10px 0 rgba(0, 0, 0, 0.5);
}

.blockhorairefilm-block {
    display: flex;
    flex-direction: row;
    z-index: 2;
    padding: 5px;
    margin: 10px;
    height: 70px;
    width: 150px;
    align-items: center;
    justify-content: center;
    border: 1px solid black;
    border-radius: 5px;
    color: black;
    font-weight: bold;
    text-align: center;
    font-size: 1.9rem;
    background-color: #F5F5F5;
    box-shadow: 8px 8px 10px 0 rgba(0, 0, 0, 0.5);
}

.blockhorairefilm-block :hover {
    background-color: blue;
    color: white;
}

#container-horairefilm {
    display: grid;
    border: 4px solid white;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    color: red;
    font-weight: 100;
    text-align: center;
    font-size: 2rem;
    flex-grow: 1;
    align-items: center;
    justify-content: center;
}

#container-horairefilm1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    color: green;
    font-weight: 100;
    text-align: center;
    font-size: 2rem;
    flex-grow: 1;
    align-items: center;
    justify-content: left;
    background-color: #ebe0d3;
}

#container-horairefilm2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    color: red;
    font-weight: 100;
    text-align: center;
    font-size: 2rem;
    flex-grow: 1;
    align-items: center;
    justify-content: left;
    background-color: white;
}

.flagAccessibilites {
    display: block;
    width: 100%;
    text-align: center;
    color: white;
    margin: 1rem;
    border-radius: 10px;
    background-color: black;
    font-weight: normal;
    font-size: 2.5rem;
    padding: 0.5rem;
}

.flagAccessibilites a {
    color: white;
}


/* ==========================================================================
   ÉLÉMENTS STRUCTURELS ET CONTENEURS PRINCIPAUX
   ========================================================================== */
#container {
    position: relative;
    padding: 0 2rem;
    width: 100%;
}

#inside-container {
    max-width: 104rem;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

a {
    text-decoration: none;
    cursor: pointer;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a[href="accueil.html"] img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#container-iframe {
    display: grid;
    border-top: 30px solid white;
    grid-template-columns: 1fr;
    color: red;
    font-weight: bold;
    text-align: center;
    font-size: 4rem;
    min-height: 550px;
    background-color: #ebe0d3;
}


/* ==========================================================================
   BLOCS DE CONTENUS & FICHES FILMS (RESPONSIVE)
   ========================================================================== */
.titrefilmencours {
    color: black;
    text-align: left;
    font-size: 4rem;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .titrefilmencours { font-size: 7rem; }
}

.titrefilmencours2 {
    color: black;
    font-weight: normal;
    font-style: italic;
    text-align: center;
    font-size: 3rem;
    margin: 10px;
}

.textefilmencours {
    color: black;
    text-align: justify;
    font-size: clamp(1.6rem, 1.1rem + 1.2vw, 2.2rem);   /* 16px → 22px */
    line-height: 1.6;
    padding: 15px 0;
}

span.italiquegris {
    color: grey;
    font-style: italic;
    font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.3rem);   /* libellés légèrement plus grands */
}

.petit {
    color: black;
    font-size: 1.4rem;
    padding: 5px;
    font-weight: 300;
}


/* ==========================================================================
   ACCESSIBILITÉ ET BLOCS COMPOSANTS (RESPONSIVE FLEXBOX)
   ========================================================================== */
#container-accessibilites {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.8rem;
    color: black;
    padding: 15px;
    margin: 10px 0;
    text-align: center;
}

#container-accessibilites > div {
    padding: 15px;
    border: 2px solid lightgrey;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#container-accessibilites > div:hover {
    background-color: #ffe6e6;
    color: white;
}

@media (min-width: 768px) {
    #container-accessibilites {
        flex-direction: row;
        justify-content: space-between;
    }
    #container-accessibilites > div {
        flex: 1;
    }
}

.imageACCESSIBILITE {
    float: right;
    width: 2rem;
    height: 2rem;
}


/* ==========================================================================
   FOOTERS ET PARTENAIRES (RESPONSIVE AUTO-FILL)
   ========================================================================== */
#container-basdepage {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
}

.blockbasdepage {
    height: 100px;
    width: 120px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
}

#container-contacts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 1.5rem;
    color: black;
    padding: 20px;
    border: 2px solid lightgrey;
    margin: 15px 0;
    background-color: lightgrey;
    border-radius: 8px;
}

@media (min-width: 768px) {
    #container-contacts {
        flex-direction: row;
        justify-content: space-between;
    }
    #container-contacts > div {
        flex: 1;
    }
}


/* ==========================================================================
   SECTIONS PROCHAINEMENT & FILMS LIÉS
   ========================================================================== */
#container-prochainement2 {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    background: white;
    padding: 20px;
    margin: 20px 0;
    gap: 15px;
    border-radius: 8px;
}

.prochtitre2 {
    font-family: 'Poppins', sans-serif;
    color: black;
    font-weight: 700;
    text-align: left;
    font-size: 2.8rem;
}

.prochtexte2 img {
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: 0 auto 15px auto;
    display: block;
    border-radius: 6px;
}

.prochtexte2 {
    color: black;
    font-size: 1.6rem;
    text-align: justify;
    line-height: 1.5;
}

.espaceentrebloc {
    margin: 8px 0;
}

@media (min-width: 640px) {
    .prochtexte2 img {
        float: left;
        margin-right: 20px;
        margin-bottom: 10px;
    }
}


/* ==========================================================================
   LOADER / ENGRENAGES D'ATTENTE SÉANCE
   ========================================================================== */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

.gear {
    width: 100px;
    height: 100px;
    position: absolute;
}

#gear1 {
    left: 44%;
    transform: translate(-50%, -50%);
    animation: rotate-clockwise 4s linear infinite;
}

#gear2 {
    left: 58%;
    transform: translate(-50%, -50%) rotate(10deg);
    animation: rotate-counterclockwise 4s linear infinite;
}

.gear img {
    width: 100%;
    height: 100%;
    filter: brightness(0) saturate(100%) invert(44%) sepia(92%) saturate(3154%) hue-rotate(353deg) brightness(101%) contrast(101%);
}

@keyframes rotate-clockwise {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate-counterclockwise {
    from { transform: translate(-50%, -50%) rotate(10deg); }
    to   { transform: translate(-50%, -50%) rotate(-346deg); }
}


/* ==========================================================================
   CADRE NOIR AJUSTÉ AU TEXTE (WYSIWYG)
   ========================================================================== */
.custom-badge-box {
    display: inline-block !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    border-radius: 8px !important;
    padding: 8px 15px !important;
    margin: 10px auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
    font-family: Arial, sans-serif !important;
}

.custom-badge-box a,
.custom-badge-box a:visited,
.custom-badge-box a:hover,
.custom-badge-box a:active {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-weight: bold !important;
    font-size: 8rem;
}

.custom-badge-box p,
.custom-badge-box span {
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
}

.cadre-noir-strict {
    display: inline-block !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #000000 !important;
    border-radius: 8px !important;
    padding: 8px 15px !important;
    margin: 10px auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
    font-family: Arial, sans-serif !important;
}

.cadre-noir-strict a,
.cadre-noir-strict a:visited,
.cadre-noir-strict a:hover,
.cadre-noir-strict a:active {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-weight: bold !important;
    font-size: 8rem;
}

.cadre-noir-strict p,
.cadre-noir-strict span {
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
}


/* ==========================================================================
   BANDE ANNONCE (IFRAME VIDÉO)
   ========================================================================== */
.ba-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.ba-container::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.ba-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ba-iframe.ba-loaded {
    opacity: 1;
}

.ba-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    gap: 15px;
    transition: opacity 0.5s ease;
}

.ba-placeholder.ba-hidden {
    opacity: 0;
    pointer-events: none;
}

.ba-placeholder-text {
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.ba-placeholder-text::after {
    content: "";
    animation: ba-dots 1.5s steps(4, end) infinite;
}

@keyframes ba-dots {
    0%   { content: ""; }
    25%  { content: "."; }
    50%  { content: ".."; }
    75%  { content: "..."; }
    100% { content: ""; }
}

.ba-placeholder-icon {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ba-spin 1s linear infinite;
}

@keyframes ba-spin {
    to { transform: rotate(360deg); }
}


/* ==========================================================================
   LIGNE JOUR + HORAIRES
   ========================================================================== */
.jour-seance-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

.jour-seance-label {
    flex: 0 0 120px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    padding: 10px 5px;
    border-radius: 8px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jour-seance-label--G {
    background-color: #ffffff;
}

.jour-seance-label--B {
    background-color: #ebe0d3;
}

.jour-seance-row > div[id^="container-horairefilm"] {
    flex: 1;
    min-width: 0;
}

@media (min-width: 641px) and (max-width: 991px) {
    .jour-seance-label {
        flex: 0 0 100px;
        align-self: center;
        padding: 8px 5px;
        font-size: 1.6rem;
    }
}

@media (max-width: 640px) {
    .jour-seance-row {
        flex-direction: column;
        align-items: stretch;
    }
    .jour-seance-label {
        flex: none;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
        align-self: flex-start;
        padding: 6px 10px;
        font-size: 1.4rem;
        min-height: 0;
        height: auto;
    }

    #container-horairefilm-ad-pmr-vfstf-G,
    #container-horairefilm-ad-pmr-vfstf-B,
    #container-horairefilm {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 5px;
    }

    .blockhorairefilm {
        width: 100%;
        min-width: 0;
        height: 60px;
        margin: 5px;
        font-size: 1.5rem;
    }

    .blockhorairefilm .petit {
        font-size: 1.1rem;
        padding: 2px;
    }
}


/* ==========================================================================
   BARRE DE FILTRES D'ACCESSIBILITÉ
   ========================================================================== */
.barre-filtres {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background-color: #f0f0f0;
    border: 1px solid #000000;
    border-radius: 8px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.barre-filtres-label {
    font-size: 1.6rem;
    font-weight: bold;
    color: #333;
    margin-right: 5px;
}

.filtre-btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 1.5rem;
    color: #333;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.filtre-btn:hover {
    background-color: #ebe0d3;
    border-color: #999;
}

.filtre-btn.actif {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
    font-weight: bold;
}


/* ==========================================================================
   TITRES DE FILMS & HORAIRES (RESPONSIVE)
   ========================================================================== */
#container-titrefilm-ad-pmr-vfstf-G,
#container-titrefilm-ad-pmr-vfstf-B {
    font-size: 2.2rem;
    line-height: 1.3;
    padding: 10px;
    word-break: break-word;
}

@media (min-width: 600px) {
    #container-titrefilm-ad-pmr-vfstf-G,
    #container-titrefilm-ad-pmr-vfstf-B {
        font-size: 3.5rem;
    }
}

@media (min-width: 992px) {
    #container-titrefilm-ad-pmr-vfstf-G,
    #container-titrefilm-ad-pmr-vfstf-B {
        font-size: 5rem;
    }
}

@media (max-width: 600px) {
    .blockhorairefilm {
        font-size: 1.5rem;
    }
    .blockhorairefilm .petit {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   ICÔNES RÉSEAUX SOCIAUX
   ========================================================================== */
.cont_rs_club-ronds {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    padding: 12px 0;
}

.cont_rs_club-ronds .club-rond {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.cont_rs_club-ronds .club-rond img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.cont_rs_club-ronds .club-rond:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   RESPONSIVE GLOBAL
   ========================================================================== */
@media (max-width: 800px) {
    

    main {
        overflow-x: hidden;
    }

}

@media (max-width: 640px) {
    .cont_rs_club-ronds { gap: 12px; padding: 8px 0; }
    .cont_rs_club-ronds .club-rond { width: 38px; height: 38px; }
    .cont_rs_club-ronds .club-rond img { width: 22px; height: 22px; }
}