/* ═══════════════════════════════════════════════════════════════════════════
   Jetour Concessionnaire — Frontend CSS
   Design: minimaliste premium, inspiré Tesla
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --jt-accent:     #CC0000;
  --jt-dark:       #1a1a2e;
  --jt-black:      #0a0a0a;
  --jt-white:      #ffffff;
  --jt-grey-100:   #f5f5f5;
  --jt-grey-200:   #e8e8e8;
  --jt-grey-400:   #999999;
  --jt-grey-600:   #555555;
  --jt-grey-800:   #222222;
  --jt-wa:         #25D366;
  --jt-radius:     10px;
  --jt-radius-lg:  16px;
  --jt-shadow:     0 4px 24px rgba(0,0,0,.08);
  --jt-shadow-lg:  0 8px 48px rgba(0,0,0,.14);
  --jt-transition: .25s cubic-bezier(.4,0,.2,1);
  --jt-font:       'Inter', system-ui, -apple-system, sans-serif;
  --jt-max-width:  1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Utilitaires ─────────────────────────────────────────────────────────── */
.jt-container {
  max-width: var(--jt-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.jt-section {
  padding: 80px 0;
}
.jt-section--dark {
  background: var(--jt-dark);
  color: var(--jt-white);
}
.jt-section--dark .jt-section__title { color: var(--jt-white); }
.jt-section--dark .jt-section__subtitle { color: rgba(255,255,255,.65); }

.jt-section__header {
  text-align: center;
  margin-bottom: 52px;
}
.jt-section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--jt-black);
  margin-bottom: 12px;
}
.jt-section__subtitle {
  font-size: 1rem;
  color: var(--jt-grey-600);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}
.jt-section__footer {
  text-align: center;
  margin-top: 48px;
}

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.jt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--jt-transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.jt-btn--primary {
  background: var(--jt-accent);
  color: var(--jt-white);
  border-color: var(--jt-accent);
}
.jt-btn--primary:hover { filter: brightness(1.1); transform: translateY(-1px); }

.jt-btn--outline {
  background: transparent;
  color: var(--jt-black);
  border-color: var(--jt-black);
}
.jt-btn--outline:hover { background: var(--jt-black); color: var(--jt-white); }

.jt-btn--white { color: var(--jt-white); border-color: var(--jt-white); }
.jt-btn--white:hover { background: var(--jt-white); color: var(--jt-black); }

.jt-btn--accent { background: var(--jt-accent); color: var(--jt-white); border-color: var(--jt-accent); }
.jt-btn--ghost  { background: rgba(255,255,255,.12); color: var(--jt-white); border-color: rgba(255,255,255,.3); }
.jt-btn--ghost:hover { background: rgba(255,255,255,.22); }

.jt-btn--whatsapp { background: var(--jt-wa); color: var(--jt-white); border-color: var(--jt-wa); }
.jt-btn--whatsapp:hover { filter: brightness(1.08); transform: translateY(-1px); }

.jt-btn--sm  { padding: 8px 18px; font-size: .8rem; }
.jt-btn--lg  { padding: 16px 36px; font-size: 1rem; }
.jt-btn--full { width: 100%; justify-content: center; }

/* ── HERO ────────────────────────────────────────────────────────────────── */
.jt-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--jt-dark);
}
.jt-hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.jt-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.jt-hero:hover .jt-hero__bg { transform: scale(1); }
.jt-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
  z-index: 1;
}
.jt-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 0 80px;
  width: 100%;
  max-width: var(--jt-max-width);
  margin: 0 auto;
  padding-left: 24px; padding-right: 24px;
  padding-bottom: 80px;
}
.jt-hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--jt-white);
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.jt-hero__slogan {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  max-width: 560px;
}
.jt-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.jt-hero__scroll {
  position: absolute;
  bottom: 28px;
  right: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.6);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.jt-hero__scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid rgba(255,255,255,.6);
  border-bottom: 2px solid rgba(255,255,255,.6);
  transform: rotate(45deg);
  animation: bounce-down .9s ease-in-out infinite alternate;
}
@keyframes bounce-down { from { transform: rotate(45deg) translate(-3px,-3px); } to { transform: rotate(45deg) translate(3px,3px); } }

