@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

@layer reset, base, theme, components, utilities;

/* ==========================================================================
   DESIGN SYSTEM ÉDITORIAL IMPRIMÉ "ANTI-IA" v2.2 — peut-on-manger.com
   Sources : VoltAgent/awesome-design-md, edwardtufte/tufte-css,
             ubuwaits/beautiful-web-type, argyleink/open-props
   ========================================================================== */
:root {
  --pm-paper: #F6F3EC;
  --pm-surface: #FFFDF9;
  --pm-surface-subtle: #EFEAE0;
  --pm-ink: #141615;
  --pm-ink-secondary: #46504C;
  --pm-ink-muted: #6E7874;
  --pm-rule: #D8D0C1;
  --pm-rule-strong: #141615;

  --pm-forest: #1E4638;
  --pm-forest-dark: #132F25;
  --pm-forest-tint: #E6F0EC;
  --pm-terracotta: #B85336;
  --pm-terracotta-tint: #FBF0EC;

  --pm-safe-bg: #EBF5EE;
  --pm-safe-ink: #14532D;
  --pm-safe-border: #A7D7B8;

  --pm-caution-bg: #FEF6E6;
  --pm-caution-ink: #7C3A0A;
  --pm-caution-border: #F3CB83;

  --pm-danger-bg: #FCECEB;
  --pm-danger-ink: #881313;
  --pm-danger-border: #EFA9A9;

  --pm-font-serif: 'Newsreader', Georgia, Cambria, 'Times New Roman', serif;
  --pm-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pm-font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --pm-radius-sm: 4px;
  --pm-radius-md: 8px;
  --pm-shadow-editorial: 0 2px 8px rgba(20, 22, 21, 0.05);
}

body,
.editor-styles-wrapper {
  background-color: var(--pm-paper) !important;
  color: var(--pm-ink) !important;
  font-family: var(--pm-font-sans) !important;
  font-size: 1.0625rem !important;
  line-height: 1.68 !important;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.wp-block-heading {
  font-family: var(--pm-font-serif) !important;
  font-optical-sizing: auto;
  color: var(--pm-ink) !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.18 !important;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 2.75rem) !important;
  margin-block-end: 0.75rem !important;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem) !important;
  padding-block-top: 1.25rem;
  border-block-start: 1px solid var(--pm-rule);
  margin-block-start: 2.25rem !important;
  margin-block-end: 1rem !important;
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.38rem) !important;
}

a {
  color: var(--pm-forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22ch;
  transition: color 0.15s ease;
}

a:hover:not(:disabled),
a:focus-visible {
  color: var(--pm-terracotta);
  text-decoration-style: solid;
}

header.wp-block-template-part {
  background: var(--pm-surface) !important;
  border-block-end: 2px solid var(--pm-ink) !important;
}

.rank-math-breadcrumb p {
  font-family: var(--pm-font-mono) !important;
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pm-ink-muted) !important;
  padding-block: 0.75rem;
  border-block-end: 1px solid var(--pm-rule);
  margin-block: 0 1.25rem !important;
}

/* ==========================================================================
   Kicker Éditorial & En-tête de Fiche
   ========================================================================== */
.pm-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-family: var(--pm-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pm-ink-muted);
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--pm-rule);
}

.pm-eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--pm-font-mono) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--pm-forest) !important;
  margin-block-end: 0.65rem !important;
}

/* ==========================================================================
   Hero Grid : Alignement Millimétré Photo + Bandeau Verdict (Zéro décalage)
   ========================================================================== */
.pm-food-hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin: 1.25rem 0 1.75rem 0;
}

@media (max-width: 720px) {
  .pm-food-hero-grid {
    grid-template-columns: 1fr;
  }
}

.pm-food-hero-img {
  display: flex;
  flex-direction: column;
  border: 1.5px solid #1C1917;
  border-radius: var(--pm-radius-md);
  box-shadow: 4px 4px 0 var(--pm-rule);
  overflow: hidden;
  background: #FFFDF9;
  margin: 0 !important;
}

.pm-food-hero-img img {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 195px;
  max-height: 240px;
  object-fit: cover;
}

.pm-food-hero-caption {
  font-family: var(--pm-font-mono);
  font-size: 0.72rem;
  line-height: 1.4;
  color: #57534E;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid #E7E0D6;
  background: #FAF8F5;
}

