/* Styles pour la section d'introduction du blog */
.blog-intro {
  background: linear-gradient(135deg, rgba(74, 110, 138, 0.08) 0%, rgba(217, 136, 106, 0.08) 100%);
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto 50px;
  text-align: center;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  border-top: 4px solid #4a6e8a;
}

.blog-intro::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
  opacity: 0.5;
  animation: rotate 30s linear infinite;
  z-index: 0;
}

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

.blog-intro h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  color: #1a365d;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.blog-intro p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #4a5568;
  max-width: 800px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 1;
}

/* Search Bar */
.blog-search {
  display: flex;
  max-width: 600px;
  margin: 30px auto 0;
  position: relative;
  z-index: 1;
}

.blog-search input {
  flex-grow: 1;
  padding: 16px 24px;
  padding-right: 50px;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  color: #2d3748;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  outline: none;
}

.blog-search input:focus {
  border-color: #4a6e8a;
  box-shadow: 0 0 0 3px rgba(74, 110, 138, 0.15);
}

.blog-search button {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #718096;
  padding: 8px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.blog-search button:hover {
  color: #4a6e8a;
}

/* Categories styling */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 40px auto;
  max-width: 1000px;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.category-item {
  display: inline-block;
  padding: 10px 20px;
  background-color: #edf2f7;
  color: #4a5568;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.category-item:hover {
  background-color: #e2e8f0;
  transform: translateY(-2px);
}

.category-item.active {
  background-color: #4a6e8a;
  color: white;
}

/* Specific category styles */
.category-item[data-category="évènements"].active {
  background-color: #5c6bc0;
}

.category-item[data-category="cours"].active {
  background-color: #26a69a;
}

.category-item[data-category="sonothérapie"].active {
  background-color: #9575cd;
}

.category-item[data-category="chant"].active {
  background-color: #ff9f1c;
}

.category-item[data-category="bien-être"].active {
  background-color: #66bb6a;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-intro {
    padding: 50px 24px;
    margin-bottom: 40px;
  }
  
  .blog-intro h2 {
    font-size: 2.2rem;
  }
  
  .blog-intro p {
    font-size: 1.1rem;
  }
  
  .blog-search input {
    padding: 14px 20px;
  }
  
  .category-item {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .blog-intro {
    padding: 40px 20px;
  }
  
  .blog-intro h2 {
    font-size: 2rem;
  }
  
  .blog-categories {
    gap: 8px;
    margin: 30px auto;
  }
  
  .category-item {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
}

/* Animation */
.blog-intro h2,
.blog-intro p,
.blog-search,
.blog-categories {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.blog-intro h2 {
  animation-delay: 0.2s;
}

.blog-intro p {
  animation-delay: 0.4s;
}

.blog-search {
  animation-delay: 0.6s;
}

.blog-categories {
  animation-delay: 0.8s;
}

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

/* Animation des articles */
.oxy-post {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.oxy-post.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation séquentielle pour les articles */
.oxy-post:nth-child(1) { transition-delay: 0.1s; }
.oxy-post:nth-child(2) { transition-delay: 0.2s; }
.oxy-post:nth-child(3) { transition-delay: 0.3s; }
.oxy-post:nth-child(4) { transition-delay: 0.4s; }
.oxy-post:nth-child(5) { transition-delay: 0.5s; }
.oxy-post:nth-child(6) { transition-delay: 0.6s; }
.oxy-post:nth-child(7) { transition-delay: 0.7s; }
.oxy-post:nth-child(8) { transition-delay: 0.8s; }
.oxy-post:nth-child(9) { transition-delay: 0.9s; }
.oxy-post:nth-child(10) { transition-delay: 1s; }

/* Post hover effect */
.oxy-post {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.oxy-post:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* Image hover zoom effect */
.oxy-post-image-fixed-ratio {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Square aspect ratio */
  overflow: hidden;
  transition: transform 0.5s ease;
}

.oxy-post-image-fixed-ratio img,
.oxy-post-image-fixed-ratio {
  transition: transform 0.8s ease;
}

.oxy-post-image-fixed-ratio[data-back] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.oxy-post:hover .oxy-post-image-fixed-ratio {
  transform: scale(1.01);
} 