/* Activités page styles */
:root {
  --arts-color: #e94e77;
  --sports-color: #2da8d8;
  --sciences-color: #7cc576;
  --langues-color: #915c83;
  --musique-color: #f4b042;
}

/* Hero Banner */
.hero-banner {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background-image: url('../images/lefaon2.jpeg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-banner .hero-content {
  color: #fff;
  z-index: 2;
  max-width: 800px;
}

.hero-banner h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-banner .hero-tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero-btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Animation classes */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1.2s ease-in-out forwards;
}

.animate-fade-in:nth-child(1) {
  animation-delay: 0.2s;
}

.animate-fade-in:nth-child(2) {
  animation-delay: 0.5s;
}

.animate-fade-in:nth-child(3) {
  animation-delay: 0.8s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Introduction Section */
.intro-section {
  padding: 5rem 0;
  background-color: #fff;
}

.key-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-card {
  background-color: var(--primary-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  font-size: 3rem;
  color: var(--primary-yellow);
  margin-bottom: 1.5rem;
  display: block;
}

.benefit-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.benefit-card p {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.6;
}

/* Activities Section */
.activities-section {
  padding: 5rem 0;
  background-color: var(--primary-light);
}

.categories-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.tab-btn {
  background-color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
  background-color: var(--primary-yellow);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.6s ease-in-out;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.activity-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.activity-image {
  position: relative;
  height: 200px;
}

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

.activity-age {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary-yellow);
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  color: white;
  font-weight: 600;
  font-size: 0.8rem;
}

.activity-info {
  padding: 1.5rem;
}

.activity-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.activity-schedule {
  color: var(--text-dark);
  opacity: 0.8;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.activity-info p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.activity-instructor {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.instructor-image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.activity-instructor span {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Schedule Section */
.schedule-section {
  padding: 5rem 0;
  background-color: #fff;
}

.schedule-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 3rem 0 1.5rem;
}

.schedule-header {
  display: grid;
  grid-template-columns: 120px repeat(5, 1fr);
  background-color: var(--primary-yellow);
  color: white;
  font-weight: 600;
}

.schedule-day {
  padding: 1rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.schedule-time-column {
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.1);
  font-weight: 600;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.schedule-row {
  display: grid;
  grid-template-columns: 120px repeat(5, 1fr);
}

.schedule-row:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.schedule-cell {
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
}

.activity-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: white;
}

.activity-tag.arts {
  background-color: var(--arts-color);
}

.activity-tag.sports {
  background-color: var(--sports-color);
}

.activity-tag.sciences {
  background-color: var(--sciences-color);
}

.activity-tag.langues {
  background-color: var(--langues-color);
}

.activity-tag.musique {
  background-color: var(--musique-color);
}

.schedule-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.legend-color {
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.legend-item.arts .legend-color {
  background-color: var(--arts-color);
}

.legend-item.sports .legend-color {
  background-color: var(--sports-color);
}

.legend-item.sciences .legend-color {
  background-color: var(--sciences-color);
}

.legend-item.langues .legend-color {
  background-color: var(--langues-color);
}

.legend-item.musique .legend-color {
  background-color: var(--musique-color);
}

/* Testimonials Section */
.testimonials-section {
  padding: 5rem 0;
  background-color: var(--primary-light);
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 3rem auto;
}

.testimonial-card {
  display: none;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.testimonial-card.active {
  display: block;
  animation: fadeIn 0.6s ease-in-out;
}

.testimonial-content {
  padding: 2rem;
}

.testimonial-content i.fa-quote-left {
  display: block;
  font-size: 2rem;
  color: var(--primary-yellow);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
  display: block;
  font-size: 1rem;
}

.author-title {
  font-size: 0.85rem;
  opacity: 0.7;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  border: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

.slider-arrow:hover {
  background-color: var(--primary-yellow);
  color: white;
  transform: scale(1.1);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background-color: var(--primary-yellow);
  transform: scale(1.2);
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  background-color: #fff;
}

.faq-container {
  max-width: 800px;
  margin: 3rem auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background-color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question h3 {
  font-size: 1.1rem;
  margin: 0;
  transition: all 0.3s ease;
  flex: 1;
}

.faq-icon {
  margin-left: 1rem;
  transition: all 0.3s ease;
}

.faq-item.active .faq-question {
  background-color: var(--primary-yellow);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 1.25rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-banner h2 {
    font-size: 2.8rem;
  }

  .schedule-header,
  .schedule-row {
    grid-template-columns: 100px repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-banner {
    height: 50vh;
  }

  .hero-banner h2 {
    font-size: 2.2rem;
  }

  .hero-banner .hero-tagline {
    font-size: 1.2rem;
  }

  .hero-btn-group {
    flex-direction: column;
  }

  .categories-tabs {
    gap: 0.5rem;
  }

  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .schedule-container {
    overflow-x: auto;
  }

  .schedule-wrapper {
    min-width: 800px;
  }
}

@media (max-width: 576px) {
  .hero-banner h2 {
    font-size: 1.8rem;
  }

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

  .activity-card {
    max-width: 100%;
  }

  .faq-question h3 {
    font-size: 1rem;
  }
}
