/* Astuces Potager Guide v1.0.0 */
.apg-wrap,.apf-wrap{--green:#244d34;--green2:#3f704d;--cream:#f7f3e8;--orange:#d98c3f;--ink:#203027;max-width:1180px;margin:30px auto 60px;font-family:inherit;color:var(--ink)}
.apg-hero{background:linear-gradient(135deg,#1f4931,#487957);color:#fff;border-radius:28px;padding:52px 55px;box-shadow:0 16px 45px rgba(31,73,49,.18);position:relative;overflow:hidden}.apg-hero:after{content:'🌿';font-size:170px;position:absolute;right:35px;bottom:-50px;opacity:.12;transform:rotate(-12deg)}.apg-kicker{font-size:13px;font-weight:800;letter-spacing:1.5px}.apg-hero h1{color:#fff!important;font-size:clamp(34px,5vw,58px)!important;line-height:1.03;margin:12px 0 18px;max-width:800px}.apg-hero p{font-size:18px;line-height:1.65;max-width:760px;margin:0}.apg-stats{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px;color:#f2dfb9}
.apg-tools{background:#fff;border:1px solid #e7e5dd;border-radius:20px;padding:18px;margin:25px 0 12px;box-shadow:0 8px 25px rgba(30,60,40,.07)}.apg-search{display:flex;align-items:center;gap:8px;background:#f5f6f2;border-radius:13px;padding:0 15px}.apg-search input{width:100%;border:0!important;background:transparent!important;padding:15px 5px!important;outline:none;box-shadow:none!important}.apg-filters{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.apg-filters button{border:1px solid #dfe5dc;background:#fff;border-radius:999px;padding:9px 14px;font-weight:700;cursor:pointer}.apg-filters button.active{background:var(--green);color:#fff;border-color:var(--green)}.apg-count{margin:18px 4px;color:#657068}.apg-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.apg-card{background:#fff;border:1px solid #e5e6df;border-radius:19px;overflow:hidden;box-shadow:0 6px 22px rgba(38,65,46,.06);transition:.2s}.apg-card:hover{transform:translateY(-4px);box-shadow:0 13px 32px rgba(38,65,46,.13)}.apg-card a{text-decoration:none!important;color:inherit!important}.apg-img{height:145px;background:linear-gradient(145deg,#edf3e7,#f7edda);display:flex;align-items:center;justify-content:center;overflow:hidden}.apg-img span{font-size:56px}.apg-img img{width:100%;height:100%;object-fit:cover}.apg-body{padding:17px}.apg-tag{display:inline-flex;background:#edf5eb;color:#32623e;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800}.apg-body h2{font-size:21px!important;color:var(--green)!important;margin:10px 0 7px!important}.apg-body p{font-size:13.5px;line-height:1.5;color:#667069;margin:0 0 12px}.apg-link{font-weight:800;color:#b8692e}.apg-empty{text-align:center;padding:45px;background:#faf8f1;border-radius:18px}
.apf-back{display:inline-block;margin-bottom:18px;color:#3f704d;font-weight:800;text-decoration:none}.apf-head{background:linear-gradient(135deg,#f4f0df,#eef5e9);border-radius:26px;padding:35px;display:grid;grid-template-columns:1fr minmax(250px,380px);gap:28px;align-items:center}.apf-head h1{font-size:clamp(31px,4vw,48px)!important;line-height:1.08;color:var(--green)!important;margin:12px 0!important}.apf-head p{font-size:17px;line-height:1.6}.apf-photo img{width:100%;height:280px;object-fit:cover;border-radius:20px}.apf-quick,.apf-calendar,.apf-details,.apf-editor,.apf-next{background:#fff;border:1px solid #e4e7df;border-radius:22px;padding:26px;margin-top:20px}.apf-wrap h2{color:var(--green)!important}.apf-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.apf-facts div,.apf-three div{background:#f7f7f2;border-radius:14px;padding:15px}.apf-facts small{display:block;color:#738078;font-weight:700;margin-bottom:5px}.apf-facts strong{display:block}.apf-three{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.apf-three b,.apf-three span{display:block}.apf-three span{margin-top:6px;color:#606c64}.apf-months{display:grid;grid-template-columns:repeat(12,1fr);gap:4px;margin-top:16px}.apf-months span{text-align:center;background:#edf4e9;padding:9px 2px;border-radius:8px;font-size:12px;font-weight:700}.apf-note{font-size:12px;color:#7a817d;margin:10px 0 0}.apf-tip{background:#fff5df;border-left:5px solid var(--orange);border-radius:15px;padding:18px 20px;margin-top:20px}.apf-tip p{margin:6px 0 0}.ap-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}
@media(max-width:900px){.apg-grid{grid-template-columns:repeat(2,1fr)}.apf-head{grid-template-columns:1fr}.apf-facts,.apf-three{grid-template-columns:1fr 1fr}.apf-months{grid-template-columns:repeat(6,1fr)}}@media(max-width:560px){.apg-wrap,.apf-wrap{margin-top:15px}.apg-hero{padding:34px 24px;border-radius:20px}.apg-grid{grid-template-columns:1fr}.apf-facts,.apf-three{grid-template-columns:1fr}.apf-head{padding:23px}.apf-months{grid-template-columns:repeat(4,1fr)}}

/* v1.1.1 — correctif ciblé pour les fiches Astuces Potager.
   Le footer #footer-widgets n'est volontairement jamais ciblé. */
body.single-ap_culture #content-wrap.container{
  display:block!important;
  max-width:1180px!important;
  width:calc(100% - 40px)!important;
}
body.single-ap_culture #primary.content-area{
  float:none!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
body.single-ap_culture #secondary.widget-area{
  display:none!important;
}
body.single-ap_culture article.ap_culture .entry-header{
  display:none!important;
}
body.single-ap_culture article.ap_culture .entry-container,
body.single-ap_culture article.ap_culture .entry-content,
body.single-ap_culture .single-post-wrap{
  width:100%!important;
  max-width:none!important;
}
body.single-ap_culture .apf-wrap{
  max-width:1180px!important;
  width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.single-ap_culture .post-navigation{
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
}
@media(max-width:600px){body.single-ap_culture #content-wrap.container{width:calc(100% - 24px)!important}}
/* V1.2.0 — fiche HYPER DATA */
body.single-ap_culture #breadcrumbs{display:none!important}
.apf-months-data span{position:relative;overflow:hidden}
.apf-months-data span.is-sow{box-shadow:inset 0 -5px 0 #7fbf73}
.apf-months-data span.is-plant{background:#e4f1dd}
.apf-months-data span.is-harvest{border:2px solid #d99038}
.apf-legend{display:flex;gap:18px;flex-wrap:wrap;margin:12px 0 4px;font-size:12px;font-weight:700;color:#526052}
.apf-legend span:nth-child(1){color:#55964d}.apf-legend span:nth-child(2){color:#2f6c43}.apf-legend span:nth-child(3){color:#c36d19}
.apf-practical{background:#fff;border:1px solid #e3e8de;border-radius:20px;padding:24px;margin-top:18px}
.apf-practical h2{margin-top:0;color:#25583c}.apf-practical-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.apf-practical-grid>div{background:#f7f8f3;border-radius:14px;padding:16px}.apf-practical-grid h3{margin:0 0 7px;font-size:16px;color:#2b6042}.apf-practical-grid p{margin:0;line-height:1.55}.apf-facts-6{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:760px){.apf-practical-grid,.apf-facts-6{grid-template-columns:1fr}.apf-legend{gap:10px}.apf-months-data{grid-template-columns:repeat(4,1fr)}}
/* V1.4 DATA FINALE */
.apf-retain,.apf-editorial{background:#fff;border:1px solid #dfe6da;border-radius:22px;padding:24px;margin:18px 0}.apf-retain h2,.apf-editorial h2{margin:0 0 18px;color:#245c3b}.apf-retain-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.apf-retain-grid>div{background:#f5f6f1;border-radius:14px;padding:14px}.apf-retain-grid small{display:block;color:#688071;margin-bottom:6px}.apf-retain-grid strong{display:block;color:#203f2e}.apf-editorial-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.apf-editorial-grid article{background:#f8f8f4;border-radius:16px;padding:18px}.apf-editorial-grid h3{margin:0 0 8px;color:#2d6544;font-size:18px}.apf-editorial-grid p{margin:0;line-height:1.65}@media(max-width:800px){.apf-retain-grid,.apf-editorial-grid{grid-template-columns:1fr}.apf-retain,.apf-editorial{padding:18px}}
/* V1.6 — maillage interne fiches ↔ fiches ↔ articles */
.apf-mesh{background:#fff;border:1px solid #dfe6da;border-radius:22px;padding:24px;margin:18px 0}.apf-mesh>h2{margin:0 0 18px!important}.apf-mesh-part+ .apf-mesh-part{margin-top:22px}.apf-mesh-part h3{font-size:17px;margin:0 0 10px;color:#356346}.apf-mesh-cultures{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.apf-mesh-cultures a{display:flex;flex-direction:column;gap:5px;background:#f1f6ed;border:1px solid #e1eadc;border-radius:14px;padding:14px;text-decoration:none!important;color:#28543a!important;font-weight:800}.apf-mesh-cultures small{font-weight:700;color:#a65b24}.apf-mesh-articles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.apf-mesh-articles a{display:flex;flex-direction:column;justify-content:space-between;gap:10px;background:#faf8f1;border-radius:14px;padding:15px;text-decoration:none!important;color:#263b2e!important}.apf-mesh-articles span{color:#a65b24;font-weight:800;font-size:13px}.ap-article-cultures{margin:28px 0;padding:18px 20px;background:#f3f7ef;border-left:4px solid #4f8a4a;border-radius:12px}.ap-article-cultures>b{display:block;color:#28543a;margin-bottom:10px}.ap-article-cultures>div{display:flex;gap:8px;flex-wrap:wrap}.ap-article-cultures a{background:#fff;border:1px solid #dfe8d9;border-radius:999px;padding:8px 12px;text-decoration:none!important;color:#28543a!important;font-weight:700}.ap-article-cultures a span{color:#b5652c}@media(max-width:800px){.apf-mesh-cultures,.apf-mesh-articles{grid-template-columns:1fr 1fr}}@media(max-width:520px){.apf-mesh-cultures,.apf-mesh-articles{grid-template-columns:1fr}}

/* V1.6.2 — masque uniquement l'image mise en avant injectée par le thème.
   L'image .apf-photo intégrée au hero du guide reste affichée. */
body.single-ap_culture article.ap_culture > .post-thumbnail,
body.single-ap_culture article.ap_culture > .post-image,
body.single-ap_culture article.ap_culture > .featured-image,
body.single-ap_culture article.ap_culture > .entry-media,
body.single-ap_culture article.ap_culture > .entry-thumbnail,
body.single-ap_culture article.ap_culture > figure.wp-post-image,
body.single-ap_culture article.ap_culture > a.post-thumbnail,
body.single-ap_culture .single-post-wrap > .post-thumbnail,
body.single-ap_culture .single-post-wrap > .post-image,
body.single-ap_culture .single-post-wrap > .featured-image,
body.single-ap_culture .single-post-wrap > .entry-media,
body.single-ap_culture .single-post-wrap > .entry-thumbnail,
body.single-ap_culture .single-post-wrap > figure.wp-post-image,
body.single-ap_culture .single-post-wrap > a.post-thumbnail {
  display:none!important;
}


/* V1.6.3 — ciblage exact du HTML du thème sur les fiches cultures. */
body.single-ap_culture article.ap_culture .blog-post-item > .featured-image,
body.single-ap_culture article.ap_culture .blog-post-item > .entry-container > .entry-header,
body.single-ap_culture .single-post-wrap > #breadcrumbs {
  display:none!important;
}
/* Garde le contenu du plugin et son image de hero intacts. */
body.single-ap_culture article.ap_culture .blog-post-item > .entry-container {
  width:100%!important;
  max-width:none!important;
}
