/* =====================================================
   COMPARATEUR
===================================================== */
.cmp-page { background: #F5F5F5; flex: 1; padding: 48px 0 80px; }
.cmp-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.cmp-skeleton {
  height: 320px;
  background: linear-gradient(90deg, #e9e9e9 25%, #f5f5f5 50%, #e9e9e9 75%);
  background-size: 200% 100%;
  animation: cmp-shimmer 1.5s infinite;
}
@keyframes cmp-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.cmp-page-header { margin-bottom: 28px; }
.cmp-page-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(22px, 3vw, 30px); font-weight: 800;
  color: #111; margin: 0 0 8px; line-height: 1.15;
}
.cmp-page-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: 'Inter', sans-serif; font-size: 13px; color: #777; margin: 0;
}
.cmp-add-more {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700;
  color: var(--color-primary, #0b77f7); text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.cmp-add-more:hover { text-decoration: underline; }

.cmp-cat-tabs {
  display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 24px;
  border-bottom: 2px solid #E5E5E5;
}
.cmp-cat-tab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px; color: #777;
  background: none; border: none; border-bottom: 2px solid transparent;
  margin-bottom: -2px; cursor: pointer; white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.cmp-cat-tab:hover { color: #111; }
.cmp-cat-tab.active { color: var(--color-primary, #0b77f7); border-bottom-color: var(--color-primary, #0b77f7); }
.cmp-cat-count {
  background: #E5E5E5; color: #555; font-size: 10px; font-weight: 800;
  width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
}
.cmp-cat-tab.active .cmp-cat-count { background: var(--color-primary, #0b77f7); color: white; }

.cmp-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.cmp-sort-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmp-sort-label {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px; color: #999;
}
.cmp-sort-select {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  color: #111; background: white; border: 1px solid #DDD;
  padding: 6px 10px; outline: none; cursor: pointer; transition: border-color 0.2s;
}
.cmp-sort-select:focus { border-color: var(--color-primary, #0b77f7); }

.cmp-clear-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px; color: #999;
  background: none; border: 1px solid #DDD; padding: 6px 12px;
  cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.cmp-clear-btn:hover { color: #cc2222; border-color: #cc2222; }

.cmp-notice {
  display: flex; align-items: center; gap: 8px;
  background: white; border-left: 4px solid var(--color-primary, #0b77f7);
  padding: 12px 16px; margin-bottom: 20px;
  font-family: 'Inter', sans-serif; font-size: 13px; color: #555;
}
.cmp-notice a { color: var(--color-primary, #0b77f7); font-weight: 600; }

.cmp-table-outer {
  overflow-x: auto; background: white;
  border: 1px solid #E5E5E5; margin-bottom: 32px;
}
.cmp-table { width: 100%; border-collapse: collapse; table-layout: fixed; }

.cmp-th { padding: 0; background: white; border-bottom: 2px solid #E5E5E5; vertical-align: top; }
.cmp-th-label {
  width: 160px; min-width: 140px;
  position: sticky; left: 0; background: #FAFAFA; z-index: 2;
  border-right: 1px solid #E5E5E5;
}
.cmp-th-product { min-width: 200px; border-right: 1px solid #E5E5E5; }
.cmp-th-product:last-child { border-right: none; }

.cmp-prod-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 20px 16px 16px; position: relative; text-align: center;
}
.cmp-prod-remove {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  background: #F0F0F0; border: none; border-radius: 50%;
  font-size: 14px; color: #999; cursor: pointer; line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.cmp-prod-remove:hover { background: #cc2222; color: white; }
.cmp-prod-img-wrap {
  width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
  background: #FAFAFA; border: 1px solid #EEE; overflow: hidden; flex-shrink: 0;
}
.cmp-prod-img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.cmp-prod-img-fb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.cmp-prod-rank {
  display: inline-block;
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.6px; color: white; padding: 3px 8px;
}
.cmp-prod-title {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
  color: #111; text-decoration: none; line-height: 1.3; display: block;
}
.cmp-prod-title:hover { color: var(--color-primary, #0b77f7); }

.cmp-td { padding: 10px 14px; border-bottom: 1px solid #F0F0F0; border-right: 1px solid #F0F0F0; vertical-align: middle; }
.cmp-td:last-child { border-right: none; }
.cmp-td-label {
  position: sticky; left: 0; background: #FAFAFA; z-index: 1;
  border-right: 1px solid #E5E5E5 !important;
  font-family: 'Inter', sans-serif; font-size: 12px; color: #555;
}
.cmp-td-val { text-align: center; font-family: 'Inter', sans-serif; font-size: 13px; color: #111; background: white; transition: background 0.15s; }
.cmp-td-val.best { background: #EFF6FF; position: relative; }
.cmp-td-val.best::after { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--color-primary, #0b77f7); }

.cmp-sort-row {
  background: none; border: none; padding: 0;
  font-family: 'Inter', sans-serif; font-size: 12px; color: #555;
  cursor: pointer; text-align: left; width: 100%;
  transition: color 0.15s; display: flex; align-items: center; gap: 4px;
}
.cmp-sort-row:hover { color: var(--color-primary, #0b77f7); }
.cmp-sort-ind { color: var(--color-primary, #0b77f7); font-weight: 800; }

.cmp-td-section {
  padding: 8px 14px; background: #111111;
  color: rgba(255,255,255,0.8); font-family: 'Inter', sans-serif;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border: none;
}
.cmp-section-title { margin: 0; padding: 0; font-family: inherit; font-size: inherit; font-weight: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; line-height: inherit; }

.cmp-rating { display: inline-flex; align-items: baseline; gap: 2px; }
.cmp-rating strong { font-size: 17px; font-weight: 800; color: #111; }
.cmp-denom { font-size: 11px; color: #AAA; }
.cmp-na { color: #CCC; font-size: 16px; }

.cmp-bar-row { display: flex; align-items: center; gap: 8px; justify-content: center; }
.cmp-bar-track { width: 80px; height: 6px; background: #E5E5E5; flex-shrink: 0; border-radius: 3px; overflow: hidden; }
.cmp-bar-fill { height: 100%; background: var(--color-primary, #0b77f7); border-radius: 3px; transition: width 0.5s ease; }
.cmp-bar-val { font-size: 12px; font-weight: 700; color: #111; width: 22px; text-align: right; flex-shrink: 0; }

.cmp-label-img { display: block; width: auto; height: auto; max-height: 60px; max-width: 100%; margin: 0 auto; object-fit: contain; }

.cmp-retailers { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.cmp-retailer-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  color: #111; text-decoration: none; background: #F5F5F5;
  padding: 5px 10px; transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.cmp-retailer-link:hover { background: var(--color-primary, #0b77f7); color: white; }

.cmp-detail-links { border-top: 1px solid #E5E5E5; padding-top: 24px; }
.cmp-detail-links-label { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #999; margin: 0 0 12px; }
.cmp-detail-links-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cmp-detail-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700;
  color: #555; text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px;
  transition: color 0.15s;
}
.cmp-detail-link:hover { color: var(--color-primary, #0b77f7); }

.cmp-empty { text-align: center; padding: 80px 24px; max-width: 560px; margin: 0 auto; }
.cmp-empty-icon { margin: 0 auto 24px; display: block; }
.cmp-empty-title { font-family: 'Inter', sans-serif; font-size: 24px; font-weight: 800; color: #111; margin: 0 0 12px; }
.cmp-empty-desc { font-family: 'Inter', sans-serif; font-size: 15px; color: #666; line-height: 1.6; margin: 0 0 32px; }
.cmp-empty-sub { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #999; margin: 0 0 14px; }
.cmp-empty-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cmp-empty-cat {
  display: inline-block; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--color-primary, #0b77f7); border: 2px solid var(--color-primary, #0b77f7);
  padding: 7px 14px; text-decoration: none; transition: background 0.2s, color 0.2s;
}
.cmp-empty-cat:hover { background: var(--color-primary, #0b77f7); color: white; }

/* Bouton "Ajouter au comparateur" sur pages produit */
.atc-wrap { display: flex; flex-direction: column; gap: 8px; }
.atc-btn {
  display: inline-flex; align-items: center; gap: 9px; width: fit-content;
  background: transparent; color: var(--color-primary, #0b77f7);
  border: 2px solid var(--color-primary, #0b77f7);
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px; padding: 10px 18px;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; line-height: 1;
}
.atc-btn:hover:not(.is-added):not(.is-full) { background: var(--color-primary, #0b77f7); color: white; }
.atc-btn.is-added { background: var(--color-primary, #0b77f7); color: white; }
.atc-btn.is-added:hover { background: #cc2222; border-color: #cc2222; }
.atc-btn.is-full { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.atc-feedback { display: flex; align-items: center; gap: 12px; min-height: 18px; }
.atc-feedback-msg { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; color: var(--color-primary, #0b77f7); transition: opacity 0.3s; }
.atc-view-link { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; color: #555; text-decoration: none; }
.atc-view-link:hover { color: var(--color-primary, #0b77f7); }

/* Bouton comparateur dans le header */
.comp-hdr-btn {
  display: flex; align-items: center; gap: 7px;
  height: 58px; padding: 0 12px 0 10px;
  color: rgba(0,0,0,0.5); text-decoration: none;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  border-right: 1px solid rgba(0,0,0,0.1);
  transition: color 0.2s; flex-shrink: 0; white-space: nowrap;
}
.comp-hdr-btn:hover { color: var(--color-primary, #0b77f7); }
.comp-hdr-icon { position: relative; display: flex; align-items: center; }
.comp-hdr-count {
  position: absolute; top: -8px; right: -9px;
  background: var(--color-primary, #0b77f7); color: white;
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 800;
  min-width: 15px; height: 15px; border-radius: 8px;
  display: none; align-items: center; justify-content: center; padding: 0 3px; line-height: 1;
}
.comp-hdr-count.has-items { display: flex; }
.comp-hdr-label { display: none; }
@media (min-width: 1080px) { .comp-hdr-label { display: inline; } }

@media (max-width: 640px) {
  .cmp-th-label, .cmp-td-label { width: 110px; min-width: 110px; }
  .cmp-th-product { min-width: 160px; }
  .cmp-prod-img-wrap { width: 80px; height: 80px; }
  .cmp-bar-track { display: none; }
  .cmp-bar-row { justify-content: center; }
  .cmp-bar-val { width: auto; font-size: 14px; }
}

/* =====================================================
   RECHERCHE — dropdown header (.ls-*)
===================================================== */
.ls-wrap { position: relative; max-width: 760px; margin: 0 auto; }
.ls-form { display: flex; gap: 0; }
.ls-input { flex: 1; padding: 12px 16px; font-size: 14px; font-family: 'Inter', sans-serif; border: none; outline: none; background: white; color: #111111; min-width: 0; }
.ls-input::placeholder { color: #999; }
.ls-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ls-btn {
  background: var(--color-primary, #0b77f7); color: white; padding: 0 24px;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  border: none; cursor: pointer; white-space: nowrap; transition: background 0.2s; flex-shrink: 0;
}
.ls-btn:hover { background: var(--color-primary-dark, #0960c5); }
.ls-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; background: white;
  border-top: 2px solid var(--color-primary, #0b77f7); box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 1010; max-height: 480px; overflow-y: auto;
}
.ls-loading { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 20px; }
.ls-loading-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-primary, #0b77f7); animation: ls-pulse 1.2s ease-in-out infinite; }
.ls-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.ls-loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes ls-pulse { 0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); } 40% { opacity: 1; transform: scale(1); } }
.ls-group { border-bottom: 1px solid #F0F0F0; }
.ls-group:last-of-type { border-bottom: none; }
.ls-group-label { padding: 8px 14px 4px; font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.9px; color: var(--color-primary, #0b77f7); }
.ls-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: #111; transition: background 0.12s; cursor: pointer; }
.ls-item:hover, .ls-item--sel { background: #F5F8FF; }
.ls-item-img { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #F9F9F9; border-radius: 4px; }
.ls-img { width: 100%; height: 100%; object-fit: contain; }
.ls-img-ph { width: 100%; height: 100%; background: #EEEEEE; border-radius: 4px; }
.ls-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ls-item-title { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-item-rank { font-family: 'Inter', sans-serif; font-size: 11px; color: #888; }
.ls-item-score { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 800; color: var(--color-primary, #0b77f7); flex-shrink: 0; }
.ls-item-ten { font-size: 10px; font-weight: 500; color: #999; }
.ls-all {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 14px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; color: var(--color-primary, #0b77f7);
  text-decoration: none; background: #F5F8FF; border-top: 1px solid #E8EEFF; transition: background 0.12s;
}
.ls-all:hover { background: #EBF2FF; }
.ls-empty { padding: 20px 16px; font-family: 'Inter', sans-serif; font-size: 13px; color: #666; text-align: center; }

/* =====================================================
   RECHERCHE — page de résultats (.sr-*)
===================================================== */
.sr-page { min-height: 60vh; }
.sr-hero { background: #111111; padding: 40px 16px 32px; }
.sr-hero-inner { max-width: 760px; margin: 0 auto; }
.sr-hero-title { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 700; color: white; margin-bottom: 20px; line-height: 1.3; }
.sr-hero-query { color: var(--color-primary, #0b77f7); }
.sr-search-form { display: flex; align-items: center; background: white; border: 2px solid transparent; transition: border-color 0.2s; }
.sr-search-form:focus-within { border-color: var(--color-primary, #0b77f7); }
.sr-search-icon { margin-left: 14px; color: #999; flex-shrink: 0; }
.sr-search-input { flex: 1; padding: 13px 12px; font-size: 14px; font-family: 'Inter', sans-serif; border: none; outline: none; background: transparent; color: #111111; min-width: 0; }
.sr-search-input::placeholder { color: #aaa; }
.sr-search-btn {
  background: var(--color-primary, #0b77f7); color: white; padding: 0 22px; height: 48px;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  border: none; cursor: pointer; white-space: nowrap; transition: background 0.2s; flex-shrink: 0;
}
.sr-search-btn:hover { background: var(--color-primary-dark, #0960c5); }
.sr-body { max-width: 1200px; margin: 0 auto; padding: 32px 16px 64px; }
.sr-meta { font-family: 'Inter', sans-serif; font-size: 14px; color: #666; margin-bottom: 28px; }
.sr-meta strong { color: #111; }
.sr-section { margin-bottom: 48px; }
.sr-section-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; border-bottom: 2px solid #E5E5E5; padding-bottom: 12px; }
.sr-section-title { font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 800; color: #111; text-transform: uppercase; letter-spacing: 0.5px; }
.sr-section-count { font-family: 'Inter', sans-serif; font-size: 13px; color: #999; }
.sr-section-link { margin-left: auto; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; color: var(--color-primary, #0b77f7); text-decoration: none; white-space: nowrap; }
.sr-section-link:hover { text-decoration: underline; }
.sr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1024px) { .sr-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .sr-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 400px)  { .sr-grid { grid-template-columns: 1fr; } }
.sr-card { display: flex; flex-direction: column; background: white; border: 1px solid #E8E8E8; border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; text-decoration: none; color: #111; }
.sr-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.sr-card-img-wrap { position: relative; background: #F5F5F5; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sr-card-rank {
  position: absolute; top: 8px; left: 8px; background: var(--color-primary, #0b77f7); color: white;
  font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  padding: 3px 6px; border-radius: 3px; z-index: 1; line-height: 1.2;
}
.sr-card-img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.sr-card-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sr-card-title { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700; color: #111; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.sr-card-rating { display: flex; align-items: center; gap: 4px; font-family: 'Inter', sans-serif; }
.sr-card-rating strong { font-size: 15px; font-weight: 800; color: var(--color-primary, #0b77f7); }
.sr-card-rating span { font-size: 11px; color: #999; }
.sr-card-excerpt { font-family: 'Inter', sans-serif; font-size: 11px; color: #666; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.sr-card-cta { margin-top: auto; padding-top: 8px; font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; color: var(--color-primary, #0b77f7); text-transform: uppercase; letter-spacing: 0.4px; }
.sr-empty { text-align: center; padding: 64px 16px; color: #999; }
.sr-empty-title { font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 700; color: #444; margin: 16px 0 8px; }
.sr-empty-hint { font-family: 'Inter', sans-serif; font-size: 14px; color: #999; }
