body.tax-rubrique .site-content,
body.tax-departement .site-content,
body.tax-localite .site-content {
  background: #f7f7f5;
}

.pn-tax-archive {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.pn-tax-hero {
  margin: 0 0 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f7f8f2 100%);
  border: 1px solid rgba(117, 153, 57, 0.16);
  border-left: 7px solid #759739;
  box-shadow: 0 18px 42px rgba(31, 41, 55, 0.07);
}

.pn-tax-hero__inner {
  max-width: 900px;
  padding: 34px 38px;
}

.pn-tax-kicker {
  margin: 0 0 8px;
  color: #759739;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pn-tax-hero h1 {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.03;
}

.pn-tax-description {
  color: #374151;
  font-size: 1.04rem;
  line-height: 1.7;
}

.pn-tax-description p {
  margin: 0;
}

.pn-tax-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
}

.pn-tax-count,
.pn-tax-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.pn-tax-count {
  background: #e5f0d4;
  color: #46621e;
}

.pn-tax-actions a {
  background: #fff;
  border: 1px solid rgba(117, 153, 57, 0.28);
  color: #1f2937;
}

.pn-tax-actions a:hover {
  border-color: #759739;
  color: #5f7f2d;
}

.pn-tax-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 0;
  margin-bottom: 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 42px rgba(31, 41, 55, 0.08);
}

.pn-tax-featured__image {
  display: block;
  min-height: 360px;
  background: #eef1e8;
}

.pn-tax-featured__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.pn-tax-featured__body {
  padding: 34px;
}

.pn-tax-featured h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.pn-tax-featured h2 a {
  color: #111827;
  text-decoration: none;
}

.pn-tax-featured h2 a:hover {
  color: #5f7f2d;
}

.pn-tax-featured p {
  color: #374151;
  line-height: 1.62;
}

.pn-tax-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 12px;
  color: #759739;
  font-size: 0.82rem;
  font-weight: 700;
}

.pn-tax-read {
  display: inline-flex;
  margin-top: 8px;
  color: #759739;
  font-weight: 800;
  text-decoration: none;
}

.pn-tax-read:hover {
  color: #5f7f2d;
  text-decoration: underline;
}

.pn-tax-list-section {
  position: relative;
}

.pn-tax-archive .pn-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 16px;
}

.pn-tax-archive .pn-card {
  display: flex;
  flex-direction: column;
  width: auto !important;
  height: 100%;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  transition: box-shadow 0.2s ease;
}

.pn-tax-archive .pn-card:hover {
  box-shadow: 0 10px 24px rgba(117, 151, 57, 0.06);
}

.pn-tax-archive .pn-card figure {
  margin: 0;
  line-height: 0;
}

.pn-tax-archive .pn-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.pn-tax-archive .pn-card .pn-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 12px;
}

.pn-tax-archive .pn-card h3 {
  margin: 0 0 8px;
  color: #000;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.22;
}

.pn-tax-archive .pn-card h3 a {
  color: #000;
  text-decoration: none;
}

.pn-tax-archive .pn-card h3 a:hover {
  color: #000;
}

.pn-tax-archive .pn-card .excerpt-wrap {
  display: flex;
  flex-direction: column;
  min-height: 6.2em;
  margin-bottom: 10px;
}

.pn-tax-archive .pn-card .excerpt-text {
  display: -webkit-box;
  margin: 0.35rem 0 0;
  overflow: hidden;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.pn-tax-archive .pn-card .readmore {
  align-self: flex-start;
  margin-top: 8px;
  color: #759739;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.pn-tax-archive .pn-card .readmore:hover {
  color: #5c7f29;
  text-decoration: underline;
}

.pn-tax-archive .pn-card .meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 6px 10px;
  border-radius: 0;
  background: #f8f8f7;
  color: #777;
  font-size: 0.7rem !important;
  letter-spacing: 0.1px;
}

.pn-tax-archive .pn-card .meta svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-right: 3px;
  color: #759739;
  opacity: 0.9;
  stroke-width: 1.4;
}

.pn-tax-archive .pn-card .meta time,
.pn-tax-archive .pn-card .meta a,
.pn-tax-archive .pn-card .meta span {
  display: inline-flex;
  align-items: center;
}

.pn-tax-archive .pn-card .meta a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pn-tax-archive .pn-card .meta a:hover {
  color: #759739;
  text-decoration: underline;
}

.pn-tax-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 34px 0 0;
}

.pn-tax-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(117, 153, 57, 0.24);
  background: #fff;
  color: #1f2937;
  font-weight: 800;
  text-decoration: none;
}

.pn-tax-pagination .current,
.pn-tax-pagination a:hover {
  background: #759739;
  color: #fff;
}

.pn-tax-related {
  margin-top: 48px;
  padding: 30px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.pn-tax-related h2 {
  margin: 0 0 18px;
  font-size: 1.55rem;
}

.pn-tax-related__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pn-tax-related__group h3 {
  margin: 0 0 12px;
  color: #759739;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pn-tax-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pn-tax-links a {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f3f6ed;
  color: #37501b;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.pn-tax-links a:hover {
  background: #e5f0d4;
}

.pn-tax-empty {
  padding: 30px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

@media (max-width: 1024px) {
  .pn-tax-featured {
    grid-template-columns: 1fr;
  }

  .pn-tax-archive .pn-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pn-tax-archive {
    width: min(100% - 24px, 1320px);
    padding-top: 22px;
  }

  .pn-tax-hero__inner,
  .pn-tax-featured__body,
  .pn-tax-related {
    padding: 22px;
  }

  .pn-tax-featured__image,
  .pn-tax-featured__image img {
    min-height: 220px;
  }

  .pn-tax-archive .pn-list {
    grid-template-columns: 1fr;
  }

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

@media (min-width: 641px) and (max-width: 820px) {
  .pn-tax-archive .pn-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
