
:root {
  --cat-accent: #df2a24;
  --cat-accent-2: #ff7a4d;
  --cat-glass: rgba(20, 24, 33, 0.55);
  --cat-line: rgba(255, 255, 255, 0.10);
}

/* ----- En-tête de page ---------------------------------------------------- */
.catalogue-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 26px;
}
.catalogue-head h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
  background: linear-gradient(120deg, #ffffff 30%, #ffd9c9 70%, var(--cat-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.catalogue-head-sub {
  color: var(--muted);
  font-size: 1.02rem;
}

/* ----- Boutons (refonte UI/UX) ------------------------------------------- */
.btn-primary,
.btn-ghost,
.advanced-toggle {
  position: relative;
  overflow: hidden;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
/* reflet qui balaie au survol */
.btn-primary::before,
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.btn-primary:hover::before,
.btn-ghost:hover::before { transform: translateX(130%); }

.btn-primary {
  background: linear-gradient(135deg, #ff5a45, var(--cat-accent) 55%, #b3140f);
  color: #fff;
  border: 0;
  box-shadow: 0 14px 30px rgba(223, 42, 36, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(223, 42, 36, 0.42); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost,
.advanced-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--cat-line);
  color: var(--text);
}
.btn-ghost:hover,
.advanced-toggle:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-primary:focus-visible,
.btn-ghost:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(223, 42, 36, 0.35), 0 14px 30px rgba(223, 42, 36, 0.30);
}

/* ----- Barre de filtres (verre) ------------------------------------------ */
.filters-wrap.simple-filters {
  padding: 18px;
  border-radius: 22px;
  background: var(--cat-glass);
  border: 1px solid var(--cat-line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.filters-bar input,
.filters-bar select,
.advanced-filters input,
.advanced-filters select {
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 11, 18, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.filters-bar input:focus,
.filters-bar select:focus,
.advanced-filters input:focus,
.advanced-filters select:focus {
  border-color: rgba(255, 122, 77, 0.7);
  box-shadow: 0 0 0 3px rgba(223, 42, 36, 0.18);
  background: rgba(8, 11, 18, 0.85);
}

.pagination-bar-top {
  margin-top: 4px;
  margin-bottom: 18px;
}

.catalogue-mini-stats {
  flex-wrap: wrap;
  gap: 10px 22px;
}
.catalogue-mini-stats span {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* ----- Grille + carte véhicule (3D au survol) ---------------------------- */
.catalogue-grid {
  perspective: 1400px;
}

.vehicle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--cat-line);
  background: linear-gradient(180deg, rgba(30, 36, 48, 0.72), rgba(16, 20, 28, 0.82));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
  cursor: pointer;
  outline: none;
}
.vehicle-card:hover,
.vehicle-card:focus-visible {
  border-color: rgba(255, 122, 77, 0.45);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 122, 77, 0.18);
}
/* halo accent qui s'allume au survol */
.vehicle-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, rgba(255, 122, 77, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.vehicle-card:hover::after { opacity: 1; }

.vehicle-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  transform: translateZ(24px);
}
.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.vehicle-card:hover .vehicle-image img { transform: scale(1.07); }
.vehicle-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 11, 18, 0.55));
  pointer-events: none;
}

.vehicle-badge {
  z-index: 2;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* bouton "Comparer" en surimpression */
.vehicle-compare-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 9, 14, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.vehicle-compare-btn svg { width: 16px; height: 16px; display: block; }
.vehicle-compare-btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.4); }
.vehicle-compare-btn.is-active {
  background: linear-gradient(135deg, var(--cat-accent-2), var(--cat-accent));
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(223, 42, 36, 0.4);
}
.vehicle-compare-btn .compare-btn-check { display: none; }
.vehicle-compare-btn.is-active .compare-btn-add { display: none; }
.vehicle-compare-btn.is-active .compare-btn-check { display: inline; }

