/* Styles pour la page des spectacles */

/* Filtres */
.spectacles-filters {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: rgba(245, 245, 245, 0.5);
  border-radius: 5px;
}

.spectacles-filters h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.filter-select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.filter-button {
  padding: 0.5rem 1rem;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.filter-button:hover {
  background-color: #555;
}

/* Grille de spectacles */
.spectacles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.spectacle-card {
  border: 1px solid #eee;
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.spectacle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.spectacle-image {
  height: 180px;
  overflow: hidden;
}

.spectacle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.spectacle-card:hover .spectacle-image img {
  transform: scale(1.05);
}

.spectacle-info {
  padding: 1rem;
}

.spectacle-ville {
  font-weight: bold;
  color: #666;
  margin-bottom: 0.25rem;
}

.spectacle-date {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.spectacle-titre {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.spectacle-compagnie {
  color: #666;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.spectacle-soustitre {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.spectacle-age-duree {
  font-size: 0.8rem;
  color: #888;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: #666;
}

/* Modal */
.spectacle-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spectacle-modal-content {
  background-color: white;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 5px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.spectacle-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
}

.spectacle-modal-header h2 {
  margin: 0 0 0.5rem 0;
}

.spectacle-modal-header h3 {
  margin: 0 0 1rem 0;
  color: #666;
}

.spectacle-modal-meta {
  display: flex;
  gap: 1rem;
  color: #888;
  font-size: 0.9rem;
}

.spectacle-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.spectacle-modal-image {
  flex: 1;
  min-width: 300px;
}

.spectacle-modal-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.spectacle-modal-details {
  flex: 2;
  min-width: 300px;
}

.spectacle-modal-soustitre {
  font-weight: bold;
  margin-bottom: 1rem;
}

.spectacle-modal-description {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.spectacle-modal-age-duree {
  color: #888;
}

/* Responsive */
@media (max-width: 768px) {
  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .spectacles-grid {
    grid-template-columns: 1fr;
  }
  
  .spectacle-modal-body {
    flex-direction: column;
  }
}
