/* Comparatifs v2 (27/11/2026) : en-tête de fiche avec pictogramme, ligne d'avis, boutons « photos » */
.pc-head { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; align-items: center; margin-bottom: .75rem; }
.pc-visual { width: 84px; height: 84px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #f0fdf4 0%, #e8f0fb 100%); color: var(--primary); display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray-200); }
.product-card.top-pick .pc-visual { color: var(--accent); border-color: #bbf7d0; }
.pc-titles { min-width: 0; display: grid; gap: .25rem; }
.pc-titles .product-title { display: inline; line-height: 1.3; }
.pc-meta { font-size: .85rem; color: var(--gray-500); margin: 0; }
.pc-meta strong { color: var(--gray-700); font-weight: 600; }
.pc-role { justify-self: start; font-size: .75rem; font-weight: 700; letter-spacing: .02em; color: var(--accent); background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 999px; padding: .1rem .6rem; }
.pc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1rem; }
.pc-cta-note { font-size: .8rem; color: var(--gray-500); }
.quick-pick-card .qp-visual { width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--radius); background: #f0fdf4; color: var(--primary); display: flex; align-items: center; justify-content: center; }
.quick-pick-card .qp-visual svg { width: 34px; height: 34px; }
.comparison-table td:first-child a { font-weight: 600; }
@media (max-width: 640px) {
  .pc-head { grid-template-columns: 64px 1fr; gap: .75rem; }
  .pc-visual { width: 64px; height: 64px; }
  .pc-visual svg { width: 48px; height: 48px; }
  .pc-cta .cta-amazon { width: 100%; }
}

/* Clics vers Amazon : bandeau compact, boutons tôt, bouton dans le tableau et en tête de fiche, barre mobile */
.hero.hero-cmp { padding: 1.75rem 1.25rem 1.5rem; }
.hero.hero-cmp h1 { font-size: 1.95rem; margin-bottom: .4rem; text-wrap: balance; }
.hero.hero-cmp .hero-badge { margin-bottom: .6rem; }
.article-meta.meta-cmp { margin-bottom: .75rem; gap: .15rem .9rem; }
.article-pied { margin: 2rem 0 .5rem; padding-top: 1rem; border-top: 1px solid var(--gray-200); }
.article-pied .article-meta.meta-cmp { margin-bottom: .5rem; }
.article-pied .affiliate-notice.notice-cmp { margin: 0; }
.affiliate-notice.notice-cmp { margin: .75rem 0 1.25rem; padding: .4rem .8rem; font-size: .75rem; }
.comparison-table .cmp-model a { display: block; margin-bottom: .35rem; }
.comparison-table .cmp-model .cta-amazon { padding: .3rem .7rem; font-size: .78rem; white-space: nowrap; box-shadow: none; }
.comparison-table .cmp-model .cta-amazon::after { font-size: .9rem; }
.quick-picks .quick-pick-info strong { white-space: normal; overflow: visible; line-height: 1.3; }
.pc-head-cta { margin-top: .35rem; }
.pc-head-cta .cta-amazon { padding: .4rem .9rem; font-size: .82rem; }
.cta-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; align-items: center; gap: .75rem;
  background: var(--white); border-top: 1px solid var(--gray-200); box-shadow: 0 -6px 16px rgba(17,24,39,.08);
  padding: .55rem max(12px, env(safe-area-inset-right, 0px)) calc(.55rem + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  transform: translateY(110%); transition: transform .25s ease; }
.cta-sticky.is-on { transform: none; }
.cta-sticky-txt { flex: 1; min-width: 0; font-size: .75rem; color: var(--gray-500); line-height: 1.25; }
.cta-sticky-txt strong { display: block; font-size: .9rem; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-sticky .cta-amazon { padding: .55rem .9rem; font-size: .88rem; white-space: nowrap; box-shadow: none; }
.cta-sticky-close { background: none; border: none; color: var(--gray-500); font-size: 1.3rem; line-height: 1; padding: .25rem; cursor: pointer; }
.cta-sticky-close:focus-visible, .cta-sticky .cta-amazon:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }
@media (max-width: 900px) { .cta-sticky { display: flex; } body.has-cta-sticky footer { padding-bottom: 4.5rem; } }
@media (max-width: 640px) {
  .hero.hero-cmp { padding: 1.1rem 1rem 1rem; }
  .hero.hero-cmp h1 { font-size: 1.45rem; }
  .hero.hero-cmp p { font-size: .92rem; }
  .hero.hero-cmp .hero-badge { margin-bottom: .45rem; font-size: .72rem; }
  .article-meta.meta-cmp { font-size: .78rem; margin-bottom: .4rem; }
  .article-pied .article-meta.meta-cmp time:first-of-type { display: inline; }
  .affiliate-notice.notice-cmp { margin: .5rem 0 .9rem; font-size: .7rem; }
  .quick-picks { padding: 1rem; }
}
/* Fiche v2 : bouton principal toujours en colonne de droite (ordinateur) ou sous le titre (mobile) */
.product-card.pc2 { padding: 1.25rem 1.25rem 1.1rem; }
.pc-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 210px; gap: 1rem 1.25rem; align-items: start; }
.pc2 .pc-visual { width: 96px; height: 96px; }
.pc-main { min-width: 0; display: grid; gap: .4rem; }
.pc-titre { display: flex; align-items: flex-start; gap: .5rem; }
.pc-titre .product-rank { flex-shrink: 0; margin: 0; }
.pc-titre .product-title { display: block; font-size: 1.12rem; line-height: 1.3; }
.pc-points { list-style: none; margin: .1rem 0 0; padding: 0; display: grid; gap: .2rem; font-size: .88rem; color: var(--gray-700); }
.pc-points li { position: relative; padding-left: 1.3rem; line-height: 1.45; }
.pc-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pc-aside { display: grid; gap: .6rem; align-content: start; }
.pc-avis { text-align: center; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: .5rem .6rem; line-height: 1.25; }
.pc-avis strong { display: block; color: var(--primary); font-size: 1rem; }
.pc-avis span { font-size: .75rem; color: var(--gray-500); }
.pc-aside .cta-amazon { width: 100%; padding: .75rem 1rem; font-size: .98rem; }
.pc-details { margin-top: 1rem; border-top: 1px solid var(--gray-100); padding-top: .5rem; }
.pc-limites { background: #fef2f2; border-radius: var(--radius); padding: .75rem 1rem; margin: .75rem 0; }
.pc-limites h4 { font-size: .9rem; color: #b91c1c; margin-bottom: .35rem; }
.pc-limites ul { margin: 0; padding-left: 1.1rem; font-size: .88rem; }
.cta-amazon.cta-amazon-alt { background: var(--white); color: #c2410c; border: 2px solid #f59e0b; box-shadow: none; }
.cta-amazon.cta-amazon-alt:hover { background: #fff7ed; color: #9a3412; }
@media (max-width: 640px) {
  .product-card.pc2 { padding: 1rem; }
  .pc-row { grid-template-columns: 48px minmax(0, 1fr); gap: .55rem .7rem; }
  .pc2 .pc-visual { width: 48px; height: 48px; }
  .pc2 .pc-visual svg { width: 38px; height: 38px; }
  .pc-main { display: contents; }
  .pc-titre { grid-column: 2; align-self: center; }
  .pc-role, .pc-points { grid-column: 1 / -1; }
  .pc-aside { grid-column: 1 / -1; grid-template-columns: 1fr; gap: .35rem; }
  .pc-avis { display: flex; justify-content: center; align-items: baseline; gap: .35rem; background: none; border: none; padding: 0; }
  .pc-avis strong { display: inline; font-size: .9rem; }
  .pc-cta .cta-amazon { width: 100%; }
}

/* Liste compacte en tête (façon meilleurs.fr) : une ligne par produit, bouton toujours au même endroit */
.cmp-liste { margin: 1rem 0 2rem; display: grid; gap: .75rem; }
.cmp-liste h2 { font-size: 1.2rem; margin: 0 0 .25rem; padding: 0; border: none; }
.cl-row.cta-inline { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) 120px 200px; gap: .5rem 1rem; align-items: center;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.6rem 1rem .9rem; box-shadow: var(--shadow-sm); margin: 0; }
.cl-row.cl-top { border: 2px solid var(--accent); }
.cl-badge { position: absolute; top: -1px; left: -1px; background: var(--primary); color: var(--white); font-size: .72rem; font-weight: 700;
  letter-spacing: .02em; padding: .2rem .7rem; border-radius: var(--radius-lg) 0 var(--radius) 0; text-transform: uppercase; }
.cl-top .cl-badge { background: var(--accent); }
.cl-visual { width: 72px; height: 72px; border-radius: var(--radius); background: linear-gradient(135deg, #f0fdf4 0%, #e8f0fb 100%); color: var(--primary);
  display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray-200); }
.cl-visual svg { width: 52px; height: 52px; }
.cl-main { min-width: 0; }
.cl-nom { display: block; font-weight: 700; color: var(--primary); font-size: 1rem; line-height: 1.3; margin-bottom: .3rem; }
.cmp-liste .cl-specs { margin: 0 0 .4rem; padding: 0; } .cmp-liste .cl-points { margin: 0; padding: 0; } .cmp-liste .cl-specs li, .cmp-liste .cl-points li { margin: 0; }
.cl-specs { list-style: none; margin: 0 0 .4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .35rem; }
.cl-specs li { font-size: .74rem; line-height: 1.3; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 999px; padding: .12rem .55rem; color: var(--gray-700); }
.cl-specs li span { color: var(--gray-500); }
.cmp-liste .cl-note { font-size: .8rem; color: var(--gray-500); margin: .2rem 0 0; line-height: 1.45; }
.cl-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; font-size: .84rem; color: var(--gray-700); }
.cl-points li { position: relative; padding-left: 1.2rem; line-height: 1.4; }
.cl-points li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.cl-avis { text-align: center; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: .45rem .4rem; background: var(--gray-50); line-height: 1.2; }
.cl-avis strong { display: block; color: var(--primary); font-size: .92rem; }
.cl-avis span { font-size: .72rem; color: var(--gray-500); }
.cl-cta { display: grid; gap: .3rem; justify-items: center; }
.cl-cta .cta-amazon { width: 100%; padding: .75rem .8rem; font-size: .95rem; }
.cl-detail { font-size: .78rem; color: var(--gray-500); text-decoration: underline; }
@media (max-width: 900px) and (min-width: 641px) { .cl-row.cta-inline { grid-template-columns: 64px minmax(0, 1fr) 170px; } .cl-avis { display: none; } }
@media (max-width: 640px) {
  .cl-row.cta-inline { grid-template-columns: 48px minmax(0, 1fr); padding: 1.7rem .8rem .8rem; gap: .45rem .7rem; }
  .cl-visual { width: 48px; height: 48px; } .cl-visual svg { width: 36px; height: 36px; }
  .cl-main { display: contents; }
  .cl-nom { grid-column: 2; align-self: center; margin: 0; }
  .cl-points { grid-column: 1 / -1; }
  .cl-avis { grid-column: 1 / -1; display: flex; gap: .35rem; justify-content: center; align-items: baseline; border: none; background: none; padding: 0; }
  .cl-avis strong { display: inline; }
  .cl-cta { grid-column: 1 / -1; }
  .cl-specs { grid-column: 1 / -1; } .cmp-liste .cl-specs { margin: .1rem 0 .15rem; }
  .cmp-liste { margin-top: .5rem; } .cmp-liste h2 { font-size: 1.125rem; line-height: 1.3; }  /* titre sur une ligne : premier bouton plus haut */
  .cl-visual { order: 1; } .cl-nom { order: 2; } .cl-cta { order: 3; } .cl-specs { order: 4; } .cl-points { order: 5; } .cl-avis { order: 6; }
  .cl-detail { display: none; }
}
/* Tableau fusionné (comparatif + liste compacte) : un seul bloc en tête, bouton dans la 1re colonne */
.cmp-fusion .cf-model { text-align: left; min-width: 190px; }
.cmp-fusion .cf-rang { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: var(--white); font-size: .72rem; font-weight: 700; margin-right: .4rem; vertical-align: middle; }
.cmp-fusion .cf-top .cf-rang { background: var(--accent); }
.cmp-fusion .cf-nom { font-weight: 700; color: var(--primary-light); }
.cmp-fusion .cf-role { display: block; font-size: .75rem; font-weight: 600; color: var(--accent); margin: .1rem 0 .45rem; }
.cmp-fusion .cf-model .cta-amazon { padding: .5rem .9rem; font-size: .85rem; white-space: nowrap; box-shadow: none; }
.cmp-fusion .cf-avis { white-space: nowrap; color: var(--gray-500); font-size: .8rem; }
.cmp-fusion .cf-avis strong { color: var(--primary); }
.cmp-fusion tr.cf-top td { background: #f0fdf4; }
@media (max-width: 640px) {
  .cf-wrap { overflow: visible; box-shadow: none; border-radius: 0; }
  .cmp-fusion, .cmp-fusion tbody { display: block; }
  .cmp-fusion thead { display: none; }
  .cmp-fusion tr.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .75rem; background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg); padding: .9rem; margin-bottom: .75rem; box-shadow: var(--shadow-sm); }
  .cmp-fusion tr.cf-top { border: 2px solid var(--accent); }
  .cmp-fusion tr.cf-row td { display: block; border: none; padding: .25rem 0; text-align: left; background: none; font-size: .85rem; }
  .cmp-fusion tr.cf-row td::before { content: attr(data-label); display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); }
  .cmp-fusion td.cf-model { grid-column: 1 / -1; min-width: 0; padding-bottom: .5rem; }
  .cmp-fusion td.cf-model::before { content: none; }
  .cmp-fusion .cf-model .cta-amazon { display: flex; width: 100%; padding: .75rem 1rem; font-size: 1rem; }
  .cmp-fusion tbody tr:nth-child(even), .cmp-fusion tbody tr:hover { background: var(--white); }
}
@media (prefers-reduced-motion: reduce) { .cta-sticky { transition: none; } }
