/* Reproduction allégée de la page d'accueil de parcnaturel.be (page hôte, hors Shadow DOM).
   Couleurs et polices reprises du site : --wp--preset--color-* et Chivo / Roboto. */
@font-face {
  font-family: 'Chivo';
  src: url('fonts/chivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('fonts/roboto-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --wp--preset--color--primary: #a8c443;
  --wp--preset--color--secondary: #006445;
  --wp--preset--color--tertiary: #353535;
  --wp--preset--color--foreground: #114739;
  --wp--preset--color--white: #f0f0ef;
  --wp--preset--color--black: #d8a635;
  --wp--preset--font-family--chivo: 'Chivo', sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Roboto', system-ui, sans-serif;
  color: #353535;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
}
a {
  color: #114739;
}
img {
  max-width: 100%;
  height: auto;
}
.wrap {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}
.demo-ribbon {
  background: #353535;
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 6px 12px;
}
.demo-ribbon strong {
  color: #a8c443;
}

/* En-tête */
.site-header {
  background: #fff;
  position: relative;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 96px;
}
.logo img {
  width: 72px;
  height: 72px;
  display: block;
}
.nav-toggle {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #a8c443;
  color: #114739;
  cursor: pointer;
}
.main-nav {
  display: none;
}
.main-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.2);
  padding: 8px 16px 16px;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav > ul > li > a {
  display: block;
  padding: 10px 4px;
  font-family: 'Chivo', sans-serif;
  font-weight: 700;
  color: #114739;
  text-decoration: none;
  font-size: 16px;
}
.main-nav .sub a {
  display: block;
  padding: 6px 4px 6px 18px;
  color: #353535;
  text-decoration: none;
  font-size: 15px;
}
.socials {
  display: none;
  gap: 10px;
  align-items: center;
}
.socials a,
.search-pill {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #a8c443;
  color: #fff;
}
.search-pill {
  width: 76px;
  border-radius: 20px;
  border: 0;
}
@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }
  .site-header .wrap {
    min-height: 128px;
  }
  .logo img {
    width: 92px;
    height: 92px;
  }
  .main-nav,
  .main-nav.is-open {
    display: block;
    position: static;
    box-shadow: none;
    padding: 0;
    margin-left: 40px;
  }
  .main-nav > ul {
    display: flex;
    gap: 28px;
  }
  .main-nav > ul > li {
    position: relative;
  }
  .main-nav .sub {
    display: none;
    position: absolute;
    top: 100%;
    left: -14px;
    min-width: 240px;
    background: #fff;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.25);
    padding: 8px 0;
    z-index: 20;
  }
  .main-nav li:hover > .sub,
  .main-nav li:focus-within > .sub {
    display: block;
  }
  .main-nav .has-sub > a::after {
    content: ' ⌄';
  }
  .socials {
    display: flex;
    margin-left: auto;
  }
}

/* Zone de la carte (à la place du carrousel) : pleine largeur, hauteur réservée (CLS = 0). */
.hero-map pnhsfa-carte {
  display: block;
  width: 100%;
  height: min(78svh, 760px);
  min-height: 480px;
}
@media (min-width: 900px) {
  .hero-map pnhsfa-carte {
    height: min(82vh, 820px);
  }
}

/* Présentation + publications */
.intro {
  background: #f0f0ef;
}
.intro .wrap {
  display: grid;
  gap: 32px;
  padding: 48px 0;
}
.intro h1 {
  font-family: 'Chivo', sans-serif;
  font-size: clamp(24px, 4vw, 30px);
  color: #353535;
  text-align: center;
  margin: 0 0 32px;
}
.counters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
  margin-bottom: 28px;
}
.counters strong {
  display: block;
  font-family: 'Chivo', sans-serif;
  font-size: 30px;
  color: #6f8a1c; /* vert prairie assombri : AA sur le gris clair */
}
.counters span {
  text-transform: uppercase;
  font-size: 14px;
}
.intro p {
  text-align: justify;
  margin: 0;
}
.pubs {
  background: #fff;
  padding: 20px;
  text-align: center;
}
.pubs h2 {
  font-family: 'Chivo', sans-serif;
  font-size: 22px;
  margin: 0 0 14px;
  color: #353535;
}
.pubs ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 12px;
  justify-content: center;
  overflow-x: auto;
}
.pubs li {
  flex: 0 0 120px;
  font-size: 13px;
  line-height: 1.3;
}
.pubs img {
  border: 1px solid #ddd;
  margin-bottom: 6px;
}
@media (min-width: 900px) {
  .intro .wrap {
    grid-template-columns: 1fr 300px;
  }
  .counters {
    grid-template-columns: repeat(4, 1fr);
  }
  .pubs ul {
    flex-direction: column;
    align-items: center;
  }
}

/* Projets & actualités */
.projects {
  padding: 48px 0;
}
.projects h2 {
  font-family: 'Chivo', sans-serif;
  text-align: center;
  font-size: 28px;
  color: #353535;
  margin: 0 0 24px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}
.tiles a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid #e3e3e3;
  background: #fff;
  text-decoration: none;
  color: #353535;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 0 0 4px #f0f0ef;
}
.tiles img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
@media (min-width: 900px) {
  .tiles {
    grid-template-columns: repeat(9, 1fr);
  }
}
.news {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}
.news a {
  display: block;
  background: #fff;
  box-shadow: 0 0 0 6px #f0f0ef;
  text-decoration: none;
  color: #353535;
}
.news img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
}
.news span {
  display: block;
  padding: 10px 12px;
  font-family: 'Chivo', sans-serif;
  font-weight: 700;
}
@media (min-width: 600px) {
  .news {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Pied de page */
.site-footer {
  background: #353535;
  color: #fff;
  padding: 48px 0 24px;
}
.site-footer a {
  color: #c6dd6e;
}
.site-footer h2 {
  font-family: 'Chivo', sans-serif;
  font-size: 22px;
  margin: 0 0 12px;
  color: #fff;
}
.site-footer .cols {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .site-footer .cols {
    grid-template-columns: 1fr 1fr;
  }
}
.newsletter {
  display: inline-block;
  margin-top: 12px;
  background: #a8c443;
  color: #114739 !important;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 18px;
  font-size: 14px;
}
.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 28px 0;
}
.partners li {
  background: #fff;
  padding: 6px 10px;
  height: 64px;
  display: grid;
  place-items: center;
}
.partners img {
  max-height: 52px;
  width: auto;
}
.legal {
  font-size: 13px;
  border-top: 1px solid #555;
  padding-top: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 3px solid #1e6fb8;
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #114739;
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
}
