/* Article (single post) — typographie + mise en page */

.g4-post {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.g4-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: start;
}

.g4-post-article {
  background: rgba(8, 14, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--g4-radius) + 6px);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 18px 44px rgba(0, 0, 0, 0.35);
}

.g4-post-hero {
  position: relative;
  aspect-ratio: 16 / 7;
  background: rgba(10, 16, 28, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.g4-post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.g4-post-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.05) 0%, rgba(10, 22, 40, 0.75) 78%, rgba(10, 22, 40, 0.95) 100%),
    radial-gradient(55% 65% at 20% 25%, rgba(0, 229, 192, 0.14) 0%, rgba(0, 229, 192, 0) 60%),
    radial-gradient(55% 65% at 80% 20%, rgba(255, 45, 138, 0.12) 0%, rgba(255, 45, 138, 0) 60%);
  pointer-events: none;
}

.g4-post-body {
  padding: clamp(1rem, 2.2vw, 1.5rem);
}

.g4-post-meta {
  color: var(--g4-muted);
  font-size: 0.9rem;
  margin: 0 0 0.6rem;
}

.g4-post-title {
  margin: 0 0 0.85rem;
  font-family: var(--g4-font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.08;
  color: #fff;
}

.g4-post-content {
  color: #d8e5f6;
  line-height: 1.75;
  font-size: 1rem;
}

.g4-post-content > :first-child {
  margin-top: 0;
}

.g4-post-content p {
  margin: 0.95rem 0;
}

.g4-post-content h2,
.g4-post-content h3 {
  margin: 1.5rem 0 0.6rem;
  font-family: var(--g4-font-display);
  color: #fff;
  text-transform: none;
  letter-spacing: 0.02em;
}

.g4-post-content h2 {
  font-size: 1.35rem;
}

.g4-post-content h3 {
  font-size: 1.15rem;
}

.g4-post-content ul,
.g4-post-content ol {
  margin: 0.75rem 0 0.95rem 1.25rem;
  padding: 0;
  color: #c8d4e3;
}

.g4-post-content li {
  margin: 0.35rem 0;
}

.g4-post-content a {
  color: var(--g4-cyan);
}

.g4-post-content a:hover {
  color: #fff;
}

.g4-post-content blockquote {
  margin: 1.1rem 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--g4-cyan);
  background: rgba(10, 16, 28, 0.55);
  border-radius: 0 12px 12px 0;
  color: #b5c6da;
}

.g4-post-aside {
  position: sticky;
  top: 1rem;
}

.g4-post-panel {
  padding: 1rem;
  border-radius: calc(var(--g4-radius) + 2px);
  background: rgba(6, 12, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.g4-post-panel h3 {
  margin: 0 0 0.75rem;
  font-family: var(--g4-font-display);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.g4-post-panel a {
  text-decoration: none;
}

.g4-post-related {
  display: grid;
  gap: 0.65rem;
}

.g4-post-related__item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.6rem;
  border-radius: 14px;
  background: rgba(8, 14, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.g4-post-related__item:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 229, 192, 0.32);
  background: rgba(0, 229, 192, 0.05);
}

.g4-post-related__thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 16, 28, 0.85);
  aspect-ratio: 16 / 10;
}

.g4-post-related__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.g4-post-related__meta {
  color: var(--g4-muted);
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g4-post-related__title {
  margin: 0;
  color: #fff;
  font-family: var(--g4-font-display);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.12;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .g4-post-layout {
    grid-template-columns: 1fr;
  }
  .g4-post-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .g4-post-hero {
    aspect-ratio: 16 / 9;
  }
  .g4-post-body {
    padding: 1rem;
  }
}

