/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafafa;
  --fg: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #e05a2b;
  --card: #fff;
  --radius: 0.75rem;
  --placeholder: #d1d5db;
  --placeholder-fg: #9ca3af;
  font-family: 'Inter', system-ui, sans-serif;
}

body { background: var(--bg); color: var(--fg); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
select { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.page { display: none; }
.page.active { display: block; }
.bg-light { background: #f3f4f6; }

/* ===== PLACEHOLDERS ===== */
.placeholder-sm {
  width: 40px; height: 40px; border-radius: 6px;
  background: repeating-linear-gradient(
    -45deg, var(--placeholder) 0, var(--placeholder) 1px,
    #e5e7eb 0, #e5e7eb 8px
  );
  flex-shrink: 0;
}
.placeholder-rect {
  position: relative;
  background: repeating-linear-gradient(
    -45deg, var(--placeholder) 0, var(--placeholder) 1px,
    #e9eaec 0, #e9eaec 10px
  );
  border-radius: var(--radius);
  overflow: hidden;
}
.placeholder-hero {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, #888 0, #888 1px, #6b6b6b 0, #6b6b6b 14px
  );
  border-radius: inherit;
  z-index: 0;
}
.placeholder-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--placeholder-fg);
  z-index: 2;
}

/* ===== HEADER HERO (transparent, sur fond sombre) ===== */
.header-hero {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
}
.header-light {
  box-shadow: 0 1px 8px rgba(0,0,0,0.07);
  background: #fff;
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.25rem; padding-bottom: 1.25rem;
}
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; letter-spacing: -0.02em; }
.header-hero .logo { color: #fff; }
.nav-pill {
  display: flex; gap: 0.25rem; background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px); border-radius: 999px; padding: 0.375rem 0.5rem;
}
.header-light .nav-pill { background: transparent; }
.nav-pill a {
  padding: 0.375rem 1rem; font-size: 0.875rem; border-radius: 999px;
  transition: background 0.2s;
}
.header-hero .nav-pill a { color: #fff; }
.header-light .nav-pill a { color: var(--fg); }
.nav-pill a:hover { background: rgba(255,255,255,0.25); }
.header-light .nav-pill a:hover { background: #fff; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh;
  background: #555; border-radius: 0 0 1.5rem 1.5rem;
  overflow: hidden; display: flex; align-items: center;
}
.hero-content {
  position: relative; z-index: 10;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; align-items: center; padding-top: 8rem; padding-bottom: 5rem;
}
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; }
}
.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800; line-height: 1.05; color: #fff;
  letter-spacing: -0.03em;
}
.hero-text p {
  margin-top: 1.25rem; color: rgba(255,255,255,0.8);
  font-size: 1rem; line-height: 1.6;
}