/* ── LISTING ─────────────────────────────────────────────────────────────── */
.jt-listing-page { padding: 0 0 80px; }
.jt-listing-header {
  text-align: center;
  padding: 72px 24px 48px;
  background: var(--jt-grey-100);
}
.jt-listing-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--jt-black);
}
.jt-listing-subtitle {
  color: var(--jt-grey-600);
  margin-top: 10px;
  font-size: 1rem;
}

/* Filtres */
.jt-filters-bar {
  background: var(--jt-white);
  border-bottom: 1px solid var(--jt-grey-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--jt-shadow);
}
.jt-filters-inner {
  max-width: var(--jt-max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.jt-filter-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 160px;
}
.jt-filter-group label {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--jt-grey-600);
}
.jt-select {
  border: 1px solid var(--jt-grey-200);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .875rem;
  color: var(--jt-grey-800);
  background: var(--jt-white);
  cursor: pointer;
  outline: none;
  transition: border-color var(--jt-transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}
.jt-select:focus { border-color: var(--jt-accent); }
.jt-filter-reset {
  margin-left: auto;
  background: none;
  border: 1px solid var(--jt-grey-200);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: .8rem;
  color: var(--jt-grey-600);
  cursor: pointer;
  transition: all var(--jt-transition);
}
.jt-filter-reset:hover { border-color: var(--jt-accent); color: var(--jt-accent); }

/* Compare bar */
.jt-compare-bar {
  max-width: var(--jt-max-width);
  margin: 0 auto;
  padding: 8px 24px;
  background: var(--jt-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--jt-white);
  font-size: .875rem;
}
#jtCompareCount { flex: 1; }

/* Listing meta */
.jt-listing-meta {
  max-width: var(--jt-max-width);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: .85rem;
  color: var(--jt-grey-600);
}

/* Grille */
.jt-listing-grid,
.jt-cards-grid {
  max-width: var(--jt-max-width);
  margin: 24px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}
.jt-cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .jt-cards-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .jt-listing-grid,.jt-cards-grid,.jt-cards-grid--3 { grid-template-columns: 1fr; } }

/* ── CARTE MODÈLE ────────────────────────────────────────────────────────── */
.jt-car-card {
  background: var(--jt-white);
  border-radius: var(--jt-radius-lg);
  overflow: hidden;
  border: 1px solid var(--jt-grey-200);
  transition: transform var(--jt-transition), box-shadow var(--jt-transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.jt-car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--jt-shadow-lg);
}
.jt-car-card--featured { border-color: var(--jt-accent); }

.jt-car-card__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--jt-grey-100);
}
.jt-car-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.jt-car-card:hover .jt-car-card__img { transform: scale(1.04); }
.jt-car-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.jt-car-card__img-placeholder svg { width: 80px; opacity: .3; }
.jt-car-card__img-link { display: block; width: 100%; height: 100%; }

