/* ------------------------------
   GLOBAL
------------------------------ */

body {
  background-color: #0a0a0c;
  color: #e8e8ea;
  font-family: 'Inter', sans-serif;
  margin: 0;
  line-height: 1.6;
}

/* ------------------------------
   HEADER
------------------------------ */

header {
  background-color: #0f0f12;
  padding: 1.8rem 2rem;
  border-bottom: 1px solid #222;
  text-align: center;
}

.site-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  margin: 0;
  color: #ffcc00;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #8a8a92;
  margin: 0.5rem 0 0;
  font-weight: 400;
}

.about-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: #6a6a72;
  text-decoration: underline;
  text-decoration-color: #3a3a40;
}

.about-link:hover {
  color: #ffcc00;
  text-decoration-color: #ffcc00;
}

/* ------------------------------
   BANDEAU "SITE EN DÉVELOPPEMENT"
------------------------------ */

.dev-banner {
  background-color: #2a2410;
  border-bottom: 1px solid #4a3f1a;
  color: #e0c568;
  font-size: 0.85rem;
  text-align: center;
  padding: 0.7rem 1.5rem;
  line-height: 1.5;
}

/* ------------------------------
   PAGE À PROPOS
------------------------------ */

.about-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.about-block {
  margin-bottom: 2.2rem;
}

.about-block h2 {
  font-family: 'Montserrat', sans-serif;
  color: #ffcc00;
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

.about-block p {
  color: #c8c8ce;
  line-height: 1.7;
  font-size: 0.98rem;
}

.contact-form-wrapper {
  margin-top: 1.2rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #232327;
}

.contact-form-wrapper iframe {
  display: block;
  border: none;
}

.about-signature {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #232327;
  text-align: center;
}

.signature-logo {
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0.6rem;
}

.about-signature p {
  color: #6a6a72;
  font-size: 0.85rem;
  margin: 0;
}

/* ------------------------------
   LAYOUT GÉNÉRAL (sidebar + contenu)
------------------------------ */

.layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem;
}

.content {
  flex: 1;
  min-width: 0;
}

/* ------------------------------
   SIDEBAR
------------------------------ */

.sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: sticky;
  top: 2rem;
}

.add-event-btn {
  display: block;
  text-align: center;
  background-color: transparent;
  color: #ffcc00;
  border: 1px solid #ffcc0066;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.2s;
}

.add-event-btn:hover {
  background-color: #ffcc001a;
  border-color: #ffcc00;
}

.site-stats {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  background-color: #101013;
  border: 1px solid #202024;
  border-radius: 10px;
}

.stat-item {
  font-size: 0.82rem;
  color: #8a8a92;
}

.stat-item strong {
  color: #ffcc00;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.sidebar-cta {
  font-size: 0.82rem;
  color: #8a8a92;
  line-height: 1.5;
  margin: 0;
  padding-top: 0.4rem;
  border-top: 1px solid #202024;
}

.sidebar-cta a {
  color: #ffcc00;
  text-decoration: underline;
  text-decoration-color: #ffcc0066;
}

