/* Style personnalisé pour le blog - Sur La bonne longueur d'onde (Design Contemporain Élégant) */

:root {
  --primary-color: #4a6e8a; /* Bleu plus profond et sophistiqué */
  --secondary-color: #d9886a; /* Orange terracotta plus élégant */
  --accent-color: #355d7d; /* Bleu accent plus subtil */
  --bg-color: #f9f9f9; /* Fond légèrement plus clair */
  --text-color: #2d3748; /* Texte plus foncé pour un meilleur contraste */
  --heading-color: #1a365d; /* Bleu foncé pour les titres */
  --link-color: #4a6e8a;
  --link-hover-color: #d9886a;
  --card-bg: #ffffff;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --spacing-unit: 1.2rem;
  --border-radius: 14px; /* Coins plus arrondis */
  --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.08);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --font-primary: 'Open Sans', sans-serif;
  --font-secondary: 'Cormorant Garamond', serif;
}

/* Style général */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* En-tête du blog */
#section-2-58 {
  background-color: var(--primary-color);
  background-image: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  padding: 5rem 0;
  margin-bottom: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#section-2-58::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/2022/07/logo-slb-transparent-2-1024x369-1.png');
  background-position: center;
  background-size: cover;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

#headline-5-58 {
  color: white;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 800;
  font-size: 3.5rem;
  margin: 0;
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

#headline-5-58:after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 24px auto 0;
  border-radius: 2px;
}

/* Styles généraux pour la zone de blog */
.ct-section-inner-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Intro du blog */
.blog-intro {
  background-color: #f0f6fa;
  padding: 50px;
  border-radius: var(--border-radius);
  margin-bottom: 50px;
  text-align: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  box-shadow: var(--card-shadow);
  border-top: 4px solid var(--primary-color);
}

.blog-intro h2 {
  color: var(--heading-color);
  margin-bottom: 24px;
  font-size: 2.4rem;
  font-family: var(--font-secondary);
  font-weight: 600;
}

.blog-intro p {
  color: #5c728a;
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

/* Blog search */
.blog-search {
  position: relative;
  max-width: 600px;
  margin: 0 auto 40px;
}

.blog-search input {
  width: 100%;
  padding: 16px 24px;
  padding-right: 50px;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.blog-search input:focus {
  outline: none;
  border-color: var(--primary-color);
  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;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.blog-search button:hover {
  color: var(--primary-color);
}

/* Blog categories */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
}

.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: var(--primary-color);
  color: white;
}

/* Styles pour catégories spécifiques */
.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: #f06292;
}

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

/* Style pour la grille d'articles */
.oxy-posts {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .oxy-posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .oxy-posts {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Style pour les cartes d'articles */
.oxy-post {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.oxy-post:hover {
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-5px);
}

.oxy-post-image {
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
}

.oxy-post-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Square aspect ratio */
  overflow: hidden;
}

.oxy-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.oxy-post:hover .oxy-post-image img {
  transform: scale(1.05);
}

.oxy-post-content-wrap {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.oxy-post-title {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.4rem;
  color: var(--heading-color);
  line-height: 1.3;
  font-family: var(--font-secondary);
}

.oxy-post-title:hover {
  color: var(--secondary-color);
}

.oxy-post-meta {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.oxy-post-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 20px;
  flex-grow: 1;
}

.oxy-read-more {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  align-self: flex-start;
  margin-top: auto;
}

.oxy-read-more:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  gap: 8px;
}

.page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-numbers:hover {
  background-color: #f7fafc;
}

.page-numbers.current {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

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

.oxy-post.animate {
  animation: fadeInUp 0.6s ease forwards;
}

.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 5px 0 15px;
}

.post-category-tag {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 20px;
  color: white;
  display: inline-block;
  margin-right: 5px;
  text-transform: capitalize;
  font-weight: 600;
}

.post-category-tag.évènements {
  background-color: #5c6bc0;
}

.post-category-tag.cours {
  background-color: #26a69a;
}

.post-category-tag.sonothérapie {
  background-color: #9575cd;
}

.post-category-tag.chant {
  background-color: #ff9f1c;
}

.post-category-tag.bien-être {
  background-color: #66bb6a;
}

/* Footer styles */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 50px 0;
  margin-top: 60px;
}

/* Lazy loading */
.oxy-post, 
.blog-intro,
.blog-categories,
.blog-search {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: calc(var(--animation-order, 0) * 0.1s);
}

.lazyload {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazyloaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Single post styles */
.single-post .entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
}

.single-post .post-title {
  font-size: 2.5rem;
  color: var(--heading-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-family: var(--font-secondary);
}

.single-post .post-meta {
  font-size: 0.9rem;
  color: #718096;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.single-post .post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}

.single-post .post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.single-post .post-tags {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.single-post .post-tag {
  display: inline-block;
  padding: 6px 15px;
  background-color: #edf2f7;
  color: #4a5568;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.single-post .post-tag:hover {
  background-color: var(--primary-color);
  color: white;
} 