/* ====================
    STYLESHEET - Global
    =================== */

@font-face {
    font-family: 'Broadway LT';
    src: url('/polices/broadway/BroadwayLT.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
}


h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.1rem;
    font-family: "Broadway LT", sans-serif;
	color:var(--rouge-vif);
}

h2 {
    text-align: center;
    color: var(--noir);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

h3{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
	color:var(--bleu-pale);
	font-size:0.9rem;
	text-align : center;
	margin : auto;
	width: 600px;
	
}

p {
    text-align: center;
    margin-bottom: 1rem;
    color: #555;
}

.texte-ou ul {
    text-align : left;
	max-width: 800px;           
    margin: 0;             
    padding: 0;           
    list-style-position: inside; 
    color: var(--bleu-pale);
    font-size: 1.1rem;
    font-weight: 700;
}

.texte-ou li {
    margin-bottom: 1.2em;       
    padding-left: 1.5em;        
}

/* Variables pour la charte graphique */
:root {
    --rouge-bordeau: #8F0902;
    --rouge-vif: #C20704;
    --jaune: #F4D895;
    --bleu-pale: #567B7B;
    --marine: #001328;
    --noir: #000000;
    --blanc: #ffffff;
}

/* Réinitialisation */
* {
    margin: 0;
    padding: 0;
}

body{
    font-family: Calibri, sans-serif; 
}

#page_accueil {
    background-color: var(--marine);
    overflow-x: hidden;
}

#page_accueil main {
    position: relative;
    margin-top: 100vh; 
    padding: 2rem;
}

/*==========================================================================================================*/
/* =========================== 
    STYLES POUR LA PAGE CONTACT 
    =========================== */

#contact{
    background-color: black;
}

#contact h1 {
    margin-top: 25px;
    font-size: 2rem;
    /*color: var(--rouge-bordeau);*/
}

.conteneur-contact{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.CINEMA_IMAGE {
    margin-top: 150px;
    width: 55%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--noir);
    display: block;
}

/* Réseaux sociaux */
.bloc-reseaux {
    width: 100%;
    text-align: center;
    margin-bottom: 150px;
}

.RESEAUX-SOCIAUX {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4.5rem;               /* plus raisonnable que 5rem */
}

.icon-reseau img {
    width: 64px;               /* un peu plus petit et cohérent */
    height: auto;
    transition: transform 0.25s ease;
}

.icon-reseau img:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px var(--blanc));
}


/*==========================================================================================================*/
/* ====================================================
	STYLES POUR LA PAGE PARTENAIRES & ARCHIVES & PROG
    =================================================== */

#page_archives,
#page_partenaires 
#page_programmation
{
    background-image: url(images-icons/bg-cine-nb.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}


.conteneur-partenaires,
.conteneur-archives {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem 2rem;
}

/* Style commun à tous les blocs */
.partenaire,
.archives,
.programmation {
    display: flex;
    align-items: center;
    background-color: #111111e8;
    border-radius: 13px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 1100px;
    padding-top: 3rem;
    margin-top: 50px;
}

/* Images */
.image-est,
.image-cinemateque,
.image-club,
.image2025,
.image2024{
    width: 50%;
    min-width: 100px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    flex-shrink: 0;
    margin: 2rem;
}

.image2025,
.image2024{
    width: 40%;
    margin-left: 4rem;
    margin-right: 4rem;
}

/* Image 2024*/
.image2024 {
	align-items: left;
    width: 36%;
}


.image-est{
    width: 40%;
}

.image-club {
    width: 30%;
}

/* Texte commun */
.texte-partenaire,
.texte2025,
.texte2024 {
    padding: 1rem;
    flex: 1;
}

.texte-partenaire h3,
.texte2025 h3,
.texte2024 h3  {
    text-align: center;
    margin: 1rem;
    font-family: Broadway, sans-serif;
    font-size: 2rem;
    color: var(--rouge-vif);
}

.texte-partenaire p,
.texte2025 p,
.texte2024 p {
    font-family: calibri, Helvetica, sans-serif;
    margin: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    padding: 0.5rem;
    text-align:left;
}

.infos_supplementaires {
    display: flex;
    flex-wrap: wrap;              /* permet retour à la ligne */
    gap: 1.2rem;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.infos_supplementaires a {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    background-color: var(--rouge-vif);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.25s ease;
    text-align: center;
    min-width: 140px;
}

.infos_supplementaires a:hover {
    background-color: var(--rouge-bordeau);
    transform: translateY(-2px);
}

#fin_partenaire{
    margin-bottom: 100px;
}


/*==========================================================================================================*/
/* ===================================
	STYLES POUR LA PAGE PROGRAMMATION
    ================================= */

/*#page_programmation {
    background-color: #001328;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}*/

.conteneur-programmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 2rem;
}