.jt-car-card__badges {
  position: absolute;
  top: 12px; left: 12px;
  display: flex; gap: 6px; flex-wrap: wrap;
  z-index: 2;
}
.jt-badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 4px;
  color: var(--jt-white);
  background: var(--jt-accent);
}
.jt-badge--featured { background: #e6a800; }
.jt-badge--cat { background: rgba(0,0,0,.55); }

.jt-car-card__dispo {
  position: absolute;
  bottom: 10px; right: 10px;
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  z-index: 2;
}
.dispo--stock    { background: #e6f9ee; color: #1a7a3c; }
.dispo--commande { background: #fff3e0; color: #b45309; }
.dispo--arrivage { background: #e0f0ff; color: #1a5fa0; }
.dispo--soldout  { background: #fdecea; color: #b00020; }

.jt-compare-toggle {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--jt-grey-200);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--jt-grey-600);
  transition: all var(--jt-transition);
  z-index: 3;
}
.jt-compare-toggle:hover,
.jt-compare-toggle.active { background: var(--jt-accent); color: var(--jt-white); border-color: var(--jt-accent); }

.jt-car-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}
.jt-car-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.jt-car-card__title a { color: var(--jt-black); text-decoration: none; }
.jt-car-card__title a:hover { color: var(--jt-accent); }
.jt-car-card__slogan {
  font-size: .8rem;
  color: var(--jt-grey-600);
  margin-top: -6px;
}

.jt-car-card__specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.jt-car-card__specs li {
  font-size: .78rem;
  color: var(--jt-grey-600);
  display: flex;
  align-items: center;
  gap: 4px;
}
.jt-spec-icon { font-size: .85em; }

.jt-car-card__price-row { margin-top: auto; }
.jt-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--jt-black);
}
.jt-price-old {
  font-size: .9rem;
  color: var(--jt-grey-400);
  text-decoration: line-through;
  display: block;
}
.jt-price-promo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--jt-accent);
}
.jt-price-ask {
  font-size: 1rem;
  font-weight: 600;
  color: var(--jt-grey-600);
  font-style: italic;
}

.jt-car-card__cta { margin-top: 4px; }
.jt-car-card__cta .jt-btn { width: 100%; justify-content: center; }