/* ===== SEARCH PANEL ===== */
.search-panel {
  background: #fff; border-radius: 1rem; padding: 1.25rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.search-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #f3f4f6; border-radius: 0.5rem; padding: 0.25rem;
  margin-bottom: 1rem;
}
.search-tab {
  padding: 0.6rem; border-radius: 0.375rem; border: none;
  background: transparent; font-size: 0.875rem; font-weight: 500;
  transition: background 0.2s, box-shadow 0.2s;
}
.search-tab.active { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.search-form { display: flex; flex-direction: column; gap: 0.625rem; }
.search-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.search-row select {
  padding: 0.625rem 0.875rem; border: 1px solid var(--border);
  border-radius: 0.5rem; font-size: 0.875rem; background: #fff;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center;
  padding-right: 2rem;
}
.btn-search {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #111827; color: #fff; border: none; border-radius: 0.5rem;
  padding: 0.75rem; font-size: 0.9rem; font-weight: 600;
  transition: background 0.2s;
}
.btn-search:hover { background: #333; }

/* ===== BRANDS CAROUSEL ===== */
.brands-section { padding: 2.5rem 0; overflow: hidden; }
.section-title { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.brands-header { display: flex; flex-direction: column; gap: 0; margin-bottom: 1rem; }
.brands-divider { height: 1px; background: var(--border); margin-top: 1.25rem; }
.carousel-track-wrapper { overflow: hidden; position: relative; }
.carousel-track-wrapper::before,
.carousel-track-wrapper::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.carousel-track-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.carousel-track-wrapper::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.carousel-track {
  display: flex; gap: 3.5rem; width: max-content;
  animation: scrollTrack 32s linear infinite;
  align-items: center; padding: 0.5rem 0;
}
.brand-logo {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em;
  color: #9ca3af; white-space: nowrap; flex-shrink: 0;
  text-transform: uppercase; transition: color 0.2s;
}
.brand-logo:hover { color: #374151; }
.brand-logo.brand-serif { font-style: italic; letter-spacing: 0.08em; }
.brand-logo.brand-thin { font-weight: 400; letter-spacing: 0.22em; }
@keyframes scrollTrack { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== CTA CARDS ===== */
.cta-section { padding: 4.5rem 0 3rem; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-card {
  border-radius: 1.25rem; overflow: hidden;
  background: linear-gradient(160deg, #3a3a3a, #1a1a1a);
  min-height: 366px; position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem;
}
.cta-placeholder {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg, #555 0, #555 1px, #444 0, #444 12px
  );
  opacity: 0.5; border-radius: inherit;
}
.cta-body { position: relative; z-index: 2; }
.cta-body h3 {
  color: #fff; font-size: 1.5rem; font-weight: 700;
  line-height: 1.2; margin-bottom: 0.5rem;
}
.cta-body p { color: rgba(255,255,255,0.7); font-size: 0.875rem; margin-bottom: 1.25rem; }
.btn-outline-white {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #fff; color: #111827; border: none;
  border-radius: 0.5rem; padding: 0.6rem 1.1rem;
  font-size: 0.875rem; font-weight: 500; transition: opacity 0.2s;
}
.btn-outline-white:hover { opacity: 0.9; }

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.link-voir-tout {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.875rem; color: var(--muted);
  transition: color 0.2s;
}
.link-voir-tout:hover { color: var(--fg); }

/* ===== CARS GRID ===== */
.cars-section { padding: 3.6875rem 0; }
.cars-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
@media (max-width: 1024px) { .cars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cars-grid { grid-template-columns: 1fr; } }
.car-card {
  background: var(--card); border-radius: 1rem;
  border: 1px solid var(--border); overflow: hidden;
  cursor: pointer; transition: transform 0.25s, box-shadow 0.25s;
}
.car-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.car-img { height: 180px; }
.car-info { padding: 1rem; }
.car-name { font-weight: 600; font-size: 0.9rem; }
.car-sub { color: var(--muted); font-size: 0.75rem; margin-top: 0.2rem; }
.car-specs {
  display: flex; gap: 0.75rem; margin-top: 0.75rem;
  flex-wrap: wrap;
}
.car-specs span {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; color: var(--muted);
}
.car-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 0.875rem; padding-top: 0.875rem;
  border-top: 1px solid var(--border);
}
.car-price { font-weight: 700; font-size: 1rem; }
.btn-dark {
  background: #111827; color: #fff; border: none;
  border-radius: 0.5rem; padding: 0.45rem 0.875rem;
  font-size: 0.75rem; font-weight: 600;
  transition: background 0.2s;
}
.btn-dark:hover { background: #1f2937; }

/* ===== MODELS SECTION ===== */
.models-section { padding: 4.5rem 0; }
.models-grid {
  display: flex; gap: 0.625rem; flex-wrap: wrap; margin-bottom: 1.75rem;
}
.model-chip {
  padding: 0.5rem 1.25rem; border-radius: 999px;
  border: 1.5px solid var(--border); font-size: 0.875rem;
  cursor: pointer; transition: all 0.2s;
}
.model-chip.active, .model-chip:hover {
  background: #111827; color: #fff; border-color: #111827;
}
.models-cars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
@media (max-width: 640px) { .models-cars-grid { grid-template-columns: 1fr; } }
.model-car-card {
  border-radius: 1rem; overflow: hidden; border: 1px solid var(--border);
  background: var(--card); cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.model-car-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.model-img { height: 160px; }
.model-car-info {
  padding: 0.875rem; display: flex;
  justify-content: space-between; align-items: center;
}
.model-car-name { font-weight: 600; font-size: 0.875rem; }
.model-car-sub { font-size: 0.75rem; color: var(--muted); }

/* ===== REVIEWS ===== */
.reviews-section { padding: 4rem 0; background: #f8fafc; }
.reviews-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 1.25rem; padding: 2rem;
}
.reviews-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.25rem;
}
.reviews-label { font-size: 1.1rem; font-weight: 700; }
.reviews-score { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.3rem; }
.reviews-score strong { font-size: 1.5rem; }
.reviews-score span { font-size: 0.85rem; color: var(--muted); }
hr { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.reviews-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
@media (max-width: 768px) { .reviews-list { grid-template-columns: 1fr; } }
.review-card {
  background: #f9fafb; border-radius: 0.875rem;
  padding: 1.25rem; border: 1px solid var(--border);
}
.review-author { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--placeholder); display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.875rem; color: var(--muted);
}
.review-name { font-weight: 600; font-size: 0.875rem; }
.review-date { font-size: 0.75rem; color: var(--muted); }
.review-card p { font-size: 0.85rem; color: #374151; line-height: 1.5; margin-bottom: 0.625rem; }
.stars { color: #f59e0b; font-size: 0.9rem; letter-spacing: 1px; }

/* ===== EXCELLENCE ===== */
.excellence-section { padding: 8rem 0 7rem; }
.excellence-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
@media (max-width: 768px) { .excellence-inner { grid-template-columns: 1fr; } }
.excellence-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 1.25rem;
}
.excellence-text p {
  color: var(--muted); line-height: 1.7; font-size: 0.95rem; margin-bottom: 2rem;
}
.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1.5px solid #111827; color: #111827; background: transparent;
  border-radius: 0.5rem; padding: 0.7rem 1.4rem;
  font-size: 0.875rem; font-weight: 600; transition: all 0.2s;
  cursor: pointer; text-decoration: none;
}
.btn-outline-dark:hover { background: #111827; color: #fff; }
.excellence-img { height: 440px; border-radius: 1rem; overflow: hidden; }

/* ===== FOOTER ===== */
.footer { background: #111827; color: rgba(255,255,255,0.8); padding: 4.5rem 0 1.5rem; }
.footer-inner {
  display: grid; grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col h4 {
  color: #fff; font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.03em; margin-bottom: 1rem;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.6); font-size: 0.85rem;
  margin-bottom: 0.5rem; transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }
.footer-brands-grid { display: flex; gap: 2rem; }
.footer-brands-grid div { display: flex; flex-direction: column; }
.footer-socials { display: flex; gap: 1rem; margin-top: 0.75rem; }
.footer-socials a {
  color: rgba(255,255,255,0.6); transition: color 0.2s; display: block;
}
.footer-socials a:hover { color: #fff; }
.footer-bottom {
  text-align: center; padding-top: 1.5rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex; align-items: center; gap: 0.4rem;
  padding-top: 1rem; padding-bottom: 0.5rem;
  font-size: 0.85rem; color: var(--muted);
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--fg); }

/* ===== PRODUCT PAGE ===== */
.product-hero {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem; padding-top: 1.5rem; padding-bottom: 3rem;
}
@media (max-width: 900px) { .product-hero { grid-template-columns: 1fr; } }
.product-main-img { height: 340px; border-radius: 1rem; }
.product-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.625rem; margin-top: 0.75rem; }
.product-thumb { height: 70px; border-radius: 0.5rem; cursor: pointer; opacity: 0.6; transition: opacity 0.2s; }
.product-thumb.active, .product-thumb:hover { opacity: 1; outline: 2px solid #111827; }
.product-badge {
  display: inline-block; background: #f3f4f6; color: var(--muted);
  border-radius: 999px; padding: 0.25rem 0.875rem; font-size: 0.75rem;
  font-weight: 600; margin-bottom: 0.875rem;
}
.product-title { font-size: 1.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 0.625rem; letter-spacing: -0.02em; }
.product-price { font-size: 1.75rem; font-weight: 800; margin-bottom: 1.5rem; }
.product-specs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.875rem; margin-bottom: 1.75rem;
}
.spec-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem; background: #f9fafb;
  border-radius: 0.625rem; border: 1px solid var(--border);
}

/* Force les images à remplir leur conteneur et garder un rendu propre */
.car-img img,
.model-img img,
.product-main img,
.gallery-main img,
.gallery-thumb img,
.placeholder-rect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.spec-item > svg { flex-shrink: 0; color: var(--muted); }
.spec-item > div { display: flex; flex-direction: column; }
.spec-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.spec-val { font-weight: 600; font-size: 0.875rem; margin-top: 0.1rem; }
.product-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.btn-primary-full {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #111827; color: #fff; border: none; border-radius: 0.625rem;
  padding: 0.875rem; font-size: 0.9rem; font-weight: 600;
  transition: background 0.2s;
}
.btn-primary-full:hover { background: #333; }
.btn-outline-full {
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--fg); border-radius: 0.625rem; padding: 0.875rem;
  font-size: 0.9rem; font-weight: 600; transition: all 0.2s;
}
.btn-outline-full:hover { border-color: #111827; background: #f9fafb; }

/* ===== DESCRIPTION ===== */
.product-desc { padding: 2rem 0; }
.product-desc h2, .product-history h2, .similar-section .section-title {
  font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.01em;
}
.product-desc p { color: #374151; line-height: 1.7; font-size: 0.95rem; margin-bottom: 0.875rem; }
.product-history { padding: 2.5rem 0; }
.history-items { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.history-item {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.9rem; color: #374151;
}
.history-item svg { color: #16a34a; flex-shrink: 0; }
.similar-section { padding: 3rem 0; }

/* ===== SCROLL ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PRODUCT PAGE ===== */
.product-hero {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem; padding-top: 1.5rem; padding-bottom: 3rem;
}
@media (max-width: 900px) { .product-hero { grid-template-columns: 1fr; } }
.product-main-img { height: 340px; border-radius: 1rem; }
.product-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.625rem; margin-top: 0.75rem; }
.product-thumb { height: 70px; border-radius: 0.5rem; cursor: pointer; opacity: 0.6; transition: opacity 0.2s; }
.product-thumb.active, .product-thumb:hover { opacity: 1; outline: 2px solid #111827; }
.product-badge {
  display: inline-block; background: #f3f4f6; color: var(--muted);
  border-radius: 999px; padding: 0.25rem 0.875rem; font-size: 0.75rem;
  font-weight: 600; margin-bottom: 0.875rem;
}
.product-title { font-size: 1.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 0.625rem; letter-spacing: -0.02em; }
.product-price { font-size: 1.75rem; font-weight: 800; margin-bottom: 1.5rem; }
.product-specs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.875rem; margin-bottom: 1.75rem;
}
.spec-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem; background: #f9fafb;
  border-radius: 0.625rem; border: 1px solid var(--border);
}
.spec-item > svg { flex-shrink: 0; color: var(--muted); }
.spec-item > div { display: flex; flex-direction: column; }
.spec-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.spec-val { font-weight: 600; font-size: 0.875rem; margin-top: 0.1rem; }
.product-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.btn-primary-full {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: #111827; color: #fff; border: none; border-radius: 0.625rem;
  padding: 0.875rem; font-size: 0.9rem; font-weight: 600;
  transition: background 0.2s;
}
.btn-primary-full:hover { background: #333; }
.btn-outline-full {
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--fg); border-radius: 0.625rem; padding: 0.875rem;
  font-size: 0.9rem; font-weight: 600; transition: all 0.2s;
}
.btn-outline-full:hover { border-color: #111827; background: #f9fafb; }

/* ===== DESCRIPTION ===== */
.product-desc { padding: 2rem 0; }
.product-desc h2, .product-history h2, .similar-section .section-title {
  font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.01em;
}
.product-desc p { color: #374151; line-height: 1.7; font-size: 0.95rem; margin-bottom: 0.875rem; }
.product-history { padding: 2.5rem 0; }
.history-items { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.history-item {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.9rem; color: #374151;
}
.history-item svg { color: #16a34a; flex-shrink: 0; }
.similar-section { padding: 3rem 0; }

/* ===== SCROLL ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PAGE PRODUIT (voiture.html) ===== */

/* En-tête titre + CTA */
.product-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; padding-top: 1.5rem; padding-bottom: 1.5rem;
  gap: 2rem;
}
@media (max-width: 768px) { .product-top { flex-direction: column; } }

.product-main-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
}
.product-subtitle { color: var(--muted); font-size: 0.95rem; margin-top: 0.3rem; margin-bottom: 0.875rem; }

.product-quick-specs { display: flex; gap: 1rem; flex-wrap: wrap; }
.quick-spec {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.85rem; color: var(--muted);
}

.product-top-right { text-align: right; flex-shrink: 0; }
.btn-cta-top {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid var(--border); background: #fff;
  color: var(--fg); border-radius: 0.5rem;
  padding: 0.65rem 1.25rem; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-cta-top:hover { border-color: #111827; background: #f9fafb; }
.product-big-price {
  font-size: 2rem; font-weight: 800; margin-top: 0.75rem;
  letter-spacing: -0.03em;
}

/* Galerie */
.product-gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 768px) { .product-gallery-grid { grid-template-columns: 1fr; } }
.gallery-main { height: 440px; border-radius: 1rem; overflow: hidden; }
.gallery-thumbs-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  height: 440px;
}
.gallery-thumb {
  border-radius: 0.75rem;
  cursor: pointer;
  transition: opacity 0.2s;
  position: relative;
  overflow: hidden;
}
.gallery-thumb:hover { opacity: 0.88; }
.thumb-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 0.75rem;
  pointer-events: none;
}

.btn-voir-photos {
  border: 1.5px solid var(--border); background: #fff;
  color: var(--fg); border-radius: 0.5rem;
  padding: 0.6rem 1.5rem; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.btn-voir-photos:hover { border-color: #111827; }

/* Corps du produit */
.product-body { padding-bottom: 2rem; }
.product-section-title { font-size: 1.375rem; font-weight: 700; margin-bottom: 1.25rem; letter-spacing: -0.02em; }
.section-divider { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* Tableau caractéristiques */
.charact-section { padding: 1rem 0; }
.charact-table { display: flex; flex-direction: column; gap: 0; }
.charact-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  padding: 0.875rem 0;
}
@media (max-width: 640px) { .charact-row { grid-template-columns: 1fr; gap: 0.5rem; } }
.charact-cell { display: flex; flex-direction: column; gap: 0.2rem; }
.charact-label { font-size: 0.78rem; color: var(--muted); }
.charact-val { font-size: 0.9rem; color: var(--fg); }
.charact-val.bold { font-weight: 600; }

/* Description */
.desc-section { padding: 1rem 0; }
.desc-text p { font-size: 0.95rem; color: #374151; line-height: 1.75; margin-bottom: 0.875rem; }
.btn-voir-plus {
  background: none; border: none; color: var(--fg);
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  text-decoration: underline; padding: 0; margin-top: 0.25rem;
  transition: color 0.2s;
}
.btn-voir-plus:hover { color: var(--muted); }

/* Autoviza */
.autoviza-section { padding: 1rem 0; }
.autoviza-intro { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem; }
.autoviza-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.75rem; }
.autoviza-list li {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.9rem; color: var(--fg);
}
.autoviza-list li svg { color: var(--muted); flex-shrink: 0; }
.btn-autoviza {
  background: #111827; color: #fff; border: none;
  border-radius: 0.5rem; padding: 0.8rem 1.75rem;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.btn-autoviza:hover { background: #333; }

/* Similaires */
.similar-section-v2 { padding: 2rem 0 3.5rem; }
.similar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
@media (max-width: 1024px) { .similar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .similar-grid { grid-template-columns: 1fr; } }

/* Specs inline (avec icônes + année) */
.car-specs-inline {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  margin-top: 0.75rem;
}
.car-specs-inline span {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; color: var(--muted);
}

/* Footer bottom flex */
.footer-bottom {
  display: flex; align-items: center;
  padding-top: 1.5rem;
  font-size: 0.8rem; color: rgba(255,255,255,0.35);
}
/* ===== CATALOGUE ===== */
.catalogue-hero {
  background: #f3f4f6;
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}
.catalogue-hero-inner {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
}
.catalogue-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.catalogue-subtitle { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }
.catalogue-count-badge {
  background: #111827; color: #fff;
  padding: 0.5rem 1.1rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; white-space: nowrap;
}
.catalogue-filters-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
  padding: 0.875rem 0;
}
.catalogue-filters-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; flex-wrap: wrap;
}
.catalogue-filters-group { display: flex; gap: 0.625rem; flex-wrap: wrap; }
.catalogue-filters-right { display: flex; gap: 0.625rem; align-items: center; }
.cat-filter {
  padding: 0.5rem 0.875rem; border-radius: 0.5rem;
  border: 1.5px solid var(--border); font-size: 0.82rem;
  font-family: inherit; background: #fff; color: var(--fg);
  cursor: pointer; outline: none; transition: border-color 0.2s;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.6rem center;
  padding-right: 1.8rem;
}
.cat-filter:focus { border-color: #111827; }
.cat-reset {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.875rem; border-radius: 0.5rem;
  border: 1.5px solid var(--border); font-size: 0.82rem;
  font-family: inherit; background: #fff; color: var(--muted);
  cursor: pointer; transition: all 0.2s;
}
.cat-reset:hover { border-color: #111827; color: #111827; }
.catalogue-body { padding: 2.5rem 0 4rem; }
.catalogue-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
@media (max-width: 1024px) { .catalogue-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .catalogue-grid { grid-template-columns: 1fr; } }
.catalogue-grid .car-img { height: 220px; }
.catalogue-empty-msg,
.catalogue-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; padding: 5rem 0; text-align: center; color: var(--muted);
}
.catalogue-empty-msg p,
.catalogue-empty p { font-size: 1rem; }

/* ===== HERO BG IMAGE ===== */
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.25) 60%,
    rgba(0,0,0,0.15) 100%
  );
}

/* ===== CTA CARD IMAGE ===== */
.cta-card-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: inherit;
  z-index: 0;
}
.cta-card-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 60%);
  border-radius: inherit;
}

/* ===== BENTO GRID ===== */
.bento-section { padding: 2rem 0 0; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 240px 240px;
  gap: 0.625rem;
}
.bento-item {
  border-radius: 1rem;
  overflow: hidden;
  background: var(--placeholder);
}
.bento-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.bento-item:hover img { transform: scale(1.04); }
/* Colonne 3 : les 2 items tall occupent chacun 1 row */
.bento-item.bento-tall { grid-row: span 2; }
/* h44 s'étale sur 2 colonnes */
.bento-item.bento-wide { grid-column: span 2; }
@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 180px); }
  .bento-item.bento-tall { grid-row: span 1; }
  .bento-item.bento-wide { grid-column: span 2; }
}

/* BENTO layout fix */
.bento-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  grid-template-rows: 300px 220px !important;
  gap: 0.625rem !important;
}
.bento-item.bento-featured {
  grid-column: span 2;
  grid-row: span 2;
}
@media (max-width: 768px) {
  .bento-grid { grid-template-columns: repeat(2,1fr) !important; grid-template-rows: repeat(3,180px) !important; }
  .bento-item.bento-featured { grid-column: span 2; grid-row: span 1; }
}

/* ===== BENTO "RECHERCHER PAR MODELE" ===== */
.type-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 280px 210px;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.type-bento-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  display: block;
  text-decoration: none;
}
.type-bento-item:nth-child(1) { grid-column: span 3; }
.type-bento-item:nth-child(2) { grid-column: span 3; }
.type-bento-item:nth-child(3) { grid-column: span 2; }
.type-bento-item:nth-child(4) { grid-column: span 2; }
.type-bento-item:nth-child(5) { grid-column: span 2; }
.type-bento-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.type-bento-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 55%);
  border-radius: inherit;
}
.type-bento-item:hover img { transform: scale(1.04); }
.type-label {
  position: absolute;
  bottom: 1rem; left: 1rem;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  z-index: 2;
}
@media (max-width: 768px) {
  .type-bento { grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(3, 180px); }
  .type-bento-item:nth-child(1) { grid-column: span 2; }
  .type-bento-item:nth-child(2),
  .type-bento-item:nth-child(3),
  .type-bento-item:nth-child(4),
  .type-bento-item:nth-child(5) { grid-column: span 1; }
}

/* ===== EXCELLENCE IMAGE ===== */
.excellence-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
}