.pm-verdict-banner {
  padding: 1.35rem 1.5rem !important;
  border-radius: var(--pm-radius-md) !important;
  border: 1px solid var(--pm-rule) !important;
  border-inline-start-width: 5px !important;
  background: var(--pm-surface) !important;
  margin-block: 1.25rem 1.75rem;
  box-shadow: var(--pm-shadow-editorial) !important;
}

/* Suppression de tout décalage vertical quand le bandeau est dans la Hero Grid */
.pm-food-hero-grid .pm-verdict-banner {
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pm-verdict-banner.is-danger {
  background: var(--pm-danger-bg) !important;
  border-color: var(--pm-danger-border) !important;
  border-inline-start-color: var(--pm-danger-ink) !important;
}

.pm-verdict-banner.is-caution {
  background: var(--pm-caution-bg) !important;
  border-color: var(--pm-caution-border) !important;
  border-inline-start-color: var(--pm-caution-ink) !important;
}

.pm-verdict-banner.is-safe {
  background: var(--pm-safe-bg) !important;
  border-color: var(--pm-safe-border) !important;
  border-inline-start-color: var(--pm-safe-ink) !important;
}

.pm-verdict-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.pm-verdict-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(20, 22, 21, 0.06);
  color: currentColor;
  flex-shrink: 0;
}

.pm-verdict-badge,
.pm-verdict-kicker {
  font-family: var(--pm-font-mono) !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: inherit !important;
}

.pm-verdict-banner.is-caution .pm-verdict-header { color: var(--pm-caution-ink); }
.pm-verdict-banner.is-danger .pm-verdict-header { color: var(--pm-danger-ink); }
.pm-verdict-banner.is-safe .pm-verdict-header { color: var(--pm-safe-ink); }

.pm-verdict-title {
  font-family: var(--pm-font-serif) !important;
  font-size: 1.32rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: var(--pm-ink) !important;
  margin-block: 0 0.5rem !important;
  border: none !important;
  padding: 0 !important;
}

.pm-verdict-summary {
  font-size: 0.96rem !important;
  line-height: 1.58 !important;
  color: var(--pm-ink) !important;
  margin: 0 !important;
}

/* ==========================================================================
   Grille de Spécifications Cliniques (IBM Plex Mono)
   ========================================================================== */
.pm-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  border-block-start: 2px solid var(--pm-ink);
  border-block-end: 1px solid var(--pm-ink);
  background: var(--pm-surface);
  margin-block: 1.5rem 2rem;
}

.pm-spec-cell {
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pm-spec-cell:not(:last-child) {
  border-inline-end: 1px solid var(--pm-rule);
}

.pm-spec-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--pm-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--pm-ink-muted);
}

.pm-spec-value {
  font-family: var(--pm-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--pm-ink);
  line-height: 1.3;
}

.pm-spec-value.is-caution { color: var(--pm-caution-ink); }
.pm-spec-value.is-safe { color: var(--pm-safe-ink); }
.pm-spec-value.is-danger { color: var(--pm-danger-ink); }

.pm-spec-sub {
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--pm-ink-secondary);
}

/* ==========================================================================
   Sélecteur Interactif Moderne (Segmented Control + JS & CSS :has)
   ========================================================================== */
.pm-calc-card {
  background: var(--pm-surface);
  border: 1.5px solid var(--pm-ink);
  border-radius: 12px;
  padding: 1.65rem;
  margin-block: 2rem;
  box-shadow: 0 8px 24px rgba(20, 22, 21, 0.06), 4px 4px 0 var(--pm-rule);
}

.pm-calc-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-block-end: 0.85rem;
  margin-block-end: 0.85rem;
  border-block-end: 1px solid var(--pm-rule);
}

.pm-calc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--pm-font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pm-forest);
  background: var(--pm-forest-tint);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.pm-calc-title {
  font-family: var(--pm-font-serif) !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  color: var(--pm-ink) !important;
}

.pm-calc-desc {
  font-size: 0.94rem;
  color: var(--pm-ink-secondary);
  margin: 0 0 1.15rem 0;
  line-height: 1.55;
}

.pm-calc-badge {
  font-family: var(--pm-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--pm-forest);
  color: #FFFFFF;
  padding: 0.25rem 0.65rem;
  border-radius: var(--pm-radius-sm);
}

/* Masquage propre des inputs radio natifs */
.pm-weight-radio,
.pm-weight-tab input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}