.image-films1,
.image-films2 {
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    object-fit: cover;           
    margin: 2rem;
    width: auto;     
    align-items: unset;          
}

#img_vertical {
    width: 100%;
    max-width: 280px;            
    height: auto;
}

#img_paysage {
    width: 100%;
    max-width: 420px;            
    height: auto;
}

/* Textes */
.texte-soirée {
	align-items: center;
    padding: 1rem;
    flex: 1;
}

.texte-soirée h1 {
    text-align: center;
    margin: 1rem;
    font-size: 2.5rem;
    color: var(--rouge-bordeau);
}

.texte-soirée p {
    font-family: calibri, Helvetica, sans-serif;
    margin: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    padding: 0.5rem;
    text-align:center;
}

/* Textes 1 */
.texte-programmation1 {
	align-items: left;
    padding: 1rem;
    flex: 1;
}

.texte-programmation1 h3 {
    text-align: left;
    margin: 1rem;
    font-size: 2rem;
    color: var(--rouge-vif);
}

.texte-programmation1 p {
    font-family: calibri, Helvetica, sans-serif;
    margin: 1rem;
    font-size: 1rem;
    line-height: 1.4;
    color: #ccc;
    padding: 0.5rem;
    text-align: center;
}

/* Textes 2 */
.texte-programmation2 {
    align-items: center;
    padding: 1rem;
    flex: 1;
}

.texte-programmation2 h3 {
    text-align: center;
    margin: 1rem;
    font-size: 2rem;
    color: var(--rouge-bordeau);
}

.texte-programmation2 p {
    font-family: calibri, Helvetica, sans-serif;
    margin: 1rem;
    font-size: 1rem;
    line-height: 1.4;
    color: #ccc;
    padding: 0.5rem;
    text-align:center;
}

/*==========================================================================================================*/
/* ==========================
   STYLE POUR LA PAGE ACCUEIL
   ========================== */

/*#page_accueil h2{
    text-decoration: underline;
}*/

/* Bugfix pour que le footer soit par dessus les images qui défilent */
#page_accueil main {
    position: relative;
    margin-top: 0;
    padding-top: 6rem; 
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Image défilentes sur la page accueil*/
.wrapper-images {
    display: flex;
    flex-direction: column;
    height: 150vh;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: 50%;
    opacity: 0.9; /*change l'opacité des images valeur d'origine 0.6*/
    transform: translate3d(-50%, -50%, 0) rotate(22.5deg);
    z-index: -1;
    margin-top : 0rem; /* pour compenser la hauteur de 150vh et centrer verticalement */
}

.images-line {
    animation: runner 20s linear infinite;
    display: flex;
    transform: translateX(25%);
}

.images-line .line {
    --tile-margin: 3vw;
    background-position: 50% 50%;
    background-size: cover;
    border-radius: 50%;
    flex: none;
    height: 30vh;
    margin: 3vw;
    width: 30vh;
    position: relative;
}

.images-line .line::after {
    content: "";
    background: inherit;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    top: 3vh;
    position: absolute;
    background-size: cover;
    z-index: -1;
    filter: blur(25px) opacity(0.8);
}

.images-line .line.large {
    border-radius: 20vh;
    width: 80vh;
}

.logo-ca-cinema{
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: auto;
    z-index: 1;
}

/* From Uiverse.io by boryanakrasteva */ 
.btn {
  width: 30px;
  height: 50px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  outline: 2px solid var(--rouge-vif);
  box-shadow: 0px 0px 10px var(--blanc);
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-weight: bolder;
  font-size: 1rem;
}

.scroll {
  width: 5px;
  height: 10px;
  border-radius: 10px;
  background-color: var(--rouge-vif);
  box-shadow: 0px 0px 10px var(--blanc);
  animation: scroll_4013 2s linear infinite;
  transform: translateY(40%);
}

.btn:after {
  content: 'scroll';
  position: absolute;
  top: 140%;
  color: whitesmoke;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.texte_accueil {
    display: flex;
    flex-direction: column;
    align-items: center;   
    gap: 1rem;
    padding: 4rem 1.5rem;
    text-align: center;
    background-color: #000000c1;
    border-radius: 30px;
    margin-top: 35rem;
}

/* Titres 
.texte_accueil h2 {
    color: var(--rouge-vif);
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 1px;
}*/

/* Paragraphes */
.texte_accueil p {
    max-width: 900px;      /* limite largeur pour meilleure lisibilité */
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--blanc);
}

