/**
 * PowerUp Compa — Design riche fiche produit
 * Extrait de templates/fiche-produit.html (maquette de référence)
 * Enqueué via wp_enqueue_style sur les pages frontend du plugin.
 *
 * Variables CSS attendues du thème :
 *   --pu-c-primary   : #28697F
 *   --pu-c-secondary : #B1D3A1
 *   --pu-c-accent    : #2A324B
 *   --pu-c-text      : #696E7D
 *   --pu-c-bg        : #FCF9F3
 *   --pu-radius      : 12px
 *   --pu-radius-sm   : 6px
 *   --pu-radius-lg   : 16px
 *   --pu-shadow      : 0 2px 12px rgba(42,50,75,.08)
 *   --pu-font        : 'Darker Grotesque', sans-serif
 */

/* ─── DESIGN TOKENS (fallbacks si thème n'a pas ces variables) ────────────── */
:root {
  --pu-c-primary:    #28697F;
  --pu-c-secondary:  #B1D3A1;
  --pu-c-accent:     #2A324B;
  --pu-c-text:       #696E7D;
  --pu-c-bg:         #FCF9F3;
  --pu-c-white:      #FFFFFF;
  --pu-c-link-hover: #205466;
  --pu-radius:       12px;
  --pu-radius-sm:    6px;
  --pu-radius-lg:    16px;
  --pu-transition:   0.2s ease;
  --pu-shadow:       0 2px 12px rgba(42,50,75,.08);
  --pu-shadow-hover: 0 4px 20px rgba(42,50,75,.14);
  --pu-font: 'Darker Grotesque', sans-serif;
  --pu-sp-xs: 0.5rem;
  --pu-sp-s:  1rem;
  --pu-sp-m:  1.5rem;
  --pu-sp-l:  2rem;
  --pu-sp-xl: 3rem;
}

/* ─── POLICE GOOGLE FONTS ────────────────────────────────────────────── */
/* La police est chargée via wp_enqueue_style dans comparatif.php */