.vehicle-body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 22px;
  transform: translateZ(34px);
}
.vehicle-card h3 {
  font-size: 1.5rem;
  line-height: 1.1;
  margin: 6px 0 8px;
}
.vehicle-price {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(120deg, #fff, #ffd9c9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vehicle-specs { gap: 8px; }
.vehicle-specs .spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(246, 247, 251, 0.86);
  font-size: 0.86rem;
  font-weight: 600;
}
.vehicle-specs .spec-chip svg { width: 15px; height: 15px; opacity: 0.85; flex: none; }

.vehicle-actions { margin-top: auto; padding-top: 18px; }
.vehicle-actions .vehicle-view-btn { flex: 1; min-width: 140px; }
.vehicle-delete-catalogue-btn {
  background: rgba(223, 42, 36, 0.14);
  border: 1px solid rgba(223, 42, 36, 0.4);
  color: #ffb4af;
}
.vehicle-delete-catalogue-btn:hover { background: rgba(223, 42, 36, 0.24); }

/* ==========================================================================
   DÉTAILS VÉHICULE — galerie en effet 3D
   ========================================================================== */
.vehicle-modal-dialog {
  animation: catModalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes catModalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* La galerie de la fiche : la photo REMPLIT proprement le panneau (plein cadre,
   centrée), avec un léger effet 3D au survol — plus de vide ni de photo flottante. */
.vehicle-gallery {
  position: relative;
  overflow: hidden;
  perspective: 1200px;
  background: #0a0d14;
}
.vehicle-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  backface-visibility: hidden;
}
/* léger zoom/inclinaison au survol (l'échelle 1.08 empêche tout bord visible) */
.vehicle-gallery.is-tilting img {
  transition: transform 0.12s ease-out;
}
/* dégradé subtil en bas pour la lisibilité du compteur "1 / 1" */
.vehicle-gallery::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 13, 0.55));
}
/* reflet brillant qui suit la souris */
.vehicle-gallery-glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(circle at var(--glx, 50%) var(--gly, 30%), rgba(255, 255, 255, 0.16), transparent 42%);
  transition: opacity 0.25s ease;
}
.vehicle-gallery.is-tilting .vehicle-gallery-glare { opacity: 1; }

.gallery-arrow {
  z-index: 3;
  transition: transform 0.18s ease, background 0.2s ease;
}
.gallery-arrow:hover { transform: translateY(-50%) scale(1.08); background: rgba(223, 42, 36, 0.8); }