/* ── Annonces ────────────────────────────────────────────────────────────── */
.jt-annonces-grid {
  max-width: var(--jt-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.jt-annonces-grid--full { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.jt-annonce-card {
  background: var(--jt-white);
  border-radius: var(--jt-radius-lg);
  overflow: hidden;
  border: 1px solid var(--jt-grey-200);
  transition: transform var(--jt-transition), box-shadow var(--jt-transition);
}
.jt-annonce-card:hover { transform: translateY(-3px); box-shadow: var(--jt-shadow); }
.jt-annonce-card__img {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  position: relative;
}
.jt-expiry-badge {
  position: absolute;
  bottom: 8px; right: 8px;
  background: rgba(0,0,0,.65);
  color: var(--jt-white);
  font-size: .65rem;
  padding: 3px 8px;
  border-radius: 4px;
}
.jt-annonce-card__body { padding: 18px; }
.jt-annonce-card__title { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.jt-annonce-card__excerpt { font-size: .8rem; color: var(--jt-grey-600); margin-bottom: 12px; line-height: 1.5; }
.jt-annonce-card__meta {
  font-size: .7rem;
  color: var(--jt-grey-400);
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Filtres annonces */
.jt-annonce-filters {
  max-width: var(--jt-max-width);
  margin: 24px auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jt-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--jt-grey-200);
  font-size: .8rem;
  color: var(--jt-grey-600);
  text-decoration: none;
  transition: all var(--jt-transition);
}
.jt-tag:hover, .jt-tag.active { background: var(--jt-accent); color: var(--jt-white); border-color: var(--jt-accent); }

/* ── Callback ────────────────────────────────────────────────────────────── */
.jt-section--callback { background: var(--jt-grey-100); }
.jt-callback-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 768px) { .jt-callback-wrap { grid-template-columns: 1fr; } }

.jt-callback-text h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 12px; }
.jt-callback-text p { color: var(--jt-grey-600); line-height: 1.7; margin-bottom: 20px; }
.jt-callback-benefits { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.jt-callback-benefits li { font-size: .9rem; color: var(--jt-grey-800); }

.jt-form { display: flex; flex-direction: column; gap: 14px; }
.jt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .jt-form-row { grid-template-columns: 1fr; } }
.jt-form-group { display: flex; flex-direction: column; gap: 5px; }
.jt-form-group label { font-size: .8rem; font-weight: 600; color: var(--jt-grey-600); }
.jt-form-group .req { color: var(--jt-accent); }
.jt-form-group input,
.jt-form-group select {
  border: 1px solid var(--jt-grey-200);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: .9rem;
  color: var(--jt-grey-800);
  background: var(--jt-white);
  outline: none;
  transition: border-color var(--jt-transition);
}
.jt-form-group input:focus,
.jt-form-group select:focus { border-color: var(--jt-accent); }
.jt-form-message {
  font-size: .85rem;
  padding: 10px 14px;
  border-radius: 8px;
  display: none;
}
.jt-form-message.success { background: #e6f9ee; color: #1a7a3c; display: block; }
.jt-form-message.error   { background: #fdecea; color: #b00020; display: block; }
.jt-callback-submit { margin-top: 4px; }

/* ── Témoignages ─────────────────────────────────────────────────────────── */
.jt-temoignages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.jt-temoignage-card {
  background: var(--jt-grey-100);
  border-radius: var(--jt-radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--jt-grey-200);
}
.jt-temoignage-stars { color: #f5a623; font-size: 1.1rem; margin-bottom: 12px; }
.jt-temoignage-texte { font-size: .9rem; line-height: 1.65; color: var(--jt-grey-800); margin-bottom: 16px; font-style: italic; }
.jt-temoignage-auteur { font-size: .8rem; display: flex; gap: 6px; }
.jt-temoignage-auteur strong { color: var(--jt-black); }
.jt-temoignage-auteur span { color: var(--jt-grey-400); }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.jt-contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 768px) { .jt-contact-wrap { grid-template-columns: 1fr; } }
.jt-contact-info h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 24px; }
.jt-contact-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.jt-contact-list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.jt-contact-list a { color: var(--jt-black); text-decoration: none; }
.jt-contact-list a:hover { color: var(--jt-accent); }
.jt-social-links { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.jt-social-links a {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 6px;
  border: 1px solid var(--jt-grey-200);
  font-size: .8rem;
  font-weight: 600;
  color: var(--jt-black);
  text-decoration: none;
  transition: all var(--jt-transition);
}
.jt-social-links a:hover { background: var(--jt-black); color: var(--jt-white); }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.jt-pagination {
  max-width: var(--jt-max-width);
  margin: 40px auto 0;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.jt-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--jt-grey-200);
  color: var(--jt-grey-800);
  text-decoration: none;
  font-size: .875rem;
  transition: all var(--jt-transition);
}
.jt-pagination .page-numbers:hover,
.jt-pagination .page-numbers.current { background: var(--jt-accent); color: var(--jt-white); border-color: var(--jt-accent); }

/* ── No results ──────────────────────────────────────────────────────────── */
.jt-no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 24px;
  color: var(--jt-grey-600);
}

/* ── WhatsApp bubble ─────────────────────────────────────────────────────── */
.jt-wa-bubble {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: var(--jt-wa);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--jt-white);
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 9999;
  transition: transform var(--jt-transition), box-shadow var(--jt-transition);
  text-decoration: none;
}
.jt-wa-bubble svg { width: 28px; height: 28px; }
.jt-wa-bubble:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}

/* ── Modal ───────────────────────────────────────────────────────────────── */
.jt-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: jt-fadein .2s ease;
}
@keyframes jt-fadein { from { opacity:0; } to { opacity:1; } }
.jt-modal-inner {
  background: var(--jt-white);
  border-radius: var(--jt-radius-lg);
  padding: 32px;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.jt-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--jt-grey-100);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  color: var(--jt-grey-600);
  transition: all var(--jt-transition);
}
.jt-modal-close:hover { background: var(--jt-accent); color: var(--jt-white); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .jt-section { padding: 56px 0; }
  .jt-hero__ctas { flex-direction: column; width: 200px; }
  .jt-btn--lg { padding: 14px 28px; }
}
