/* Catalogue de produits notés : styles du module (généré par deploy.py). Hérite des variables du thème. */
:root {
  --ctrv-bg: var(--rdb-cream);
  --ctrv-vitrine: var(--rdb-white);
  --ctrv-ink: var(--rdb-ink);
  --ctrv-muted: #4d6577;
  --ctrv-accent: var(--rdb-orange);
  --ctrv-accent-ink: #fff;
  --ctrv-hi: var(--rdb-sky-soft);
  --ctrv-good: var(--rdb-sky);
  --ctrv-bad: #b3402a;
  --ctrv-line: 1px solid var(--rdb-line);
  --ctrv-hair: 1px solid var(--rdb-line);
  --ctrv-shadow: var(--rdb-shadow);
  --ctrv-radius: var(--rdb-radius);
  --ctrv-display: inherit;
}
.ctrv-enveloppe { padding-block: 34px 70px; }
.ctrv-enveloppe h1 { font-family: var(--ctrv-display); text-transform: uppercase; line-height: .95; letter-spacing: .02em; margin: .15em 0 .3em; font-size: clamp(2.5rem, 5.4vw, 4.4rem); overflow-wrap: anywhere; }
.ctrv-enveloppe h2, .ctrv-cluster h2 { font-family: var(--ctrv-display); text-transform: uppercase; letter-spacing: .03em; line-height: 1; font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 1.6em 0 .5em; }
.ctrv-corps > p { max-width: 780px; font-size: 1.08rem; }
.ctrv-corps > h2:first-child { margin-top: 0; }
.ctrv-soustitre { margin-top: 2.2em; }
.ctrv-etiquette { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ctrv-muted); }
.ctrv-suivre { font-weight: 700; color: var(--ctrv-ink); }
.ctrv-suivre:hover { color: var(--ctrv-accent); }
.ctrv-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ctrv-mention { font-size: .88rem; color: var(--ctrv-muted); margin-top: 14px; }
.ctrv-vide { padding: 24px; border: var(--ctrv-line); background: var(--ctrv-vitrine); }

/* boutons */
.ctrv-achat { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--ctrv-accent); color: var(--ctrv-accent-ink); border: var(--ctrv-line); border-radius: var(--ctrv-radius); box-shadow: var(--ctrv-shadow); transition: transform .18s, box-shadow .18s, background-color .18s; text-align: center; }
.ctrv-achat:hover { transform: translate(-2px, -2px); }
.ctrv-achat:focus-visible, .ctrv-vitrine a:focus-visible, .ctrv-selecteurs select:focus-visible, .ctrv-qr summary:focus-visible { outline: 3px solid var(--ctrv-hi); outline-offset: 3px; }
.ctrv-achat--ghost { background: var(--ctrv-vitrine); color: var(--ctrv-ink); }
.ctrv-achat--small { padding: 8px 12px; font-size: .88rem; white-space: nowrap; }

/* note */
.ctrv-indice { display: inline-flex; align-items: baseline; gap: 2px; padding: 4px 10px; background: var(--ctrv-ink); color: var(--ctrv-vitrine); border-radius: var(--ctrv-radius); line-height: 1; }
.ctrv-indice b { font-size: 1.35rem; font-family: var(--ctrv-display); letter-spacing: .02em; color: var(--ctrv-hi); }
.ctrv-indice i { font-style: normal; font-size: .8rem; opacity: .85; }
.ctrv-indice--sm { padding: 3px 8px; }
.ctrv-indice--sm b { font-size: 1.1rem; }
.ctrv-indice--lg { padding: 10px 16px; }
.ctrv-indice--lg b { font-size: 2.6rem; }
.ctrv-indice--lg i { font-size: 1.1rem; }