/* Boutons lien */
.texte_accueil a,
#contact h1 {
    display: inline-block;
    margin-top: -1rem;
    margin-bottom: 3rem;
    padding: 0.6rem 1.4rem;
    background-color: var(--rouge-vif);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.25s ease;
}

#contact h1 {
    margin-top: 2rem;
}

#contact h2 {
    margin-top: -2rem;
    color: var(--blanc);
}

.texte_accueil a:hover {
    background-color: var(--rouge-bordeau);
    transform: translateY(-2px);
}

/*==========================================================================================================*/
/* ===================================
	STYLES POUR LA PAGE PROGRAMMATION
    ================================= */

#page_programmation {
    background-color: #001328;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: white;
    font-family: calibri, Helvetica, sans-serif;
}

/* CONTAINER GLOBAL */
.conteneur-programmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 4rem 2rem;
}

/* CARD PROGRAMMATION */
.programmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #111111e8;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 1100px;
}

.conteneur-programmation h1 {
    color: var(--bleu-pale);
}

.conteneur-programmation h2 {
    color: var(--rouge-bordeau);
    font-size: 1.3rem;
    margin-bottom: 0rem;
}

.conteneur-programmation:first-of-type .programmation {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
}

.conteneur-programmation:first-of-type h1 {
    font-size: 1.9rem;
}

.conteneur-programmation:first-of-type h2 {
    font-size: 1rem;
}

/* FILMS LAYOUT */
.texte-programmation1,
.texte-programmation2 {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 2rem;

    width: 100%;
    max-width: 1100px;
    margin: 3rem auto; /* ← IMPORTANT */

    background-color: #111111e8;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    padding: 3rem 2rem;
    box-sizing: border-box;
    text-align: center;
}

/* Alternance */
.texte-programmation2 {
    flex-direction: row-reverse;
}



/* TEXTES FILMS */
.texte-programmation1 h2,
.texte-programmation2 h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--rouge-vif);
    line-height: 1.5;
}

.texte-programmation1 p,
.texte-programmation2 p {
    color: #ccc;
    line-height: 1.6;
    max-width: 600px;
    font-size: 1.1rem;
}

/* LIENS */
.programmation a {
    color: var(--rouge-bordeau);
    text-decoration: none;
    font-weight: bold;
}

.programmation a:hover {
    text-decoration: underline;
}


/*==========================================================================================================*/
/* ============================= 
    STYLE POUR LA PAGE GENERIQUE 
 =============================== */

#page_presentation {
    background-color: black;
}

.page-generique {
    position: relative;
    height: 100vh;
    overflow: hidden;
    color: white;
}

.credits-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
}

/* Image en fond */
.page-generique::before {
    content: "";
    position: absolute;
    inset: 0;

    background: url("../images-icons/fisheye.jpg") center/100% no-repeat;

    filter: grayscale(90%) brightness(0.6) contrast(1.2) blur(4px); 
    transform: scale(1.05);
    
    z-index: 0;
}

.credits {
    position: absolute;
    width: 100%;
    bottom: -100%; /* démarre hors écran */
    text-align: center;
    animation: scrollCredits 400s infinite;
}


.page-generique .credits h1{
    color: var(--rouge-vif); 
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.page-generique .credits h2{
    color: var(--rouge-bordeau); 
    font-size: 1.8rem;
    margin: 2rem;
}

.page-generique .credits p {
    color: white; 
    margin-bottom: 1rem;
}

/*==========================================================================================================*/
/* ========================
    STYLE HEADER NAVIGATION
    ======================= */

header {
    background-color: var(--noir);
    height: 60px;
    padding-top: 20px;
    width: 100%;
    position: fixed;
    z-index: 100;
}

/* Styles pour le menu de navigation */
#menu {
    background: var(--noir);
    height: 40px;
    padding-right: 18px;
    border-radius: 0px;
    font-weight: bold;
}

#menu ul,
#menu li {
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

#menu ul {
    width: 100%;
    text-align: right;
}

#menu li {
    display: inline-block;
    position: relative;
}

#menu a {
    display: block;
    line-height: 40px;
    padding: 0 14px;
    text-decoration: none;
    color: var(--blanc);
    font-size: 16px;
}

#menu a.dropdown-arrow:after {
    content: "\25BE";
    margin-left: 5px;
}

#menu li a:hover {
    color: var(--blanc);
    background: var(--noir);
}

#menu input {
    display: none;
    margin: 0;
    padding: 0;
    height: 40px;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

#menu label {
    display: none;
    line-height: 40px;
    text-align: center;
    position: absolute;
    left: 35px;
}

#menu label:before {
    font-size: 1.6em;
    color: var(--blanc);
    content: "\2261";
    margin-left: 20px;
}

