/* Thème sombre pour le site cinéma */
html {
	font-family: "Roboto", sans-serif;
	height: 100%;
	min-height: 100%;
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	background-color: #000;
	font-size: 16px;
}

main {
  max-width: 960px;
  margin: auto;
  padding: 2rem;
}

header {
	display: block;
	text-align: center;
}

#banner {
  width: 100%;
  height: auto;
  max-width: 960px; /* ou la largeur réelle de l'image */
  display: block;
  margin: 0 auto;
}

h1 {
  font-size: 48px; 
  font-weight: bold;
  text-align: center;
  margin-top: 10px;   
  margin-bottom: 10px;  
}

section {
  margin-bottom: 3rem;
}

.note {
  text-align: center;
  font-size: 0.95rem;
  font-style: italic;
  color: #ccc;
  margin: 1rem 0 2rem;
}

/* Conteneur de cartes côte à côte */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

/* Carte de film */
.card {
  background-color: #111;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255,255,255,0.1);
  padding: 0.75rem;
  width: 165px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: #eee;
  border: 1px solid #333;
}

.card h3 {
  margin: 0;
  font-size: 1.125rem;
  color: #fff;
}

.poster {
  overflow: hidden;
  border-radius: 4px;
}

.poster img {
  width: 100%;
  border-radius: 4px;
  filter: blur(2px);
  transition: filter 0.3s ease;
}

.poster img.loaded {
  filter: none;
}

.date {
  font-size: 0.678rem;
  color: #ccc;
  margin-top: 0.375rem;
}

.trailer iframe {
  width: 100%;
  height: 315px;
  border: none;
  border-radius: 4px;
}

.card p {
  font-size: 1rem;
  color: #ddd;
}

#films-container h2 {
  width: 100%;
  text-align: center;
  font-size: 2rem;
  margin: 2rem 0 1rem;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .trailer iframe {
    height: 240px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 1rem;
  }

  .card {
    padding: 0.75rem;
  }

  .card h3 {
    font-size: 1.25rem;
  }

  .card p {
    font-size: 0.95rem;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  padding: 0;
  width: 80%;
  max-width: 800px;
  background-color: #000;
}

.modal-content iframe {
  width: 100%;
  height: 450px;
  border: none;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
}

