/* RanknifyShield — Product page styles (rnk_product CPT) */
:root {
  --rnk-o:  var(--global-palette1, #f37a1f);
  --rnk-d:  var(--global-palette2, #181411);
  --rnk-m:  var(--global-palette3, #3c322a);
  --rnk-bg: var(--global-palette8, #f9f7f6);
  --rnk-br: var(--global-palette6, #ece5df);
}

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.rnk-product-wrap {
  max-width: var(--global-content-width, 1290px);
  margin: 0 auto;
  padding: 24px 20px 60px;
  font-family: var(--global-body-font-family, inherit);
}

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.rnk-breadcrumb {
  font-size: .82rem;
  color: var(--rnk-m);
  margin-bottom: 20px;
}
.rnk-breadcrumb a { color: var(--rnk-o); text-decoration: none; }
.rnk-breadcrumb a:hover { text-decoration: underline; }
.rnk-sep { margin: 0 6px; color: #bbb; }
.rnk-bc-current { color: var(--rnk-d); font-weight: 500; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.rnk-hero {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin: 0 0 32px;
}
.rnk-product-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--rnk-d);
  margin: 0 0 16px;
}

/* ── Gallery ──────────────────────────────────────────────────────────────── */
.rnk-hero-gallery {
  flex: 0 0 280px;
  max-width: 280px;
}
.rnk-gallery-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--rnk-bg);
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}
.rnk-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.rnk-gallery-main:hover .rnk-main-img { transform: scale(1.04); }
.rnk-hero-img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--rnk-bg);
  border-radius: 12px;
}
.rnk-zoom-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.rnk-gallery-main:hover .rnk-zoom-btn { opacity: 1; }

.rnk-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.rnk-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--rnk-br);
  cursor: pointer;
  transition: border-color .15s;
}
.rnk-thumb:hover,
.rnk-thumb.active { border-color: var(--rnk-o); }

/* ── Hero info ────────────────────────────────────────────────────────────── */
.rnk-hero-info { flex: 1; min-width: 0; }

/* ── SVG Gauge ────────────────────────────────────────────────────────────── */
.rnk-score-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.rnk-gauge .rnk-gauge-bg {
  fill: none;
  stroke: var(--rnk-br);
  stroke-width: 10;
  stroke-linecap: round;
}
.rnk-gauge .rnk-gauge-arc {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(.25,.8,.25,1);
}
.rnk-gauge .rnk-gauge-num {
  font-size: 1.9rem;
  font-weight: 800;
  fill: var(--rnk-d);
}
.rnk-gauge .rnk-gauge-sub {
  font-size: .62rem;
  font-weight: 700;
  fill: var(--rnk-m);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.rnk-score-legend { flex: 1; }
.rnk-score-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--rnk-m);
  margin-bottom: 4px;
}
.rnk-hero-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rnk-d);
  margin: 8px 0 14px;
}
.rnk-hero-phrase {
  font-size: .9rem;
  color: var(--rnk-m);
  margin: 0;
  font-style: italic;
  line-height: 1.4;
}
.rnk-disclaimer {
  font-size: .75rem;
  color: #999;
  margin: 6px 0 0;
}

/* ── Idéal pour / À éviter ────────────────────────────────────────────────── */
.rnk-ideal-box {
  border: 1px solid var(--rnk-br);
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0;
}
.rnk-ideal-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  font-size: .88rem;
  line-height: 1.45;
}
.rnk-ideal-row + .rnk-ideal-row { border-top: 1px solid var(--rnk-br); }
.rnk-ideal-for { background: #f0faf0; }
.rnk-ideal-avoid { background: #fff8f0; }
.rnk-ideal-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ── Trust badges ─────────────────────────────────────────────────────────── */
.rnk-trust-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.rnk-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--rnk-bg);
  border: 1px solid var(--rnk-br);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--rnk-d);
  white-space: nowrap;
}

/* ── CTA buttons ──────────────────────────────────────────────────────────── */
.rnk-cta-btn {
  display: inline-block;
  background: var(--rnk-o);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  transition: opacity .2s, transform .1s;
  line-height: 1.2;
  cursor: pointer;
}
.rnk-cta-btn:hover { opacity: .88; transform: translateY(-1px); }
.rnk-cta-btn:active { transform: translateY(0); }
.rnk-cta-btn.lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  display: block;
  text-align: center;
}
.rnk-cta-wrap,
.rnk-cta-final { margin: 24px 0; text-align: center; }
.rnk-cta-final { margin: 32px 0; }