#menu ul.sub-menus {
    height: auto;
    overflow: hidden;
    width: 120px; /*170px;*/
    background: #000000d2;
    position: absolute;
    z-index: 99;
    display: none;
}

#menu ul.sub-menus li {
    display: block;
    text-align: center;
    width: 100%;
}

#menu ul.sub-menus a {
    color: #298181;
    font-size: 16px;
    text-transform: capitalize;
}

#menu li:hover ul.sub-menus {
    display: block;
}

#menu ul.sub-menus a:hover {
    background: var(--blanc);
    background: #000000d2;
}

.logo-header {
    position: absolute;
    top: 50%;
    left: 2vw;
    transform: translateY(-50%);

    height: clamp(50px, 5vh, 50px);
    width: auto;

    z-index: 101;
}

/*==========================================================================================================*/
/* =====================
    STYLE POUR LE FOOTER
    ==================== */
footer {
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--noir);
    height: 6rem;
    position: relative;
    z-index: 10;
}

footer p {
    color: var(--blanc);
    padding-top: 2%;
    font-size: 1.1rem;
}

/*==========================================================================================================*/
/*  ======================================
    RESPONSIVE DESIGN & KEYFRAME ANIMATION
    ====================================== */

@keyframes scrollCredits {
    0% {
        transform: translateY(83%);
    }
    100% {
        transform: translateY(-150%);
    }
}

@keyframes runner {
    to {
        transform: translateX(-25%);
    }
}

@keyframes scroll_4013 {
  0% {
    transform: translateY(40%);
  }

  50% {
    transform: translateY(90%);
  }
}

@media (max-width: 1000px) {
    .partenaire {
        flex-direction: column !important;
        text-align: center;
    }

    .image-est,
    .image-cinemateque,
    .image-club {
        width: 70%;
        min-width: 180px;
        margin: 0 auto 1.2rem auto !important;
    }

    .texte-partenaire {
        padding: 0 1.2rem 1.2rem;
    }
}

@media screen and (max-width: 800px) {
    #menu {
        position: relative
    }

    #menu ul {
        background-color: #111111e8;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 3;
        height: auto;
        display: none;
        text-align: left;
    }

    #menu li a:hover {
        color: var(--blanc);
        background-color: #111111e8;
    }

    #menu ul.sub-menus {
        width: 100%;
        position: static;
    }

    #menu ul.sub-menus a {
        padding-left: 30px;
    }

    #menu li {
        display: block;
        float: none;
        width: auto;
    }

    #menu input,
    #menu label {
        position: absolute;
        top: 0;
        left: 0;
        display: block
    }

    #menu input {
        z-index: 4
    }

    #menu input:checked+label {
        color: #FFFFFF
    }

    #menu input:checked+label:before {
        content: "\00d7"
    }

    #menu input:checked~ul {
        display: block
    }
}

@media screen and (max-width: 880px) {

    /* Décale le logo pour éviter collision */
    .logo-header {
        position: absolute;
        width: 0%;
    }
}

@media (max-width: 600px) {
    .infos_supplementaires {
        flex-direction: column;
        align-items: center;
    }

    .infos_supplementaires a {
        width: 100%;
        max-width: 280px;
    }
}

@media screen and (max-width: 768px) {

    /* Container global */
    .conteneur-programmation {
        padding: 2rem 1rem;
        gap: 2rem;
    }

    /* Premier bloc */
    .conteneur-programmation:first-of-type h1 {
        font-size: 1.5rem;
    }

    .conteneur-programmation:first-of-type h2 {
        font-size: 0.9rem;
    }

    .conteneur-programmation:first-of-type .programmation {
        padding: 1.5rem;
    }

    /* Texte soirée */
    .texte-soirée {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .texte-soirée h3 {
        font-size: 1.5rem;
    }

    .texte-soirée p {
        font-size: 1rem;
        max-width: 95%;
    }

    /* Layout films */
    .texte-programmation1,
    .texte-programmation2 {
        flex-direction: column !important;
        align-items: center;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    /* Alternance supprimée sur mobile */
    .texte-programmation2 {
        flex-direction: column !important;
    }

    /* Images films */
    .image-films1,
    .image-films2 {
        width: 100%;
        max-width: 400px;
        height: auto;
        border-radius: 15px;
    }

    /* Textes films */
    .texte-programmation1 h2,
    .texte-programmation2 h2 {
        font-size: 1.3rem;
        text-align: center;
    }

    .texte-programmation1 p,
    .texte-programmation2 p {
        font-size: 1rem;
        text-align: center;
        max-width: 90%;
    }

    /* Cards programmation */
    .programmation {
        width: 95%;
        padding: 1.5rem;
    }
}
