/* Blog, tutoriels et page article */

.blog-page {
  padding: 3rem 0 4rem;
  background: var(--color-bg);
}

.blog-page__header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.blog-page__eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.blog-page__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--color-text);
}

.blog-page__intro {
  margin: 0;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
  line-height: 1.6;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0.875rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color-text) 6%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--color-primary) 12%, transparent);
}

.blog-card__media {
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  overflow: hidden;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--color-primary) 55%, transparent);
  font-size: 0.875rem;
  font-weight: 600;
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
  gap: 0.75rem;
}

.blog-card__date {
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

.blog-card__title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.35;
}

.blog-card__title a {
  color: var(--color-text);
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--color-primary);
}

.blog-card__excerpt {
  margin: 0;
  flex: 1;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
  line-height: 1.55;
  font-size: 0.9375rem;
}

.blog-card__link {
  align-self: flex-start;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}

.blog-card__link:hover {
  color: var(--color-primary-dark);
}

.blog-empty {
  text-align: center;
  padding: 2rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--color-primary) 6%, transparent);
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

.article-page {
  padding: 3rem 0 4rem;
  background: var(--color-bg);
}

.article-page__back {
  margin: 0 0 1.5rem;
}

.article-page__back a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.article-page__back a:hover {
  color: var(--color-primary-dark);
}

.article-detail {
  max-width: 48rem;
  margin: 0 auto;
}

.article-detail__media {
  margin: 0 0 1.5rem;
  border-radius: 0.875rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.article-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-detail__meta {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

.article-detail__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--color-text);
}

.article-detail__content {
  color: color-mix(in srgb, var(--color-text) 85%, transparent);
  line-height: 1.75;
  font-size: 1.0625rem;
}

.article-not-found {
  max-width: 36rem;
  margin: 4rem auto;
  text-align: center;
  padding: 2rem;
}

.article-not-found h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
}

.article-not-found p {
  margin: 0 0 1.25rem;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

.article-not-found a {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
}
