/**
 * ElectronLibre — Home (style app EL, sans hero)
 */
:root {
  --el-brand-dark: #3b2416;
  --el-brand-muted: #8a8a8a;
  --el-accent: #2f6dfb;
  --el-accent-soft: #eef3ff;
  --el-surface: #ffffff;
  --el-surface-alt: #f6f7f9;
  --el-border: rgba(15, 23, 42, 0.08);
  --el-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
  --el-radius-lg: 18px;
  --el-radius-md: 12px;
  --el-font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --el-font-editorial: Georgia, "Times New Roman", serif;
}

.el-home-main {
  padding-top: 12px;
}

/* --- Section titre --- */
.el-home-section-head {
  max-width: 1180px;
  margin: 0 auto 20px;
  padding: 0 4px;
}

.el-home-section-head__title {
  margin: 0;
  font-family: var(--el-font-ui);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

/* --- Grille modernisée --- */
.home .archive-wrapper,
.home.el-home-page .archive-wrapper,
.home .container,
.el-home-page .container {
  max-width: 1180px;
}

.home .blog-grid-view,
.el-home-page .blog-grid-view {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px !important;
  row-gap: 24px !important;
}

.home .blog-grid-view > div[id^="post-"],
.home .blog-grid-view > article[id^="post-"] {
  grid-column: span 4;
}

.home .blog-grid-view > div[id^="post-"]:first-child,
.home .blog-grid-view > article[id^="post-"]:first-child {
  grid-column: span 12;
}

.home .blog-grid-view .news-snippet {
  height: 100%;
  padding: 22px;
  border-radius: var(--el-radius-lg);
  background: var(--el-surface);
  border: 1px solid var(--el-border);
  box-shadow: var(--el-shadow);
  gap: 12px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home .blog-grid-view .news-snippet:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
}

.home .blog-grid-view > div[id^="post-"]:first-child .news-snippet,
.home .blog-grid-view > article[id^="post-"]:first-child .news-snippet {
  padding: 28px 32px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.home .blog-grid-view .ihead,
.home .blog-grid-view .ihead .list-inline {
  font-size: 0.82rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home .blog-grid-view .news-title,
.home .blog-grid-view .news-title a {
  font-family: var(--el-font-editorial);
  font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
  line-height: 1.18 !important;
  max-width: none;
  color: #111827;
}

.home .blog-grid-view > div[id^="post-"]:first-child .news-title,
.home .blog-grid-view > div[id^="post-"]:first-child .news-title a,
.home .blog-grid-view > article[id^="post-"]:first-child .news-title,
.home .blog-grid-view > article[id^="post-"]:first-child .news-title a {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem) !important;
  max-width: 22ch;
}

.home .blog-grid-view .category a,
.home .blog-grid-view .tags a {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--el-accent-soft);
  color: var(--el-accent) !important;
  font-family: var(--el-font-ui);
  font-size: 0.78rem;
  font-weight: 600;
}

.home .blog-grid-view .excerpt {
  color: #475569;
  font-family: var(--el-font-ui);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 70ch;
}

.home .blog-grid-view .readmore {
  font-family: var(--el-font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--el-accent) !important;
}

@media (max-width: 1100px) {
  .home .blog-grid-view > div[id^="post-"],
  .home .blog-grid-view > article[id^="post-"] {
    grid-column: span 6;
  }

  .home .blog-grid-view > div[id^="post-"]:first-child,
  .home .blog-grid-view > article[id^="post-"]:first-child {
    grid-column: span 12;
  }
}

@media (max-width: 780px) {
  .el-home-main {
    padding-top: 8px;
  }

  .home .blog-grid-view,
  .el-home-page .blog-grid-view {
    grid-template-columns: 1fr;
  }

  .home .blog-grid-view > div[id^="post-"],
  .home .blog-grid-view > article[id^="post-"],
  .home .blog-grid-view > div[id^="post-"]:first-child,
  .home .blog-grid-view > article[id^="post-"]:first-child {
    grid-column: span 1;
  }
}