/* ── Rating bars ─────────────────────────────────────────────────────────── */
.rnk-rating-bars {
  background: var(--rnk-bg);
  border: 1px solid var(--rnk-br);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}
.rnk-rating-bars h3 {
  margin: 0 0 16px;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--rnk-m);
}
.rnk-bars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.rnk-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.rnk-bar-row:last-child { margin-bottom: 0; }
.rnk-bars-grid .rnk-bar-row:nth-last-child(-n+2) { margin-bottom: 0; }
.rnk-bar-label {
  flex: 0 0 150px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--rnk-d);
}
.rnk-bar-track {
  flex: 1;
  height: 14px;
  background: var(--rnk-br);
  border-radius: 7px;
  overflow: hidden;
}
.rnk-bar-fill {
  height: 100%;
  border-radius: 7px;
  background: var(--rnk-o);
  width: 0;
  transition: width 1.1s ease;
}
.rnk-bar-score {
  flex: 0 0 48px;
  text-align: right;
  font-size: .9rem;
  font-weight: 700;
  color: var(--rnk-o);
  white-space: nowrap;
}

/* ── Fiche d'identité technique ──────────────────────────────────────────── */
.rnk-fiche-id {
  border: 2px solid var(--rnk-o);
  border-radius: 12px;
  overflow: hidden;
  margin: 24px 0;
}
.rnk-fiche-header {
  background: var(--rnk-o);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rnk-fiche-header h3 {
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
}
.rnk-fiche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  background: #fff;
}
.rnk-fiche-item {
  padding: 12px 16px;
  border-right: 1px solid var(--rnk-br);
  border-bottom: 1px solid var(--rnk-br);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rnk-fiche-label {
  font-size: .72rem;
  color: var(--rnk-m);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.rnk-fiche-val {
  font-size: .95rem;
  font-weight: 700;
  color: var(--rnk-d);
}

/* ── Pros / Cons ─────────────────────────────────────────────────────────── */
.rnk-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.rnk-pros {
  background: #f0faf0;
  border: 1px solid #b8e6b8;
  border-radius: 10px;
  padding: 20px;
}
.rnk-cons {
  background: #fff8f0;
  border: 1px solid var(--rnk-br);
  border-radius: 10px;
  padding: 20px;
}
.rnk-pros h3 {
  margin: 0 0 12px;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #2a7a2a;
}
.rnk-cons h3 {
  margin: 0 0 12px;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #a05a20;
}
.rnk-pros ul, .rnk-cons ul { margin: 0; padding: 0 0 0 16px; }
.rnk-pros li, .rnk-cons li { margin-bottom: 6px; font-size: .9rem; }

/* ── Section score badge (in H2) ─────────────────────────────────────────── */
.rnk-sec-score {
  display: inline-block;
  background: var(--rnk-o);
  color: #fff;
  border-radius: 16px;
  padding: 2px 10px;
  font-size: .78rem;
  font-weight: 700;
  margin-left: 8px;
  vertical-align: middle;
}

/* ── Inline CTA ──────────────────────────────────────────────────────────── */
.rnk-inline-cta {
  background: var(--rnk-bg);
  border: 1px solid var(--rnk-br);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.rnk-inline-cta .rnk-ic-label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--rnk-d);
}
.rnk-inline-cta .rnk-ic-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rnk-o);
}

/* ── Specs table ─────────────────────────────────────────────────────────── */
.rnk-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
}
.rnk-specs-table tr:nth-child(odd) td { background: var(--rnk-bg); }
.rnk-specs-table td {
  padding: 10px 14px;
  border: 1px solid var(--rnk-br);
  font-size: .9rem;
  vertical-align: middle;
}
.rnk-specs-table td:first-child { font-weight: 600; width: 42%; }
.rnk-specs-table a { color: var(--rnk-o); text-decoration: none; }
.rnk-specs-table a:hover { text-decoration: underline; }

