/* AGRI360 Phyto — styles strictly scoped to product-fiche content. No theme-global rules. */
.agri360-phyto-fiche{--pf-red:#bf172c;--pf-green:#16653e;--pf-stroke:#e8e8e8;--pf-muted:#647078;display:grid;gap:18px;margin:24px 0 34px;color:inherit;font:inherit}
.agri360-phyto-fiche *{box-sizing:border-box}
.agri360-phyto-fiche .agri360-pf-card,.agri360-phyto-fiche .agri360-pf-status{border:1px solid var(--pf-stroke);border-radius:9px;padding:22px;background:#fff;box-shadow:0 3px 12px rgba(0,0,0,.035)}
.agri360-phyto-fiche h2{display:flex;align-items:center;gap:11px;margin:0 0 17px!important;font-size:1.12rem!important;line-height:1.4;font-weight:700;color:inherit}
.agri360-phyto-fiche .agri360-pf-symbol{width:31px;height:31px;flex:none;background:var(--pf-red);color:white;display:inline-flex;align-items:center;justify-content:center;border-radius:6px;font-family:system-ui,sans-serif;font-weight:700;font-size:18px}
.agri360-phyto-fiche .agri360-pf-status{display:flex;gap:15px;align-items:flex-start;background:#f0faf4;border-color:#d7ecdd}
.agri360-phyto-fiche .agri360-pf-status-icon{width:40px;height:40px;flex:none;display:flex;align-items:center;justify-content:center;border-radius:100%;background:var(--pf-green);color:white;font:bold 23px system-ui,sans-serif}
.agri360-phyto-fiche .agri360-pf-status strong{color:#125333;font-size:1.02rem}
.agri360-phyto-fiche .agri360-pf-status p{margin:5px 0 4px;line-height:1.5}
.agri360-phyto-fiche .agri360-pf-status small{display:block;color:#52605a;line-height:1.5}
.agri360-phyto-fiche .agri360-pf-warning{background:#fff7eb;border-color:#f0dcba}
.agri360-phyto-fiche .agri360-pf-warning .agri360-pf-status-icon{background:#aa6620}
.agri360-phyto-fiche .agri360-pf-warning strong{color:#885010}
.agri360-phyto-fiche .agri360-pf-details{display:grid;margin:0;border:1px solid #e9edf0;border-radius:6px;overflow:hidden}
.agri360-phyto-fiche .agri360-pf-details>div{display:grid;grid-template-columns:42% 58%;min-width:0;border-bottom:1px solid #e9edf0}
.agri360-phyto-fiche .agri360-pf-details>div:last-child{border-bottom:none}
.agri360-phyto-fiche .agri360-pf-details dt,.agri360-phyto-fiche .agri360-pf-details dd{margin:0;padding:9px 12px;min-width:0;overflow-wrap:anywhere;font-size:.92rem;line-height:1.45}
.agri360-phyto-fiche .agri360-pf-details dt{background:#f5f6f7;color:#48515c;font-weight:600}
.agri360-phyto-fiche .agri360-pf-details dd{background:#fff}
.agri360-phyto-fiche .agri360-pf-table-wrap{width:100%;overflow-x:auto}
.agri360-phyto-fiche table{width:100%;margin:0;border-collapse:collapse;font-size:.9rem;min-width:420px}
.agri360-phyto-fiche th{background:#fae8eb;color:#8b1021;font-weight:700;text-align:left}
.agri360-phyto-fiche th,.agri360-phyto-fiche td{padding:12px;border:1px solid #e8eaed;vertical-align:top;overflow-wrap:anywhere}
.agri360-phyto-fiche tr:nth-child(even) td{background:#fafafa}
.agri360-phyto-fiche .agri360-pf-source{margin:15px 0 0;font-size:.81rem;color:var(--pf-muted);line-height:1.5}
.agri360-phyto-fiche .agri360-pf-disclosure{font-size:.8rem;color:var(--pf-muted);margin:-5px 0 15px}
.agri360-phyto-fiche .agri360-pf-supplier a{color:var(--pf-red);overflow-wrap:anywhere}
.agri360-phyto-fiche .agri360-pf-reminder{background:#f8fbf9;border-color:#dceee3}
.agri360-phyto-fiche .agri360-pf-reminder .agri360-pf-symbol{background:var(--pf-green)}
.agri360-phyto-fiche .agri360-pf-reminder p{margin:0 0 10px;line-height:1.6}
.agri360-phyto-fiche .agri360-pf-reminder p:last-child{margin-bottom:0}
@media(max-width:600px){.agri360-phyto-fiche{gap:13px}.agri360-phyto-fiche .agri360-pf-card,.agri360-phyto-fiche .agri360-pf-status{padding:15px}.agri360-phyto-fiche .agri360-pf-details>div{grid-template-columns:1fr}.agri360-phyto-fiche .agri360-pf-details dt{padding-bottom:5px}.agri360-phyto-fiche .agri360-pf-details dd{padding-top:5px}}

/* Maillage interne : styles isolés dans les fiches phyto */
.agri360-phyto-fiche .agri360-pf-related-list{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.agri360-phyto-fiche .agri360-pf-related-list li{margin:0;padding:0}
.agri360-phyto-fiche .agri360-pf-related-list a{display:block;padding:11px 14px;border:1px solid #e9e9e9;border-radius:8px;text-decoration:none;font-weight:600;color:inherit}
.agri360-phyto-fiche .agri360-pf-related-list a:hover,.agri360-phyto-fiche .agri360-pf-related-list a:focus-visible{border-color:#bd2935;color:#bd2935;text-decoration:underline}

/* Encadré fournisseur V1.8.3 : styles locaux, aucune règle globale sur le thème. */
.agri360-phyto-fiche .agri360-pf-supplier-invite{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:24px;align-items:center;padding:23px 25px;border:1px solid #e9bc91;border-left:4px solid #bd7639;border-radius:9px;background:#fcf8f3;box-shadow:none;box-sizing:border-box}
.agri360-phyto-fiche .agri360-pf-invite-copy{min-width:0}
.agri360-phyto-fiche .agri360-pf-invite-tag{display:block;color:#9b5427;font:700 .73rem system-ui,sans-serif;letter-spacing:.055em}
.agri360-phyto-fiche .agri360-pf-supplier-invite h2{margin:9px 0 12px!important;color:#39271f;font-family:Georgia,serif;font-weight:700;font-size:clamp(1.25rem,2vw,1.7rem);line-height:1.2}
.agri360-phyto-fiche .agri360-pf-supplier-invite p{margin:0 0 12px;line-height:1.6;color:#49372f;font-size:.96rem}
.agri360-phyto-fiche .agri360-pf-supplier-invite small{display:block;margin:0 0 16px;color:#75665d;line-height:1.5;font-size:.8rem}
.agri360-phyto-fiche .agri360-pf-invite-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:#bf142d;color:#fff!important;border-radius:5px;padding:11px 19px;text-decoration:none!important;font:700 .9rem system-ui,sans-serif;transition:background-color .16s ease}
.agri360-phyto-fiche .agri360-pf-invite-button:hover,.agri360-phyto-fiche .agri360-pf-invite-button:focus-visible{background:#971125;color:#fff!important;text-decoration:underline!important}
.agri360-phyto-fiche .agri360-pf-invite-button:focus-visible{outline:3px solid #bd7639;outline-offset:3px}
.agri360-phyto-fiche .agri360-pf-invite-features{border-left:1px solid #e9d5c3;padding-left:22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.agri360-phyto-fiche .agri360-pf-invite-feature{display:flex;align-items:center;gap:9px;padding:12px 9px;border:1px solid #ebdacc;border-radius:9px;background:#fffdfb;min-width:0}
.agri360-phyto-fiche .agri360-pf-invite-feature-icon{flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#fbe8e5;color:#bd172b;display:flex;align-items:center;justify-content:center;font:700 1.15rem Georgia,serif}
.agri360-phyto-fiche .agri360-pf-invite-feature-text{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere;line-height:1.25}
.agri360-phyto-fiche .agri360-pf-invite-feature-text strong{color:#39271f;font:700 .85rem Georgia,serif}
.agri360-phyto-fiche .agri360-pf-invite-feature-text span{color:#726359;font:400 .72rem system-ui,sans-serif}
@media(max-width:900px){.agri360-phyto-fiche .agri360-pf-supplier-invite{grid-template-columns:1fr;gap:17px}.agri360-phyto-fiche .agri360-pf-invite-features{border-left:0;border-top:1px solid #e9d5c3;padding:16px 0 0}}
@media(max-width:520px){.agri360-phyto-fiche .agri360-pf-supplier-invite{padding:17px 14px}.agri360-phyto-fiche .agri360-pf-invite-features{gap:7px}.agri360-phyto-fiche .agri360-pf-invite-feature{padding:9px 6px;gap:6px}.agri360-phyto-fiche .agri360-pf-invite-feature-icon{flex-basis:27px;width:27px;height:27px}.agri360-phyto-fiche .agri360-pf-invite-button{display:flex;width:100%;box-sizing:border-box;text-align:center}}


/* V1.8.5 — Usages : intégration au système de tableaux du thème AGRI360 News.
   Limiter le défilement au tableau, jamais à la page ni à la colonne latérale.
   Styles exclusivement confinés à la fiche phyto. */
.agri360-phyto-fiche,
.agri360-phyto-fiche .agri360-pf-card,
.agri360-phyto-fiche .agri360-pf-table-wrap {
  min-width:0;
  max-width:100%;
}
.agri360-phyto-fiche .agri360-pf-table-wrap {
  display:block;
  width:100%;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}
/* tables.js peut entourer ce tableau du même viewport que les articles. */
.agri360-phyto-fiche .agri360-pf-table-wrap .agri360-table-shell {
  min-width:0;
  max-width:100%;
  width:100%;
  margin:0;
}
.agri360-phyto-fiche .agri360-pf-table-wrap .agri360-table-viewport {
  min-width:0;
  max-width:100%;
  width:100%;
  overflow-x:auto;
}
.agri360-phyto-fiche .agri360-pf-table-wrap table {
  /* Le thème garde ses en-têtes rouges, alternances et contrôles de défilement. */
  margin:0;
  border-collapse:separate;
  border-spacing:0;
  min-width:100%;
  max-width:none;
  width:max-content;
  font-size:.9rem;
}
.agri360-phyto-fiche .agri360-pf-table-wrap th,
.agri360-phyto-fiche .agri360-pf-table-wrap td {
  white-space:normal;
  overflow-wrap:break-word;
  vertical-align:top;
}
@media(max-width:700px){
 .agri360-phyto-fiche .agri360-pf-table-wrap th,
 .agri360-phyto-fiche .agri360-pf-table-wrap td {padding:10px 12px}
}

/* V1.8.6 — navigation des fiches, styles strictement locaux */
.agri360-phyto-fiche .agri360-pf-navigation{max-width:100%;min-width:0;margin:0 0 18px;padding:0;font-family:inherit}
.agri360-phyto-fiche .agri360-pf-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:7px;font-size:.78rem;color:#6f665f;margin-bottom:12px}
.agri360-phyto-fiche .agri360-pf-breadcrumb a{color:#8d4730;text-decoration:none}
.agri360-phyto-fiche .agri360-pf-breadcrumb a:hover{text-decoration:underline}
.agri360-phyto-fiche .agri360-pf-navigation-bar{display:flex;flex-wrap:wrap;gap:14px;justify-content:space-between;align-items:center;padding:13px 15px;border:1px solid #e6d6c8;border-radius:8px;background:#fcf9f6}
.agri360-phyto-fiche .agri360-pf-navigation-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.agri360-phyto-fiche .agri360-pf-index-link{color:#b7122b;font-weight:700;text-decoration:none;font-size:.83rem}
.agri360-phyto-fiche .agri360-pf-index-alt{color:#66534a;font-size:.8rem;text-decoration:underline}
.agri360-phyto-fiche .agri360-pf-search{display:flex;align-items:flex-start;flex-direction:column;gap:3px;flex:1 1 195px;max-width:270px;margin:0}
.agri360-phyto-fiche .agri360-pf-search label{font-size:.7rem;color:#66534a;font-weight:600}
.agri360-phyto-fiche .agri360-pf-search>div{display:flex;max-width:100%;width:100%;gap:5px;min-width:0}
.agri360-phyto-fiche .agri360-pf-search input[type=search]{flex:1;min-width:0;width:80px;max-width:100%;height:34px;padding:6px 8px;margin:0;border:1px solid #d9c8bb;border-radius:5px;background:#fff;font-size:.78rem}
.agri360-phyto-fiche .agri360-pf-search button{flex:none;border:0;border-radius:5px;background:#b90e2a;color:#fff;padding:6px 9px;font-size:.75rem;cursor:pointer;height:34px}
.agri360-phyto-fiche .agri360-pf-navigation-bottom{margin:18px 0 4px}
@media(max-width:720px){.agri360-phyto-fiche .agri360-pf-navigation-bar{display:block}.agri360-phyto-fiche .agri360-pf-search{max-width:none;margin-top:12px}.agri360-phyto-fiche .agri360-pf-navigation-actions{gap:9px}}

/* V1.8.7 - Annuaire SEO: mise en forme circonscrite au shortcode */
.agri360-phyto-directory{max-width:100%;min-width:0}
.agri360-phyto-directory *{box-sizing:border-box}
.agri360-phyto-directory-search{display:flex;gap:9px;margin:10px 0 16px}
.agri360-phyto-directory-search input{flex:1;min-width:0;padding:12px;border:1px solid #ddd;border-radius:6px}
.agri360-phyto-directory-search button{padding:10px 17px;background:#bb172c;color:#fff;border:0;border-radius:6px;cursor:pointer}
.agri360-phyto-directory-list{list-style:none!important;padding:0!important;margin:0!important;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.agri360-phyto-directory-list li{margin:0!important;border:1px solid #e8e8e8;border-radius:8px;padding:14px;min-width:0}
.agri360-phyto-directory-list li a{display:block;font-weight:700;color:#a51126;text-decoration:none;overflow-wrap:anywhere}
.agri360-phyto-directory-list li small{display:block;color:#687079;margin-top:6px}
.agri360-phyto-directory-pagination{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.agri360-phyto-directory-pagination a{padding:7px 11px;border:1px solid #e5e5e5;border-radius:5px;text-decoration:none}
.agri360-phyto-directory-pagination a[aria-current=page]{background:#bb172c;color:#fff}
@media(max-width:650px){.agri360-phyto-directory-list{grid-template-columns:1fr}.agri360-phyto-directory-search{flex-direction:column}}

/* V1.9.0 - Annuaire classique épuré, uniquement sur la page répertoire. */
.agri360-phyto-directory{font-family:inherit;color:inherit;max-width:100%;}
.agri360-phyto-directory .agri360-pdir-head{padding:18px 20px 21px;background:#fcfaf8;border:1px solid #eaded5;border-radius:9px;margin-bottom:20px}
.agri360-phyto-directory .agri360-pdir-head h2{margin:0 0 10px;font-size:clamp(1.4rem,2vw,1.85rem);line-height:1.25}
.agri360-phyto-directory .agri360-pdir-head p{margin:0 0 14px;line-height:1.55;color:#5e5651}
.agri360-phyto-directory .agri360-pdir-cta{display:inline-block;background:#be1930;color:#fff!important;text-decoration:none!important;border-radius:5px;padding:11px 16px;font-weight:700;font-size:.9rem}
.agri360-phyto-directory .agri360-pdir-form{padding:16px;border:1px solid #e6dfd8;border-radius:8px;margin:0 0 12px}
.agri360-phyto-directory .agri360-pdir-form label{display:block;font-weight:700;margin-bottom:9px}
.agri360-phyto-directory .agri360-phyto-directory-search{display:grid;grid-template-columns:minmax(0,2fr) minmax(145px,1fr) auto;gap:9px;margin:0}
.agri360-phyto-directory .agri360-phyto-directory-search select{min-width:0;width:100%;background:#fff;border:1px solid #ded6d0;border-radius:5px;padding:9px}
.agri360-phyto-directory .agri360-phyto-directory-search input{width:100%;border-color:#ded6d0}
.agri360-phyto-directory .agri360-phyto-directory-count{font-weight:700;color:#45342d;margin:17px 0 13px}
.agri360-phyto-directory .agri360-phyto-directory-list{display:block;padding:0!important;margin:0!important;list-style:none!important;border:1px solid #e8e2dc;border-radius:8px;overflow:hidden}
.agri360-phyto-directory .agri360-phyto-directory-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0!important;border:0;border-bottom:1px solid #e9e5e1;border-radius:0;background:#fff;padding:15px 17px}
.agri360-phyto-directory .agri360-phyto-directory-list li:nth-child(even){background:#fcfbfa}
.agri360-phyto-directory .agri360-phyto-directory-list li:last-child{border-bottom:0}
.agri360-phyto-directory .agri360-pdir-product{min-width:0;flex:1}
.agri360-phyto-directory .agri360-pdir-product a{color:#9e142b;font-size:.98rem;font-weight:700;text-decoration:none}
.agri360-phyto-directory .agri360-pdir-product a:hover{text-decoration:underline}
.agri360-phyto-directory .agri360-pdir-product small{font-size:.8rem;margin-top:5px;color:#6a6360}
.agri360-phyto-directory .agri360-pdir-tag{flex-shrink:0;background:#eff7f1;border:1px solid #d4e5d7;color:#23563d;border-radius:30px;padding:5px 10px;font-size:.72rem;font-weight:700}
.agri360-phyto-directory .agri360-pdir-tag-missing,.agri360-phyto-directory .agri360-pdir-tag-review{background:#fff5e9;border-color:#f1dbc0;color:#8a5426}
.agri360-phyto-directory .agri360-pdir-tag-confirmed{background:#fff0f1;border-color:#e6b4bb;color:#9d2434}
.agri360-phyto-fiche .agri360-pf-state-missing,.agri360-phyto-fiche .agri360-pf-state-review{background:#fff8ec;border-color:#edddbc}
.agri360-phyto-fiche .agri360-pf-state-missing .agri360-pf-status-icon,.agri360-phyto-fiche .agri360-pf-state-review .agri360-pf-status-icon{background:#aa7233}
.agri360-phyto-fiche .agri360-pf-state-confirmed{background:#fff0f1;border-color:#e7bdc2}
.agri360-phyto-fiche .agri360-pf-state-confirmed .agri360-pf-status-icon{background:#b41e37}
@media(max-width:680px){.agri360-phyto-directory .agri360-phyto-directory-search{grid-template-columns:minmax(0,1fr)}.agri360-phyto-directory .agri360-phyto-directory-list li{align-items:flex-start;flex-direction:column}.agri360-phyto-directory .agri360-pdir-head{padding:15px}}
