.titre {
  text-align: center;
}

body {
  background-image: url(https://tse4.mm.bing.net/th/id/OIP.-HND43d_JAR-Jr0_lF5P_wHaE8?r=0&rs=1&pid=ImgDetMain&o=7&rm=3);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

h1 {
  font-size: 64px;
  color: #FF4D4D;
}

h2 {
  color: red;
  background-color: rgba(0,0,0,0.7);
  padding: 10px;
}

p {
  background-color: rgba(0,0,0,0.7);
  color: white;
}

.search-bar {
  background: rgba(128,128,128,0.18);
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* New grid layout for search form */
.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  align-items: end;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 12px auto;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-weight: 700;
  color: #ff4d4d;
  margin-bottom: 6px;
}

.field input[type="text"], .field input[type="date"], .field select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background-color: rgba(30,30,30,0.95);
  color: #fff;
  outline: none;
}

.field input::placeholder {
  color: rgba(255,255,255,0.5);
}

.search-actions {
  display: block;
  grid-column: 1 / -1;
  justify-self: stretch;
  margin-top: 6px;
}

.search-button {
  background: linear-gradient(135deg,#ff4d4d,#960018);
  color: #fff;
  border-radius: 8px;
  padding: 12px 18px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.search-button:hover { filter: brightness(0.95); }
.search-button { width: 100%; }

@media (max-width: 720px) {
  .search-grid { grid-template-columns: 1fr; }
  .search-actions { justify-content: center; }
}

/* center main content with ~200px empty space on each side on wide screens */
main {
  margin: 0 200px;
}

@media (max-width: 1100px) {
  main { margin: 0 40px; }
}

@media (max-width: 520px) {
  main { margin: 0 12px; }
}

/* Intro banner full-bleed behind the text while main remains centered */
.intro-banner {
  background-color: rgba(0,0,0,0.7);
  color: #ff4d4d;
  display: block;
  text-align: center;
  margin: 12px -200px 18px -200px;
  padding: 14px 200px;
  border-radius: 6px;
}

@media (max-width: 1100px) {
  .intro-banner { margin: 12px -40px 18px -40px; padding: 14px 40px; }
}

@media (max-width: 520px) {
  .intro-banner { margin: 12px -12px 18px -12px; padding: 12px 12px; border-radius: 4px; }
}

/* Upcoming banner full-bleed styling (matches intro style) */
.upcoming-banner {
  background-color: rgba(0,0,0,0.7);
  color: #ff4d4d;
  display: block;
  text-align: center;
  margin: 20px -200px 30px -200px;
  padding: 16px 200px;
  border-radius: 6px;
}

@media (max-width: 1100px) {
  .upcoming-banner { margin: 20px -40px 30px -40px; padding: 16px 40px; }
}

@media (max-width: 520px) {
  .upcoming-banner { margin: 14px -12px 18px -12px; padding: 12px 12px; border-radius: 4px; }
}



.evenements-container {
    display: flex; /* Active le Flexbox */
    flex-wrap: wrap; /* Permet aux cartes de passer à la ligne */
    gap: 30px; /* Espace entre les cartes (Horizontal et Vertical) */
    justify-content: center; /* Centre les cartes sur l'axe horizontal */
    max-width: 1200px; /* Limite la largeur du conteneur pour le centrer */
    margin: 0 auto; /* Centre le conteneur lui-même dans la page */
}

/* 2. Styles et Dimensionnement des Cartes */
.evenement-card {
    background-color: #2c2c2c;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    
    /* Dimensionnement Flexbox pour ~300px et empêcher l'étirement */
    flex-basis: 300px; /* Largeur de base de la carte */
    flex-grow: 0; /* Empêche la carte de s'étirer */
    flex-shrink: 1; /* Permet à la carte de rétrécir si l'espace manque */
    
    transition: transform 0.3s ease;
}

.evenement-card:hover {
    transform: translateY(-5px); /* Petit effet de survol */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
}

/* Styles des éléments internes de la carte */
.card-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 15px;
}



.event-details {
    font-size: 0.9em;
    color: #cccccc;
    margin: 5px 0;
}

.buy-button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background-color: #960018;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.buy-button:hover {
    background-color: #ff4d4d;
}

/* ticket button styles for upcoming concerts */
.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.ticket-button {
  flex: 1 1 auto;
  background: linear-gradient(135deg,#2b7cff,#1a5bd6);
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.ticket-button.disabled {
  opacity: 0.6;
  cursor: default;
  filter: grayscale(30%);
}

.details-button {
  background: #444;
  color: #fff;
}

.details-button:hover { filter: brightness(0.95); }

.titre-principal {
   background-color: rgba(0,0,0,0.7);
}

.search-info-banner {
  text-align: center;
  color: #00ffff;
  margin: 0 auto 20px auto;
  padding: 15px;
  background: rgba(0,255,255,0.1);
  border-radius: 8px;
  max-width: 1200px;
}

.results-section {
  width: 100%;
  margin: 0 0 28px 0;
}

.results-section-title {
  margin: 0 0 18px 0;
  padding: 12px 18px;
  text-align: center;
  color: #ff4d4d;
  background: rgba(0,0,0,0.75);
  border-left: 4px solid #ff4d4d;
  border-radius: 8px;
}

.distance-line {
  color: #ffd166;
  font-weight: 700;
}