/* ── Testimonials ────────────────────────────────────────────────────────── */
.rnk-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.rnk-testimonial {
  background: var(--rnk-bg);
  border: 1px solid var(--rnk-br);
  border-radius: 10px;
  padding: 16px;
}
.rnk-testimonial-stars { color: var(--rnk-o); font-size: 1rem; margin-bottom: 8px; }
.rnk-testimonial-text {
  font-size: .88rem;
  color: var(--rnk-m);
  margin: 0 0 8px;
  font-style: italic;
}
.rnk-testimonial-source { font-size: .78rem; font-weight: 600; color: var(--rnk-o); }
.rnk-reviews-disclaimer {
  font-size: .75rem;
  color: #999;
  text-align: center;
  margin: -8px 0 24px;
}
.rnk-pub-date {
  font-size: .75rem;
  color: var(--rnk-m);
  margin-top: 8px;
}

/* ── FAQ accordion ───────────────────────────────────────────────────────── */
.rnk-faq { margin: 24px 0; }
.rnk-faq-item {
  border: 1px solid var(--rnk-br);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.rnk-faq-q {
  padding: 14px 16px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  user-select: none;
}
.rnk-faq-q:hover { background: var(--rnk-bg); }
.rnk-faq-q::after {
  content: "▼";
  font-size: .65rem;
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 12px;
}
.rnk-faq-item.rnk-open .rnk-faq-q::after { transform: rotate(180deg); }
.rnk-faq-a {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .2s;
  font-size: .88rem;
  color: var(--rnk-m);
  line-height: 1.6;
}
.rnk-faq-item.rnk-open .rnk-faq-a {
  max-height: 500px;
  padding: 0 16px 14px;
}

/* ── Author box ──────────────────────────────────────────────────────────── */
.rnk-author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--rnk-bg);
  border: 1px solid var(--rnk-br);
  border-radius: 12px;
  padding: 20px;
  margin: 32px 0 24px;
}
.rnk-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--rnk-br);
}
.rnk-author-info { flex: 1; min-width: 0; }
.rnk-author-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--rnk-m);
  margin-bottom: 2px;
}
.rnk-author-name {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--rnk-d);
  text-decoration: none;
  margin-bottom: 6px;
}
.rnk-author-name:hover { color: var(--rnk-o); }
.rnk-author-bio {
  font-size: .85rem;
  color: var(--rnk-m);
  margin: 0;
  line-height: 1.5;
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.rnk-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rnk-lightbox[hidden] { display: none; }
.rnk-lb-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rnk-lb-img-wrap img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}
.rnk-lb-close,
.rnk-lb-prev,
.rnk-lb-next {
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.rnk-lb-close,
.rnk-lb-prev,
.rnk-lb-next { }
.rnk-lb-close:hover,
.rnk-lb-prev:hover,
.rnk-lb-next:hover { background: rgba(255,255,255,.28); }
.rnk-lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
}
.rnk-lb-prev { position: absolute; left: 16px; }
.rnk-lb-next { position: absolute; right: 16px; }
.rnk-lb-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: .82rem;
}

/* ── Sticky CTA ──────────────────────────────────────────────────────────── */
.rnk-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--rnk-d);
  padding: 10px 20px;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  transform: translateY(110%);
  transition: transform .3s ease;
}
.rnk-sticky-cta.rnk-sticky-show { transform: translateY(0); }
.rnk-sticky-cta .rnk-sticky-price {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  flex-shrink: 0;
}
.rnk-sticky-cta .rnk-cta-btn {
  flex: 0 0 auto;
  padding: 10px 22px;
  font-size: .9rem;
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .rnk-hero { flex-direction: column; }
  .rnk-hero-gallery { flex: none; max-width: 100%; width: 100%; }
  .rnk-gallery-main { max-width: 320px; margin: 0 auto; }
  .rnk-pros-cons { grid-template-columns: 1fr; }
  .rnk-testimonials { grid-template-columns: 1fr; }
  .rnk-bar-label { flex: 0 0 110px; font-size: .82rem; }
  .rnk-bars-grid { grid-template-columns: 1fr; }
  .rnk-bars-grid .rnk-bar-row:nth-last-child(-n+2) { margin-bottom: 12px; }
  .rnk-bars-grid .rnk-bar-row:last-child { margin-bottom: 0; }
  .rnk-fiche-grid { grid-template-columns: repeat(2, 1fr); }
  .rnk-fiche-item:nth-child(2n) { border-right: none; }
  .rnk-sticky-cta { transform: translateY(0); }
  .admin-bar .rnk-sticky-cta { bottom: 46px; }
  body { padding-bottom: 68px !important; }
  .rnk-author-box { flex-direction: column; align-items: center; text-align: center; }
}

