@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background-color: #fff8e7;
  color: #333;
}


header {
  text-align: center;
  padding: 50px 0;
}

header img {
  width: 100%;
  height: auto;
}

header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 20px 0 10px;
  color: #222;
  letter-spacing: -1px;
}

header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
  color: #444;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

main h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 20px 0;
  text-align :center;
  color:#444;
}

main p {
  font-size: 1.1rem;
  margin: 10px 0;
  line-height: 1.6;
}


/* Hero Section */

.hero-bg {
  background: linear-gradient(180deg, #ffe066 0%, #fff8e7 100%);
  width: 100%;
  padding: 0;
}

.hero {
  width: 100%;
  max-width: 100%;
  padding: 0px 16px 60px;
  margin: 0 auto;
  text-align: center;
}

.logo {
  width: 30%;
  margin-bottom: 0px;
}


.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin: -20px 0 24px;
  color: #222;
  letter-spacing: -1px;
}

.subtitle {
  font-size: 1.5rem;
  color: #444;
  margin-bottom: 24px;
}



/* HAMBURGER */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  z-index: 2000;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span {
  display: block;
  height: 3px;
  background: #444;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* Animation en croix */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* MENU */
.nav-menu {
  background: transparent;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.nav-menu.active {
  max-height: 300px; /* hauteur suffisante pour tout afficher */
  opacity: 1;
}

.nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu ul li {
  border-bottom: 1px solid #eee;
}

.nav-menu ul li a {
  display: block;
  padding: 15px;
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  transition: background 0.3s;
}

.nav-menu ul li a:hover {
  background: #f0f0f0;
}


/* ===== Layout ===== */
.events-page {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 16px;
}




/* ===== Sidebar Filters ===== */
.filters {
  flex: 0 0 250px;
}

.filters-toggle {
  display: none;
  width: 100%;
  padding: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  background: #ffd443;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.filters-content {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(255, 212, 67, 0.1);
}

.filters h3 {
  margin-top: 0;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group label {
  display: block;
  font-size: 1rem;
  margin: 4px 0;
  cursor: pointer;
}

.price-range {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

/* ===== Events Grid ===== */
.events-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.event-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 16px rgba(255, 212, 67, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(255, 212, 67, 0.15);
}

.event-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.event-info {
  padding: 16px;
}

.event-info h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.event-info p {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .events-page {
    flex-direction: column;
  }

  .filters {
    flex: none;
  }

  .filters-toggle {
    display: block;
    margin-bottom: 10px;
  }

  .filters-content {
    display: none;
  }

  .filters-content.open {
    display: block;
  }
}


/* Footer */

footer {
  width: 100%;
  text-align: center;
  padding: 32px 0 24px 0;
  color: #bfa100;
  font-size: 1rem;
  background: none;
  margin-top: 32px;
  box-sizing: border-box;
}
