/*
Author: Silas
Page: Activités/Marchés
*/

.hero {
  position: relative;
  width: 100%;
  height: 60vh;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 10%;
  z-index: 2;
  text-align: center;
  color: #ebd8b7;
  transform: translateY(-50%);
}

.hero-overlay .title {
  font-size: 48px;
  font-weight: bold;
  text-decoration: underline;
  margin-bottom: 10px;
}

.hero-overlay .subtitle {
  font-size: 22px;
}

.content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.intro-section {
  text-align: center;
  margin: 60px 0;
}

.intro-text h2 {
  font-size: 36px;
  color: #574002;
  margin-bottom: 20px;
}

.intro-text p {
  font-size: 20px;
  color: #8d7c5e;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.markets-section {
  margin: 80px 0;
}

.markets-section h2 {
  font-size: 36px;
  color: #574002;
  text-align: center;
  margin-bottom: 50px;
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.market-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.market-card:hover {
  transform: translateY(-5px);
}

.market-day {
  position: absolute;
  top: -10px;
  right: 20px;
  background-color: #6b5c35;
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 0 0 10px 10px;
}

.market-card h3 {
  font-size: 24px;
  color: #574002;
  margin: 20px 0 15px;
}

.market-time {
  font-size: 18px;
  color: #6b5c35;
  font-weight: bold;
  margin-bottom: 10px;
}

.market-location {
  font-size: 16px;
  color: #8d7c5e;
  margin-bottom: 10px;
}

.market-frequency {
  font-size: 14px;
  color: #6b5c35;
  font-style: italic;
  margin-bottom: 15px;
}

.market-description {
  font-size: 15px;
  color: #8d7c5e;
  line-height: 1.6;
}

.events-section {
  margin: 80px 0;
}

.events-section h2 {
  font-size: 36px;
  color: #574002;
  text-align: center;
  margin-bottom: 50px;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.event-card {
  display: flex;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateX(5px);
}

.event-date {
  background-color: #6b5c35;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.event-date .month {
  font-size: 16px;
  text-transform: uppercase;
  font-weight: bold;
}

.event-date .day {
  font-size: 36px;
  font-weight: bold;
  margin-top: 5px;
}

.event-details {
  padding: 20px 30px;
  flex: 1;
}

.event-details h3 {
  font-size: 22px;
  color: #574002;
  margin-bottom: 10px;
}

.event-location {
  font-size: 16px;
  color: #6b5c35;
  font-weight: bold;
  margin-bottom: 10px;
}

.event-description {
  font-size: 15px;
  color: #8d7c5e;
  line-height: 1.6;
}

.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 80px 0;
}

.info-card {
  background-color: #6b5c35;
  color: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.info-card p {
  font-size: 16px;
  line-height: 1.6;
}

.cta-section {
  background-color: #ffffff;
  padding: 60px 20px;
  border-radius: 10px;
  text-align: center;
  margin: 80px 0 40px;
}

.cta-content h2 {
  font-size: 36px;
  color: #574002;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 18px;
  color: #8d7c5e;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  text-decoration: none;
  padding: 15px 40px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #6b5c35;
  color: rgb(255, 239, 216);
}

.btn-primary:hover {
  background-color: #574002;
  color: rgb(255, 255, 255);
}

.btn-secondary {
  background-color: transparent;
  color: #6b5c35;
  border: 2px solid #6b5c35;
}

.btn-secondary:hover {
  background-color: #6b5c35;
  color: rgb(255, 239, 216);
}

/* Responsive Design */
@media (max-width: 900px) {
  .markets-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .event-card {
    flex-direction: column;
  }

  .event-date {
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
    padding: 15px 20px;
    min-width: auto;
  }

  .event-date .day {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .hero {
    height: 40vh;
  }

  .hero-overlay {
    left: 5%;
  }

  .hero-overlay .title {
    font-size: 32px;
  }

  .hero-overlay .subtitle {
    font-size: 16px;
  }

  .intro-text h2 {
    font-size: 28px;
  }

  .intro-text p {
    font-size: 16px;
  }

  .markets-section h2,
  .events-section h2,
  .cta-content h2 {
    font-size: 28px;
  }

  .markets-grid {
    grid-template-columns: 1fr;
  }

  .market-card {
    padding: 25px 20px;
  }

  .info-section {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
}
@media (max-width: 400px) {
  .btn-primary, .btn-secondary {
    width: 100%;
    max-width: 120px;
  }
}