/* ==========================================================================
   SR Editer — Nouveautés (blog.html)
   Hero sobre, carte de la dernière version, historique en deux colonnes
   (repères collants à gauche, notes à droite). Contenu : js/pages/blog.js.
   ========================================================================== */

/* ── Hero ── */
.blog-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 11rem var(--gutter) 5rem;
}
.blog-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: none;
}
.blog-lead {
  max-width: 38ch;
  margin-top: 2rem;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.blog-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter) 8rem;
}
.blog-loading {
  padding: 4rem 0;
  color: var(--text-secondary);
}

/* ── Dernière version ── */
.blog-latest {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2.5rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(255, 107, 53, 0.16) 0%, rgba(255, 107, 53, 0) 70%),
    linear-gradient(180deg, rgba(30, 25, 21, 0.86) 0%, rgba(14, 12, 10, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.blog-latest-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.blog-latest-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}
.blog-latest-version {
  margin: 1.25rem 0 1rem;
  font-family: var(--font-heading);
  font-size: clamp(4rem, 11vw, 9.5rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.05em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-latest-summary {
  max-width: 48ch;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--text-primary);
}
.blog-latest-date {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-faint);
}
.blog-latest-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* ── Historique ── */
.blog-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 7rem 0 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}
.blog-list-head[hidden] {
  display: none;
}
.blog-list-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-transform: none;
  line-height: 1;
}
.blog-count {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.blog-list {
  list-style: none;
}
.blog-entry {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3rem;
  padding: 4rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.blog-entry-meta {
  position: sticky;
  top: 7rem;
  align-self: start;
}
.blog-entry-version {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}
.blog-entry-date {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-faint);
}
.blog-entry-tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.blog-entry-download {
  display: flex;
  width: fit-content;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.blog-entry-download:hover {
  color: var(--text-primary);
}

/* ── Notes de version mises en forme ── */
.blog-entry-title {
  margin-bottom: 1.25rem;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-transform: none;
}
.blog-notes {
  max-width: 68ch;
  color: var(--text-secondary);
  line-height: 1.7;
}
.blog-notes > * + * {
  margin-top: 1.1rem;
}
.blog-notes p {
  font-size: 1.02rem;
}
.blog-notes h4 {
  margin-top: 2.5rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text-primary);
}
.blog-notes ul,
.blog-notes ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.blog-notes li {
  position: relative;
  padding-left: 1.4rem;
}
.blog-notes li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.blog-notes li strong {
  color: var(--text-primary);
  font-weight: 600;
}
.blog-notes .blog-note-aside {
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
}
.blog-more[hidden] {
  display: none;
}
.blog-toggle {
  margin-top: 2rem;
  padding: 0.65rem 1.2rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.blog-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .blog-hero {
    padding: 8rem 1.25rem 3rem;
  }
  .blog-body {
    padding: 0 1.25rem 5rem;
  }
  .blog-latest {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }
  .blog-latest-actions .aww-btn {
    width: 100%;
  }
  .blog-list-head {
    margin-top: 4.5rem;
  }
  .blog-entry {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 0;
  }
  .blog-entry-meta {
    position: static;
  }
}