/* ─── BUTTONS ────────────────────────────────────────────────────────── */
.pu-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: var(--pu-radius);
  font-family: var(--pu-font);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--pu-transition), color var(--pu-transition),
              border-color var(--pu-transition), box-shadow var(--pu-transition);
}
.pu-btn--primary   { background: var(--pu-c-primary); color: #fff; }
.pu-btn--primary:hover { background: var(--pu-c-link-hover); color: #fff; }
.pu-btn--secondary { background: var(--pu-c-secondary); color: var(--pu-c-accent); }
.pu-btn--secondary:hover { background: #9ec98c; color: var(--pu-c-accent); }
.pu-btn--outline   { background: transparent; border-color: var(--pu-c-primary); color: var(--pu-c-primary); }
.pu-btn--outline:hover { background: var(--pu-c-primary); color: #fff; }
.pu-btn--ghost     { background: transparent; border-color: transparent; color: var(--pu-c-primary); padding-left: .25rem; padding-right: .25rem; }
.pu-btn--ghost:hover { color: var(--pu-c-link-hover); }
.pu-btn--sm  { padding: .4rem 1rem; font-size: .875rem; }
.pu-btn--lg  { padding: .85rem 2rem; font-size: 1.25rem; }

/* ─── BREADCRUMBS ────────────────────────────────────────────────────── */
.pu-breadcrumbs { font-size: .8rem; color: var(--pu-c-text); line-height: 1.4; }
.pu-breadcrumbs a { color: var(--pu-c-primary); text-decoration: none; }
.pu-breadcrumbs a:hover { text-decoration: underline; }
.pu-breadcrumbs span { margin: 0 .35rem; opacity: .4; }

/* ─── BADGES ─────────────────────────────────────────────────────────── */
.pu-badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pu-badge--green  { background: rgba(177,211,161,.45); color: #2a5e1c; font-weight: 800; }
.pu-badge--blue   { background: rgba(40,105,127,.18);  color: #1e5068; font-weight: 800; }
.pu-badge--yellow { background: rgba(240,190,80,.32);  color: #6a4e00; font-weight: 800; }
.pu-badge--dark   { background: rgba(42,50,75,.18);    color: var(--pu-c-accent); font-weight: 800; }

.pu-cat-pill {
  display: inline-block;
  background: rgba(40,105,127,.1);
  color: var(--pu-c-primary);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .25rem .75rem;
  border-radius: 50px;
  text-decoration: none;
}

/* ─── SEPARATOR ───────────────────────────────────────────────────────── */
.pu-separator { border: none; border-top: 2px solid rgba(42,50,75,.08); margin: 2rem 0; }
.pu-separator--primary { border-top-color: var(--pu-c-primary); opacity: .4; }

/* ─── ALERTS ─────────────────────────────────────────────────────────── */
.pu-alert {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .9rem 1.1rem;
  border-radius: var(--pu-radius-sm);
  font-size: .9rem;
  line-height: 1.5;
}
.pu-alert--info    { background: rgba(40,105,127,.12);  color: #1a4555; border: 1px solid rgba(40,105,127,.32); }
.pu-alert--success { background: rgba(177,211,161,.32); color: #1d4016; border: 1px solid rgba(177,211,161,.65); }
.pu-alert--warning { background: rgba(240,190,80,.24);  color: #5c3d00; border: 1px solid rgba(240,190,80,.55); }
.pu-alert--error   { background: rgba(220,60,60,.12);   color: #6e0c0c; border: 1px solid rgba(220,60,60,.35); }
.pu-alert__icon    { font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }

/* ─── PROGRESS BAR ───────────────────────────────────────────────────── */
.pu-progress-bar {
  position: relative;
  height: 8px;
  background: rgba(42,50,75,.08);
  border-radius: 4px;
  overflow: hidden;
  margin-top: .25rem;
}
.pu-progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pu-c-primary), var(--pu-c-secondary));
  border-radius: 4px;
}
.pu-progress-bar--yellow .pu-progress-bar__fill { background: #f0be50; }

/* ─── POST META ──────────────────────────────────────────────────────── */
.pu-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  color: var(--pu-c-text);
  font-size: .875rem;
}
.pu-post-meta__item { display: flex; align-items: center; gap: .3rem; }
.pu-post-meta svg   { opacity: .5; }

/* ─── TABLES ─────────────────────────────────────────────────────────── */
.pu-table-wrap { overflow-x: auto; border-radius: var(--pu-radius); box-shadow: var(--pu-shadow); }
.pu-table      { width: 100%; border-collapse: collapse; background: #fff; font-size: .9rem; }
.pu-table th   { background: var(--pu-c-primary); color: #fff; font-weight: 700; text-align: left; padding: .75rem 1rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.pu-table td   { padding: .7rem 1rem; border-bottom: 1px solid rgba(42,50,75,.06); color: var(--pu-c-text); vertical-align: top; }
.pu-table tr:last-child td { border-bottom: none; }
.pu-table tr:nth-child(even) td { background: rgba(42,50,75,.025); }
.pu-table tr:hover td { background: rgba(40,105,127,.04); }

/* ─── FAQ ACCORDEON ──────────────────────────────────────────────────── */
.pu-faq {
  --pu-faq-border: rgba(42,50,75,.15);
  --pu-faq-radius: 6px;
  --pu-faq-item-bg: #ffffff;
  --pu-faq-summary-bg-open: rgba(42,50,75,.04);
  --pu-faq-divider: rgba(42,50,75,.1);
  --pu-faq-text-strong: #2e3a59;
  --pu-faq-text-body: #5a6478;
  --pu-faq-chevron: #5a6478;
  --pu-faq-gap: 12px;
  --pu-faq-pad-x: 22px;
  --pu-faq-pad-y: 16px;

  display: flex;
  flex-direction: column;
  gap: var(--pu-faq-gap);
}
.pu-faq__item {
  background: var(--pu-faq-item-bg);
  border: 1px solid var(--pu-faq-border);
  border-radius: var(--pu-faq-radius);
  overflow: hidden;
  transition: border-color .15s ease;
}
.pu-faq__item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: var(--pu-faq-pad-y) var(--pu-faq-pad-x);
  color: var(--pu-faq-text-strong);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .2px;
  line-height: 1.4;
  user-select: none;
}
.pu-faq__item > summary::-webkit-details-marker { display: none; }
.pu-faq__item > summary::marker { content: ""; }
.pu-faq__item > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--pu-faq-chevron);
  border-bottom: 2px solid var(--pu-faq-chevron);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform .2s ease;
  margin-right: 2px;
}
.pu-faq__item[open] > summary { background: var(--pu-faq-summary-bg-open); border-bottom: 1px solid var(--pu-faq-divider); }
.pu-faq__item[open] > summary::after { transform: rotate(225deg); }
.pu-faq__item > p {
  margin: 0;
  padding: var(--pu-faq-pad-y) var(--pu-faq-pad-x) calc(var(--pu-faq-pad-y) + 2px);
  color: var(--pu-faq-text-body);
  font-size: .95rem;
  line-height: 1.7;
}
.pu-faq__item > summary:focus-visible { outline: 2px solid var(--pu-faq-text-strong); outline-offset: -2px; }
@media (hover: hover) {
  .pu-faq__item:hover { border-color: #b1d3a1; box-shadow: 0 4px 20px 0 rgba(42,50,75,.12); }
  .pu-faq__item > summary:hover { background: rgba(177,211,161,.12); }
}

/* ─── TABS ────────────────────────────────────────────────────────────── */
.pucompa-tabs { margin-top: 1rem; }
.pucompa-tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(42,50,75,.1);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pucompa-tabs__nav::-webkit-scrollbar { display: none; }
.pucompa-tab-btn {
  padding: .65rem 1.25rem;
  font-family: var(--pu-font);
  font-weight: 700;
  font-size: .9rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: var(--pu-c-text);
  white-space: nowrap;
  transition: color var(--pu-transition), border-color var(--pu-transition);
}
.pucompa-tab-btn:hover { color: var(--pu-c-primary); }
.pucompa-tab-btn.active { color: var(--pu-c-primary); border-bottom-color: var(--pu-c-primary); }
.pucompa-tab-panel {
  display: none;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(42,50,75,.1);
  border-top: none;
  border-radius: 0 0 var(--pu-radius) var(--pu-radius);
  font-size: .95rem;
  line-height: 1.65;
  color: var(--pu-c-text);
}
.pucompa-tab-panel.active { display: block; }

/* ─── HIGHLIGHTS ──────────────────────────────────────────────────────── */
.pu-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--pu-radius);
  margin: 1rem 0;
}
.pu-highlight--green  { background: rgba(177,211,161,.28); border: 1px solid rgba(177,211,161,.65); }
.pu-highlight--blue   { background: rgba(40,105,127,.11);  border: 1px solid rgba(40,105,127,.25); }
.pu-highlight--yellow { background: rgba(240,190,80,.22);  border: 1px solid rgba(240,190,80,.55); }
.pu-highlight__icon   { font-size: 1.25rem; flex-shrink: 0; line-height: 1.65; }
.pu-highlight__text   { font-size: .9rem; line-height: 1.65; color: var(--pu-c-accent); font-weight: 500; }
.pu-highlight__text strong { font-weight: 700; }

/* ─── TOC ─────────────────────────────────────────────────────────────── */
.pu-toc { background: #fff; border: 1px solid rgba(42,50,75,.15); border-radius: var(--pu-radius); padding: 1.25rem 1.5rem; }
.pu-toc__title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--pu-c-primary); margin: 0 0 .75rem; }
.pu-toc__list  { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.pu-toc__list a { font-size: .875rem; color: var(--pu-c-text); text-decoration: none; transition: color var(--pu-transition); }
.pu-toc__list a:hover { color: var(--pu-c-primary); }

/* ─── SHARE ───────────────────────────────────────────────────────────── */
.pu-share { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.pu-share__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--pu-c-text); }
.pu-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--pu-radius-sm);
  background: rgba(42,50,75,.06);
  color: var(--pu-c-accent);
  text-decoration: none;
  font-size: .8rem; font-weight: 700;
  transition: background var(--pu-transition), color var(--pu-transition);
}
.pu-share__btn:hover { background: var(--pu-c-primary); color: #fff; }

/* ──────────────────────────────────────────────────────────────────────── */
/*  FICHE PRODUIT — SPÉCIFIQUE                                              */
/* ──────────────────────────────────────────────────────────────────────── */

/* ─── HERO ────────────────────────────────────────────────────────────── */
.product-hero {
  background: #fff;
  border-radius: var(--pu-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--pu-shadow);
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .product-hero { grid-template-columns: 1fr auto; }
  .product-hero__img { display: none; }
}
@media (max-width: 720px) {
  .product-hero { grid-template-columns: 1fr; }
}

.product-hero__img {
  width: 200px; height: 200px;
  border-radius: var(--pu-radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--pu-c-secondary), rgba(40,105,127,.2));
  flex-shrink: 0;
}
.product-hero__img img  { width: 100%; height: 100%; object-fit: cover; }
.product-hero__img.no-image::after {
  content: "Produit";
  font-size: 1rem; font-weight: 700; color: var(--pu-c-primary);
  display: flex; align-items: center; justify-content: center;
  height: 100%; opacity: .6;
}

.product-hero__title    { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; color: var(--pu-c-accent); margin: .5rem 0 .25rem; line-height: 1.15; }
.product-hero__subline  { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .5rem; font-size: .9rem; color: var(--pu-c-text); }

/* ─── SCORE CIRCLE ────────────────────────────────────────────────────── */
.score-circle {
  width: 124px; height: 124px;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; text-align: center; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(42,50,75,.18);
}
.score-circle--green  { background: var(--pu-c-primary); }
.score-circle--yellow { background: linear-gradient(135deg, #d9a429, #f0be50); }
.score-circle--red    { background: linear-gradient(135deg, #b53b3b, #d05656); }
.score-circle__value  { font-size: 2.4rem; line-height: 1; }
.score-circle__max    { font-size: .9rem; font-weight: 600; opacity: .85; margin-top: .15rem; }

.product-hero__score-side { display: flex; flex-direction: column; align-items: center; gap: .5rem; min-width: 160px; }
.score-delta              { font-size: .85rem; font-weight: 700; color: #3a7a2a; text-align: center; }
.score-delta--negative    { color: #8a1010; }

/* ─── SCORE VS AVERAGE MINI-BAR ──────────────────────────────────────── */
.score-vs-avg { width: 160px; margin-top: .35rem; }
.score-vs-avg__label  { font-size: .7rem; color: var(--pu-c-text); margin-bottom: .25rem; text-align: center; }
.score-vs-avg__track  { position: relative; height: 8px; background: rgba(42,50,75,.1); border-radius: 4px; margin-bottom: .25rem; }
.score-vs-avg__avg    { position: absolute; top: -2px; width: 3px; height: 12px; background: #f0be50; border-radius: 2px; transform: translateX(-50%); }
.score-vs-avg__you    { position: absolute; top: -2px; width: 3px; height: 12px; background: var(--pu-c-secondary); border-radius: 2px; transform: translateX(-50%); }
.score-vs-avg__legend { display: flex; gap: .5rem; font-size: .68rem; color: var(--pu-c-text); justify-content: center; }
.score-vs-avg__dot--avg,
.score-vs-avg__dot--you { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .2rem; vertical-align: middle; }
.score-vs-avg__dot--avg { background: #f0be50; }
.score-vs-avg__dot--you { background: var(--pu-c-secondary); }

/* ─── STARS ───────────────────────────────────────────────────────────── */
.stars               { display: inline-flex; align-items: center; gap: .25rem; }
.stars__chars        { color: #f0be50; letter-spacing: 1px; font-size: 1rem; }
.stars__value        { font-weight: 700; color: var(--pu-c-accent); font-size: .9rem; }
.stars__count        { color: var(--pu-c-text); font-size: .8rem; }

/* ─── BADGE STRIP ─────────────────────────────────────────────────────── */
.badge-strip { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }

/* ─── HERO REVIEWS SNAP ───────────────────────────────────────────────── */
.hero-reviews-snap         { width: 160px; margin-top: .5rem; background: rgba(42,50,75,.04); border-radius: var(--pu-radius-sm); padding: .6rem .75rem; }
.hero-reviews-snap__num    { font-size: .85rem; font-weight: 800; color: var(--pu-c-accent); }
.hero-reviews-snap__num span { font-weight: 500; color: var(--pu-c-text); }
.hero-reviews-snap__sources { font-size: .7rem; color: var(--pu-c-text); margin: .15rem 0 .4rem; }
.hero-reviews-snap__themes { display: flex; flex-wrap: wrap; gap: .25rem; }

/* ─── BANDE POWERUP (KPIs) ────────────────────────────────────────────── */
.pu-kpi-band {
  background: var(--pu-c-primary);
  border-radius: var(--pu-radius-lg);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  color: #fff;
}
.pu-kpi-band__eyebrow {
  font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--pu-c-secondary); margin: 0 0 1rem;
}
.pu-kpi-band__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.pu-kpi-item {
  text-align: center; padding: .75rem;
  background: rgba(255,255,255,.08);
  border-radius: var(--pu-radius);
}
.pu-kpi-item__val    { font-size: 2rem; font-weight: 800; color: var(--pu-c-secondary); }
.pu-kpi-item__label  { font-size: .75rem; opacity: .8; margin-top: .15rem; }
.pu-kpi-item__sub    { font-size: .7rem; color: rgba(255,255,255,.6); margin-top: .25rem; }
.pu-kpi-item__sub--pos { color: var(--pu-c-secondary); }

/* ─── SECTION TITLE ──────────────────────────────────────────────────── */
.section-title       { font-size: 1.5rem; font-weight: 800; margin: 2.25rem 0 1rem; }
.section-title--first { margin-top: 0; }

/* ─── CRITERION (barres de critères) ─────────────────────────────────── */
.criterion-score { font-weight: 800; color: var(--pu-c-accent); }
.dose-ok         { color: #3a7a2a; font-weight: 700; }
.dose-warn       { color: #8a6a00; font-weight: 700; }
.dose-na         { color: var(--pu-c-text); }

/* ─── RADAR ───────────────────────────────────────────────────────────── */
.radar-wrap {
  width: 100%;
  max-width: 460px;
  margin: 1.5rem auto;
}
.radar-svg-container {
  width: 100%;
  aspect-ratio: 1;
  overflow: visible;
}
/* Fallback placeholder si pas de données radar */
.radar-placeholder {
  width: 100%; max-width: 460px; aspect-ratio: 1;
  margin: 1.5rem auto;
  border: 2px dashed rgba(40,105,127,.35);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(177,211,161,.15), rgba(40,105,127,.05));
  display: flex; align-items: center; justify-content: center;
  color: var(--pu-c-primary); font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .08em;
  text-align: center; padding: 2rem;
}

/* ─── VS AVERAGE BLOCK ────────────────────────────────────────────────── */
.vs-avg-block       { background: #fff; border-radius: var(--pu-radius); padding: 1.25rem; box-shadow: var(--pu-shadow); margin-top: 1.5rem; }
.vs-avg-block__title { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--pu-c-primary); margin: 0 0 1rem; }
.vs-avg-rows         { display: flex; flex-direction: column; gap: .75rem; }
.vs-avg-row          { display: grid; grid-template-columns: 110px 1fr 90px; align-items: center; gap: .75rem; font-size: .82rem; }
.vs-avg-row__label   { color: var(--pu-c-text); font-weight: 600; }
.vs-avg-row__track   { position: relative; height: 10px; background: rgba(42,50,75,.08); border-radius: 5px; overflow: visible; }
.vs-avg-row__fill    { height: 100%; background: linear-gradient(90deg, var(--pu-c-primary), var(--pu-c-secondary)); border-radius: 5px; }
.vs-avg-row__fill--warn { background: linear-gradient(90deg, #d9a429, #f0be50); }
.vs-avg-row__avg-marker { position: absolute; top: -3px; width: 3px; height: 16px; background: #f0be50; border-radius: 2px; transform: translateX(-50%); }
.vs-avg-row__val     { font-size: .8rem; font-weight: 700; color: var(--pu-c-accent); text-align: right; }
.vs-avg-row__val small { display: block; font-weight: 500; color: var(--pu-c-text); font-size: .7rem; }
.vs-avg-block__legend { font-size: .72rem; color: var(--pu-c-text); margin: .75rem 0 0; display: flex; align-items: center; gap: .4rem; }
.vs-avg-legend-dot   { display: inline-block; width: 12px; height: 3px; background: #f0be50; border-radius: 2px; }

/* ─── ADDITIVE MAP ────────────────────────────────────────────────────── */
.additive-map        { background: #fff; border-radius: var(--pu-radius); padding: 1.25rem; box-shadow: var(--pu-shadow); margin-top: 1.5rem; }
.additive-map__title { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--pu-c-primary); margin: 0 0 1rem; }
.additive-map__grid  { display: flex; flex-direction: column; gap: .65rem; }
.additive-row        { display: flex; gap: .85rem; align-items: flex-start; }
.additive-dot        { flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%; margin-top: .2rem; }
.additive-dot--green  { background: var(--pu-c-secondary); }
.additive-dot--yellow { background: #f0be50; }
.additive-dot--red    { background: rgba(220,60,60,.7); }
.additive-row div    { font-size: .88rem; line-height: 1.45; color: var(--pu-c-text); }
.additive-row div strong { display: block; color: var(--pu-c-accent); font-weight: 700; margin-bottom: .1rem; }
.additive-map__note  { margin: 1rem 0 0; font-size: .78rem; color: var(--pu-c-text); font-style: italic; border-top: 1px solid rgba(42,50,75,.08); padding-top: .75rem; }

/* ─── SAVINGS / ECONOMIES ─────────────────────────────────────────────── */
.savings-calc        { margin-top: 1.5rem; background: rgba(40,105,127,.05); border-radius: var(--pu-radius); padding: 1.25rem; }
.savings-calc__title { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--pu-c-primary); margin: 0 0 1rem; }
.savings-grid        { display: flex; gap: .75rem; flex-wrap: wrap; }
.savings-item        { flex: 1; min-width: 100px; background: #fff; border-radius: var(--pu-radius-sm); padding: .85rem .75rem; text-align: center; box-shadow: var(--pu-shadow); }
.savings-item--ref   { border: 2px solid var(--pu-c-primary); }
.savings-item__format { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--pu-c-text); margin-bottom: .25rem; }
.savings-item__price  { font-size: 1.05rem; font-weight: 800; color: var(--pu-c-accent); margin-bottom: .3rem; }
.savings-item__diff   { font-size: .75rem; font-weight: 700; }
.savings-item__diff--more { color: #8a1010; }
.savings-item__diff--less { color: #3a7a2a; }

/* ─── VARIANTS TABLE ──────────────────────────────────────────────────── */
.best-value-row td { background: rgba(177,211,161,.18) !important; font-weight: 700; }

/* ─── PRICE HISTORY ───────────────────────────────────────────────────── */
.price-history {
  background: rgba(42,50,75,.03);
  border: 1px solid rgba(42,50,75,.1);
  border-radius: var(--pu-radius);
  padding: 1.5rem;
}
.price-history__header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: .25rem;
}
.price-history__title    { margin: 0; font-size: 1rem; font-weight: 800; color: var(--pu-c-accent); }
.price-history__subtitle { font-size: .8rem; color: var(--pu-c-text); margin: 0 0 1.25rem; }
.price-history__chart    { display: flex; align-items: flex-end; gap: .75rem; height: 100px; margin-bottom: 1rem; }
.price-history__bar-wrap { display: flex; flex-direction: column; align-items: center; gap: .35rem; flex: 1; }
.price-history__bar {
  width: 100%; background: rgba(40,105,127,.25); border-radius: 4px 4px 0 0;
  position: relative; display: flex; align-items: flex-start; justify-content: center; min-height: 20px;
}
.price-history__bar-wrap--current .price-history__bar { background: var(--pu-c-primary); }
.price-history__bar-val {
  font-size: .65rem; font-weight: 700; color: var(--pu-c-accent);
  white-space: nowrap; padding: .2rem 0; position: absolute; top: -1.4rem;
}
.price-history__bar-wrap--current .price-history__bar-val { color: var(--pu-c-primary); }
.price-history__bar-month { font-size: .7rem; color: var(--pu-c-text); font-weight: 600; }
.price-history__stats {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
  padding-top: 1rem; border-top: 1px solid rgba(42,50,75,.08); margin-bottom: .75rem;
}
.price-history__stat       { display: flex; flex-direction: column; gap: .1rem; }
.price-history__stat-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pu-c-text); }
.price-history__stat strong { font-size: 1rem; color: var(--pu-c-accent); }
.price-history__note       { font-size: .75rem; color: var(--pu-c-text); margin: 0; font-style: italic; }
.price-trend               { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 50px; font-size: .75rem; font-weight: 700; }
.price-trend--stable { background: rgba(42,50,75,.08); color: var(--pu-c-accent); }
.price-trend--up     { background: rgba(181,59,59,.12); color: #b53b3b; }
.price-trend--down   { background: rgba(177,211,161,.35); color: #2a5a1e; }

/* ─── AVIS CENTRAL ────────────────────────────────────────────────────── */
.avis-central {
  background: #fff; border-radius: var(--pu-radius-lg);
  padding: 2rem; box-shadow: var(--pu-shadow); margin-top: 2rem; margin-bottom: 2rem;
}
.avis-central__body {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 2.5rem; margin-top: 1.5rem; align-items: start;
}
.avis-central__aggregate {
  text-align: center; padding-right: 2rem;
  border-right: 1px solid rgba(42,50,75,.1);
}
.avis-central__aggregate .rating-summary__num {
  font-size: 3.5rem; font-weight: 800; color: var(--pu-c-primary); line-height: 1;
}
.avis-central__aggregate .rating-summary__stars { font-size: 1.4rem; color: #f0be50; margin: .25rem 0; }
.avis-central__aggregate .rating-summary__count { font-size: .8rem; color: var(--pu-c-text); }
.avis-central__source { font-size: .85rem; color: var(--pu-c-text); line-height: 1.6; margin: 1.25rem 0 0; opacity: .85; }
/* Synthèse des avis : ce qui ressort (positif / réserves) */
.avis-synth { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .avis-synth { grid-template-columns: 1fr; } }
.avis-synth__col { background: #fff; border-radius: var(--pu-radius); padding: 1.25rem 1.25rem; border: 1px solid rgba(42,50,75,.08); box-shadow: 0 1px 3px rgba(42,50,75,.04); }
.avis-synth__col--plus  { border-top: 3px solid var(--pu-c-secondary); }
.avis-synth__col--minus { border-top: 3px solid var(--pu-c-primary); }
.avis-synth__title { font-weight: 800; color: var(--pu-c-accent); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 .5rem; }
.avis-synth__list { margin: 0; padding-left: 1.1rem; }
.avis-synth__list li { font-size: .9rem; color: var(--pu-c-text); line-height: 1.5; margin-bottom: .3rem; }
@media (max-width: 720px) {
  .avis-central__body { grid-template-columns: 1fr; }
  .avis-central__aggregate {
    padding-right: 0; border-right: none;
    border-bottom: 1px solid rgba(42,50,75,.1); padding-bottom: 1.5rem;
  }
}

/* ─── RATING BARS ─────────────────────────────────────────────────────── */
.rating-bars     { display: flex; flex-direction: column; gap: .35rem; }
.rating-bar-row  { display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; gap: .65rem; font-size: .8rem; }

/* ─── AVIS FILTRES ────────────────────────────────────────────────────── */
.avis-filters     { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.avis-filter-btn  {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .85rem; border: 1.5px solid rgba(42,50,75,.18);
  border-radius: 2rem; background: #fff;
  font-family: var(--pu-font); font-size: .82rem; font-weight: 700; color: var(--pu-c-text);
  cursor: pointer;
  transition: background var(--pu-transition), color var(--pu-transition), border-color var(--pu-transition);
}
.avis-filter-btn:hover:not(:disabled) { border-color: var(--pu-c-primary); color: var(--pu-c-primary); }
.avis-filter-btn--active { background: var(--pu-c-primary); border-color: var(--pu-c-primary); color: #fff; }
.avis-filter-btn--empty,
.avis-filter-btn:disabled { opacity: .38; cursor: not-allowed; }
.avis-filter-count { font-size: .75rem; font-weight: 500; opacity: .75; }
.avis-filter-btn--active .avis-filter-count { opacity: .85; }
.avis-list         { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
.avis-loading      { text-align: center; padding: 1.5rem; color: var(--pu-c-text); opacity: .5; font-size: .9rem; }
.avis-voir-plus-wrap { text-align: center; margin-top: .5rem; }
.avis-empty-state  { text-align: center; padding: 2rem 0; color: var(--pu-c-text); opacity: .5; font-size: .95rem; }

/* ─── REVIEW CARD ─────────────────────────────────────────────────────── */
.review-card {
  background: #fff; border: 1px solid rgba(42,50,75,.08);
  border-radius: var(--pu-radius); padding: 1.1rem 1.25rem; margin-bottom: .75rem;
}
.review-card__head   { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; flex-wrap: wrap; }
.review-card__author { font-weight: 700; color: var(--pu-c-accent); font-size: .9rem; }
.review-card__stars  { color: #f0be50; letter-spacing: 1px; }
.review-card__date   { font-size: .75rem; color: var(--pu-c-text); }
.review-card__text   { font-size: .9rem; line-height: 1.55; color: var(--pu-c-text); margin: 0; }
.review-card--negative { border: 1px solid #d05656; }
.review-card--positive { border: 1px solid var(--pu-c-secondary); }

/* ─── THEMES ROW ──────────────────────────────────────────────────────── */
.themes-row { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }

/* ─── BUYER GUIDE ─────────────────────────────────────────────────────── */
.buyer-guide    { margin-top: 2rem; }
.buyer-profiles { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.buyer-profile  { background: #fff; border-radius: var(--pu-radius); padding: 1.25rem; box-shadow: var(--pu-shadow); }
.buyer-profile--yes   { border: 1px solid var(--pu-c-secondary); }
.buyer-profile--maybe { border: 1px solid #f0be50; }
.buyer-profile--no    { border: 1px solid rgba(220,60,60,.6); }
.buyer-profile__icon  { font-size: 1.25rem; font-weight: 900; margin-bottom: .5rem; }
.buyer-profile--yes .buyer-profile__icon   { color: #3a7a2a; }
.buyer-profile--maybe .buyer-profile__icon { color: #8a6a00; }
.buyer-profile--no .buyer-profile__icon    { color: #8a1010; }
.buyer-profile h3 { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--pu-c-accent); margin: 0 0 .75rem; }
.buyer-profile ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.buyer-profile li { font-size: .85rem; line-height: 1.45; color: var(--pu-c-text); padding-left: 1rem; position: relative; }
.buyer-profile li::before { content: '•'; position: absolute; left: 0; color: var(--pu-c-primary); font-weight: 800; }

/* ─── BRAND PRODUCT LIST ──────────────────────────────────────────────── */
/* Tableau "autres produits" : grille simple coupée en 2-3 colonnes (responsive) */
.brand-product-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0 2rem;
  margin-top: 1rem;
  background: none; border: none; box-shadow: none;
}
.brand-product-list .brand-product-row {
  display: flex !important; align-items: center; gap: .6rem;
  padding: .55rem .25rem; border-bottom: 1px solid rgba(42,50,75,.08);
  text-decoration: none; color: inherit; transition: background .15s; grid-template-columns: none;
}
.brand-product-list .brand-product-row:hover { background: rgba(40,105,127,.04); }
.brand-product-list .brand-product-row__name {
  flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: .88rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-product-list .brand-product-row__type { display: none; }
.brand-product-list .sidebar-score-pill       { flex: 0 0 auto; }
.brand-product-list .brand-product-row__price { flex: 0 0 auto; font-size: .8rem; }
.brand-product-row--current   { background: rgba(40,105,127,.05); cursor: default; }
.brand-product-row--current   { background: rgba(40,105,127,.05); cursor: default; }
.brand-product-row__name         { font-weight: 700; color: var(--pu-c-accent); font-size: .9rem; line-height: 1.3; }
.brand-product-row__current-label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pu-c-primary); display: block; margin-bottom: .15rem; }
.brand-product-row__type  { font-size: .78rem; color: var(--pu-c-text); white-space: nowrap; }
.brand-product-row__price { font-size: .82rem; color: var(--pu-c-text); white-space: nowrap; font-weight: 600; }

/* ─── SCORE PILL (sidebar / brand list) ──────────────────────────────── */
.sidebar-score-pill {
  display: inline-block; padding: .1rem .5rem;
  border-radius: 50px; font-size: .7rem; font-weight: 800; color: #fff;
}
.sp-green  { background: var(--pu-c-primary); }
.sp-teal   { background: var(--pu-c-primary); }
.sp-yellow { background: #d9a429; }
.sp-red    { background: #b53b3b; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .product-hero { padding: 1rem; gap: 1rem; }
  .brand-product-row { grid-template-columns: 1fr auto; gap: .5rem; padding: .6rem .75rem; }
  .brand-product-row__type,
  .brand-product-row__price { display: none; }
  .pu-table th,
  .pu-table td  { padding: .6rem .5rem; font-size: .8rem; }
  .pu-kpi-band  { padding: 1rem; }
}

/* ── Correctifs (revue client) ─────────────────────────────── */
/* score-circle teal manquant (note invisible sinon) */
.score-circle--teal { background: linear-gradient(135deg, #2f8a9e, #28697F); color:#fff; }
/* Masquer le picto natif <details> (angle gris) — on garde le +/- custom */
.pu-faq summary, .pu-faq__item summary, details.pu-faq__item > summary { list-style: none; }
.pu-faq summary::-webkit-details-marker, .pu-faq__item summary::-webkit-details-marker { display: none; }
.pu-faq summary::marker, .pu-faq__item summary::marker { content: ""; }

/* Bouton CTA clair (sur fond foncé) - règle générale (pas seulement winner-banner) */
/* ─── Review cards (injected by product enhancements) ──────────────── */
.pu-review-card {
  padding: 1.2rem;
  background: #fff;
  border: 1px solid rgba(42,50,75,.08);
  border-radius: var(--pu-radius);
  box-shadow: 0 1px 3px rgba(42,50,75,.04);
}

/* ─── CTA box plugin overrides (match theme pu-cta-box) ────────────── */
.pu-cta-box { padding: 2.5rem 2rem !important; text-align: center; position: relative; overflow: hidden; border-radius: var(--pu-radius-lg); }
.pu-cta-box::before { content: ''; position: absolute; top: -40%; right: -8%; width: 320px; height: 320px; background: rgba(255,255,255,.03); border-radius: 50%; pointer-events: none; }

/* ─── CTA: ensure background + cleanup ─────────────────────────────── */
.pu-cta-box.has-primary-background-color { background: var(--pu-c-primary); }