/* cartes */
.ctrv-rayon { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 24px 0; }
.ctrv-vitrine { display: flex; flex-direction: column; background: var(--ctrv-vitrine); border: var(--ctrv-line); border-radius: var(--ctrv-radius); box-shadow: var(--ctrv-shadow); overflow: hidden; }
.ctrv-vitrine[hidden] { display: none; }
.ctrv-vitrine__img { display: block; position: relative; aspect-ratio: 4 / 3; background: #fff; border-bottom: var(--ctrv-line); overflow: hidden; }
.ctrv-vitrine__img img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); max-width: none; object-fit: contain; }
.ctrv-vitrine__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.ctrv-vitrine h3 { font-size: 1.15rem; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.ctrv-vitrine h3 a { text-decoration: none; color: var(--ctrv-ink); }
.ctrv-vitrine h3 a:hover { color: var(--ctrv-accent); }
.ctrv-vitrine__meta { display: flex; align-items: center; gap: 10px; }
.ctrv-classement { font-weight: 700; color: var(--ctrv-muted); }
.ctrv-vitrine__specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: .88rem; }
.ctrv-vitrine__specs li span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ctrv-muted); }
.ctrv-vitrine__price { margin: 0; font-size: .9rem; color: var(--ctrv-muted); }
.ctrv-vitrine__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.ctrv-vitrine__actions .ctrv-achat { flex: 1 1 auto; box-shadow: none; }

