/* =========================================================
   1) Layout 70/30 — Grille & colonnes
   ========================================================= */
.pn-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 24px;
  align-items: stretch;
}

.pn-hero__main,
.pn-hero__side {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* =========================================================
   2) Titres, sous-titre, chapo, image, légende
   ========================================================= */
.pn-chapo {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
}

.pn-article-title {
  --pn-title-margin-top: 20px;
  --pn-title-margin-bottom: -25px;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.50rem);
  line-height: 1.2;
  margin-top: var(--pn-title-margin-top);
  margin-bottom: var(--pn-title-margin-bottom);
  color: #000;
}

.pn-article-subtitle {
  --pn-subtitle-font-size: 1.7rem;
  --pn-subtitle-margin-top: 0px;
  --pn-subtitle-margin-bottom: 0.75em;
  display: block;
  margin-top: var(--pn-subtitle-margin-top);
  margin-bottom: var(--pn-subtitle-margin-bottom);
  color: #444;
  line-height: 1.2;
  font-weight: 200;
  font-size: var(--pn-subtitle-font-size);
}

.pn-article-subtitle .pn-wysiwyg-line,
.pn-article-subtitle .acf-inner-block,
.pn-article-subtitle .elementor-text-editor {
  margin: 0;
  font: inherit;
  color: inherit;
}

.pn-article-header {
  display: flex;
  flex-direction: column;
  margin: 20px 0 20px;
}

.pn-article-title,
.pn-article-subtitle p {
  margin: 0;
}

.pn-hero__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pn-hero__image {
  width: 100%;
  flex: 1 1 auto;
  object-fit: cover;
  display: block;
  min-height: 0;
  box-shadow: none !important;
}

.pn-hero__caption {
  flex: 0 0 auto;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #666;
  background: none;
  padding: 0;
}

.pn-hero__caption p {
  margin-bottom: 1em;
}

/* =========================================================
   3) Bloc méta + partage
   ========================================================= */
.pn-meta-share {
  font-size: .92rem;
  color: #555;
}

.pn-meta-share .pn-share {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pn-share__btn {
  text-decoration: none;
  border: 1px solid #e2e2e2;
  padding: 6px 10px;
  border-radius: 999px;
}

.pn-meta-share--in-hero {
  display: none;
}

.pn-meta-share--sidebar {
  display: block;
}

.pn-hero .pn-meta-share--in-hero,
.pn-hero__side .pn-meta-share--sidebar {
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

.pn-hero .pn-meta-share--in-hero .pn-meta,
.pn-hero .pn-meta-share--in-hero .pn-share,
.pn-hero__side .pn-meta-share--sidebar .pn-meta,
.pn-hero__side .pn-meta-share--sidebar .pn-share {
  background: #f7f7f7;
  border: 1px solid #eee;
  padding: 12px 16px;
}

.pn-hero .pn-meta-share--in-hero .pn-meta,
.pn-hero__side .pn-meta-share--sidebar .pn-meta {
  border-bottom: none;
  border-radius: 0 20px 0 0;
}

.pn-hero .pn-meta-share--in-hero .pn-share,
.pn-hero__side .pn-meta-share--sidebar .pn-share {
  border-radius: 0 0 0 20px;
  margin-top: 0;
}

.pn-meta__date {
  color: #000;
  font-weight: 400;
}

.pn-meta__mod {
  color: #666;
  font-size: .88em;
  display: block;
}

.pn-meta__author {
  color: #000;
}

/* =========================================================
   4) Contenu principal, paragraphes, effets
   ========================================================= */
.pn-full {
  margin-top: 20px;
}

.pn-paragraph {
  margin: 0 0 1.1rem;
  text-align: justify;
}

.has-dropcap p:first-child::first-letter {
  float: left;
  font-size: 3.1em;
  line-height: .9;
  padding: .05em .12em 0 0;
  font-weight: 700;
}

.has-blur-end {
  position: relative;
  overflow: hidden;
}

.has-blur-end::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4.5rem;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 85%);
  pointer-events: none;
}

.pn-paragraph + .pn-paragraph,
.pn-paragraph + .pn-paragraph.has-blur-end {
  margin-top: -28px !important;
}

