/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.activite-container {
  margin-top: 80px;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}





.activite-categories {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.category-section {
  margin-bottom: 6rem;
  
}

.category-section h2 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: none;
  display: inline-block;
  position: relative;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.category-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, #007B5A 0%, #007B5A 60%, transparent 100%);
  border-radius: 3px;
}

.category-section h2::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50%;
  height: 2px;
  background: rgba(0, 123, 90, 0.2);
  border-radius: 2px;
}

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

.activity-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
  
}

.activity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 123, 90, 0.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.activity-card:hover::before {
  opacity: 1;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 123, 90, 0.15);
  border-color: rgba(0, 123, 90, 0.1);
}

.activity-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: linear-gradient(135deg, #e8e8e8, #f5f5f5);
  transition: transform 0.6s ease;
}

.activity-card:hover img {
  transform: scale(1.03);
}

.activity-info {
  padding: 1.75rem;
  position: relative;
  z-index: 2;
}

.activity-info h3 {
  font-size: 1.4rem;
  color: #1a1a1a;
  margin-bottom: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.activity-card:hover .activity-info h3 {
  color: #007B5A;
}

.activity-info .location {
  color: #007B5A;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(0, 123, 90, 0.08), rgba(0, 123, 90, 0.12));
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.activity-info .categorie {
  color: #5a6c7d;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.875rem;
  display: inline-block;
  background: #f0f2f4;
  padding: 0.35rem 0.875rem;
  border-radius: 6px;
}

.activity-info .description {
  color: #4a4a4a;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e8e8e8;
  flex-wrap: wrap;
  gap: 0.875rem;
  position: relative;
}

.activity-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #007B5A;
  transition: width 0.5s ease;
}

.activity-card:hover .activity-details::before {
  width: 100%;
}

.activity-details span {
  font-size: 0.9rem;
  color: #5a6c7d;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.875rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.activity-card:hover .activity-details span {
  background: #e8f5f1;
  transform: translateY(-2px);
}

.activity-details .duration {
  flex: 1;
  min-width: 140px;
  font-size: 0.875rem;
}

.activity-details .rating {
  color: #ffa500;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(255, 165, 0, 0.08), rgba(255, 165, 0, 0.12));
}

.activity-details .price {
  color: #007B5A !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, rgba(0, 123, 90, 0.08), rgba(0, 123, 90, 0.15)) !important;
  white-space: nowrap;
}

.btn-info {
  background: #007B5A;
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-info:hover {
  background: #005f45;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 90, 0.3);
}

/* Section de recherche et filtres */
.activite-search-section {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  padding: 3.5rem 0;
  margin-bottom: 3rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.main-search-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  
}

.main-search-bar input {
  flex: 1;
  padding: 1.25rem 2rem;
  border: 2px solid #e5e7e9;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  font-weight: 400;
}

.main-search-bar input:focus {
  border-color: #007B5A;
  box-shadow: 0 4px 16px rgba(0, 123, 90, 0.12);
  transform: translateY(-2px);
}

.main-search-bar input::placeholder {
  color: #8395a7;
  font-weight: 400;
}

.btn-search-activite {
  padding: 1.25rem 3rem;
  background: linear-gradient(135deg, #007B5A 0%, #005f45 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 123, 90, 0.25);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn-search-activite:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 123, 90, 0.35);
  background: linear-gradient(135deg, #005f45 0%, #004a36 100%);
}

.btn-search-activite:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(0, 123, 90, 0.3);
}

.filters-container {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 123, 90, 0.08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  align-items: end;
 
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.filter-item label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-item select {
  padding: 1rem 1.25rem;
  border: 2px solid #e5e7e9;
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  background: #f8f9fa;
  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 12 12'%3E%3Cpath fill='%23007B5A' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
  font-weight: 500;
  color: #2c3e50;
}

.filter-item select:hover,
.filter-item select:focus {
  border-color: #007B5A;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 123, 90, 0.1);
}

.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-apply-filters,
.btn-reset-filters {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn-apply-filters {
  background: linear-gradient(135deg, #007B5A 0%, #005f45 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 123, 90, 0.25);
}

.btn-apply-filters:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 123, 90, 0.35);
  background: linear-gradient(135deg, #005f45 0%, #004a36 100%);
}

.btn-apply-filters:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 123, 90, 0.25);
}

.btn-reset-filters {
  background: #f0f2f4;
  color: #5a6c7d;
  font-weight: 600;
}

.btn-reset-filters:hover {
  background: #e5e7e9;
  transform: translateY(-2px);
  color: #2c3e50;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-reset-filters:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .activities-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
  }
}

@media (max-width: 992px) {
 

  .category-section h2 {
    font-size: 2.2rem;
  }

  .activities-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .filters-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    padding: 2rem;
  }
}

@media (max-width: 768px) {
 
  .category-section h2 {
    font-size: 1.875rem;
  }

  .main-search-bar {
    flex-direction: column;
  }

  .btn-search-activite {
    width: 100%;
    padding: 1rem 2rem;
  }

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

  .filters-container {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .filter-actions {
    grid-column: 1;
  }

  .activite-search-section {
    padding: 2.5rem 0;
  }

  .search-wrapper {
    padding: 0 1.5rem;
  }

  .activite-categories {
    padding: 0 1.5rem 3rem;
  }
}

@media (max-width: 480px) {
 

  .category-section h2 {
    font-size: 1.625rem;
  }

  .activity-info h3 {
    font-size: 1.25rem;
  }

  .activity-card img {
    height: 180px;
  }

  .activity-info {
    padding: 1.5rem;
  }
}

/* Améliorations pour l'accessibilité */
.btn-search-activite:focus,
.btn-apply-filters:focus,
.btn-reset-filters:focus,
.btn-info:focus {
  outline: 3px solid rgba(0, 123, 90, 0.3);
  outline-offset: 2px;
}

.main-search-bar input:focus,
.filter-item select:focus {
  outline: 2px solid rgba(0, 123, 90, 0.3);
  outline-offset: 2px;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Amélioration du contraste pour la lisibilité */
.activity-info .description {
  color: #3a3a3a;
  font-weight: 400;
}

/* État de chargement */
.activity-card.loading {
  pointer-events: none;
  opacity: 0.6;
}

/* Messages d'état */
.activity-card p[style*="text-align: center"] {
  color: #5a6c7d;
  font-size: 1rem;
  font-weight: 500;
  padding: 3rem 2rem;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #e5e7e9;
}





/* Responsive Design */
@media (max-width: 1024px) {

  .activities-container {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .activite-container {
    margin-top: 60px;
  }


  .main-search-section {
    padding: 1.5rem;
  }

  .main-search-bar {
    flex-direction: column;
  }

  .main-search-bar input {
    width: 100%;
  }

  .btn-search-activite {
    width: 100%;
    border-radius: 8px;
  }

  .activity-filters {
    padding: 1.5rem;
  }

  .filters-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .filters-actions {
    flex-direction: column;
  }

  .btn-apply-filters,
  .btn-reset-filters {
    width: 100%;
  }

  .activities-container {
    padding: 1rem;
  }

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

  .activity-card {
    margin: 0;
  }

  .activity-card img {
    height: 200px;
  }
}

@media (max-width: 480px) {

  .main-search-section {
    padding: 1rem;
  }

  .activity-filters {
    padding: 1rem;
  }

  .filter-item label {
    font-size: 0.9rem;
  }

  .filter-item select {
    font-size: 0.9rem;
    padding: 0.8rem;
  }

  .activity-card {
    margin: 0;
  }

  .activity-card img {
    height: 180px;
  }

  .activity-info {
    padding: 1.2rem;
  }

  .activity-info h3 {
    font-size: 1.1rem;
  }

  .activity-info .description {
    font-size: 0.9rem;
  }

  .btn-info {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}
