body.pnmls-home-page {
  margin: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(21, 150, 207, .10), transparent 28%),
    linear-gradient(180deg, #f6f9fc 0%, var(--pn-soft, #eef4f8) 100%);
  color: var(--pn-ink, #082f57);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

body.pnmls-home-page .featured-docs,
body.pnmls-home-page .home-publications {
  width: min(100% - 36px, 1220px) !important;
  max-width: 1220px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.pnmls-home-page .featured-docs {
  margin-top: 18px !important;
  margin-bottom: 26px !important;
}

body.pnmls-home-page .featured-docs-panel {
  position: relative;
  overflow: hidden;
  padding: 20px 22px 22px !important;
}

body.pnmls-home-page .featured-docs-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pn-sky, #1596cf) 0 34%, var(--pn-yellow, #f4d200) 34% 50%, var(--pn-red-dark, #c63431) 50% 100%);
}

body.pnmls-home-page .featured-docs-head {
  align-items: center !important;
  margin-bottom: 18px !important;
  padding-bottom: 16px !important;
}

body.pnmls-home-page .featured-docs-head h2 {
  margin-bottom: 4px !important;
  color: var(--pn-primary, #0f5c8c) !important;
  font-size: 25px !important;
  font-weight: 700 !important;
}

body.pnmls-home-page .featured-docs-head p {
  color: var(--pn-muted, #64748b) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

body.pnmls-home-page .featured-docs-link {
  display: inline-flex !important;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 13px;
  background: var(--pn-soft, #eef4f8);
  color: var(--pn-primary, #0f5c8c) !important;
  font-size: 13px;
  font-weight: 700;
}

body.pnmls-home-page .featured-docs-grid {
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

body.pnmls-home-page .featured-main {
  position: relative;
  grid-template-columns: 190px minmax(0, 1fr) !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, #ffffff, #f8fbfd) !important;
  box-shadow: 0 12px 26px rgba(15, 35, 55, .08) !important;
}

body.pnmls-home-page .featured-cover {
  display: flex !important;
  height: 100% !important;
  min-height: 246px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px !important;
  background: linear-gradient(180deg, #f8fbfd, var(--pn-soft, #eef4f8)) !important;
  perspective: 900px;
}

body.pnmls-home-page .featured-cover img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 226px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 16px 22px rgba(15, 35, 55, .24));
}

body.pnmls-home-page .featured-main-body {
  padding: 20px 18px !important;
}

body.pnmls-home-page .featured-main h3 {
  color: var(--pn-primary, #0f5c8c) !important;
  font-size: 19px !important;
  line-height: 1.32 !important;
}

body.pnmls-home-page .featured-summary {
  display: -webkit-box;
  margin-bottom: 10px !important;
  overflow: hidden;
  color: #526173 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.pnmls-home-page .featured-actions {
  margin-top: 10px !important;
}

body.pnmls-home-page .featured-side {
  display: grid !important;
  gap: 14px !important;
  grid-template-rows: none !important;
  align-content: start !important;
}

body.pnmls-home-page .featured-side-card {
  position: relative;
  grid-template-columns: 142px minmax(0, 1fr) !important;
  min-height: 146px !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbfd 100%) !important;
  box-shadow: 0 12px 26px rgba(15, 35, 55, .08) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.pnmls-home-page .featured-side-card:hover {
  transform: translateY(-2px);
  border-color: #b8d6e8 !important;
  box-shadow: 0 16px 32px rgba(15, 35, 55, .13) !important;
}

body.pnmls-home-page .featured-side-cover {
  display: flex !important;
  min-height: 146px !important;
  align-items: center !important;
  justify-content: center !important;
  border-right: 1px solid var(--pn-border, #e2e8f0);
  padding: 8px !important;
  background: linear-gradient(180deg, #f8fbfd, var(--pn-soft, #eef4f8)) !important;
  perspective: 900px;
}

body.pnmls-home-page .featured-side-cover img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 130px !important;
  min-height: 0 !important;
  object-fit: contain !important;
  filter: drop-shadow(0 14px 18px rgba(15, 35, 55, .22));
}

body.pnmls-home-page .featured-side-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 14px 14px 13px !important;
}

body.pnmls-home-page .featured-badge {
  border-radius: 999px !important;
  background: #e8f5f2 !important;
  color: #12614f !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: lowercase;
}

body.pnmls-home-page .featured-side-card h3 {
  margin: 8px 0 8px !important;
  color: var(--pn-primary, #0f5c8c) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

body.pnmls-home-page .home-publications-head {
  margin-bottom: 16px !important;
}

body.pnmls-home-page .home-publications-head h2 {
  margin-bottom: 4px !important;
  font-size: 34px !important;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 700;
}

body.pnmls-home-page .home-publications-head p {
  margin: 0;
  color: var(--pn-text, #3d5570);
  font-size: 14px;
  line-height: 1.5;
}

body.pnmls-home-page .home-type-stack {
  display: grid;
  gap: 18px;
}

body.pnmls-home-page .home-type-section {
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(8, 47, 87, .10);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(8, 47, 87, .06);
  backdrop-filter: blur(14px);
}

body.pnmls-home-page .home-type-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(8, 47, 87, .08);
}

body.pnmls-home-page .home-type-head h3 {
  margin: 0 0 2px;
  color: var(--pn-ink, #082f57) !important;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

body.pnmls-home-page .home-type-head p {
  margin: 0;
  color: #5f7082;
  font-size: 13px;
  line-height: 1.4;
}

body.pnmls-home-page .home-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.pnmls-home-page .home-doc-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #fff;
  border: 1px solid rgba(8, 47, 87, .08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(8, 47, 87, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.pnmls-home-page .home-doc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 119, 210, .26);
  box-shadow: 0 12px 24px rgba(8, 47, 87, .10);
}

body.pnmls-home-page .home-doc-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--pn-soft, #eef4f8);
  overflow: hidden;
}

body.pnmls-home-page .home-doc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px;
}

body.pnmls-home-page .home-doc-year {
  display: block;
  color: var(--pn-primary, #0f5c8c);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

body.pnmls-home-page .home-doc-title {
  margin: 0 0 6px;
  color: var(--pn-ink, #082f57) !important;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  min-height: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.pnmls-home-page .home-doc-meta {
  color: var(--pn-text, #3d5570);
  font-size: 12px;
  line-height: 1.4;
  margin-bottom: 10px;
  min-height: 0 !important;
}

body.pnmls-home-page .home-doc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

body.pnmls-home-page .home-doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  background: #2379d3;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

body.pnmls-home-page .home-doc-btn.download {
  background: var(--pn-accent, #0f766e);
}

body.pnmls-home-page .home-doc-btn:hover {
  background: var(--pn-primary, #0f5c8c);
  color: #fff;
  text-decoration: none;
}

body.pnmls-home-page .featured-meta {
  color: var(--pn-muted, #64748b) !important;
  font-size: 13px !important;
  font-weight: 600;
}

body.pnmls-home-page .featured-btn {
  min-height: 38px !important;
  padding: 9px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 18px rgba(15, 92, 140, .14) !important;
}

body.pnmls-home-page .featured-docs-panel,
body.pnmls-home-page .home-type-section {
  border: 1px solid rgba(15, 63, 97, .10) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 14px 34px rgba(15, 35, 55, .08) !important;
}

body.pnmls-home-page .featured-docs-head,
body.pnmls-home-page .home-type-head {
  border-bottom-color: var(--pn-border, #e2e8f0) !important;
}

body.pnmls-home-page .featured-docs-head h2,
body.pnmls-home-page .home-publications-head h2,
body.pnmls-home-page .home-type-head h3 {
  color: var(--pn-primary, #0f5c8c) !important;
  letter-spacing: 0 !important;
}

body.pnmls-home-page .featured-main,
body.pnmls-home-page .featured-side-card,
body.pnmls-home-page .home-doc-card {
  border-color: #dfe8f1 !important;
  border-radius: 8px !important;
}

body.pnmls-home-page .home-doc-card {
  box-shadow: 0 10px 24px rgba(15, 35, 55, .07) !important;
}

body.pnmls-home-page .home-doc-cover,
body.pnmls-home-page .featured-cover,
body.pnmls-home-page .featured-side-cover {
  background: var(--pn-soft, #eef4f8);
}

body.pnmls-home-page .featured-cover,
body.pnmls-home-page .featured-side-cover,
body.pnmls-home-page .home-doc-cover {
  position: relative;
  overflow: visible !important;
  isolation: isolate;
}

body.pnmls-home-page .featured-cover::before,
body.pnmls-home-page .featured-side-cover::before,
body.pnmls-home-page .home-doc-cover::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 18px;
  z-index: 1;
  width: 14px;
  border-radius: 4px 0 0 4px;
  background: linear-gradient(90deg, rgba(8, 47, 87, .34), rgba(255, 255, 255, .22), rgba(8, 47, 87, .12));
  opacity: .75;
  transform: perspective(800px) rotateY(-18deg);
  pointer-events: none;
}

body.pnmls-home-page .featured-side-cover::before {
  inset: 13px auto 13px 22px;
  width: 9px;
}

body.pnmls-home-page .home-doc-cover::before {
  inset: 18px auto 18px 20px;
}

body.pnmls-home-page .featured-cover::after,
body.pnmls-home-page .featured-side-cover::after,
body.pnmls-home-page .home-doc-cover::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 3;
  border-radius: 8px;
  background: linear-gradient(115deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, .22) 58%, rgba(255, 255, 255, 0));
  opacity: .52;
  transform: translateZ(24px);
  pointer-events: none;
}

body.pnmls-home-page .featured-cover img,
body.pnmls-home-page .featured-side-cover img,
body.pnmls-home-page .home-doc-cover img {
  position: relative;
  z-index: 2;
  border-radius: 5px !important;
  transform: perspective(900px) rotateY(-8deg) rotateX(2deg) translateZ(0);
  transform-origin: left center;
  transition: transform .28s ease, filter .28s ease;
}

body.pnmls-home-page .featured-main:hover .featured-cover img,
body.pnmls-home-page .featured-side-card:hover .featured-side-cover img,
body.pnmls-home-page .home-doc-card:hover .home-doc-cover img {
  transform: perspective(900px) rotateY(-13deg) rotateX(3deg) translateY(-4px) translateZ(18px);
  filter: drop-shadow(0 22px 28px rgba(15, 35, 55, .30));
}

body.pnmls-home-page .home-doc-title {
  min-height: auto !important;
  color: var(--pn-ink, #082f57) !important;
}

body.pnmls-home-page .home-doc-btn,
body.pnmls-home-page .featured-btn,
body.pnmls-home-page .home-type-more {
  border-radius: 8px !important;
}

body.pnmls-home-page .home-doc-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 920px) {
  body.pnmls-home-page .featured-docs {
    display: none !important;
  }

  body.pnmls-home-page .home-publications {
    width: min(100% - 28px, 1220px) !important;
  }

  body.pnmls-home-page .featured-docs-panel {
    padding: 18px !important;
  }

  body.pnmls-home-page .featured-docs-grid {
    grid-template-columns: 1fr !important;
  }

  body.pnmls-home-page .featured-main {
    grid-template-columns: 210px minmax(0, 1fr) !important;
  }

  body.pnmls-home-page .featured-cover {
    min-height: 260px !important;
  }

  body.pnmls-home-page .featured-cover img {
    max-height: 235px !important;
  }

  body.pnmls-home-page .featured-side {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.pnmls-home-page .featured-side .featured-side-card:first-child {
    display: none !important;
  }

  body.pnmls-home-page .featured-side-card {
    grid-template-columns: 118px minmax(0, 1fr) !important;
  }
}

@media (max-width: 620px) {
  body.pnmls-home-page .featured-docs {
    display: none !important;
  }

  
  body.pnmls-home-page .home-doc-btn,
  body.pnmls-home-page .featured-btn {
    width: 100%;
  }

  body.pnmls-home-page .featured-docs,
  body.pnmls-home-page .home-publications {
    width: min(100% - 24px, 1220px) !important;
  }

  body.pnmls-home-page .home-publications {
    margin-top: 2px !important;
    margin-bottom: 20px !important;
  }

  body.pnmls-home-page .home-publications-head {
    margin-bottom: 10px !important;
  }

  body.pnmls-home-page .home-publications-head h2 {
    margin-bottom: 3px !important;
    font-size: 22px !important;
    line-height: 1.1 !important;
  }

  body.pnmls-home-page .home-publications-head p {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  body.pnmls-home-page .home-type-stack {
    gap: 10px !important;
  }

  body.pnmls-home-page .home-type-section {
    padding: 10px !important;
  }

  body.pnmls-home-page .home-type-head {
    display: grid !important;
    gap: 6px;
    margin-bottom: 8px !important;
    padding-bottom: 8px !important;
  }

  body.pnmls-home-page .home-type-head h3 {
    margin-bottom: 1px !important;
    font-size: 18px !important;
    line-height: 1.1 !important;
  }

  body.pnmls-home-page .home-type-head p {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  body.pnmls-home-page .home-type-more {
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }

  body.pnmls-home-page .home-type-grid,
  body.pnmls-home-page .home-doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.pnmls-home-page .home-type-grid .home-doc-card:nth-child(n+3) {
    display: none !important;
  }

  body.pnmls-home-page .home-doc-body {
    padding: 10px !important;
  }

  body.pnmls-home-page .home-doc-cover {
    display: flex !important;
    min-height: 140px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 10px 12px !important;
    aspect-ratio: auto !important;
  }

  body.pnmls-home-page .home-doc-cover img {
    width: auto !important;
    max-width: 80% !important;
    height: auto !important;
    max-height: 120px !important;
    object-fit: contain !important;
    transform: none !important;
    transform-origin: center center !important;
  }

  body.pnmls-home-page .home-doc-card:hover .home-doc-cover img {
    transform: none !important;
  }

  body.pnmls-home-page .home-doc-cover::before {
    left: 18px !important;
  }

  body.pnmls-home-page .home-doc-cover::after {
    inset: 10px !important;
  }

  body.pnmls-home-page .home-doc-fresh,
  body.pnmls-home-page .home-doc-type {
    top: 8px !important;
    max-width: calc(100% - 16px) !important;
    font-size: 9px !important;
  }

  body.pnmls-home-page .home-doc-fresh {
    left: 8px !important;
  }

  body.pnmls-home-page .home-doc-type {
    right: 8px !important;
  }

  body.pnmls-home-page .home-doc-year,
  body.pnmls-home-page .home-doc-meta {
    font-size: 11px !important;
  }

  body.pnmls-home-page .home-doc-title {
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin-bottom: 5px !important;
    min-height: 26px !important;
  }

  body.pnmls-home-page .home-doc-meta {
    margin-bottom: 8px !important;
    min-height: 0 !important;
    line-height: 1.3 !important;
  }

  body.pnmls-home-page .home-doc-actions {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }

  body.pnmls-home-page .home-doc-btn {
    min-height: 34px !important;
    font-size: 11px !important;
    padding: 6px 10px !important;
  }
}

@media (max-width: 480px) {
  body.pnmls-home-page .featured-docs-panel {
    padding: 12px !important;
  }

  body.pnmls-home-page .featured-side-card {
    grid-template-columns: 1fr !important;
  }

  body.pnmls-home-page .featured-side-cover {
    min-height: 200px !important;
    border-right: 0;
    border-bottom: 1px solid var(--pn-border, #e2e8f0);
  }

  body.pnmls-home-page .featured-side-cover img {
    max-height: 170px !important;
  }

  body.pnmls-home-page .home-type-grid,
  body.pnmls-home-page .home-doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.pnmls-home-page .home-doc-cover {
    min-height: 130px !important;
  }

  body.pnmls-home-page .home-doc-cover img {
    max-width: 75% !important;
    max-height: 110px !important;
  }

  body.pnmls-home-page .home-doc-title {
    font-size: 12px !important;
    min-height: 24px !important;
  }

  body.pnmls-home-page .home-doc-meta {
    font-size: 10px !important;
    margin-bottom: 6px !important;
  }

  body.pnmls-home-page .home-doc-body {
    padding: 8px !important;
  }

  body.pnmls-home-page .home-doc-btn {
    min-height: 32px !important;
    font-size: 10px !important;
  }
}

/* En-tete de la page d'accueil : recherche centrale, acces rapides, chiffres cles. */
.pn-hero {
  position: relative;
  margin: 0 0 8px;
  padding: 44px 16px 52px;
  overflow: hidden;
  background:
    radial-gradient(900px 380px at 88% -10%, rgba(21, 150, 207, .35), transparent 60%),
    radial-gradient(700px 320px at -5% 110%, rgba(15, 118, 110, .45), transparent 60%),
    linear-gradient(135deg, #0a3558 0%, #0d4a70 55%, #0f5c63 100%);
  color: #fff;
}

.pn-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--pn-sky, #1596cf) 0 40%, var(--pn-yellow, #f4d200) 40% 58%, var(--pn-red, #e2463e) 58% 100%);
}

.pn-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: center;
  max-width: 1188px;
  margin: 0 auto;
}

.pn-hero-kicker {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #d6ecfa;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pn-hero h1 {
  margin: 0 0 12px;
  color: #fff !important;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.015em;
}

.pn-hero-copy > p {
  max-width: 640px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .86);
  font-size: 16.5px;
  line-height: 1.6;
}

.pn-hero-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 660px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(3, 20, 38, .35);
}

.pn-hero-search > .fa {
  position: absolute;
  left: 22px;
  color: #7a8ea3;
  font-size: 17px;
  pointer-events: none;
}

.pn-hero-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 50px;
  padding: 0 14px 0 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0b2440;
  font-size: 16px;
}

.pn-hero-search button {
  flex: 0 0 auto;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  background: var(--pn-accent, #0f766e);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease;
}

.pn-hero-search button:hover,
.pn-hero-search button:focus-visible {
  background: var(--pn-accent-dark, #0b5a54);
}

.pn-hero-search:focus-within {
  box-shadow: 0 18px 40px rgba(3, 20, 38, .35), 0 0 0 4px rgba(244, 210, 0, .55);
}

.pn-hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.pn-hero-links span {
  margin-right: 2px;
  color: rgba(255, 255, 255, .7);
  font-size: 13.5px;
}

.pn-hero-links a {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background-color .15s ease, border-color .15s ease;
}

.pn-hero-links a:hover,
.pn-hero-links a:focus-visible {
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .12);
}

.pn-hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

.pn-hero-stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}

.pn-hero-stats dd {
  margin: 0;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pn-hero-stats dt {
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 500;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pnmls-home-page .featured-docs {
  margin-top: 28px;
}

@media (max-width: 960px) {
  .pn-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pn-hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pn-hero {
    padding: 30px 16px 36px;
  }

  .pn-hero-search button {
    padding: 0 16px;
  }

  .pn-hero-search input {
    font-size: 15px;
  }

  .pn-hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .pn-hero-stats dd {
    font-size: 26px;
  }
}

/* Le hero garde ses couleurs quels que soient le theme et les styles globaux (p, input). */
body.pnmls-home-page .pn-hero h1 {
  font-weight: 800 !important;
}

body.pnmls-home-page .pn-hero .pn-hero-copy > p {
  color: rgba(255, 255, 255, .88) !important;
}

body.pnmls-home-page .pn-hero-search input[type="search"] {
  height: 50px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #0b2440 !important;
}

body.pnmls-home-page .pn-hero-search input[type="search"]::placeholder {
  color: #7a8ea3 !important;
}

/* Hero compact : une seule colonne, compteurs en ligne sous la recherche. */
body.pnmls-home-page .pn-hero {
  padding: 26px 16px 30px;
}

body.pnmls-home-page .pn-hero-inner {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
}

body.pnmls-home-page .pn-hero h1 {
  margin-bottom: 6px;
  font-size: clamp(26px, 3vw, 34px);
}

body.pnmls-home-page .pn-hero .pn-hero-copy > p {
  margin-bottom: 18px;
  font-size: 15px;
}

body.pnmls-home-page .pn-hero-search input[type="search"],
body.pnmls-home-page .pn-hero-search button {
  height: 44px !important;
}

body.pnmls-home-page .pn-hero-links {
  margin-top: 12px;
}

body.pnmls-home-page .pn-hero-links a {
  padding: 4px 11px;
  font-size: 13px;
}

body.pnmls-home-page .pn-hero-stats {
  grid-template-columns: repeat(2, auto);
  gap: 8px;
}

body.pnmls-home-page .pn-hero-stats > div {
  padding: 10px 14px;
  border-radius: 10px;
}

body.pnmls-home-page .pn-hero-stats dd {
  font-size: 24px;
}

body.pnmls-home-page .pn-hero-stats dt {
  font-size: 12px;
}

@media (max-width: 960px) {
  body.pnmls-home-page .pn-hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.pnmls-home-page .pn-hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.pnmls-home-page .pn-hero {
    padding: 20px 16px 24px;
  }

  body.pnmls-home-page .pn-hero .pn-hero-copy > p {
    display: none;
  }

  body.pnmls-home-page .pn-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.pnmls-home-page .pn-hero-stats dd {
    font-size: 20px;
  }
}

body.pnmls-home-page .pn-hero .pn-hero-copy > p {
  text-align: left !important;
}

@media (max-width: 640px) {
  body.pnmls-home-page .pn-hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  body.pnmls-home-page .pn-hero-stats > div {
    padding: 8px 6px;
    text-align: center;
  }

  body.pnmls-home-page .pn-hero-stats dd {
    font-size: 18px;
  }

  body.pnmls-home-page .pn-hero-stats dt {
    font-size: 11.5px;
    line-height: 1.2;
  }
}

/* Hero sans compteurs : une seule colonne. */
body.pnmls-home-page .pn-hero-inner {
  grid-template-columns: 1fr;
}

/* Bande de chiffres cles, sous "Documents a la une". */
.pn-stats-strip {
  max-width: 1180px;
  margin: 0 auto 30px;
  padding: 0 16px;
}

.pn-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.pn-stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid var(--pn-border, #e2e8f0);
  border-left: 4px solid var(--pn-primary, #0f5c8c);
  border-radius: 10px;
  background: #fff;
}

.pn-stats > div:nth-child(2) { border-left-color: var(--pn-accent, #0f766e); }
.pn-stats > div:nth-child(3) { border-left-color: var(--pn-yellow, #f4d200); }
.pn-stats > div:nth-child(4) { border-left-color: var(--pn-red, #e2463e); }

.pn-stats dd {
  margin: 0;
  color: var(--pn-ink, #082f57);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.pn-stats dt {
  color: var(--pn-muted, #64748b);
  font-size: 13px;
  font-weight: 500;
}

html[data-theme="dark"] .pn-stats > div {
  background: var(--pn-surface, #102131);
}

@media (max-width: 640px) {
  .pn-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .pn-stats > div {
    padding: 12px 14px;
  }

  .pn-stats dd {
    font-size: 22px;
  }
}

/* Lien unique sous la recherche (remplace la rangee d'acces rapides, redondante avec le menu). */
body.pnmls-home-page .pn-hero-advanced {
  display: inline-block;
  margin-top: 12px;
  color: rgba(255, 255, 255, .85) !important;
  font-size: 13.5px;
  text-decoration: underline !important;
  text-decoration-color: rgba(255, 255, 255, .35) !important;
  text-underline-offset: 3px;
}

body.pnmls-home-page .pn-hero-advanced:hover,
body.pnmls-home-page .pn-hero-advanced:focus-visible {
  color: #fff !important;
  text-decoration-color: #fff !important;
}

/* Sur l'accueil, la recherche du bandeau remplace celle du menu. */
body.pnmls-home-page #pnmls_main_nav .pnmls-menu-search .form-control,
body.pnmls-home-page #pnmls_main_nav .pnmls-menu-search .pnmls-search-btn {
  display: none !important;
}

@media (max-width: 640px) {
  body.pnmls-home-page .pn-hero-advanced {
    margin-top: 10px;
    font-size: 13px;
  }
}

/* Titre du bandeau : une phrase utile (le nom PNMLS est deja dans le logo). */
body.pnmls-home-page .pn-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
}

/* ------------------------------------------------------------------
 * "A la une" : document principal + deux documents secondaires.
 * ------------------------------------------------------------------ */
.pn-feat {
  max-width: 1180px;
  margin: 30px auto 26px;
  padding: 0 16px;
}

.pn-feat-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.pn-feat-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--pn-accent, #0f766e);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pn-feat-head h2 {
  margin: 0;
  color: var(--pn-ink, #082f57) !important;
  font-size: 26px;
  font-weight: 800 !important;
  letter-spacing: -.01em;
}

.pn-feat-all {
  color: var(--pn-primary, #0f5c8c) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}

.pn-feat-all:hover {
  text-decoration: underline !important;
}

.pn-feat-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
}

.pn-feat-main,
.pn-feat-item {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--pn-border, #e2e8f0);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(8, 47, 87, .04), 0 8px 24px rgba(8, 47, 87, .06);
  transition: box-shadow .2s ease, transform .2s ease;
}

.pn-feat-main:hover,
.pn-feat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(8, 47, 87, .05), 0 16px 36px rgba(8, 47, 87, .10);
}

.pn-feat-main {
  grid-template-columns: 42% minmax(0, 1fr);
}

.pn-feat-side {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pn-feat-item {
  grid-template-columns: 124px minmax(0, 1fr);
}

/* Couverture droite, posee sur un fond doux aux couleurs du site. */
.pn-feat-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(21, 150, 207, .14), transparent 60%),
    linear-gradient(160deg, #eef4f8, #e1ebf3);
}

.pn-feat-item .pn-feat-cover {
  padding: 14px;
}

.pn-feat-cover img {
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 320px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(8, 47, 87, .12), 0 14px 28px rgba(8, 47, 87, .18);
  transition: transform .25s ease;
}

.pn-feat-item .pn-feat-cover img {
  max-height: 140px;
}

.pn-feat-main:hover .pn-feat-cover img,
.pn-feat-item:hover .pn-feat-cover img {
  transform: translateY(-3px);
}

.pn-feat-cover .pnmls-gen-cover {
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  transform: none;
  width: min(100%, 220px);
  max-width: 100%;
}

.pn-feat-item .pn-feat-cover .pnmls-gen-cover {
  width: 96px;
}

.pn-feat-main:hover .pnmls-gen-cover,
.pn-feat-item:hover .pnmls-gen-cover {
  transform: translateY(-3px);
}

.pn-feat-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 26px 24px;
}

.pn-feat-item .pn-feat-body {
  padding: 16px 18px;
}

.pn-feat-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 10px;
  color: var(--pn-muted, #64748b);
  font-size: 13px;
}

.pn-feat-type {
  padding: 3px 10px;
  border-radius: 999px;
  background: #e7f4f1;
  color: var(--pn-accent-dark, #0b5a54);
  font-size: 12px;
  font-weight: 700;
}

.pn-feat-year {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pn-feat-author::before {
  content: "·";
  margin-right: 12px;
  color: #b6c3cf;
}

.pn-feat-body h3 {
  margin: 0 0 12px;
  font-size: 23px;
  font-weight: 700 !important;
  line-height: 1.28;
  letter-spacing: -.005em;
}

.pn-feat-item .pn-feat-body h3 {
  display: -webkit-box;
  margin-bottom: 10px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.35;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.pn-feat-body h3 a {
  color: var(--pn-ink, #082f57) !important;
  text-decoration: none !important;
}

.pn-feat-body h3 a:hover {
  color: var(--pn-primary, #0f5c8c) !important;
}

.pn-feat-summary {
  display: -webkit-box;
  margin: 0 0 20px;
  overflow: hidden;
  color: var(--pn-text, #3d5570) !important;
  font-size: 15px;
  line-height: 1.65;
  text-align: left !important;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

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

.pn-feat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--pn-border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  color: var(--pn-primary, #0f5c8c) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color .15s ease, border-color .15s ease;
}

.pn-feat-btn:hover {
  border-color: var(--pn-primary, #0f5c8c);
  background: var(--pn-soft, #eef4f8);
}

.pn-feat-btn.primary {
  border-color: var(--pn-primary, #0f5c8c);
  background: var(--pn-primary, #0f5c8c);
  color: #fff !important;
}

.pn-feat-btn.primary:hover {
  background: var(--pn-primary-dark, #0b4870);
}

.pn-feat-link {
  color: var(--pn-primary, #0f5c8c) !important;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
}

.pn-feat-link + .pn-feat-link {
  padding-left: 12px;
  border-left: 1px solid var(--pn-border, #e2e8f0);
}

.pn-feat-link:hover {
  text-decoration: underline !important;
}

/* Mode sombre */
html[data-theme="dark"] .pn-feat-main,
html[data-theme="dark"] .pn-feat-item {
  border-color: var(--pn-border);
  background: var(--pn-surface, #102131);
}

html[data-theme="dark"] .pn-feat-cover {
  background: linear-gradient(160deg, #17293a, #0f1f2d);
}

html[data-theme="dark"] .pn-feat-head h2,
html[data-theme="dark"] .pn-feat-body h3 a {
  color: var(--pn-ink) !important;
}

html[data-theme="dark"] .pn-feat-type {
  background: rgba(20, 138, 127, .2);
  color: #8fe0d4;
}

html[data-theme="dark"] .pn-feat-btn {
  background: transparent;
}

html[data-theme="dark"] .pn-feat-btn.primary {
  background: var(--pn-primary);
  color: #fff !important;
}

html[data-theme="dark"] .pn-feat-all,
html[data-theme="dark"] .pn-feat-link,
html[data-theme="dark"] .pn-feat-btn:not(.primary) {
  color: #8cc4ec !important;
}

@media (max-width: 960px) {
  .pn-feat-grid {
    grid-template-columns: 1fr;
  }

  .pn-feat-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
}

@media (max-width: 640px) {
  .pn-feat {
    margin-top: 20px;
  }

  .pn-feat-head h2 {
    font-size: 22px;
  }

  .pn-feat-main {
    grid-template-columns: 1fr;
  }

  .pn-feat-main .pn-feat-cover img {
    max-height: 220px;
  }

  .pn-feat-body {
    padding: 18px;
  }

  .pn-feat-body h3 {
    font-size: 19px;
  }

  .pn-feat-side {
    grid-template-columns: 1fr;
  }

  .pn-feat-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .pn-feat-item .pn-feat-cover .pnmls-gen-cover {
    width: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pn-feat-main,
  .pn-feat-item,
  .pn-feat-cover img {
    transition: none;
  }
}

body.pnmls-home-page .pn-feat-type {
  display: inline-block;
  text-transform: lowercase !important;
}

body.pnmls-home-page .pn-feat-type::first-letter {
  text-transform: uppercase;
}

/* Provinces couvertes : "11 / 26" + jauge. */
.pn-stats .pn-stats-provinces {
  flex-direction: column;
}

.pn-stats .pn-stats-provinces dd { order: 1; }
.pn-stats .pn-stats-provinces dt { order: 2; }

.pn-stats dd small {
  color: var(--pn-muted, #64748b);
  font-size: 60%;
  font-weight: 600;
}

.pn-stats-gauge {
  order: 3;
  display: block;
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--pn-border, #e2e8f0);
}

.pn-stats-gauge span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pn-red, #e2463e);
}
