/* =========================================================
   STYLE BLOG - Page Blog AFEVAG
========================================================= */

/* ===== HERO AVEC DÉCORATIONS ===== */
.hero-small {
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

/* ===== DÉCORATIONS ===== */
.hero-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.hero-decorations span {
  position: absolute;
  font-size: 1.2rem;
  opacity: 0.2;
  animation: floatDecoration 6s ease-in-out infinite;
}

.deco-star { color: #ffb703; animation-duration: 4s !important; }
.star-1 { top: 5%; left: 3%; font-size: 2rem; animation-delay: 0s; }
.star-2 { top: 10%; right: 5%; font-size: 1.6rem; animation-delay: 1.2s; }
.star-3 { bottom: 20%; left: 2%; font-size: 1.8rem; animation-delay: 2.4s; }
.star-4 { bottom: 10%; right: 4%; font-size: 2.2rem; animation-delay: 3.6s; }

.deco-diamond { color: #d7263d; animation-duration: 5s !important; }
.diamond-2 { top: 30%; right: 2%; font-size: 1.2rem; color: #1b9c66; animation-delay: 1s; }

.deco-circle { color: #ff9200; animation-duration: 4.5s !important; }
.circle-2 { bottom: 35%; left: 4%; font-size: 0.9rem; color: #ffb703; animation-delay: 2s; }

.deco-sparkle { color: #f1c40f; animation-duration: 3.5s !important; }
.sparkle-2 { top: 45%; right: 6%; font-size: 1rem; color: #d7263d; animation-delay: 1.5s; }

.deco-heart { color: #ff6b6b; animation-duration: 5.5s !important; }
.heart-2 { bottom: 15%; right: 3%; font-size: 1.1rem; color: #ffb703; animation-delay: 2.5s; }

/* Thématique blog */
.deco-book { color: #8b5cf6; animation-duration: 4.8s !important; }
.book-2 { top: 40%; left: 1%; font-size: 1.4rem; color: #06b6d4; animation-delay: 2s; }

.deco-pen { color: #ff9200; animation-duration: 3.8s !important; top: 60%; right: 2%; font-size: 1.2rem; animation-delay: 1.2s; }

@keyframes floatDecoration {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.15; }
  25% { transform: translateY(-20px) rotate(15deg) scale(1.3); opacity: 0.4; }
  50% { transform: translateY(15px) rotate(-15deg) scale(0.8); opacity: 0.2; }
  75% { transform: translateY(-10px) rotate(8deg) scale(1.1); opacity: 0.35; }
}

.hero-text {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  font-weight: 600;
}

.hero-text h1 {
  font-size: 2.8rem;
  color: var(--color-primary);
  margin: 0.5rem 0;
  font-family: var(--font-heading);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== BLOG LAYOUT ===== */
.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
}

.blog-list {
  display: grid;
  gap: 24px;
}

/* ===== BLOG POST ===== */
.blog-post {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.8rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.blog-post::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1b9c66, #ffb703, #d7263d, #ff9200);
  background-size: 300% 100%;
  animation: gradientMove 4s ease-in-out infinite;
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.blog-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  border-color: rgba(255, 146, 0, 0.15);
}

.blog-post h2 {
  margin: 0 0 8px 0;
  font-size: 1.35rem;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.blog-post h2::before {
  content: "◆";
  margin-right: 0.5rem;
  color: var(--color-primary);
  font-size: 0.8rem;
  opacity: 0.5;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  font-weight: 600;
}

.blog-post p {
  margin: 0;
  line-height: 1.75;
  color: var(--color-text-muted);
}

/* ===== SIDEBAR ===== */
.blog-sidebar {
  display: grid;
  gap: 24px;
}

.sidebar-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.8rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.sidebar-box:hover {
  border-color: rgba(255, 146, 0, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.sidebar-box h3 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.sidebar-box h3::before {
  content: "◆";
  margin-right: 0.5rem;
  color: var(--color-primary);
  font-size: 0.8rem;
  opacity: 0.5;
}

.sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-box li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.sidebar-box li:last-child {
  border-bottom: none;
}

.sidebar-box li::before {
  content: "⬡";
  margin-right: 0.5rem;
  color: var(--color-primary);
  font-size: 0.6rem;
  opacity: 0.6;
}

.sidebar-box li:hover {
  color: var(--color-primary);
  padding-left: 6px;
}

.sidebar-box .blog-note {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.sidebar-box .btn {
  margin-top: 1rem;
}

/* =========================================================
   RESPONSIVE BLOG
========================================================= */
@media (max-width: 960px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }

  .hero-text {
    text-align: center;
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-decorations {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-small {
    padding: 2.5rem 0 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .blog-post {
    padding: 1.2rem;
  }

  .blog-post h2 {
    font-size: 1.1rem;
  }

  .sidebar-box {
    padding: 1.2rem;
  }

  .hero-decorations {
    display: none;
  }
}

@media (max-width: 460px) {
  .blog-post h2 {
    font-size: 1rem;
  }

  .blog-post h2::before {
    display: none;
  }

  .sidebar-box h3::before {
    display: none;
  }
}