/* Variables globales */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --spacing-unit: 1rem;
  --container-width: 1200px;
}

/* Container global */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

/* Header */
.site-header {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

h1.entry-title {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 3.5rem;
  font-weight: bold;
  line-height: 1.2;
}

h1.entry-title {
  padding-top: 2rem !important;
}

/* Navigation */
.main-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

/* Grille des concerts */
/* .concerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-unit);
    padding: var(--spacing-unit) 0;
} */

/* Responsive */
@media (max-width: 768px) {
  :root {
    --spacing-unit: 0.8rem;
  }

  .container {
    padding: 0 var(--spacing-unit);
  }

  h1.entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
  }
}

/* Styles pour le dropdown de date */
.date-filter-content {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 200px;
}

.date-filter-content.active {
  display: block;
}

/* Assurer que le conteneur du filtre est en position relative */
.filter-group {
  position: relative;
}

/* Styles spécifiques pour mobile */
@media (max-width: 768px) {
  .date-filter-content {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    background: white;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
  }

  .date-filter-content.active {
    transform: translateY(0);
  }

  /* Overlay pour le fond sombre sur mobile */
  .date-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .date-filter-overlay.active {
    display: block;
  }
}

/* Grille des genres */
.genres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.genre-card {
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.genre-card:hover {
  transform: translateY(-5px);
}

.genre-image-wrapper {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 3px solid #2c3e50;
  position: relative;
}

.genre-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.genre-card:hover .genre-image {
  transform: scale(1.1);
}

.genre-title {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0.5rem 0;
  text-transform: uppercase;
}

.genre-link {
  background: #f8f9fa !important;
  color: #1a1a1a !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-weight: bold !important;
  font-size: 0.9rem !important;
  margin-top: auto !important;
  transition: all 0.3s ease !important;
}

.genre-link:hover {
  background: #e9ecef;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .genres-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .genre-image-wrapper {
    width: 120px;
    height: 120px;
  }

  .genre-title {
    font-size: 1.2rem;
  }

  .genre-link {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .genres-grid {
    grid-template-columns: 1fr;
  }
}

/* Styles du filtre de date */
.date-filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.date-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.date-option:hover {
  background: var(--light-gray);
}

.date-option input[type="radio"] {
  margin-right: 12px;
  accent-color: var(--primary-color);
}

.date-option span {
  font-size: 14px;
  color: var(--text-color);
}

.date-filter-separator {
  height: 1px;
  background: #eee;
  margin: 8px 0;
}

/* Style du bouton de filtre */

.date-filter-btn i {
  color: var(--primary-color);
  font-family: "FontAwesome";
}

/* Styles pour mobile */
@media (max-width: 768px) {
  .date-filter-options {
    padding: 16px;
  }

  .date-option {
    padding: 12px 16px;
  }

  .date-filter-separator {
    margin: 12px 0;
  }
}

/* Style des filtres */
.concerts-filters {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filters-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-group {
  width: 100%;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.filter-group-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  padding-bottom: 8px;
}

/* Style des selects et boutons de filtre */
.filter-select,
.date-filter-btn {
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-select {
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-color);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-select:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.filter-select:hover,
.date-filter-btn:hover {
  border-color: #8b5cf6;
  background-color: #f9f7ff;
}

/* Style des options de date */
.date-filter-content {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 300px; /* Hauteur maximale */
  overflow-y: auto; /* Permet le défilement vertical */
}

/* Style de la scrollbar pour les navigateurs Webkit (Chrome, Safari, etc.) */
.date-filter-content::-webkit-scrollbar {
  width: 8px;
}

.date-filter-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

.date-filter-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 8px;
}

.date-filter-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
  .date-filter-content {
    max-height: 60vh; /* Hauteur maximale sur mobile */
    overflow-y: auto;
  }
}

.date-filter-options {
  padding: 8px 0;
}

.date-option {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.date-option:hover {
  background-color: #f9f7ff;
}

.date-option input[type="radio"] {
  margin-right: 12px;
  accent-color: #8b5cf6;
  width: 16px;
  height: 16px;
}

.date-option span {
  font-size: 14px;
  color: #333;
}

.date-filter-separator {
  height: 1px;
  background: #e0e0e0;
  margin: 8px 0;
}

/* Style spécifique pour le statut */
.status-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-option {
  display: flex;
  align-items: center;
  padding: 8px;
  cursor: pointer;
}

.status-option input[type="radio"] {
  margin-right: 12px;
  accent-color: #8b5cf6;
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .date-filter-content {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 78%;
    margin: 12px;
    border-radius: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
  }

  .date-filter-content.active {
    transform: translateY(0);
  }
}

/* Layout avec sidebar */
.concerts-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  /* margin: 2rem auto; */
}


@media (max-width: 768px) {
  .concerts-container {
    grid-template-columns: 1fr !important;
  }
}

/* Style de la sidebar des filtres sur PC */
.concerts-filters {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filters-wrapper {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Masquer les éléments mobiles sur PC */
.mobile-filter-toggle,
.filters-mobile-header,
.filters-overlay {
  display: none;
}

/* Style des groupes de filtres */
.filter-group {
  min-width: 200px;
}

/* Styles pour mobile */
@media (max-width: 768px) {
  .mobile-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #fff;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }

  .mobile-filter-toggle:hover {
    background-color: #1a2b3c; /* Slightly darker shade */
    transform: translateY(-2px);
  }

  .mobile-filter-toggle i {
    font-family: "FontAwesome";
    color: #1a1a1a;
  }

  .concerts-filters {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 85%;
    max-width: 320px;
    background: white;
    z-index: 1000;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    height: auto;
  }

  .concerts-filters.active {
    transform: translateX(0);
  }

  .filters-wrapper {
    flex-direction: column;
    gap: 16px;
  }

  .filter-group {
    width: 100%;
  }

  .filters-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
  }

  .filters-mobile-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
  }

  .filters-close-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--text-color);
  }

  .filters-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .filters-overlay.active {
    display: block;
  }
}

.navigation.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.page-numbers {
  display: inline-block;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: #f8f9fa;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid #ddd;
}

.page-numbers.current {
  background-color: var(--secondary-color);
  color: white;
  font-weight: bold;
}

.next.page-numbers,
.prev.page-numbers {
  font-weight: bold;
  padding: 4px 28px;
}
