/* Blog — cartes, listing, article */

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #2d2f3a;
  background: #1a1c26;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  border-color: rgba(26, 115, 232, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.blog-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d0e14;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.04);
}

.blog-card__category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  background: rgba(26, 115, 232, 0.92);
  color: #fff;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.35rem;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.65rem;
}

.blog-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.blog-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.blog-card__title a:hover {
  color: #1a73e8;
}

.blog-card__excerpt {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a73e8;
  text-decoration: none;
}

.blog-card__link:hover {
  text-decoration: underline;
}

/* Filtres listing */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.blog-filter-btn {
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid #2d2f3a;
  background: transparent;
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blog-filter-btn:hover,
.blog-filter-btn.is-active {
  border-color: #1a73e8;
  background: #1a73e8;
  color: #fff;
}

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

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

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

.blog-grid [hidden] {
  display: none !important;
}

/* Accueil — carrousel mobile */
.blog-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #2d2f3a transparent;
}

.blog-scroll .blog-card {
  flex: 0 0 min(85vw, 320px);
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .blog-scroll {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    overflow: visible;
    scroll-snap-type: none;
  }

  .blog-scroll .blog-card {
    flex: unset;
    width: auto;
  }
}

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

/* Article détail */
.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

.blog-breadcrumb a {
  color: #9ca3af;
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  color: #1a73e8;
}

.blog-breadcrumb [aria-current="page"] {
  color: #e5e7eb;
}

.blog-article-layout {
  display: grid;
  gap: 2.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .blog-article-layout {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }

  .blog-article-sidebar {
    position: sticky;
    top: 6rem;
  }
}

.blog-article-hero img {
  width: 100%;
  border-radius: 1rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0d0e14;
}

.blog-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 1rem 0 1.5rem;
}

.blog-article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-article-meta .feather {
  width: 1rem;
  height: 1rem;
  color: #1a73e8;
}

.article-prose {
  color: #d1d5db;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.article-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 2.25rem 0 1rem;
}

.article-prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f3f4f6;
  margin: 1.75rem 0 0.75rem;
}

.article-prose p {
  margin-bottom: 1.15rem;
}

.article-prose ul,
.article-prose ol {
  margin: 0 0 1.25rem 1.25rem;
}

.article-prose li {
  margin-bottom: 0.5rem;
}

.article-prose a {
  color: #1a73e8;
  text-decoration: underline;
}

.article-prose strong {
  color: #fff;
}

.article-prose blockquote {
  border-left: 3px solid #1a73e8;
  padding: 0.75rem 0 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: #e5e7eb;
  font-style: italic;
  background: rgba(26, 115, 232, 0.06);
  border-radius: 0 0.5rem 0.5rem 0;
}

.blog-sidebar-box {
  background: #1a1c26;
  border: 1px solid #2d2f3a;
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.blog-sidebar-box h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.blog-toc a {
  display: block;
  font-size: 0.8125rem;
  color: #d1d5db;
  padding: 0.35rem 0;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.65rem;
  margin-left: -0.65rem;
}

.blog-toc a:hover {
  color: #1a73e8;
  border-left-color: #1a73e8;
}

.blog-share {
  display: flex;
  gap: 0.5rem;
}

.blog-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid #2d2f3a;
  color: #d1d5db;
  transition: all 0.2s ease;
}

.blog-share a:hover {
  border-color: #1a73e8;
  color: #1a73e8;
}

.blog-author-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  margin-top: 2.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #1e2029 0%, #1a1c26 100%);
  border: 1px solid #2d2f3a;
}

.blog-author-card img {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  object-fit: contain;
  background: #111;
  padding: 0.35rem;
}

.blog-related {
  padding: 4rem 1.5rem;
}

.blog-newsletter {
  max-width: 40rem;
  margin: 3rem auto 0;
  padding: 2rem;
  text-align: center;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #1e2029 0%, #252836 100%);
  border: 1px solid rgba(26, 115, 232, 0.2);
}

.blog-newsletter p {
  color: #9ca3af;
  font-size: 0.9rem;
  margin: 0.5rem 0 1.25rem;
}