/* Barre Segmented Control Moderne */
.pm-weight-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.5rem;
  background: #EAE4D7;
  padding: 0.4rem;
  border-radius: 10px;
  border: 1px solid #D5CBB8;
  margin-block-end: 1.25rem;
}

.pm-weight-tabs label,
.pm-weight-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  font-family: var(--pm-font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: #44403C;
  background: rgba(255, 253, 249, 0.45);
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.pm-weight-tabs label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #A8A29E;
  flex-shrink: 0;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.pm-weight-tabs label:hover,
.pm-weight-tab:hover {
  background: rgba(255, 253, 249, 0.85);
  color: var(--pm-ink);
}

/* État Actif du Segmented Control (via :has ou classe JS .is-active) */
.pm-weight-tab:has(input:checked),
.pm-weight-tabs label.is-active,
.pm-calc-card:has(#pm-prof-toxo-non:checked) .pm-weight-tabs label[for="pm-prof-toxo-non"],
.pm-calc-card:has(#pm-prof-toxo-oui:checked) .pm-weight-tabs label[for="pm-prof-toxo-oui"],
.pm-calc-card:has(#pm-prof-allaitement:checked) .pm-weight-tabs label[for="pm-prof-allaitement"],
.pm-calc-card:has(#pm-prof-bebe:checked) .pm-weight-tabs label[for="pm-prof-bebe"] {
  background: #FFFFFF !important;
  color: #141615 !important;
  border-color: #141615 !important;
  box-shadow: 0 3px 10px rgba(20, 22, 21, 0.12), 0 1px 2px rgba(20, 22, 21, 0.08) !important;
  transform: translateY(-1px);
}

.pm-weight-tabs label.is-active::before,
.pm-calc-card:has(#pm-prof-toxo-non:checked) .pm-weight-tabs label[for="pm-prof-toxo-non"]::before,
.pm-calc-card:has(#pm-prof-toxo-oui:checked) .pm-weight-tabs label[for="pm-prof-toxo-oui"]::before,
.pm-calc-card:has(#pm-prof-bebe:checked) .pm-weight-tabs label[for="pm-prof-bebe"]::before {
  background: #D97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
  transform: scale(1.1);
}

.pm-calc-card:has(#pm-prof-allaitement:checked) .pm-weight-tabs label[for="pm-prof-allaitement"]::before {
  background: #16A34A;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
  transform: scale(1.1);
}

/* Panneaux de résultats */
.pm-weight-panel,
.pm-calc-panel {
  display: none;
  background: #FAF7F0;
  border: 1px solid #E2DACB;
  border-inline-start: 4px solid var(--pm-forest);
  border-radius: 8px;
  padding: 1.25rem 1.35rem;
  animation: pmPanelFadeIn 0.22s ease-out;
}

@keyframes pmPanelFadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.pm-calc-panel.pm-panel-toxo-non,
.pm-calc-panel.pm-panel-toxo-oui,
.pm-calc-panel.pm-panel-bebe {
  border-inline-start-color: #B45309;
  background: #FFFDF7;
}

.pm-calc-panel.pm-panel-allaitement {
  border-inline-start-color: #15803D;
  background: #F6FBF7;
}

.pm-calc-panel.is-active,
.pm-calc-card:has(#pm-w-cat:checked) .pm-panel-cat,
.pm-calc-card:has(#pm-w-5kg:checked) .pm-panel-5kg,
.pm-calc-card:has(#pm-w-10kg:checked) .pm-panel-10kg,
.pm-calc-card:has(#pm-w-25kg:checked) .pm-panel-25kg,
.pm-calc-card:has(#pm-prof-toxo-non:checked) .pm-panel-toxo-non,
.pm-calc-card:has(#pm-prof-toxo-oui:checked) .pm-panel-toxo-oui,
.pm-calc-card:has(#pm-prof-allaitement:checked) .pm-panel-allaitement,
.pm-calc-card:has(#pm-prof-bebe:checked) .pm-panel-bebe {
  display: block;
}

.pm-calc-result-title {
  font-family: var(--pm-font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--pm-ink);
  margin: 0.25rem 0 0.45rem 0;
  line-height: 1.35;
}

.pm-calc-result-text {
  font-size: 0.95rem;
  line-height: 1.62;
  color: #292524;
  margin: 0;
}

.pm-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--pm-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  border: 1px solid currentColor;
  margin-bottom: 0.35rem;
}

.pm-profile-badge.is-caution { background: #FEF3C7; color: #92400E; }
.pm-profile-badge.is-safe { background: #DCFCE7; color: #166534; }
.pm-profile-badge.is-danger { background: #FEE2E2; color: #991B1B; }

.pm-calc-output {
  background: var(--pm-surface-subtle);
  border-inline-start: 4px solid var(--pm-forest);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.pm-calc-output.is-critical {
  background: var(--pm-danger-bg);
  border-inline-start-color: var(--pm-danger-ink);
  color: var(--pm-danger-ink);
}

/* ==========================================================================
   Tableaux Comparatifs Responsive (@container query) & Pills de Statut
   ========================================================================== */
.pm-table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  container-type: inline-size;
  margin-block: 1.5rem 2rem;
  border: 1.5px solid var(--pm-ink);
  border-radius: var(--pm-radius-md);
  background: var(--pm-surface);
}

.pm-table-wrapper table {
  inline-size: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.94rem;
}

.pm-table-wrapper thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  background: var(--pm-ink);
  color: var(--pm-surface);
}

.pm-table-wrapper th,
.pm-table-wrapper td {
  padding: 0.85rem 1rem;
  text-align: start;
  border-block-end: 1px solid var(--pm-rule);
  vertical-align: middle;
}

.pm-table-wrapper thead th {
  font-family: var(--pm-font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #FAF8F5;
}

.pm-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-family: var(--pm-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pm-status-pill.is-safe {
  background: var(--pm-safe-bg);
  color: var(--pm-safe-ink);
  border: 1px solid var(--pm-safe-border);
}

.pm-status-pill.is-caution {
  background: var(--pm-caution-bg);
  color: var(--pm-caution-ink);
  border: 1px solid var(--pm-caution-border);
}

.pm-status-pill.is-danger {
  background: var(--pm-danger-bg);
  color: var(--pm-danger-ink);
  border: 1px solid var(--pm-danger-border);
}

@container (width < 600px) {
  .pm-table-wrapper table,
  .pm-table-wrapper thead,
  .pm-table-wrapper tbody,
  .pm-table-wrapper tr,
  .pm-table-wrapper th,
  .pm-table-wrapper td {
    display: block;
  }

  .pm-table-wrapper thead {
    display: none;
  }

  .pm-table-wrapper tr {
    border-block-end: 2px solid var(--pm-ink);
    padding: 0.35rem 0;
  }

  .pm-table-wrapper td[data-label]::before {
    content: attr(data-label) " : ";
    font-family: var(--pm-font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pm-ink-muted);
    display: inline-block;
    margin-right: 0.4rem;
  }
}

/* ==========================================================================
   Encart d'Affiliation Style NYT Wirecutter & Sources Scientifiques
   ========================================================================== */
.pm-affiliate-box {
  background: var(--pm-surface);
  border: 1.5px solid var(--pm-ink);
  border-block-start: 4px solid var(--pm-forest);
  border-radius: var(--pm-radius-md);
  padding: 1.5rem;
  margin-block: 2rem;
  box-shadow: 4px 4px 0 var(--pm-rule);
}

.pm-affiliate-kicker,
.pm-affiliate-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--pm-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pm-forest);
  background: var(--pm-forest-tint);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  margin-block-end: 0.75rem;
}

.pm-affiliate-title {
  font-family: var(--pm-font-serif) !important;
  font-size: 1.32rem !important;
  margin-block: 0 0.55rem !important;
  border: none !important;
  padding: 0 !important;
}

.pm-affiliate-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #292524;
  margin: 0 0 1.1rem 0;
}

.pm-affiliate-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.pm-affiliate-btn,
.pm-affiliate-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.25rem;
  background: var(--pm-forest);
  color: #FFFFFF !important;
  font-family: var(--pm-font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 6px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.pm-affiliate-btn:hover,
.pm-affiliate-cta:hover {
  background: var(--pm-forest-dark);
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.pm-affiliate-note {
  font-family: var(--pm-font-mono);
  font-size: 0.72rem;
  color: var(--pm-ink-muted);
}

.pm-sources-box {
  background: var(--pm-surface-subtle);
  border: 1px solid var(--pm-rule);
  border-radius: var(--pm-radius-md);
  padding: 1.35rem 1.5rem;
  margin-block: 2rem;
}

.pm-sources-title {
  font-family: var(--pm-font-mono) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 0.75rem 0 !important;
  color: var(--pm-ink) !important;
}

.pm-sources-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--pm-ink-secondary);
}

.pm-sources-list li {
  margin-bottom: 0.45rem;
}

.pm-ad-slot {
  min-block-size: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--pm-surface-subtle);
  border: 1px dashed var(--pm-rule);
  border-radius: var(--pm-radius-md);
  margin-block: 2rem;
  padding: 1rem;
  text-align: center;
}

.pm-ad-label {
  font-family: var(--pm-font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pm-ink-muted);
}

/* ==========================================================================
   Fiches Aliments Historiques (2 000 pages) — Code Couleur Sémantique Automatique
   ========================================================================== */
.avis,
p.avis {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.48rem 1.05rem !important;
  border-radius: 6px !important;
  font-family: var(--pm-font-mono) !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin-block: 0.25rem 1rem !important;
  background: var(--pm-safe-bg) !important;
  color: var(--pm-safe-ink) !important;
  border: 1px solid var(--pm-safe-border) !important;
  border-inline-start: 4px solid var(--pm-safe-ink) !important;
  box-shadow: none !important;
}

/* Rouge : Déconseillé / Interdit / Danger / Toxique / Non */
.avis.avis-danger,
.avis-danger {
  background: #FCECEB !important;
  color: #881313 !important;
  border: 1px solid #EFA9A9 !important;
  border-inline-start: 4px solid #881313 !important;
}

/* Ambre : Ok mais / Prudence / Sous condition / Attention / À limiter */
.avis.avis-warning,
.avis-warning {
  background: #FEF6E6 !important;
  color: #7C3A0A !important;
  border: 1px solid #F3CB83 !important;
  border-inline-start: 4px solid #B45309 !important;
}

/* Vert : Ok / Autorisé */
.avis.avis-safe,
.avis.avis-autorise,
.avis-autorise {
  background: #EBF5EE !important;
  color: #14532D !important;
  border: 1px solid #A7D7B8 !important;
  border-inline-start: 4px solid #14532D !important;
}

.comment,
p.comment,
.description {
  background: var(--pm-surface) !important;
  border: 1px solid var(--pm-rule) !important;
  border-inline-start: 4px solid var(--pm-forest) !important;
  border-radius: 6px !important;
  padding: 1.15rem 1.35rem !important;
  margin-block: 0.85rem !important;
  line-height: 1.68 !important;
  color: var(--pm-ink) !important;
  font-size: 1rem !important;
  box-shadow: none !important;
}

.comment.comment-danger {
  border-inline-start-color: #881313 !important;
  background: #FFFDFD !important;
}

.comment.comment-warning {
  border-inline-start-color: #B45309 !important;
  background: #FFFEFA !important;
}

.risque,
p.risque {
  background: var(--pm-surface) !important;
  border: 1px solid var(--pm-rule) !important;
  border-block-start: 2px solid var(--pm-ink) !important;
  border-radius: var(--pm-radius-sm) !important;
  padding: 0.85rem 1rem !important;
  font-family: var(--pm-font-sans) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  color: var(--pm-ink) !important;
  box-shadow: none !important;
  margin: 0 !important;
  display: block !important;
  line-height: 1.45 !important;
}

.risque:empty,
p.risque:empty,
div.risque:empty {
  display: none !important;
}

.wp-block-post-featured-image img {
  border-radius: var(--pm-radius-md) !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border: 1.5px solid var(--pm-ink) !important;
  box-shadow: 4px 4px 0 var(--pm-rule) !important;
}

/* ==========================================================================
   COMPATIBILITÉ ÉDITORIALE v2.2 & HARMONISATION DES CLASSES MULTI-SILOS
   ========================================================================== */

/* 1. Suppression du fil d'Ariane redondant (.pm-breadcrumb) car RankMath l'affiche déjà */
.pm-breadcrumb,
nav.pm-breadcrumb {
  display: none !important;
}

/* 2. Prise en charge des classes alternatives Hero Grid & Photo Frame */
.pm-hero-grid,
.pm-food-hero-grid {
  display: grid !important;
  grid-template-columns: 280px 1fr !important;
  gap: 1.5rem !important;
  align-items: stretch !important;
  margin: 1.25rem 0 1.75rem 0 !important;
}

@media (max-width: 720px) {
  .pm-hero-grid,
  .pm-food-hero-grid {
    grid-template-columns: 1fr !important;
  }
}

.pm-photo-frame,
.pm-food-hero-img {
  display: flex !important;
  flex-direction: column !important;
  border: 1.5px solid #1C1917 !important;
  border-radius: var(--pm-radius-md) !important;
  box-shadow: 4px 4px 0 var(--pm-rule) !important;
  overflow: hidden !important;
  background: #FFFDF9 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

.pm-photo-frame img,
.pm-food-hero-img img {
  display: block !important;
  width: 100% !important;
  height: 220px !important;
  max-height: 240px !important;
  object-fit: cover !important;
  margin: 0 !important;
}

.pm-photo-caption,
.pm-food-hero-caption {
  font-family: var(--pm-font-mono) !important;
  font-size: 0.72rem !important;
  line-height: 1.4 !important;
  color: #57534E !important;
  padding: 0.55rem 0.75rem !important;
  border-top: 1px solid #E7E0D6 !important;
  background: #FAF8F5 !important;
  margin: 0 !important;
}

.pm-hero-grid .pm-verdict-banner,
.pm-food-hero-grid .pm-verdict-banner {
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

/* 3. Prise en charge des classes de verdict .pm-verdict-danger / caution / safe */
.pm-verdict-banner.pm-verdict-danger,
.pm-verdict-banner.is-danger {
  background: var(--pm-danger-bg) !important;
  border-color: var(--pm-danger-border) !important;
  border-inline-start-color: var(--pm-danger-ink) !important;
  border-inline-start-width: 5px !important;
}

.pm-verdict-banner.pm-verdict-caution,
.pm-verdict-banner.is-caution {
  background: var(--pm-caution-bg) !important;
  border-color: var(--pm-caution-border) !important;
  border-inline-start-color: var(--pm-caution-ink) !important;
  border-inline-start-width: 5px !important;
}

.pm-verdict-banner.pm-verdict-safe,
.pm-verdict-banner.is-safe {
  background: var(--pm-safe-bg) !important;
  border-color: var(--pm-safe-border) !important;
  border-inline-start-color: var(--pm-safe-ink) !important;
  border-inline-start-width: 5px !important;
}

.pm-verdict-banner .pm-verdict-eyebrow {
  font-family: var(--pm-font-mono) !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 0.55rem !important;
  display: block !important;
}

.pm-verdict-banner.pm-verdict-danger .pm-verdict-eyebrow { color: var(--pm-danger-ink) !important; }
.pm-verdict-banner.pm-verdict-caution .pm-verdict-eyebrow { color: var(--pm-caution-ink) !important; }
.pm-verdict-banner.pm-verdict-safe .pm-verdict-eyebrow { color: var(--pm-safe-ink) !important; }

.pm-verdict-desc,
.pm-verdict-summary {
  font-size: 0.96rem !important;
  line-height: 1.58 !important;
  color: var(--pm-ink) !important;
  margin: 0 !important;
}

/* 4. Prise en charge de la grille de métriques .pm-specs-strip */
.pm-specs-strip,
.pm-spec-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)) !important;
  border-block-start: 2px solid var(--pm-ink) !important;
  border-block-end: 1px solid var(--pm-ink) !important;
  background: var(--pm-surface) !important;
  margin-block: 1.5rem 2rem !important;
}

.pm-specs-strip .pm-spec-cell,
.pm-spec-grid .pm-spec-cell {
  padding: 1rem 1.15rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.2rem !important;
}

.pm-specs-strip .pm-spec-cell:not(:last-child),
.pm-spec-grid .pm-spec-cell:not(:last-child) {
  border-inline-end: 1px solid var(--pm-rule) !important;
}

.pm-specs-strip .pm-spec-label,
.pm-spec-grid .pm-spec-label {
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  font-family: var(--pm-font-mono) !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  color: var(--pm-ink-muted) !important;
}

.pm-specs-strip .pm-spec-value,
.pm-spec-grid .pm-spec-value {
  font-family: var(--pm-font-mono) !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  color: var(--pm-ink) !important;
  line-height: 1.3 !important;
}

/* 5. Prise en charge du sélecteur à onglets .pm-profiler */
.pm-profiler {
  background: var(--pm-surface) !important;
  border: 1.5px solid var(--pm-ink) !important;
  border-radius: 12px !important;
  padding: 1.65rem !important;
  margin-block: 2rem !important;
  box-shadow: 0 8px 24px rgba(20, 22, 21, 0.06), 4px 4px 0 var(--pm-rule) !important;
}

.pm-profiler-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  padding-block-end: 0.85rem !important;
  margin-block-end: 0.85rem !important;
  border-block-end: 1px solid var(--pm-rule) !important;
}

.pm-profiler-title {
  font-family: var(--pm-font-serif) !important;
  font-size: 1.32rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  color: var(--pm-ink) !important;
}

.pm-profiler-hint {
  font-size: 0.82rem !important;
  color: var(--pm-ink-muted) !important;
  font-family: var(--pm-font-mono) !important;
}

.pm-profiler-tabs {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)) !important;
  gap: 0.5rem !important;
  background: #EAE4D7 !important;
  padding: 0.4rem !important;
  border-radius: 10px !important;
  border: 1px solid #D5CBB8 !important;
  margin-block-end: 1.25rem !important;
}

.pm-profiler-tab {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.7rem 0.9rem !important;
  font-family: var(--pm-font-sans) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  color: #44403C !important;
  background: rgba(255, 253, 249, 0.6) !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pm-profiler-tab:hover {
  background: rgba(255, 253, 249, 0.95) !important;
  color: var(--pm-ink) !important;
}

.pm-profiler-tab[aria-selected="true"],
.pm-profiler-tab.is-active {
  background: #FFFFFF !important;
  color: #141615 !important;
  border-color: #141615 !important;
  box-shadow: 0 3px 10px rgba(20, 22, 21, 0.12), 0 1px 2px rgba(20, 22, 21, 0.08) !important;
  transform: translateY(-1px) !important;
  font-weight: 700 !important;
}

.pm-profiler-panel {
  display: block;
  background: #FAF7F0 !important;
  border: 1px solid #E2DACB !important;
  border-inline-start: 4px solid var(--pm-forest) !important;
  border-radius: 8px !important;
  padding: 1.25rem 1.35rem !important;
  animation: pmPanelFadeIn 0.22s ease-out !important;
}

.pm-profiler-panel[hidden] {
  display: none !important;
}

.pm-panel-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  font-family: var(--pm-font-mono) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 0.25rem 0.65rem !important;
  border-radius: 4px !important;
  border: 1px solid currentColor !important;
  margin-bottom: 0.45rem !important;
}

.pm-panel-badge.pm-badge-safe { background: #DCFCE7 !important; color: #166534 !important; }
.pm-panel-badge.pm-badge-caution { background: #FEF3C7 !important; color: #92400E !important; }
.pm-panel-badge.pm-badge-danger { background: #FEE2E2 !important; color: #991B1B !important; }

.pm-panel-heading {
  font-family: var(--pm-font-serif) !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  color: var(--pm-ink) !important;
  margin: 0.25rem 0 0.45rem 0 !important;
  border: none !important;
  padding: 0 !important;
}

.pm-panel-text {
  font-size: 0.95rem !important;
  line-height: 1.62 !important;
  color: #292524 !important;
  margin: 0 !important;
}

/* 6. Tableaux comparatifs */
figure.wp-block-table {
  overflow: auto !important;
  max-inline-size: 100% !important;
  margin-block: 1.5rem 2rem !important;
  border: 1.5px solid var(--pm-ink) !important;
  border-radius: var(--pm-radius-md) !important;
  background: var(--pm-surface) !important;
}

figure.wp-block-table table {
  inline-size: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 0.94rem !important;
  margin: 0 !important;
}

figure.wp-block-table thead {
  background: var(--pm-ink) !important;
  color: var(--pm-surface) !important;
}

figure.wp-block-table thead th {
  font-family: var(--pm-font-mono) !important;
  font-size: 0.72rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  font-weight: 600 !important;
  color: #FAF8F5 !important;
  padding: 0.85rem 1rem !important;
  border: none !important;
}

figure.wp-block-table td {
  padding: 0.85rem 1rem !important;
  border-block-end: 1px solid var(--pm-rule) !important;
  vertical-align: middle !important;
}

/* 7. Dédoublonnage du bloc d'articles liés (#9311) */
.entry-content > .wp-block-query:last-child {
  display: none !important;
}
