@font-face {
  font-family: 'Rif';
  src: url('../fonts/RifDisplay-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Cinematheque';
  src: url('../fonts/Cinematheque-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Manchette';
  src: url('../fonts/Manchette-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}


[dir="rtl"] {
  font-family: 'Manchette', serif;
}
.film-info h2[dir="rtl"],
.film-description p[dir="rtl"] {
  font-family: 'Manchette', serif;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background: white;
}

.logo-left img {
  position: absolute;
  top: 20px;
  left: 20px;
  height: 40px;
}

.logo-right img {
  position: absolute;
  top: 20px;
  right: 20px;
  height: 40px;
}

/* FOOTER */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 40px;
  border-top: 1px solid black;
  font-size: 1rem;
  line-height: 1.2;
}

.footer-left a {
  margin-right: 1rem;
  text-decoration: underline;
  color: black;
}

.footer-left a:last-child {
  margin-right: 0;
}

.footer-right {
  text-align: left;
  max-width: 1200px;
}

/* SITE COMPLET */
main {
  padding-top: 80px;
}

body {
  margin: 0;
  font-family: 'Cinematheque', sans-serif;
  background: white;
  color: black;
}

.coming-soon {
  text-align: center;
  padding: 2rem 1rem;
}

.coming-soon h1 {
  font-size: 5em;
  font-family: 'Rif', sans-serif;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.planning {
  max-width: 100vw;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.days-row {
  display: flex;
  border-bottom: 1px solid black;
  margin-bottom: 2rem;
  overflow-x: auto;
}

.day-cell {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  cursor: pointer;
  border-right: 1px solid black;
  transition: all 0.2s linear;
}

.day-cell.active {
  background: none;
  color: black;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid black;
  font-size: 1.2rem;
}

/* Structure principale du jour */
.film-row {
  display: none;
}

/* Films individuels */
.film-row-inner {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid black;
  padding: 1rem 0;
}

/* Affiche */
.film-poster {
  flex: 1 1 25%;
  padding-right: 1rem;
}

.film-poster img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Infos générales */
.film-info {
  flex: 1 1 25%;
}

.film-info h2 {
  font-size: 2rem;
  font-family: 'Rif', sans-serif;
  margin: 0 0 0.5rem 0;
}

/* Métadonnées (durée, séances...) */
.film-meta {
  flex: 1 1 15%;
  padding-right: 1rem;
}

.film-meta h2 {
  font-size: 2rem;
  font-family: 'Rif', sans-serif;
  margin-bottom: 0;
  line-height: 1;
}

/* Description */
.film-description {
  flex: 1 1 25%;
  font-size: 1rem;
  padding-right: 1rem;
}

/* Structure globale des blocs */
.film-row-inner > div {
  border-right: 1px solid black;
  padding: 0 1rem;
}

.film-row-inner > div:first-child {
  border-right: none;
}

.film-row-inner > div:last-child {
  border-right: none;
}

.film-info p,
.film-meta p {
  margin: 0 0 0.25rem 0;
  line-height: 1;
}

.film-info h2,
.film-meta h2 {
  margin-top: 10px;
  line-height: 1;
}

/* Aucun film ce jour */
.no-screenings {
  padding: 2rem;
  font-size: 1.2rem;
  text-align: center;
  color: black;
}

.film-row:has(.no-screenings) {
  min-height: 400px; /* ajuste à ta convenance */
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  /* HEADER */
  .logo-left img,
  .logo-right img {
    height: 24px;
    top: 10px;
  }

  .site-header {
    height: 60px;
  }

  main {
    padding-top: 60px;
  }

  /* TITRE COMING SOON */
  .coming-soon h1 {
    font-size: 2.5em;
  }

  /* DAYS SCROLL FIX - en une ligne, sans wrap */
  .days-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-bottom: 1px solid black;
    margin-bottom: 2rem;
  }

  .day-cell {
    flex: 0 0 auto;
    min-width: 100px;
    text-align: center;
    font-size: 1rem;
    padding: 0.5rem;
    border-right: 1px solid black;
  }

  /* FILM LAYOUT */
  .film-row-inner {
    flex-direction: column;
    padding: 1rem 0;
  }

  .film-row-inner > div {
    border-right: none;
    padding: 1rem 0;
  }

  .film-poster,
  .film-info,
  .film-meta,
  .film-description {
    flex: 1 1 100%;
    padding-right: 0;
  }

.film-description {
  display: none;
}


  .film-poster img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
  }

  .film-info h2,
  .film-meta h2 {
    font-size: 2rem;
  }

  .film-description {
    font-size: 1.2rem;
  }

  /* FOOTER */
  .site-footer {
    flex-direction: column;
    padding: 1.5rem 20px;
    font-size: 0.875rem;
  }

  .footer-left {
    margin-bottom: 1rem;
  }

  .footer-right {
    text-align: left;
  }
}