.vehicle-modal-price {
  background: linear-gradient(120deg, #fff, #ffd9c9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vehicle-modal-body .vehicle-specs .spec-chip,
.vehicle-modal-body .vehicle-specs span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

/* ==========================================================================
   COMPARATEUR — barre flottante + fenêtre de comparaison
   ========================================================================== */
.compare-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 30px);
  z-index: 1400;
  width: min(calc(100% - 32px), 880px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.compare-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.compare-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(12, 15, 22, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
}
.compare-bar-items {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}
.compare-bar-slot {
  position: relative;
  width: 64px;
  height: 44px;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  flex: none;
}
.compare-bar-slot img { width: 100%; height: 100%; object-fit: cover; }
.compare-bar-slot .compare-slot-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 0;
  background: rgba(6, 9, 14, 0.8);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.compare-bar-hint { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.compare-bar-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.compare-bar-actions .btn { min-height: 42px; }

/* Fenêtre de comparaison */
.compare-modal .vehicle-modal-dialog.compare-dialog {
  width: min(1100px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 8px;
  overflow: hidden;
}
.compare-modal-head { margin-bottom: 16px; padding-right: 40px; }
.compare-modal-head h2 { font-size: 1.9rem; margin-top: 6px; }

.compare-table-scroll { overflow: auto; padding-bottom: 22px; }
.compare-table {
  display: grid;
  gap: 1px;
  min-width: 540px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
}
.compare-cell {
  background: rgba(14, 18, 26, 0.96);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}
.compare-label-cell {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare-corner { background: rgba(20, 24, 33, 0.96); }
.compare-head-cell {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: rgba(20, 24, 33, 0.96);
  position: relative;
}
.compare-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.compare-thumb img { width: 100%; height: 100%; object-fit: cover; }
.compare-head-cell strong { font-size: 1.05rem; line-height: 1.15; }
.compare-head-cell .compare-cat { color: var(--cat-accent-2); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.compare-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 9, 14, 0.7);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
}
.compare-remove:hover { background: rgba(223, 42, 36, 0.7); }

.compare-cell.is-best {
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(255, 122, 77, 0.22), rgba(223, 42, 36, 0.16));
  box-shadow: inset 0 0 0 1px rgba(255, 122, 77, 0.4);
}
.compare-cell.is-best::after {
  content: "★";
  margin-left: 8px;
  color: var(--cat-accent-2);
  font-size: 0.8rem;
}
.compare-action-cell { background: rgba(20, 24, 33, 0.96); }
.compare-action-cell .btn { width: 100%; min-height: 40px; font-size: 0.85rem; }

/* décale le bas de page quand la barre est visible */
body[data-page="catalogue"].has-compare .catalogue-page { padding-bottom: 96px; }

/* masque la barre flottante quand une fenêtre (détails/comparateur) est ouverte */
body.modal-open .compare-bar {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(-50%, 30px) !important;
}

/* la fenêtre de comparaison passe au-dessus de tout */
.compare-modal { z-index: 1500; }

/* pendant qu'une fiche/fenêtre est ouverte, on efface la navbar fixe pour
   qu'elle ne passe pas devant la voiture qui ressort du cadre */
body.modal-open #site-navbar {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (max-width: 760px) {
  .compare-bar { bottom: 12px; }
  .compare-bar-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .compare-bar-actions { justify-content: space-between; }
  .compare-bar-hint { display: none; }
  .vehicle-image { transform: none; }
  .vehicle-body { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vehicle-card,
  .vehicle-image img,
  .vehicle-gallery img { transition: none !important; }
  .vehicle-gallery img { animation: none !important; }
}

/* ==========================================================================
   THÈME CLAIR / SOMBRE — même fond que l'accueil (--page-bg).
   Toggle géré par common.js (#themeToggle) ; styles du bouton dans style.css.
   ========================================================================== */
body[data-page="catalogue"] {
  --page-bg: #0a0303;
  background: var(--page-bg);
  transition: background 0.5s ease;
}

/* — Jeu de tokens MODE CLAIR — */
body[data-page="catalogue"].theme-light {
  --page-bg: #efe8db;
  --text: #2c1d14;
  --muted: rgba(44,29,20,0.62);
  --cat-glass: rgba(255,250,242,0.74);
  --cat-line: rgba(168,106,16,0.20);
}
/* La navbar reste sombre (capsule en verre) -> on lui garde un texte clair. */
body[data-page="catalogue"].theme-light #site-navbar { --text: #f4f4f7; --muted: #b9bfca; }

/* — Titres/prix en dégradé (texte blanc clippé = invisible en clair) -> dégradé chaud.
   IMPORTANT : on utilise `background-image` (PAS le raccourci `background`, qui
   réinitialiserait `background-clip` à border-box et remplirait toute la boîte). */
body[data-page="catalogue"].theme-light .catalogue-head h1,
body[data-page="catalogue"].theme-light .vehicle-price,
body[data-page="catalogue"].theme-light .vehicle-modal-price {
  background-image: linear-gradient(120deg, #b5531f, #df2a24) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  color: transparent !important; -webkit-text-fill-color: transparent !important;
}

/* — Catégorie (.card-kicker) : rose pâle illisible sur crème -> chaud foncé — */
body[data-page="catalogue"].theme-light .card-kicker { color: #b5531f; }

/* — Barre de filtres + champs — */
body[data-page="catalogue"].theme-light .filters-bar input,
body[data-page="catalogue"].theme-light .filters-bar select,
body[data-page="catalogue"].theme-light .advanced-filters input,
body[data-page="catalogue"].theme-light .advanced-filters select {
  background: rgba(255,255,255,0.62); border-color: rgba(168,106,16,0.22); color: #2c1d14;
}
body[data-page="catalogue"].theme-light .filters-bar input:focus,
body[data-page="catalogue"].theme-light .filters-bar select:focus,
body[data-page="catalogue"].theme-light .advanced-filters input:focus,
body[data-page="catalogue"].theme-light .advanced-filters select:focus {
  background: #fff; border-color: rgba(223,42,36,0.5);
}
body[data-page="catalogue"].theme-light .filters-bar input::placeholder,
body[data-page="catalogue"].theme-light .advanced-filters input::placeholder { color: rgba(44,29,20,0.42); }
body[data-page="catalogue"].theme-light .filters-wrap.simple-filters {
  box-shadow: 0 18px 50px rgba(120,80,20,0.12), inset 0 1px 0 rgba(255,255,255,0.6);
}

/* — Pastilles mini-stats + boutons "fantômes" — */
body[data-page="catalogue"].theme-light .catalogue-mini-stats span,
body[data-page="catalogue"].theme-light .btn-ghost,
body[data-page="catalogue"].theme-light .advanced-toggle {
  background: rgba(168,106,16,0.07); border-color: rgba(168,106,16,0.18); color: #2c1d14;
}
body[data-page="catalogue"].theme-light .btn-ghost:hover,
body[data-page="catalogue"].theme-light .advanced-toggle:hover {
  background: rgba(168,106,16,0.13); border-color: rgba(168,106,16,0.35);
}

/* — Cartes véhicule — */
body[data-page="catalogue"].theme-light .vehicle-card {
  background: linear-gradient(180deg, #fdf9f2, #f4ecdd);
  border-color: rgba(168,106,16,0.24);
  box-shadow: 0 18px 44px rgba(120,80,20,0.14);
}
body[data-page="catalogue"].theme-light .vehicle-card:hover,
body[data-page="catalogue"].theme-light .vehicle-card:focus-visible {
  border-color: rgba(223,42,36,0.4);
  box-shadow: 0 30px 70px rgba(120,80,20,0.2), 0 0 0 1px rgba(223,42,36,0.15);
}
body[data-page="catalogue"].theme-light .vehicle-image { background: rgba(0,0,0,0.04); }
body[data-page="catalogue"].theme-light .vehicle-specs .spec-chip {
  background: rgba(168,106,16,0.07); border-color: rgba(168,106,16,0.16); color: rgba(44,29,20,0.82);
}
body[data-page="catalogue"].theme-light .vehicle-compare-btn {
  background: rgba(255,250,242,0.82); border-color: rgba(168,106,16,0.3); color: #2c1d14;
}

/* — Fiche détail (modale) en mode clair — */
body[data-page="catalogue"].theme-light .vehicle-gallery { background: #e7ddcb; }
body[data-page="catalogue"].theme-light .vehicle-modal-dialog {
  background: linear-gradient(180deg, #fdf9f2, #f1e7d6);
  border-color: rgba(168,106,16,0.22);
  box-shadow: 0 30px 100px rgba(120,80,20,0.28);
}
body[data-page="catalogue"].theme-light .vehicle-modal-body h2 {
  color: #2c1d14; -webkit-text-fill-color: #2c1d14;
}
body[data-page="catalogue"].theme-light .vehicle-modal-description { color: rgba(44,29,20,0.78); }
body[data-page="catalogue"].theme-light .vehicle-modal-body .vehicle-specs .spec-chip {
  background: rgba(168,106,16,0.08); border-color: rgba(168,106,16,0.18); color: rgba(44,29,20,0.84);
}
body[data-page="catalogue"].theme-light .vehicle-modal-close {
  background: rgba(255,250,242,0.88); border-color: rgba(168,106,16,0.3); color: #2c1d14;
}

/* — Bouton "Supprimer" (catalogue) : trop pâle en clair -> rouge lisible — */
body[data-page="catalogue"].theme-light .vehicle-delete-catalogue-btn {
  background: rgba(223,42,36,0.10); border-color: rgba(223,42,36,0.5); color: #c21f18;
}
body[data-page="catalogue"].theme-light .vehicle-delete-catalogue-btn:hover {
  background: rgba(223,42,36,0.18); border-color: rgba(223,42,36,0.72);
}

/* — Comparateur (barre flottante + fenêtre) en mode clair —
   Les cellules/en-têtes du tableau ont un fond sombre codé en dur : on les
   repasse en crème chaud, cohérent avec les cartes et la fiche détail. */
body[data-page="catalogue"].theme-light .compare-bar-inner {
  background: rgba(255,250,242,0.9);
  border-color: rgba(168,106,16,0.24);
  box-shadow: 0 24px 60px rgba(120,80,20,0.22), inset 0 1px 0 rgba(255,255,255,0.6);
}
body[data-page="catalogue"].theme-light .compare-bar-slot {
  border-color: rgba(168,106,16,0.22); background: rgba(0,0,0,0.04);
}

/* Fenêtre : dialogue (déjà clair via .vehicle-modal-dialog) + grille du tableau */
body[data-page="catalogue"].theme-light .compare-table {
  background: rgba(168,106,16,0.18);
  border-color: rgba(168,106,16,0.22);
}
body[data-page="catalogue"].theme-light .compare-cell {
  background: #fbf5ea; color: #2c1d14;
}
body[data-page="catalogue"].theme-light .compare-corner,
body[data-page="catalogue"].theme-light .compare-head-cell,
body[data-page="catalogue"].theme-light .compare-action-cell {
  background: #f3e9d8;
}
body[data-page="catalogue"].theme-light .compare-head-cell strong { color: #2c1d14; }
body[data-page="catalogue"].theme-light .compare-thumb { background: rgba(0,0,0,0.05); }

/* Cellule "meilleure valeur" : texte blanc illisible -> texte chaud foncé */
body[data-page="catalogue"].theme-light .compare-cell.is-best {
  color: #8a2d12;
  background: linear-gradient(135deg, rgba(255,122,77,0.30), rgba(223,42,36,0.16));
  box-shadow: inset 0 0 0 1px rgba(223,42,36,0.35);
}
