/* ==========================================================================
   Blog : liste (/blog) et article (node--article)
   ========================================================================== */
/* Bandeau : teinte neutre définie avec les autres pages ordinaires (ap-new2.css). */
.ap-pagehead--blog .ap-pagehead__title {
  font-family: var(--ap2-display, Georgia, serif);
  font-size: clamp(38px, 5vw, 62px);
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.ap-blog {
  padding: 0 0 clamp(48px, 6vw, 88px);
}
.ap-sr {
  clip: rect(0 0 0 0);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

/* ---------------------------------------------------------------- Thèmes */
.ap-blog__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
}
.ap-blog .ap-chip,
.ap-post__tags .ap2-tag {
  text-decoration: none;
}
.ap-blog .ap-chip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  color: var(--ap-ink);
  display: inline-flex;
  font-family: var(--ap-font);
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  padding: 9px 14px;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.ap-blog .ap-chip span {
  background: var(--ap-soft);
  border-radius: 999px;
  color: var(--ap-muted);
  font-size: 12px;
  padding: 2px 8px;
}
.ap-blog .ap-chip:hover {
  border-color: var(--ap-ink);
}
.ap-blog .ap-chip.is-active {
  background: var(--ap-ink);
  border-color: var(--ap-ink);
  color: #fff;
}
.ap-blog .ap-chip.is-active span {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.ap-blog__filter {
  color: var(--ap-muted);
  font-family: var(--ap-font);
  font-size: 15px;
  margin: -10px 0 22px;
}
.ap-blog__filter a {
  color: var(--ap-ink);
  font-weight: 700;
}

/* ---------------------------------------------------------------- À la une */
.ap-blog__featured {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 28px;
  display: grid;
  gap: clamp(20px, 4vw, 48px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  margin: 0 0 36px;
  padding: clamp(18px, 2.4vw, 28px);
}
.ap-blog__featured-media {
  display: block;
  position: relative;
}
.ap-blog__featured-media img {
  aspect-ratio: 3 / 2;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  width: 100%;
}
.ap-blog__featured-media .ap2-tape {
  top: -12px;
}
.ap-blog__featured-kicker {
  color: var(--ap-ink);
  font-size: 26px;
  margin: 0 0 6px;
}
.ap-blog__featured-title {
  font-family: var(--ap2-display, Georgia, serif);
  font-size: clamp(26px, 2.8vw, 38px);
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 10px;
}
.ap-blog__featured-title a {
  color: var(--ap-ink);
  text-decoration: none;
}
.ap-blog__featured-title a:hover {
  color: var(--ap-pink-ink);
}
.ap-blog__featured-meta {
  color: var(--ap-muted);
  font-family: var(--ap-font);
  font-size: 14px;
  margin: 0 0 14px;
}
.ap-blog__featured-excerpt {
  color: var(--ap-text);
  font-family: var(--ap-font);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.ap-blog__featured .ap-btn {
  margin-top: 6px;
}

/* ---------------------------------------------------------------- Cartes */
.ap-blog__grid {
  display: grid;
  gap: 28px 24px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.ap-post-card {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ap-post-card:hover {
  box-shadow: 0 18px 40px rgba(37, 2, 18, 0.1);
  transform: translateY(-3px);
}
.ap-post-card__media {
  display: block;
}
.ap-post-card__media img,
.ap-post-card__noimg {
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
  width: 100%;
}
.ap-post-card__noimg {
  align-items: center;
  background: linear-gradient(135deg, var(--ap-neutral-tint), #fff4d1);
  color: var(--ap-ink);
  display: flex;
  font-size: 40px;
  justify-content: center;
}
.ap-post-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}
.ap-post-card__date {
  color: var(--ap-muted);
  font-size: 20px;
  line-height: 1;
  margin: 0;
}
.ap-post-card__title {
  font-family: var(--ap2-display, Georgia, serif);
  font-size: 21px;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}
.ap-post-card__title a {
  color: var(--ap-ink);
  text-decoration: none;
}
.ap-post-card__title a:hover {
  color: var(--ap-pink-ink);
}
.ap-post-card__excerpt {
  color: var(--ap-muted);
  font-family: var(--ap-font);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.ap-post-card__more {
  color: var(--ap-ink);
  font-family: var(--ap-font);
  font-size: 15px;
  font-weight: 700;
  margin-top: auto;
  padding-top: 8px;
  text-decoration: underline;
  text-decoration-color: var(--ap-pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.ap-post-card__more:hover {
  color: var(--ap-pink-ink);
}
.ap-post-card__taglist,
.ap-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.ap-post-card__taglist li,
.ap-post__tags li {
  margin: 0;
  padding: 0;
}
.ap-post-card__taglist li::before,
.ap-post__tags li::before {
  content: none !important;
}
.ap-blog__empty {
  color: var(--ap-muted);
  font-family: var(--ap-font);
  padding: 40px 0;
  text-align: center;
}

/* ---------------------------------------------------------------- Pagination */
.ap-blog__pager {
  margin: 36px 0 0;
}
/* Le gabarit pager.html.twig du thème produit .pagination / .page-item / .page-link. */
.ap-blog__pager .pagination,
.ap-blog__pager .pager__items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ap-blog__pager .page-item,
.ap-blog__pager .pager__item {
  margin: 0;
  padding: 0;
}
.ap-blog__pager .page-item::before,
.ap-blog__pager .pager__item::before {
  content: none !important;
}
.ap-blog__pager .page-link,
.ap-blog__pager .pager__item a,
.ap-blog__pager .pager__item--ellipsis {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  color: var(--ap-ink);
  display: inline-flex;
  font-family: var(--ap-font);
  font-size: 15px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding: 0 14px;
  text-decoration: none;
}
.ap-blog__pager a.page-link:hover,
.ap-blog__pager .pager__item a:hover {
  border-color: var(--ap-ink);
}
.ap-blog__pager .page-item.is-active .page-link,
.ap-blog__pager .pager__item.is-active a {
  background: var(--ap-ink);
  border-color: var(--ap-ink);
  color: #fff;
}
.ap-blog__pager span.page-link {
  border-color: transparent;
}
.ap-blog__pager .visually-hidden {
  clip: rect(0 0 0 0);
  height: 1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

/* ---------------------------------------------------------------- Article */
.ap-post__head {
  padding: clamp(28px, 4vw, 56px) 0 0;
}
.ap-post__head-inner {
  margin: 0 auto;
  max-width: 860px;
  text-align: center;
}
.ap-post__crumbs {
  justify-content: center;
}
.ap-post__tags {
  justify-content: center;
  margin-bottom: 16px;
}
.ap-post__title {
  color: var(--ap-ink);
  font-family: var(--ap2-display, Georgia, serif);
  font-size: clamp(32px, 4.6vw, 56px);
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 14px;
}
.ap-post__meta {
  color: var(--ap-muted);
  font-family: var(--ap-font);
  font-size: 15px;
  margin: 0 0 18px;
}
.ap-post__lead {
  color: var(--ap-text);
  font-family: var(--ap-font);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 720px;
}
.ap-post__figure-wrap {
  padding-top: clamp(36px, 5vw, 56px);
}
.ap-post .ap-post__figure {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(37, 2, 18, 0.14);
  margin: 0 auto;
  max-width: 1040px;
  padding: 10px;
  position: relative;
}
.ap-post__figure .ap2-tape {
  top: -12px;
}
.ap-post__figure img {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  width: 100%;
}
.ap-post__content {
  padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 4vw, 48px);
}
.ap-post__content-inner {
  margin: 0 auto;
  max-width: 820px;
}
.ap-post__body {
  font-size: 18px;
  line-height: 1.7;
}
.ap-post__body :where(p, ul, ol, h2, h3, h4, blockquote, figure, table) {
  max-width: none;
}
.ap-post__body img {
  border-radius: 16px;
  height: auto;
  max-width: 100%;
}
.ap-post__body iframe {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
  height: auto;
  max-width: 100%;
  width: 100%;
}
.ap-post__video {
  margin: 32px 0 0;
}
.ap-post__video iframe,
.ap-post__video .video-embed-field-responsive-video {
  border-radius: 16px;
  overflow: hidden;
}
.ap-post__h2 {
  color: var(--ap-ink);
  font-family: var(--ap2-display, Georgia, serif);
  font-size: clamp(24px, 2.4vw, 30px);
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-weight: 600;
  margin: 36px 0 14px;
}
.ap-post__files ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ap-post__files li {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 14px;
  font-family: var(--ap-font);
  margin: 0 0 8px;
  padding: 12px 16px;
}
.ap-post__files li::before {
  content: none !important;
}
.ap-post__files a {
  color: var(--ap-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--ap-pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.ap-post__files small {
  color: var(--ap-muted);
  margin-left: 8px;
}
.ap-post__gallery {
  margin-top: 24px;
}
.ap-post__gallery .ap-post__h2 {
  margin-top: 0;
}

/* Bandeau « envie d'essayer » */
.ap-post__cta {
  padding: 0 0 clamp(32px, 5vw, 56px);
}
.ap-post__cta-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 40px);
}
.ap-post__cta-kicker {
  color: var(--ap-ink);
  font-size: 24px;
  margin: 0 0 4px;
}
.ap-post__cta-title {
  color: var(--ap-ink);
  font-family: var(--ap2-display, Georgia, serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-weight: 600;
  margin: 0;
  max-width: 560px;
}
.ap-post__cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ap-post__related {
  background: #fff;
}
.ap-post__back {
  margin: 32px 0 0;
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .ap-blog__featured {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 767px) {
  .ap-blog__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ap-post__body {
    font-size: 17px;
  }
  .ap-post__figure {
    border-radius: 18px;
    padding: 8px;
  }
  .ap-post__cta-card {
    padding: 22px;
  }
  .ap-post__cta-btns .ap-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}