.sidebar-cta a:hover {
  text-decoration-color: #ffcc00;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-group label {
  font-size: 0.75rem;
  color: #8a8a92;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.filter-group select,
.filter-group input[type="text"] {
  background-color: #151518;
  color: #d8d8dc;
  border: 1px solid #2a2a2e;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.filter-group select:hover,
.filter-group input[type="text"]:hover {
  border-color: #ffcc00;
}

.filter-group input[type="text"]:focus {
  outline: none;
  border-color: #ffcc00;
  cursor: text;
}

.date-range-inputs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.date-range-inputs input {
  min-width: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.date-range-arrow {
  color: #5a5a62;
  font-size: 0.85rem;
  flex-shrink: 0;
}

@media (max-width: 800px) {
  .layout {
    flex-direction: column;
    padding: 1.2rem;
  }

  .sidebar {
    width: 100%;
    position: static;
  }
}

/* ------------------------------
   NAVIGATION DES JOURS
------------------------------ */

.days-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.day-btn {
  background-color: transparent;
  color: #b0b0b8;
  border: 1px solid #2a2a2e;
  padding: 0.6rem 1.3rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.2s;
}

.day-btn:hover {
  border-color: #ffcc00;
  color: #ffcc00;
}

.day-btn.active {
  background-color: #ffcc00;
  border-color: #ffcc00;
  color: #0a0a0c;
}

.day-btn--festivals:hover {
  border-color: #b388ff;
  color: #b388ff;
}

.day-btn--festivals.active {
  background-color: #b388ff;
  border-color: #b388ff;
  color: #0a0a0c;
}

/* ------------------------------
   CARTES FESTIVALS & TOURNOIS
------------------------------ */

.festival-card {
  border-color: #2a2440;
}

.festival-card:hover {
  border-color: #b388ff88;
}

.tag.Festival { border-color: #b388ff; color: #b388ff; }
.tag.Tournoi  { border-color: #ff9d4d; color: #ff9d4d; }

.festival-deadline {
  margin-top: 0.9rem;
  padding: 0.6rem 0.8rem;
  background-color: #2a1f10;
  border: 1px solid #4a3a1a;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #e0c568;
}

.festival-deadline strong {
  color: #ffcc00;
}

.festival-badge {
  font-size: 0.78rem;
  color: #b388ff;
  margin: -0.4rem 0 0.8rem;
}

.festival-badge strong {
  color: #cbaaff;
}

/* ------------------------------
   CONTENU PRINCIPAL
------------------------------ */

.event-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ------------------------------
   CARTES D'ÉVÉNEMENTS
------------------------------ */

.event-card {
  background-color: #151518;
  border-radius: 14px;
  width: 100%;
  max-width: 340px;
  border: 1px solid #232327;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.event-card:hover {
  border-color: #3a3a40;
  transform: translateY(-2px);
}

.event-card--hors-saison {
  background-color: #121214;
  border-color: #2a2a2e;
  opacity: 0.85;
}

.event-card--hors-saison:hover {
  opacity: 1;
}

.event-card-body {
  padding: 1.3rem 1.4rem 1.5rem;
}

.event-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-family: 'Montserrat', sans-serif;
  color: #f5f5f5;
  line-height: 1.3;
}

.event-description {
  font-size: 0.88rem;
  color: #a8a8b0;
  margin: -0.3rem 0 1rem;
  line-height: 1.5;
}

/* ------------------------------
   LOGO (bannière pleine largeur)
------------------------------ */

.event-logo-wrapper {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1c1c20;
  overflow: hidden;
}

.event-logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

/* ------------------------------
   BADGES
------------------------------ */

.badges {
  margin-bottom: 0.6rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-right: 6px;
  letter-spacing: 0.3px;
}

.badge-hors-saison {
  background-color: transparent;
  border: 1px solid #55555c;
  color: #9a9aa2;
}

/* ------------------------------
   MÉTADONNÉES
------------------------------ */

.meta-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #b0b0b8;
  margin-bottom: 0.55rem;
}

.meta-list .icon {
  flex-shrink: 0;
  width: 1.1rem;
  text-align: center;
  opacity: 0.8;
}

.meta-list a {
  color: #d8d8dc;
  text-decoration: underline;
  text-decoration-color: #444;
  text-underline-offset: 2px;
}

.meta-list a:hover {
  color: #ffcc00;
  text-decoration-color: #ffcc00;
}

.billet-requis {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: #9a9aa2;
}

.billet-requis strong {
  color: #d8d8dc;
}

.social-links {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #232327;
  font-size: 0.82rem;
  display: flex;
  gap: 0.9rem;
}

.social-links a {
  color: #9a9aa2;
  text-decoration: none;
  font-weight: 600;
}

.social-links a:hover {
  color: #ffcc00;
}

.update-link {
  margin-top: 0.7rem;
}

.update-link a {
  font-size: 0.75rem;
  color: #6a6a72;
  text-decoration: underline;
  text-decoration-color: #3a3a40;
}

.update-link a:hover {
  color: #ffcc00;
  text-decoration-color: #ffcc00;
}

/* ------------------------------
   TAGS (type / ville) — style contour
------------------------------ */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
  background-color: transparent;
}

.tag.ville {
  border-color: #3a3a40;
  color: #b0b0b8;
}

.tag.Spectacle { border-color: #00bcd4; color: #00bcd4; }
.tag.Match     { border-color: #ffcc00; color: #ffcc00; }
.tag.Audition  { border-color: #b388ff; color: #b388ff; }
.tag.Jam       { border-color: #ff6b6b; color: #ff6b6b; }

/* ------------------------------
   LIGHTBOX (image plein écran)
------------------------------ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2.2rem;
  color: #f5f5f5;
  cursor: pointer;
  line-height: 1;
  user-select: none;
}

.lightbox-close:hover {
  color: #ffcc00;
}