.pn-section-title,
.pn-subsection-title {
  font-weight: 700;
  font-size: clamp(1.25rem, 1.8vw, 1.3rem);
  margin: -0.5rem 0 -1.5rem;
}

/* =========================================================
   5) Recette — base
   ========================================================= */
.pn-recette {
  background: #f9f9f9;
  border-left: 4px solid #759739;
  padding: 20px;
  margin: 30px 0;
  border-radius: 6px;
}

.pn-recette h2 {
  margin-top: 0;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 1px;
}

.pn-recette h3 {
  margin: 18px 0 10px;
  font-size: 17px;
}

.pn-recette-ingredients ul {
  margin: 10px 0 15px;
  padding-left: 20px;
}

.pn-recette-ingredients li {
  margin-bottom: 5px;
}

.pn-recette-preparation p {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* =========================================================
   6) Médias internes
   ========================================================= */
.pn-inline-media {
  margin: 30px 0;
}

.pn-inline-media__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: none !important;
}

.pn-inline-media__caption {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.single-post .pn-inline-media,
.single-post .pn-inline-media__image {
  box-shadow: none !important;
}

.ast-article-single .pn-hero figure,
.ast-article-single .pn-hero img {
  box-shadow: none !important;
}

/* =========================================================
   7) Lecture restante / livraison / cross-sells
   ========================================================= */
.pn-remaining-note {
  display: block;
  margin: -1rem 0 2rem;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(to bottom, #f7f9f4 90%, #eef3e7 100%);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
  color: #333;
}

.pn-remaining-note strong {
  font-weight: 600;
  color: #000;
}

.pn-livraison-note {
  font-size: .95rem;
  background: #f9f9f9;
  color: #444;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.pn-cross-sells-wrapper {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e6e6e6;
}

/* =========================================================
   8) CTA Accroche
   ========================================================= */
.pn-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 6px;
}

.pn-cta__btn {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  border: 1px solid #dfe4d6;
}

.pn-cta--paper,
.pn-cta--pdf {
  background: #f6f9f1;
}

.pn-cta--sub {
  background: #759739;
  color: #fff;
  border-color: #759739;
}

.pn-cta-wrap {
  margin-top: 24px;
  padding: 24px 20px;
  background: #fff;
  box-shadow: inset 0 0 10px 0 rgba(0,0,0,.12);
  border-radius: 1px;
  text-align: center;
}

.pn-cta-title {
  margin: 0 0 8px;
  font-weight: 200;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
}

.pn-cta-lead {
  margin: 0 0 18px;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.pn-cta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  justify-items: center;
  margin: 6px 0 10px;
}

.pn-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: #759739;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  transition: transform .12s ease, filter .12s ease, background-color .12s ease;
}

.pn-cta-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.pn-cta-ico {
  width: 20px;
  height: 20px;
  display: inline-block;
  color: currentColor;
}

.pn-cta-foot {
  margin: 8px 0 0;
}

/* =========================================================
   9) Taxonomies / YARPP
   ========================================================= */
.pn-taxos {
  margin-top: 28px;
  display: grid;
  gap: 6px;
  position: relative;
  padding-top: 22px;
}

.pn-taxos::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #e0e0e0;
}

.pn-taxos__group span:first-child {
  font-weight: 700;
  margin-right: 6px;
}

.pn-yarpp {
  margin-top: 16px;
}

/* =========================================================
   10) Notes de bas de page
   ========================================================= */
.pn-footnotes {
  margin: 40px 0 30px;
  padding: 18px 20px 16px;
  border-top: 4px solid #759739;
  background: #fafafa;
  font-size: .95rem;
  line-height: 1.7;
}

.pn-footnotes h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  line-height: 1.3;
}

.pn-footnotes p {
  margin: 0 0 10px;
}

.pn-footnotes ol,
.pn-footnotes ul {
  margin: 0;
  padding-left: 22px;
}

.pn-footnotes li {
  margin: 0 0 8px;
}

.pn-footnotes a {
  text-decoration: underline;
}

.pn-footnotes sup {
  font-size: .8em;
  line-height: 0;
}