/* filtres */
.ctrv-selecteurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; padding: 18px; background: var(--ctrv-vitrine); border: var(--ctrv-line); border-radius: var(--ctrv-radius); box-shadow: var(--ctrv-shadow); }
.ctrv-selecteurs label { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ctrv-muted); }
.ctrv-selecteurs select { font: inherit; font-size: 1rem; padding: 10px; border: var(--ctrv-hair); border-radius: var(--ctrv-radius); background: var(--ctrv-bg); color: var(--ctrv-ink); text-transform: none; letter-spacing: 0; }
.ctrv-total { margin: 20px 0 0; color: var(--ctrv-muted); }
.ctrv-total b { color: var(--ctrv-ink); }
.ctrv-voisinage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 50px; }
.ctrv-voisinage h2 { margin-top: 0; font-size: 1.6rem; }
.ctrv-raccourcis { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ctrv-raccourcis a { display: inline-block; padding: 7px 12px; border: var(--ctrv-hair); background: var(--ctrv-vitrine); border-radius: var(--ctrv-radius); text-decoration: none; font-weight: 600; color: var(--ctrv-ink); }
.ctrv-raccourcis a:hover { background: var(--ctrv-ink); color: var(--ctrv-vitrine); }
.ctrv-raccourcis small { opacity: .65; margin-left: 4px; }

/* tableau */
.ctrv-scrolltab { overflow-x: auto; margin: 18px 0 30px; border: var(--ctrv-line); border-radius: var(--ctrv-radius); background: var(--ctrv-vitrine); box-shadow: var(--ctrv-shadow); -webkit-overflow-scrolling: touch; }
.ctrv-comparateur { width: 100%; min-width: 780px; border-collapse: collapse; font-size: .93rem; }
.ctrv-comparateur th, .ctrv-comparateur td { padding: 10px 12px; text-align: left; border-bottom: var(--ctrv-hair); vertical-align: middle; }
.ctrv-comparateur thead th { background: var(--ctrv-ink); color: var(--ctrv-vitrine); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
.ctrv-comparateur tbody tr:nth-child(even) { background: color-mix(in srgb, var(--ctrv-bg) 55%, var(--ctrv-vitrine)); }
.ctrv-comparateur tbody th { position: sticky; left: 0; background: inherit; min-width: 190px; font-weight: 700; z-index: 1; }
.ctrv-comparateur__name { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ctrv-ink); }
.ctrv-comparateur__name img { width: 44px; height: 44px; object-fit: contain; background: #fff; flex: none; }
.ctrv-comparateur__name:hover span { text-decoration: underline; }

/* mini */
.ctrv-compacts { display: grid; gap: 12px; margin: 20px 0; }
.ctrv-resume { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--ctrv-vitrine); border: var(--ctrv-line); border-radius: var(--ctrv-radius); flex-wrap: wrap; }
.ctrv-resume img { width: 72px; height: 72px; object-fit: contain; background: #fff; }
.ctrv-resume > div:nth-child(2) { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; align-items: flex-start; }
.ctrv-resume a { color: var(--ctrv-ink); text-decoration: none; }
.ctrv-resume__act { display: flex; gap: 8px; }

/* fiche */
.ctrv-vedette { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; margin-bottom: 40px; }
.ctrv-vedette__img { background: #fff; border: var(--ctrv-line); border-radius: var(--ctrv-radius); box-shadow: var(--ctrv-shadow); padding: 24px; display: flex; justify-content: center; }
.ctrv-vedette__img img { max-height: 420px; width: auto; max-width: 100%; object-fit: contain; }
.ctrv-amorce { font-size: 1.15rem; margin: 0 0 18px; }
.ctrv-vedette__score { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.ctrv-vedette__score strong { display: block; font-size: 1.05rem; }
.ctrv-vedette__score span:not(.ctrv-indice) { color: var(--ctrv-muted); font-size: .92rem; }
.ctrv-amazonnote { margin: 0 0 20px; color: var(--ctrv-muted); }
.ctrv-vedette__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ctrv-colonnes { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 44px; align-items: start; }
.ctrv-coeur { min-width: 0; max-width: 780px; }
.ctrv-entree { font-size: 1.12rem; }
.ctrv-partie h2 { margin-top: 1.5em; }
.ctrv-paire { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ctrv-jauges { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ctrv-jauges li { display: grid; grid-template-columns: 112px 1fr 38px; gap: 10px; align-items: center; font-size: .92rem; }
.ctrv-jauges__bar { height: 12px; background: var(--ctrv-bg); border: var(--ctrv-hair); border-radius: var(--ctrv-radius); overflow: hidden; }
.ctrv-jauges__bar i { display: block; height: 100%; background: var(--ctrv-accent); }
.ctrv-jauges b { text-align: right; }
.ctrv-fichetech { margin: 0; display: grid; gap: 0; border: var(--ctrv-hair); background: var(--ctrv-vitrine); align-self: start; }
.ctrv-fichetech div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 14px; border-bottom: var(--ctrv-hair); }
.ctrv-fichetech div:last-child { border-bottom: 0; }
.ctrv-fichetech dt { color: var(--ctrv-muted); }
.ctrv-fichetech dd { margin: 0; font-weight: 700; text-align: right; }
.ctrv-bilan2 h3 { margin: 0 0 8px; font-size: 1.05rem; }
.ctrv-bilan2 ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ctrv-bilan2 li { position: relative; padding-left: 26px; }
.ctrv-bilan2 li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.ctrv-bilan2__plus li::before { content: "+"; color: var(--ctrv-good); }
.ctrv-bilan2__moins li::before { content: "–"; color: var(--ctrv-bad); }
.ctrv-conclusion { padding: 22px 24px; background: var(--ctrv-vitrine); border: var(--ctrv-line); border-radius: var(--ctrv-radius); box-shadow: var(--ctrv-shadow); margin-top: 34px; }
.ctrv-conclusion h2 { margin-top: 0; }
.ctrv-qr details { border-bottom: var(--ctrv-hair); padding: 12px 0; }
.ctrv-qr summary { cursor: pointer; font-weight: 700; }
.ctrv-qr details div { padding-top: 8px; }
.ctrv-lateral { position: sticky; top: 110px; }
.ctrv-lateral__box { padding: 18px 20px; background: var(--ctrv-vitrine); border: var(--ctrv-line); border-radius: var(--ctrv-radius); box-shadow: var(--ctrv-shadow); }
.ctrv-lateral ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ctrv-lateral a { color: var(--ctrv-ink); font-weight: 600; }
.ctrv-pistes { margin-top: 50px; }

/* pages segments */
.ctrv-theme .ctrv-partie { margin-top: 36px; }
.ctrv-soustitre--first { margin-top: 10px; }
.ctrv-titre3 { font-size: 1.15rem; margin: 30px 0 0; }
.ctrv-astuces { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 800px; counter-reset: tip; }
.ctrv-astuces li { position: relative; padding: 12px 16px 12px 52px; background: var(--ctrv-vitrine); border: var(--ctrv-hair); }
.ctrv-astuces li::before { counter-increment: tip; content: counter(tip); position: absolute; left: 14px; top: 10px; width: 26px; height: 26px; display: grid; place-items: center; background: var(--ctrv-accent); color: var(--ctrv-accent-ink); font-weight: 700; border-radius: var(--ctrv-radius); }
.ctrv-theme .ctrv-partie > p { max-width: 800px; }
.ctrv-qr { max-width: 800px; }
.ctrv-voisinage--seg { display: block; }

/* face à face */
.ctrv-comparateur--vs { min-width: 560px; }
.ctrv-comparateur--vs thead th a { display: flex; align-items: center; gap: 10px; color: var(--ctrv-vitrine); text-decoration: none; }
.ctrv-comparateur--vs thead th img { background: #fff; width: 48px; height: 48px; object-fit: contain; flex: none; }
.ctrv-comparateur--vs tbody th { min-width: 130px; }
.ctrv-comparateur--vs td { font-weight: 600; }
.ctrv-top { background: color-mix(in srgb, var(--ctrv-hi) 45%, transparent); }

/* bandeau dans les articles d'avis */
.ctrv-rappel { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 30px; padding: 16px 20px; background: var(--ctrv-vitrine); border: var(--ctrv-line); border-radius: var(--ctrv-radius); box-shadow: var(--ctrv-shadow); }
.ctrv-rappel strong { display: block; font-size: 1.1rem; }
.ctrv-rappel span { color: var(--ctrv-muted); font-size: .9rem; }
.ctrv-rappel .ctrv-achat { color: var(--ctrv-accent-ink); }
.ctrv-liendossier { margin-top: 6px; display: block; font-size: .9rem; }

@media (max-width: 960px) {
  .ctrv-rayon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctrv-voisinage { grid-template-columns: 1fr; gap: 20px; }
  .ctrv-colonnes { grid-template-columns: 1fr; }
  .ctrv-lateral { position: static; }
  .ctrv-vedette { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .ctrv-enveloppe { padding-block: 22px 50px; }
  .ctrv-rayon { grid-template-columns: 1fr; gap: 18px; }
  .ctrv-paire { grid-template-columns: 1fr; }
  .ctrv-jauges li { grid-template-columns: 96px 1fr 34px; }
  .ctrv-indice--lg b { font-size: 2.1rem; }
  .ctrv-vedette__img { padding: 14px; }
  .ctrv-vedette__img img { max-height: 280px; }
  .ctrv-vedette__cta .ctrv-achat { flex: 1 1 100%; }
  .ctrv-rappel .ctrv-achat { width: 100%; }
}
@media (max-width: 640px) {
  .ctrv-comparateur--vs { min-width: 0; table-layout: fixed; }
  .ctrv-comparateur--vs th, .ctrv-comparateur--vs td { padding: 8px 7px; font-size: .86rem; }
  .ctrv-comparateur--vs tbody th { min-width: 0; width: 28%; }
  .ctrv-comparateur--vs thead th a { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ctrv-comparateur--vs thead th img { width: 40px; height: 40px; }
  .ctrv-comparateur--vs thead th { white-space: normal; letter-spacing: 0; font-size: .74rem; overflow-wrap: anywhere; }
  .ctrv-comparateur--vs .ctrv-achat--small { white-space: normal; padding: 8px 6px; width: 100%; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) { .ctrv-achat { transition: none; } }

/* ---- variantes de présentation (theme.opts) : voir deploy.py DEFAULT_OPTS ---- */


.ctrv-indice { flex-direction: column; justify-content: center; align-items: center; gap: 0; width: 3.3rem; height: 3.3rem; padding: 0; border-radius: 50%; background: var(--ctrv-vitrine); color: var(--ctrv-ink); border: 3px solid var(--ctrv-accent); box-shadow: none; }
.ctrv-indice b { font-size: 1.12rem; color: var(--ctrv-ink); line-height: 1; }
.ctrv-indice i { font-size: .55rem; opacity: .7; line-height: 1; }
.ctrv-indice--sm { width: 2.6rem; height: 2.6rem; padding: 0; border-width: 2px; }
.ctrv-indice--sm b { font-size: .95rem; }
.ctrv-indice--lg { width: 5.6rem; height: 5.6rem; padding: 0; border-width: 5px; }
.ctrv-indice--lg b { font-size: 2.1rem; }
.ctrv-indice--lg i { font-size: .8rem; }


.ctrv-colonnes { grid-template-columns: minmax(0, 1fr); }
.ctrv-coeur { max-width: 820px; }
.ctrv-lateral { position: static; }
.ctrv-lateral ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }



.ctrv-comparateur thead th { background: transparent; color: var(--ctrv-ink); border-bottom: 2px solid var(--ctrv-accent); }
.ctrv-comparateur--vs thead th a { color: var(--ctrv-ink); }


.ctrv-enveloppe h1, .ctrv-enveloppe h2, .ctrv-cluster h2 { text-transform: none; letter-spacing: -.01em; line-height: 1.1; font-weight: 500; }
.ctrv-enveloppe h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
.ctrv-enveloppe h2, .ctrv-cluster h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }




