/* ========================================
   CARYES - Global Styles
   ======================================== */

/* Animation logo hero */
@keyframes heroBounce {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-10px) rotate(1deg); }
}

/* Ticker publicités */
@keyframes adsTicker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ads-ticker-track {
  animation: adsTicker 18s linear infinite;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.ads-ticker-track:hover { animation-play-state: paused; }

:root {
  --primary: #DC143C;
  --secondary: #B91C1C;
  --accent: #EF4444;
  --gold: #F87171;
  --white: #ffffff;
  --light: #FFF5F5;
  --gray: #9CA3AF;
  --dark-gray: #1F2937;
  --success: #10B981;
  --danger: #DC143C;
  --warning: #F59E0B;
  --info: #06B6D4;
  --border: #FEE2E2;
  --shadow: 0 4px 20px rgba(220,20,60,0.15);
  --shadow-hover: 0 8px 40px rgba(220,20,60,0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--primary);
  color: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  background: var(--primary);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  font-weight: 800;
}

.navbar-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}

.navbar-title span {
  color: var(--secondary);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
}

/* ================================================
   SÉLECTEUR DE LANGUE — LANG SWITCHER
   ================================================ */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 6px 12px;
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.lang-switcher-btn:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.4);
}

.lang-flag   { font-size: 1.1rem; line-height: 1; }
.lang-name-short { letter-spacing: 0.5px; }
.lang-arrow  { font-size: 0.65rem; opacity: 0.8; transition: transform 0.2s; }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  border: 1px solid rgba(0,0,0,0.07);
  overflow: hidden;
  z-index: 2000;
  min-width: 180px;
  animation: langDDIn 0.2s ease both;
}
.lang-dropdown.open { display: block; }

@keyframes langDDIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  border: none;
  background: none;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.lang-option:hover   { background: #f3f4f6; }
.lang-option.active  { background: linear-gradient(135deg,#fff7ed,#fef3c7); color: #92400e; }
.lang-option + .lang-option { border-top: 1px solid #f9fafb; }

/* RTL support (arabe) */
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
[dir="rtl"] .lang-option   { text-align: right; flex-direction: row-reverse; }

.navbar-nav a {
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.navbar-nav a:hover, .navbar-nav a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.btn-sell {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}

.btn-sell:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(25,118,210,0.4);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  background: linear-gradient(135deg, #DC143C 0%, #B91C1C 50%, #991B1B 100%);
  padding: 80px 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(239,68,68,0.15) 0%, transparent 60%);
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(239,68,68,0.2);
  border: 1px solid rgba(239,68,68,0.5);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  max-width: 90vw;
}

.hero-badge-content {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.scrolling-text {
  display: inline-block;
  position: relative;
  height: 1.2em;
  overflow: hidden;
  vertical-align: middle;
}

.scrolling-text span {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  animation: scrollVertical 9s infinite;
  opacity: 0;
  left: 0;
  top: 0;
  white-space: nowrap;
}

.scrolling-text span:nth-child(1) {
  animation-delay: 0s;
}

.scrolling-text span:nth-child(2) {
  animation-delay: 3s;
}

.scrolling-text span:nth-child(3) {
  animation-delay: 6s;
}

@keyframes scrollVertical {
  0%, 27% {
    opacity: 1;
    transform: translateY(0);
  }
  33%, 100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--white);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--white);
  margin-top: 4px;
}

/* ========================================
   SEARCH BAR
   ======================================== */
.search-section {
  background: var(--white);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.search-container {
  max-width: 1100px;
  margin: 0 auto;
}

.search-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-field select,
.search-field input {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--primary);
  background: var(--white);
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.search-field select:focus,
.search-field input:focus {
  outline: none;
  border-color: var(--secondary);
}

.btn-search {
  background: linear-gradient(135deg, var(--secondary), #c73652);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233,69,96,0.4);
}

/* ========================================
   COUNTRIES SECTION
   ======================================== */
.countries-section {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.countries-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.country-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 25px;
  border: 2px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
}

.country-tab:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.country-tab.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(233,69,96,0.3);
}

/* ========================================
   VEHICLES GRID
   ======================================== */
.vehicles-section {
  padding: 0 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.vehicles-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.vehicles-count {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

.sort-select {
  padding: 8px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--primary);
  cursor: pointer;
  background: var(--white);
}

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ========================================
   VEHICLE CARD
   ======================================== */
.vehicle-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.vehicle-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vehicle-card:hover .card-image img {
  transform: scale(1.05);
}

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-featured {
  background: var(--accent);
  color: var(--white);
}

/* ── Badge CARYES Officiel ── */
.badge-caryes-official {
  background: linear-gradient(135deg, #DC143C, #b91c1c);
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 8px rgba(220,20,60,0.35);
  animation: caryes-pulse 2.5s ease-in-out infinite;
}

@keyframes caryes-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(220,20,60,0.35); }
  50%       { box-shadow: 0 2px 18px rgba(220,20,60,0.6); }
}

.badge-condition {
  background: rgba(0,0,0,0.6);
  color: var(--white);
  backdrop-filter: blur(4px);
}

.badge-new {
  background: var(--success);
  color: var(--white);
}

/* Badge compteur photos sur les cartes */
.card-photo-count {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.card-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.card-favorite:hover {
  background: var(--secondary);
  color: var(--white);
}

.card-body {
  padding: 1.2rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.8rem;
}

.card-specs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
}

.spec-item i {
  color: var(--secondary);
  font-size: 0.75rem;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--gray);
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

.card-location i {
  color: var(--secondary);
}

/* ========================================
   CARTE VENDUE — BANDEAU + EFFETS
   ======================================== */

/* Carte entière grisée quand vendue */
.vehicle-card.sold-card {
  opacity: 0.88;
  pointer-events: auto;
}
.vehicle-card.sold-card:hover {
  transform: translateY(-3px);
}

/* Overlay sombre sur l'image */
.vehicle-card.sold-card .card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 1;
}

/* Tampon VENDU diagonal sur l'image */
.sold-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  z-index: 3;
  border: 4px solid #10B981;
  border-radius: 10px;
  padding: 7px 22px;
  color: #10B981;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(3px);
  box-shadow: 0 0 0 2px rgba(16,185,129,0.25), 0 4px 20px rgba(0,0,0,0.5);
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(16,185,129,0.4);
  animation: stampIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.05s both;
}

@keyframes stampIn {
  from { transform: translate(-50%, -50%) rotate(-20deg) scale(0.25); opacity: 0; }
  to   { transform: translate(-50%, -50%) rotate(-20deg) scale(1);    opacity: 1; }
}

/* ── Bandeau VENDU en bas de la card-body ── */
.sold-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 1rem;
  padding: 11px 12px;
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  border: 2px solid rgba(16, 185, 129, 0.55);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: bannerIn 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.1s both;
  position: relative;
  overflow: hidden;
}

/* Effet brillance animée sur le bandeau */
.sold-banner::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: shineSweep 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shineSweep {
  0%   { left: -75%; }
  55%  { left: 125%; }
  100% { left: 125%; }
}

@keyframes bannerIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.sold-banner-text {
  font-size: 0.88rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.sold-banner-text i {
  font-size: 0.9rem;
  color: #6ee7b7;
}

.sold-banner-emojis {
  font-size: 1.05rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Prix barré sur les cartes vendues */
.vehicle-card.sold-card .card-price {
  text-decoration: line-through;
  color: var(--gray);
  opacity: 0.7;
  font-size: 1.1rem;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(25,118,210,0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: var(--white);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: var(--white);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245,166,35,0.4);
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.show .modal {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 10;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.modal-close {
  width: 36px;
  height: 36px;
  background: var(--light);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--secondary);
  color: var(--white);
}

.modal-body {
  padding: 1.5rem;
}

/* ========================================
   VEHICLE DETAIL
   ======================================== */
.vehicle-detail-gallery {
  position: relative;
  height: 350px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.vehicle-detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== GALERIE PHOTOS VÉHICULE ========== */
.gallery-wrapper {
  margin-bottom: 1.5rem;
  border-radius: 14px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.gallery-main {
  position: relative;
  width: 100%;
  height: 380px;
  background: #111;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
  display: block;
}

/* Flèches navigation */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}
.gallery-arrow:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-50%) scale(1.1);
}
.gallery-arrow-left  { left: 12px; }
.gallery-arrow-right { right: 12px; }

/* Compteur */
.gallery-counter-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
  z-index: 10;
}

/* Étiquette photo */
.gallery-label-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(220,20,60,0.82);
  color: #fff;
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  backdrop-filter: blur(6px);
  z-index: 10;
  white-space: nowrap;
  text-transform: uppercase;
}

/* Miniatures */
.gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  overflow-x: auto;
  background: #1a1a1a;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary) #333;
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-track { background: #333; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 4px; }

.gallery-thumb {
  flex: 0 0 88px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 2.5px solid transparent;
  transition: border-color 0.2s, transform 0.15s;
  position: relative;
  background: #333;
}
.gallery-thumb:hover  { transform: scale(1.05); border-color: rgba(220,20,60,0.5); }
.gallery-thumb.active { border-color: var(--secondary); }

.gallery-thumb img {
  width: 100%;
  height: 62px;
  object-fit: cover;
  display: block;
}

.thumb-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  color: #ccc;
  text-align: center;
  padding: 3px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.gallery-thumb.active .thumb-label { color: var(--secondary); }

/* ========== FIN GALERIE ========== */

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
}

.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.detail-spec {
  background: var(--light);
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.detail-spec-icon {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.detail-spec-label {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.detail-spec-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.seller-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 2px solid var(--border);
}

.seller-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.seller-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.seller-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.seller-name {
  font-weight: 700;
  color: var(--primary);
}

.seller-location {
  font-size: 0.85rem;
  color: var(--gray);
}

.contact-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
}

.btn-call {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-call:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

/* ========================================
   FORMS
   ======================================== */
.form-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-header {
  background: linear-gradient(135deg, var(--primary), #16213e);
  padding: 2rem;
  color: var(--white);
}

.form-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.form-header p {
  opacity: 0.7;
  font-size: 0.9rem;
}

.form-body {
  padding: 2rem;
}

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-gray);
}

.form-group label span {
  color: var(--secondary);
}

.form-control {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--primary);
  transition: var(--transition);
  background: var(--white);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 3rem 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand .navbar-title {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  display: block;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.footer-title {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  max-width: 1200px;
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ========================================
   LOADING & EMPTY STATES
   ======================================== */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  flex-direction: column;
  gap: 1rem;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray);
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.warning {
  border-left-color: var(--warning);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }
  
  .navbar-nav {
    display: none;
  }

  .hero {
    padding: 60px 1rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .search-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vehicles-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    text-align: center;
    justify-content: center;
  }
}

/* ========================================
   PAGE SELL - SELL FORM PAGE
   ======================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary), #16213e);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.7;
}

.steps-indicator {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 2rem auto;
  max-width: 500px;
}

.step-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0 auto 0.4rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.step-item.active .step-num,
.step-item.done .step-num {
  background: var(--secondary);
  color: var(--white);
}

.step-label {
  font-size: 0.75rem;
  color: var(--gray);
  font-weight: 500;
}

.step-item.active .step-label {
  color: var(--secondary);
  font-weight: 700;
}

.step-item::before {
  content: '';
  position: absolute;
  top: 18px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}

.step-item:first-child::before {
  display: none;
}

.step-item.done::before {
  background: var(--secondary);
}

/* Étape Paiement cachée par défaut — affichée uniquement en mode payant via JS */
#step4Ind {
  display: none;
}

/* ========================================
   MOBILE NAV
   ======================================== */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
  }
  
  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
}