.pn-footnotes [id] {
  scroll-margin-top: 120px;
}

/* ==========================================================
   11) Encadrés
   ========================================================== */
.pn-encadre {
  position: relative;
  background: #f5f7f3;
  border-left: 4px solid #759739;
  padding: 15px 20px 15px 30px;
  margin: 25px 0;
  border-radius: 1px;
}

.pn-encadre p {
  margin: 0 0 12px;
  line-height: 1.5;
}

.pn-encadre p:last-child {
  margin-bottom: 0;
}

/* ==========================================================
   12) Recette — style éditorial
   ========================================================== */
.pn-article--recette .pn-recette {
  background: #f3f4ef;
  border-left: 4px solid #759739;
  padding: 24px 26px;
  margin: 32px 0 36px;
  border-radius: 2px;
}

.pn-article--recette .pn-recette h2 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #4f5f2f;
}

.pn-article--recette .pn-recette h3 {
  margin: 22px 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: #222;
}

.pn-article--recette .pn-recette-ingredients {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(117, 151, 57, 0.22);
}

.pn-article--recette .pn-recette p {
  margin: 0 0 12px;
  line-height: 1.7;
}

.pn-article--recette .pn-recette ul {
  margin: 10px 0 14px 22px;
}

.pn-article--recette .pn-recette li {
  margin-bottom: 6px;
}

.pn-article--recette .pn-inline-media {
  margin: 38px 0 34px;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.pn-article--recette .pn-inline-media__image {
  width: 100%;
  box-shadow: none !important;
}

.pn-article--recette .pn-inline-media__caption {
  margin-top: 8px;
  font-size: 12px;
  color: #666;
}

.pn-article--recette .pn-encadre:not(.pn-encadre--pratique) {
  background: #f7f7f4;
  border-left: 3px solid #8ba85a;
  padding: 16px 20px 16px 18px;
}

.pn-article--recette .pn-encadre--pratique {
  position: relative;
  background: #eef3e8;
  border-left: 4px solid #759739;
  padding: 18px 20px 18px 24px;
  margin: 30px 0 34px;
}

.pn-article--recette .pn-encadre--pratique::before {
  content: "PRATIQUE";
  position: absolute;
  left: -44px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 10px;
  letter-spacing: 3px;
  font-style: italic;
  color: #759739;
}

/* ==========================================================
   13) Actualité — bloc pratique
   ========================================================== */
.pn-article--actualite .pn-info-box {
  position: relative;
  background: #eef3e8;
  border-left: 4px solid #759739;
  padding: 18px 20px 18px 24px;
  margin: 30px 0 34px;
  border-radius: 1px;
}

.pn-article--actualite .pn-info-box p {
  margin: 0 0 12px;
  line-height: 1.55;
}

.pn-article--actualite .pn-info-box::before {
  content: "PRATIQUE";
  position: absolute;
  left: -44px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 10px;
  letter-spacing: 3px;
  font-style: italic;
  color: #759739;
}

/* =========================================================
   14) Mobile
   ========================================================= */
.pn-mobile-afterfull {
  display: none;
}

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

  .pn-meta-share--in-hero {
    display: block;
    margin-top: 2px;
  }

  .pn-meta-share--sidebar {
    display: none;
  }

  .pn-hero__media {
    min-height: 220px;
  }

  .pn-hero__image {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .pn-hero__caption {
    font-size: 0.8rem;
    margin-top: 0.6rem;
  }

  .pn-mobile-afterfull {
    display: block !important;
    margin-top: 16px;
  }

  .pn-cta-wrap {
    padding: 18px 14px;
  }

  .pn-cta-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pn-cta-pill {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .pn-article--recette .pn-recette {
    padding: 18px 16px;
  }

  .pn-article--recette .pn-recette h2 {
    font-size: 24px;
  }

  .pn-article--recette .pn-recette h3 {
    font-size: 18px;
  }

  .pn-article--recette .pn-encadre--pratique::before,
  .pn-article--actualite .pn-info-box::before {
    left: -34px;
    font-size: 8px;
    letter-spacing: 2px;
  }
}