/* ── Top comparison cards [rnk_top] ───────────────────────────────────────── */
.rnk-top-wrap {
  margin: 32px 0 40px;
  font-family: var(--global-body-font-family, inherit);
}
.rnk-top-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--rnk-d);
  border-left: 4px solid var(--rnk-o);
  padding-left: 12px;
}
.rnk-top-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Card shell ── */
.rnk-top-card {
  border: 1px solid var(--rnk-br);
  border-radius: 14px;
  background: #fff;
  position: relative;
  transition: box-shadow .2s;
  overflow: visible;
}
.rnk-top-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.10); }
.rnk-top-card--winner {
  border: 2px solid var(--rnk-o);
  box-shadow: 0 4px 20px rgba(249,115,22,.12);
}
.rnk-top-card--value {
  border: 2px solid var(--rnk-g);
}

/* ── Floating badge ── */
.rnk-top-card-badge {
  position: absolute;
  top: -13px;
  left: 20px;
  height: 26px;
  padding: 0 12px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.rnk-badge--winner { background: var(--rnk-o); color: #fff; }
.rnk-badge--value  { background: var(--rnk-g); color: #fff; }

/* ── Inner layout ── */
.rnk-top-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
}
.rnk-top-card--winner .rnk-top-card-inner,
.rnk-top-card--value  .rnk-top-card-inner { padding-top: 28px; }

/* ── Left col: rank + image ── */
.rnk-top-card-left {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 130px;
}
.rnk-top-card-rank { font-size: 1.8rem; line-height: 1; }
.rnk-top-card-img {
  display: block;
  width: 130px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--rnk-bg);
  border: 1px solid var(--rnk-br);
}

/* ── Middle col: details ── */
.rnk-top-card-mid { flex: 1; min-width: 0; }
.rnk-top-card-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.4;
  color: var(--rnk-d);
}
.rnk-top-card-name a { color: inherit; text-decoration: none; }
.rnk-top-card-name a:hover { color: var(--rnk-o); }
.rnk-top-card-verdict {
  font-size: .82rem;
  color: var(--rnk-m);
  font-style: italic;
  margin: 0 0 14px;
  line-height: 1.5;
}

