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

@font-face {
    font-family: 'Roboto';
    src: url("../need/css/fonts/Roboto-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;
}

.blockaffiche img:not(.badge-overlay) {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ---------- Carte au survol ---------- */
.movie-card-overlay {
    position: absolute;
    top: 45%;              /* la carte commence à 45% de la hauteur... */
    left: 0;
    right: 0;
    bottom: 0;             /* ...et s'étend jusqu'au bas de l'affiche */
    background: rgba(15, 17, 21, .92);
    color: #e8eaf0;
    border-radius: 0 0 14px 14px;   /* arrondis seulement en bas (coins de l'affiche) */
    padding: 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);      /* léger glissement depuis le bas */
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 5;
    pointer-events: none;
}

/* Le survol ne s'active que sur les appareils à pointeur (souris) */
@media (hover: hover) and (pointer: fine) {
    .blockaffiche:hover .movie-card-overlay,
    .pellicule-card:hover .movie-card-overlay {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);    /* remonte à sa position finale (bottom:0) */
    }
}

.mc-title {
    font-size: 1.4rem;
    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:not(.badge-overlay) {
    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-premiere-semaine {
    background-color: #f1c40f !important;
    color: #000 !important;
    font-weight: bold;
    /*bottom: 10px !important; /* décolle du bas, comme "Dernier jour!" */
}


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

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

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


.ruban-avant-premiere {
    background: #d32f2f;
	animation: pulse-dernier 1.5s ease-in-out infinite;
}

/* ---------- 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-family: "Poppins", sans-serif;
    font-weight: 700;
    margin-top: 20px;
    font-size: clamp(1.8rem, 1.2rem + 2vw, 4.5rem);
    line-height: 1.15;
    word-break: break-word;
}

.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;
    flex-direction: row;            /* jour à gauche, séances à droite, PARTOUT */
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    margin-bottom: 12px;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    border-radius: 8px;
}

/* ALTERNANCE des couleurs de fond des lignes de jours (gris clair) */
.jour-seance-row:nth-child(odd)  { background-color: #ffffff; }
.jour-seance-row:nth-child(even) { background-color: #f2f2f2; }

.jour-seance-label {
    flex: 0 0 110px;                /* ne rétrécit jamais */
    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: stretch;
    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 1 auto;                 /* colonne de droite = tout l'espace restant */
    min-width: 0;
}

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

/* MOBILE : on garde DEUX COLONNES (jamais de séances sous la date) */
@media (max-width: 640px) {
    .jour-seance-row {
        flex-direction: row;        /* ← clé : reste en ligne sur mobile */
        align-items: flex-start;
        gap: 8px;
        padding: 8px;
    }
    .jour-seance-label {
        flex: 0 0 70px;             /* compact, jamais pleine largeur */
        font-size: 1.3rem;
        padding: 6px 4px;
        align-self: flex-start;
    }
    #container-horairefilm-ad-pmr-vfstf-G,
    #container-horairefilm-ad-pmr-vfstf-B {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 5px;
    }
    .blockhorairefilm {
        width: 100%;
        min-width: 0;
        height: 56px;
        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; }
}

/* ==========================================================================
   FICHE 1 FILM — 2 colonnes : date à gauche, horaires à droite
   ========================================================================== */

.wrapper-fiche-horaires {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 1.5rem 0;
}

/* Ligne d'un jour : date | horaires */
.wrapper-fiche-horaires .ligne-jour-fiche {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    color: black;
    font-size: 1.8rem;
}

/* Alternance des couleurs de fond (gris soutenu) */
.wrapper-fiche-horaires .ligne-jour-fiche:nth-child(odd)  { background-color: #ffffff; }
.wrapper-fiche-horaires .ligne-jour-fiche:nth-child(even) { background-color: #e6e6e6; }

/* Sur les lignes paires, les blocs horaires prennent le même gris */
.wrapper-fiche-horaires .ligne-jour-fiche:nth-child(even) .blockhorairefilm {
    background-color: #e6e6e6;
}

/* Colonne gauche : la date, ne rétrécit jamais */
.ligne-jour-fiche .blockhorairedate {
    flex: 0 0 110px;
    width: 110px;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    line-height: 1.3;
    color: black;
    border: 1px solid #000;
    border-radius: 5px;
}

/* Colonne droite : les horaires, prennent tout l'espace restant */
.ligne-jour-fiche .horaires-fiche {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

/* Bloc horaire scopé — écrase width:100% / margin:10px du planning */
.ligne-jour-fiche .blockhorairefilm {
    flex: 0 0 auto;
    width: auto;                 /* neutralise width:100% global */
    min-width: 100px;
    max-width: 160px;
    height: auto;
    min-height: 70px;
    margin: 0;                   /* neutralise margin:10px global */
    padding: 5px 8px;
    overflow: hidden;
    color: black;
    border: 1px solid #000;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 4px 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.ligne-jour-fiche .blockhorairefilm a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

/* Icônes accessibilité : neutralise float + taille imposée du planning */
.ligne-jour-fiche .blockhorairefilm .imageACCESSIBILITE,
.ligne-jour-fiche .blockhorairefilm img {
    float: none;
    display: inline-block;
    width: 2rem !important;
    height: 2rem !important;
    margin: 2px 1px 0;
    vertical-align: middle;
}

/* MOBILE : blocs horaires compacts, largeur fixe, jamais pleine largeur */
@media (max-width: 640px) {
    .wrapper-fiche-horaires .ligne-jour-fiche {
        flex-direction: row;
        align-items: flex-start;
        gap: 6px;
        padding: 8px;
    }
    .ligne-jour-fiche .blockhorairedate {
        flex: 0 0 64px;
        width: 64px;
        font-size: 1.2rem;
    }
    .ligne-jour-fiche .horaires-fiche {
        flex: 1 1 auto;
        min-width: 0;
        gap: 6px;
    }
    /* Blocs compacts : largeur fixe, pas d'étirement */
    .ligne-jour-fiche .blockhorairefilm {
        flex: 0 0 auto;          /* ← clé : pas de flex-grow, ne s'étire plus */
        width: 90px;             /* largeur fixe compacte */
        min-width: 0;
        max-width: 90px;
        min-height: 56px;
        margin: 0;
        padding: 4px 5px;
        font-size: 1.4rem;
    }
    .ligne-jour-fiche .blockhorairefilm .petit {
        font-size: 1rem;
        padding: 1px;
    }
    .ligne-jour-fiche .icones-access {
        gap: 3px;
    }
    .ligne-jour-fiche .icones-access .imageACCESSIBILITE,
    .ligne-jour-fiche .icones-access img {
        width: 1.6rem !important;
        height: 1.6rem !important;
    }
}
/* ==========================================================================
   PASTILLE (BADGE) SUR AFFICHE
   ========================================================================== */
.badge-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 74px;
    height: 74px;
    object-fit: contain;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
    border-radius: 0;          /* neutralise le border-radius des .affiche-crop img */
}

/* Neutralise width:100% de .blockaffiche img sur la pastille */
.blockaffiche .badge-overlay {
    width: 74px;
    height: 74px;
}

/* Empêche le grayscale au survol sur la pastille */
.blockaffiche:hover .badge-overlay {
    -webkit-filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}

/* Pastille un peu plus grande sur grand écran */
@media (min-width: 1200px) {
    .badge-overlay {
        width: 86px;
        height: 86px;
    }
}

/* Pastille compacte sur mobile */
@media (max-width: 640px) {
    .badge-overlay {
        width: 52px;
        height: 52px;
        top: 5px;
        right: 5px;
    }
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-logos img {
    height: 60px;
    width: auto;
    opacity: 0.75;
    transition: opacity 0.3s;
}

.footer-logos img:hover {
    opacity: 1;
}

@media (max-width: 600px) {
    .footer-logos img {
        height: 30px;
    }
}

.ruban-seance-unique {
    background-color: #2980b9 !important;
    color: #fff !important;
	
}

.ruban-dernier-jour {
    background-color: #fff !important;
    color: #000 !important;
    font-weight: bold;
    border: 2px solid #c0392b;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.5);
    padding: 4px 10px;
    animation: pulse-dernier 1.5s ease-in-out infinite;
	/*bottom: 20px !important; /* décolle le ruban du bas */
}

@keyframes pulse-dernier {
    0%, 100% { box-shadow: 0 2px 8px rgba(192, 57, 43, 0.5); }
    50%      { box-shadow: 0 2px 16px rgba(192, 57, 43, 0.9); }
}

.autres-evenements {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #ffffff;
    border-left: 5px solid #d32f2f;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.autres-evenements-titre {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.autres-evenements-liste {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.autres-evenements-liste a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid #dddddd;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.autres-evenements-liste a:hover {
    background-color: #ebe0d3;
    border-color: #d32f2f;
    transform: translateX(4px);
}

.ae-titre {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a1a;
}

.ae-date {
    font-size: 1.3rem;
    color: #777;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .autres-evenements-liste a {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

/* GRILLE HORAIRES EN TABLEAU NEW*/

.planning-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.planning-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.planning-table th,
.planning-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: center;
    vertical-align: top;
}

.film-duree {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 400;
    color: #888;
    font-family: 'Roboto', sans-serif;
}

/* Colonne film (gauche, sticky) */
.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: 24px;
    font-family: 'Poppins', sans-serif;
}

.col-film a {
    color: #333;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}
.col-film a:hover {
    color: #c00;
}

/* En-têtes jours */
.col-jour {
    min-width: 150px;
    background: #f5f5f5;
    font-weight: normal;
}
.jour-nom {
    display: block;
    font-weight: 700;
    text-transform: capitalize;
}
.jour-date {
    display: block;
    font-size: 12px;
    color: #666;
}

/* Cellules séances */
.col-seance {
    padding: 6px 4px;
}
.seances-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}
.seance-link {
    position: relative;
    display: inline-block;
    min-width: 96px;
    padding: 8px 16px 10px;
    background: #fffdf6;
    color: #2b2b2b;
    text-decoration: none;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    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 {
    background: #ddd;
}
.seance-link strong {
    font-size: 14px;
}

.access-icons {
    display: block;
    margin-top: 2px;
}
.access-icons img {
    width: 14px;
    height: 14px;
    margin: 0 1px;
    vertical-align: middle;
}

.pas-de-seance {
    color: #ccc;
}

/* Lignes alternées */
.film-row:nth-child(even) .col-film {
    background: #fafafa;
}
.film-row:nth-child(even) td {
    background: #fafafa;
}
.film-row:hover td {
    background: #e8f4ff;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .planning-table { font-size: 12px; }
    .col-film {
        min-width: 110px;
        max-width: 130px;
        font-size: 15px;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
    .film-duree { font-size: 11px; }
    .col-jour { min-width: 80px; }
    .jour-nom { font-size: 11px; }
    .jour-date { font-size: 10px; }
    .seance-link {
        min-width: 64px;
        height: auto;
        min-height: 56px;
        padding: 5px 8px 7px;
        font-size: 11px;
    }
    .seance-link strong { font-size: 15px; letter-spacing: 0.5px; }
    .access-icons img { width: 13px; height: 13px; }
}

/* FIN TABLEAU GRILLE NEW*/

/* Séance déjà passée : barrée et grisée */
.seance-link.passee {
    text-decoration: line-through;
    color: #aaa;
    background: #f0f0f0;
    opacity: 0.7;
    pointer-events: none;   /* empêche le clic sur une séance finie */
}
.seance-link.passee strong {
    text-decoration: line-through;
    color: #999;
}
.seance-link.passee .salle-label {
    text-decoration: line-through;
}

/* Séance déjà passée : barrée et grisée */
.blockhorairefilm.passee {
    opacity: 0.55;
    background-color: #eee;
    box-shadow: none;
}
.blockhorairefilm.passee a {
    text-decoration: line-through;
    color: #999;
    pointer-events: none;   /* empêche le clic sur une séance finie */
}
.blockhorairefilm.passee .petit {
    text-decoration: line-through;
    color: #999;
}

/* Hauteur standard uniforme pour tous les blocs horaires */
.ligne-jour-fiche .horaires-fiche {
    align-items: stretch;
    gap: 6px;
}

.ligne-jour-fiche .blockhorairefilm {
    height: auto;
    min-height: 60px;
    display: flex;
}

.ligne-jour-fiche .blockhorairefilm a {
    flex: 1;
    justify-content: center;
    gap: 1px;
    padding: 4px 4px;
}

.ligne-jour-fiche .blockhorairefilm .icones-access {
    margin-top: 2px;
}

/* Réduit le padding interne de "Salle X" */
.ligne-jour-fiche .blockhorairefilm .petit {
    padding: 0;
    line-height: 1.2;
}

/* APRÈS — hauteur augmentée pour accueillir "Réserver" */
.seance-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 96px;
    box-sizing: border-box;
}

/* L'accessibilité reste collée en bas, alignée d'une séance à l'autre */
.seance-link .access-icons {
    margin-top: auto;
}

/* Le badge AP ne doit pas décaler la hauteur */
.seance-link .ap-tag {
    align-self: center;
}

@media print {
    .seance-link {
        height: auto !important;
        min-height: 0 !important;
    }
	.planning-table thead th.col-jour {
        background: #f8f8f8 !important;
        color: #000 !important;
        height: auto !important;
    }
    .planning-table thead th.col-jour .jour-nom { color: #000 !important; }
    .planning-table thead th.col-jour .jour-date { color: #666 !important; }
}

/* En-têtes de jours : fond noir, texte blanc, hauteur uniforme */
.planning-table thead th.col-jour {
    background: #1a1a1a;
    color: #fff;
    height: 64px;            /* hauteur identique pour tous les jours */
    vertical-align: middle;
}

.planning-table thead th.col-jour .jour-nom {
    color: #fff;
}

.planning-table thead th.col-jour .jour-date {
    color: rgba(255, 255, 255, 0.75);
}

/* Colonne jour : fond noir, texte blanc, hauteur uniforme */
.ligne-jour-fiche .blockhorairedate {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    height: 70px;            /* hauteur identique pour tous les jours */
    min-height: 70px;
}


@media (max-width: 640px) {
    .texte_evenement {
        font-size: 1.4rem;          /* 14px */
        /*line-height: 1.5;*/
    }
}

/*nouvelle page d'accueil */
/* ===== PELLICULES ===== */
.pellicule-section {
    margin: 2rem 0;
    padding: 0 1rem;
}

.pellicule-titre {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    border-left: 5px solid #e94560;
    background-color: #fad9d8;   /* petit fond rouge pale */
    color: #000;
    letter-spacing: 0.3px;
    border-radius: 6px;
	border-top: 2px solid #000;
	display: block;
}

.pellicule-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.pellicule-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.5);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.pellicule-arrow:hover {
    background: #e94560;
    border-color: #e94560;
    transform: scale(1.1);
}

.pellicule-arrow-left {
    margin-right: 8px;
}

.pellicule-arrow-right {
    margin-left: 8px;
}

.pellicule-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 4px;
    flex: 1;
}

.pellicule-track::-webkit-scrollbar {
    display: none;
}

.pellicule-card {
    flex: 0 0 auto;
    width: 200px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    
}

.pellicule-card:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .pellicule-arrow {
        width: 36px;
        height: 36px;
    }
    .pellicule-arrow svg {
        width: 20px;
        height: 20px;
    }
    .pellicule-card {
        width: 160px;
    }
}

@media (max-width: 640px) {
    .pellicule-titre {
        font-size: 1.8rem;
    }
}

/* ===== PELLICULES — MOBILE : flèches en overlay rouge par-dessus les posters ===== */
@media (max-width: 768px) {
    .pellicule-wrapper {
        position: relative;          /* référence pour le positionnement absolu des flèches */
    }

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

    /* Flèches en overlay, centrées verticalement, par-dessus les affiches */
    .pellicule-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        margin: 0;                   /* neutralise margin-left/right du desktop */
        background: #d32f2f;         /* rouge */
        border: none;
        color: #fff;
        opacity: 0.9;
        z-index: 3;                  /* au-dessus des posters et des badges */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    }

    .pellicule-arrow:hover,
    .pellicule-arrow:active {
        background: #b71c1c;         /* rouge plus foncé au tap */
        transform: translateY(-50%) scale(1.05);
    }

    .pellicule-arrow-left  { left: 6px; }
    .pellicule-arrow-right { right: 6px; }

    /* Affiches un peu plus grandes pour le glissement */
    .pellicule-card {
        width: 170px;
    }
}

/* ===== PELLICULES — MOBILE : grille sans défilement horizontal ===== */
@media (max-width: 768px) {
    .pellicule-track {
        flex-wrap: wrap;            /* les affiches reviennent à la ligne */
        overflow-x: visible;        /* plus de scroll horizontal */
        justify-content: center;
        gap: 12px;
    }

    /* Cartes en 2 colonnes */
    .pellicule-card {
        flex: 0 0 calc((100% - 12px) / 2);   /* 2 par ligne */
        width: auto;
    }

    /* Flèches devenues inutiles (plus de scroll) → masquées */
    .pellicule-arrow {
        display: none;
    }
}

/* Créneau masqué (mode simplifié temporaire) */
.creneau-masque {
    display: inline-block;
    font-size: 20px;
    color: #c00;
    line-height: 1;
}

/* Vidéo */
.bloc-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 1.5em 0; border-radius: 8px; }
.bloc-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-titre { position: absolute; top: 0; left: 0; right: 0; z-index: 2; margin: 0; padding: 0.5em 1em; background: rgba(0,0,0,0.6); color: #fff; font-size: 0.9em; }

/* Articles */
.bloc-articles { margin: 1.5em 0 2em; border-top: 1px solid #ddd; padding-top: 1em; }
.bloc-articles-titre { font-size: 1.1em; margin-bottom: 0.8em; }
.article-item { margin: 1em 0; padding-bottom: 1em; border-bottom: 1px solid #eee; }
.article-item:last-child { border-bottom: none; }
.article-titre {
    font-family: 'Poppins', sans-serif;
    color: black;
    font-weight: 700;
    text-align: left;
    font-size: 2.8rem;
    margin: 0 0 0.3em;
}
/* Métadonnées = comme span.italiquegris */
span.article-meta {
    color: grey;
    font-style: italic;
    font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.3rem);
}
.article-titre a { text-decoration: none; color: inherit; }
.article-meta { font-size: 0.85em; color: #777; font-style: italic; }
/* Corps article = comme .synopsis-texte (valeurs recopiées car scopées ailleurs) */
.article-texte {
    font-size: clamp(1.7rem, 1.3rem + 0.9vw, 2.2rem);
    line-height: 1.5;
    color: #1a1a1a;
    margin-top: 0.5em;
}
.horaires-centre {
    width: fit-content;     /* le conteneur = largeur réelle du contenu */
    margin: 0 auto 1.5em;   /* centré horizontalement */
}

.bloc-articles     { clear: both; }
.autres-evenements { clear: both; }



/* Pellicule 1 élargie */
.pellicule-large .pellicule-card {
    min-width: 280px;
    max-width: 280px;
}
.pellicule-large .affiche-crop {
    height: 420px;
}
.pellicule-large .mc-title {
    font-size: 1.5rem;
}

/* ===== PELLICULE LARGE — MOBILE ===== */
@media (max-width: 768px) {
    .pellicule-large .pellicule-card {
        flex: 0 0 calc(50% - 8px) !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
    }

    .pellicule-large .affiche-crop {
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 2 / 3;
    }

    .pellicule-large .carrousel-track img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        object-position: center top;
    }

    .pellicule-large .mc-title {
        font-size: 1.2rem;
    }
}


/* AFFICHAGE DU FILM DANS EVENEMENT */
.titre-evenement { text-align:center; margin-bottom:20px; }
.fiche-film-evenement { margin:30px 0; }
.fiche-film-titre { text-align:center; margin-bottom:18px; }

/* Conteneur : poster à gauche, textes à droite */
.fiche-film-contenu {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    justify-content: flex-start;
}

/* Affichette petite et fixe à gauche */
.fiche-film-poster {
    flex: 0 0 210px;          /* largeur fixe, ne s'étire pas */
    width: 210px;
}
.fiche-film-poster img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* Colonne de textes à droite */
.fiche-film-infos {
    flex: 1;                  /* prend tout l'espace restant */
    min-width: 0;
    max-width: 640px;
}
.fiche-film-meta { margin-bottom: 10px; }
.fiche-film-synopsis { margin-top: 14px; line-height: 1.5; }

/* Sur mobile : on repasse en colonne (poster au-dessus) */
@media (max-width: 600px) {
    .fiche-film-contenu { flex-direction: column; align-items: center; }
    .fiche-film-poster { flex: 0 0 auto; width: 160px; }
    .fiche-film-infos { max-width: 100%; }
}

.valeur-film {
    font-size: 24px;          /* taille des valeurs récupérées */
    color: #222;
    line-height: 1.5;
}
.fiche-film-synopsis .valeur-film {
    font-size: 24px;
    display: inline-block;
    margin-top: 6px;
}
.visuel-evenement {
    display: block;
    max-width: 100%;
    width: 600px;            /* ajustez selon la largeur voulue */
    height: auto;
    margin: 0 auto 24px;     /* centré + espace sous l'image */
    border-radius: 8px;
}

/* FIN AFFICHAGE DU FILM DANS EVENEMENT*/

/* css du ticket evenement */
.bloc-seance-unique {
    display: flex;
    justify-content: center;
    margin: 24px 0;
    filter: drop-shadow(0 0 10px rgba(211, 47, 47, 0.55));
}
.bloc-seance-unique:hover {
    filter: drop-shadow(0 0 16px rgba(211, 47, 47, 0.75));
}

.ticket-cinema {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 16px 28px;
    background: #fffdf6;
    color: #2b2b2b;
    text-decoration: none;
    transition: transform 0.12s ease;
    /* encoches latérales */
    -webkit-mask:
        radial-gradient(circle 9px at left  center, transparent 8.5px, #000 9px),
        radial-gradient(circle 9px at right center, transparent 8.5px, #000 9px);
    -webkit-mask-composite: source-in;
    mask:
        radial-gradient(circle 9px at left  center, transparent 8.5px, #000 9px),
        radial-gradient(circle 9px at right center, transparent 8.5px, #000 9px);
    mask-composite: intersect;
	transform: rotate(-2deg);
}
.ticket-cinema:hover {
    transform: rotate(-2deg) translateY(-3px);
}

/* Mention "Réserver" en rouge */
.ticket-reserver {
    margin-left: 6px;
    padding: 5px 12px;
    background: #b00000;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 20px;
    align-self: center;
    white-space: nowrap;
}

/* Bloc jour + date */
.ticket-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}
.ticket-jour {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.ticket-jdate {
    font-size: 20px;
    font-weight: 700;
    margin-top: 2px;
}

/* Séparateurs en pointillés */
.ticket-separateur {
    width: 1px;
    align-self: stretch;
    border-left: 1px dashed #c9b78f;
}

/* Heure en grand */
.ticket-heure {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #b00000;
}
.ticket-heure-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ticket-reserver {
    margin-left: 0;
    padding: 4px 12px;
    background: #b00000;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 20px;
    white-space: nowrap;
}

/* Salle */
.ticket-salle {
    font-size: 15px;
    color: #7a6f57;
    max-width: 150px;
    line-height: 1.2;
    text-align: center;
}

/* Icônes accessibilité */
.ticket-access {
    display: flex;
    gap: 4px;
    margin-left: 4px;
}
.ticket-access img {
    width: 22px;
    height: 22px;
    display: block;
}

/* Séance passée : ticket "tamponné" */
.ticket-cinema.passee {
    filter: grayscale(1) drop-shadow(0 0 6px rgba(0, 0, 0, 0.4));
    opacity: 0.55;
    pointer-events: none;
}

/* Responsive mobile */
@media (max-width: 520px) {
    .ticket-cinema { gap: 12px; padding: 12px 18px; }
    .ticket-heure  { font-size: 24px; }
    .ticket-jdate  { font-size: 17px; }
    .ticket-jour   { font-size: 11px; }
    .ticket-salle  { font-size: 13px; max-width: 90px; }
    .ticket-access img { width: 18px; height: 18px; }
	.ticket-reserver { font-size: 11px; padding: 4px 9px; }
}
/* Textes de la fiche film : plus petits sur mobile */
@media (max-width: 600px) {
    .fiche-film-infos .valeur-film {
        font-size: 14px;
    }
    .fiche-film-infos .italiquegris {
        font-size: 13px;
    }
    .fiche-film-synopsis .valeur-film {
        font-size: 14px;
    }
}

/* fin du ticket*/
/* début affichage de tous les films qui ont le meme badge*/
.badge-films {
    margin-top: 2.5em;
    padding: 1.5em;
    border-top: 2px solid #2b2b2b;
    background: #f5f5f5;          /* masque le rouge de main/content-wrapper */
    border-radius: 8px;
}
.badge-films-liste {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 760px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2em;
    background: transparent;      /* la grille elle-même reste neutre */
    border: none;
}
.badge-films > h2 {
    font-size: 3em;
    letter-spacing: 0.02em;
    margin: 0 0 1em 0;
    color: #1a1a1a;
    text-align: center;
}

.badge-films-liste li a {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 1.1em;
    transition: background .2s, border-color .2s;
}
.badge-films-liste li a:hover {
    background: #c00;
    color: #fff;
    border-color: #c00;
}

.badge-film-carrousel {
    position: relative;
    overflow: hidden;
}
.badge-film-track {
    display: flex;
    height: 100%;
    transition: transform .5s ease;
}
.badge-film-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-films-cadre {
    position: relative;
    z-index: 2;
    background: #f5f5f5 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px;
    padding: 1.4em;
    max-width: 800px;
    margin: 0 auto;
}
.badge-films-cadre::before,
.badge-films-cadre::after {
    content: none !important;     /* tue tout calque rouge en pseudo-élément */
}

/* Tablette : 3 par ligne */
@media (max-width: 900px) {
    .badge-films-liste {
        grid-template-columns: repeat(3, 1fr);
        max-width: 560px;
    }
}

/* Mobile : 2 par ligne */
@media (max-width: 600px) {
    .badge-films > h2 { font-size: 2em; }
    .badge-films-liste {
        grid-template-columns: repeat(2, 1fr);
        max-width: 360px;
        gap: 0.9em;
    }
    .badge-film-titre { font-size: 1em; }
}