/* =========================================
   FICHIER : css/post-responsive.css
   PAGE    : articles du Journal Horizon
   ROLE    : responsive global du lecteur
   ========================================= */

@media (max-width: 1080px) {
  .post-reading__layout {
    grid-template-columns: 120px minmax(0, 780px);
    gap: 36px;
  }

  .post-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .post-hero {
    padding-top: 138px;
  }

  .post-reading__layout {
    grid-template-columns: 1fr;
  }

  .post-reading__rail {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--post-line);
  }

  .post-reading__label {
    width: 100%;
    margin-bottom: 0;
  }

  .post-end__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .post-end__cta {
    grid-template-columns: 1fr;
  }

  .post-end__cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .post-hero {
    padding: 122px 0 58px;
  }

  .post-breadcrumb {
    margin-bottom: 34px;
  }

  .post-hero h1 {
    font-size: var(--hz-title-editorial);
  }

  .post-hero__excerpt {
    margin-top: 20px;
    font-size: 1.28rem;
  }

  .post-author {
    margin-top: 24px;
  }

  .post-cover {
    margin-top: 42px;
    border-radius: 20px;
  }

  .post-cover img {
    min-height: 300px;
    aspect-ratio: 4 / 3;
  }

  .post-cover--placeholder {
    min-height: 320px;
  }

  .post-reading {
    padding: 64px 0 72px;
  }

  .post-content {
    font-size: 1rem;
    line-height: 1.8;
  }

  .post-content > p:first-child {
    font-size: 1.25rem;
  }

  .post-content h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .post-content h3 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .post-content blockquote {
    padding: 20px 18px 20px 24px;
    font-size: 1.25rem;
  }

  .post-content img {
    border-radius: 14px;
  }

  .post-content table {
    display: block;
    overflow-x: auto;
  }

  .post-content th,
  .post-content td {
    min-width: 140px;
  }

  .post-end {
    padding-bottom: 72px;
  }

  .post-end__inner {
    padding: 26px 0 38px;
  }

  .post-end__cta {
    gap: 28px;
    padding: 28px 22px;
    border-radius: 22px;
  }

  .post-end__cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .post-end__cta-actions a {
    width: 100%;
  }

  .post-related {
    padding: 72px 0 88px;
  }

  .post-related__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-related__grid {
    grid-template-columns: 1fr;
  }

  .post-related__media,
  .post-related__media img {
    min-height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-related__card,
  .post-related__media img,
  .post-tags a,
  .post-share__actions a,
  .post-share__actions button {
    transition: none;
  }
}