/* ── Criteria bars ── */
.rnk-top-criteria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 20px;
  margin-bottom: 14px;
}
.rnk-top-crit {
  display: flex;
  align-items: center;
  gap: 7px;
}
.rnk-top-crit-label {
  font-size: .72rem;
  color: var(--rnk-m);
  width: 70px;
  flex-shrink: 0;
}
.rnk-top-crit-track {
  flex: 1;
  height: 6px;
  background: #eef0f2;
  border-radius: 99px;
  overflow: hidden;
}
.rnk-top-crit-fill {
  height: 100%;
  border-radius: 99px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.rnk-bar--high { background: var(--rnk-g); }
.rnk-bar--mid  { background: #f59e0b; }
.rnk-bar--low  { background: #ef4444; }
.rnk-top-crit-val {
  font-size: .72rem;
  font-weight: 700;
  color: var(--rnk-d);
  width: 22px;
  text-align: right;
  flex-shrink: 0;
}

/* ── For / avoid ── */
.rnk-top-card-for,
.rnk-top-card-avoid {
  font-size: .8rem;
  color: #374151;
  margin-bottom: 5px;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  line-height: 1.5;
}
.rnk-for-icon { flex-shrink: 0; margin-top: 1px; }

/* ── Right col: score + price + CTA ── */
.rnk-top-card-right {
  flex-shrink: 0;
  width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.rnk-top-card-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,.20);
  flex-shrink: 0;
}
.rnk-note--high.rnk-top-card-score { background: linear-gradient(135deg,#16a34a,#22c55e); }
.rnk-note--mid.rnk-top-card-score  { background: linear-gradient(135deg,#d97706,#f59e0b); }
.rnk-note--low.rnk-top-card-score  { background: linear-gradient(135deg,#dc2626,#ef4444); }
.rnk-top-score-val   { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.rnk-top-score-denom { font-size: .72rem; opacity: .8; }
.rnk-top-score-label { font-size: .6rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin-top: 2px; }

.rnk-top-card-prix {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rnk-d);
  white-space: nowrap;
}
.rnk-btn--amazon {
  width: 100%;
  padding: 12px 10px;
  font-size: .82rem;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
}
.rnk-top-card-details {
  font-size: .75rem;
  color: #9ca3af;
  text-decoration: underline;
}
.rnk-top-card-details:hover { color: var(--rnk-d); }

/* ── Responsive ── */
@media (max-width: 820px) {
  .rnk-top-card-right { width: 160px; }
  .rnk-top-card-left  { width: 100px; }
  .rnk-top-card-img   { width: 100px; height: 78px; }
}
@media (max-width: 640px) {
  .rnk-top-card-inner { flex-wrap: wrap; gap: 14px; }
  .rnk-top-card-left  { flex-direction: row; width: 100%; align-items: center; }
  .rnk-top-card-img   { width: 80px; height: 62px; }
  .rnk-top-card-right {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--rnk-br);
    padding-top: 12px;
  }
  .rnk-top-card-score { width: 64px; height: 64px; }
  .rnk-top-score-val  { font-size: 1.25rem; }
  .rnk-btn--amazon    { flex: 1; min-width: 140px; }
  .rnk-top-criteria   { grid-template-columns: 1fr; }
}

/* ── Methodology banner ───────────────────────────────────────────────────── */
.rnk-methodo-banner {
  display: flex;
  gap: 0;
  background: var(--rnk-d);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 10px;
  font-family: var(--global-body-font-family, inherit);
}
.rnk-methodo-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.1);
  gap: 4px;
}
.rnk-methodo-stat:last-child { border-right: none; }
.rnk-methodo-icon { font-size: 1.4rem; line-height: 1; }
.rnk-methodo-val  { font-size: 1.6rem; font-weight: 800; color: var(--rnk-o); line-height: 1.1; }
.rnk-methodo-label{ font-size: .72rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .05em; line-height: 1.3; }
.rnk-updated-date {
  font-size: .78rem;
  color: #888;
  margin: 0 0 28px;
  padding-left: 2px;
}
.rnk-updated-date strong { color: var(--rnk-d); }

/* ── Par marque section ───────────────────────────────────────────────────── */
.rnk-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0 32px;
}
.rnk-brand-card {
  background: var(--rnk-bg);
  border: 1px solid var(--rnk-br);
  border-radius: 8px;
  padding: 16px 18px;
}
.rnk-brand-card h3 {
  font-size: .95rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--rnk-d);
}
.rnk-brand-card p {
  font-size: .82rem;
  color: var(--rnk-m);
  margin: 0 0 10px;
  line-height: 1.5;
}
.rnk-brand-card a {
  font-size: .78rem;
  color: var(--rnk-o);
  text-decoration: none;
  font-weight: 600;
}
.rnk-brand-card a:hover { text-decoration: underline; }

/* ── Alternatives section ─────────────────────────────────────────────────── */
.rnk-alts-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0 32px;
}
.rnk-alt-item {
  border: 1px solid var(--rnk-br);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
}
.rnk-alt-item h3 {
  font-size: .88rem;
  font-weight: 700;
  margin: 0 0 5px;
  color: var(--rnk-d);
}
.rnk-alt-item p {
  font-size: .8rem;
  color: var(--rnk-m);
  margin: 0;
  line-height: 1.45;
}
.rnk-alt-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  background: var(--rnk-o);
  border-radius: 3px;
  padding: 2px 7px;
  margin-bottom: 7px;
}

/* ── Voir aussi / internal links ─────────────────────────────────────────── */
.rnk-see-also {
  border-top: 2px solid var(--rnk-br);
  padding-top: 28px;
  margin-top: 40px;
}
.rnk-see-also h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--rnk-d);
}
.rnk-see-also-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rnk-see-also-link {
  display: inline-block;
  padding: 8px 16px;
  background: var(--rnk-bg);
  border: 1px solid var(--rnk-br);
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--rnk-d);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.rnk-see-also-link:hover {
  background: var(--rnk-o);
  border-color: var(--rnk-o);
  color: #fff;
}

@media (max-width: 600px) {
  .rnk-methodo-banner { flex-wrap: wrap; }
  .rnk-methodo-stat   { flex: 1 1 50%; border-right: 1px solid rgba(255,255,255,.1); }
  .rnk-methodo-stat:nth-child(2n) { border-right: none; }
  .rnk-methodo-stat:nth-child(n+3){ border-top: 1px solid rgba(255,255,255,.1); }
}
