/* ===========================================================
   STYLE-CLEAN.CSS
   Version optimisée et unifiée
   Auteur : Ahmed Rabai
   But : Code clair, performant et facile à maintenir
   =========================================================== */

/* ===============================
   VARIABLES & FONDATIONS
   =============================== */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

:root {
  /* Couleurs principales */
  --primary: #0071e2;
  --secondary: #ffc107;
  --danger: #dc3545;
  --success: #28a745;
  --dark: #212529;
  --light: #f8f9fa;
  --muted: #6c757d;

  /* Variables CSS avec nouvelle couleur */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --gradient-primary: linear-gradient(135deg, #0072c3, #005ccd);

  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f8fafc;
  --border-color: #e5e7eb;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --transition: all 0.3s ease;

  /* Typographie */
  --font: "Roboto", Arial, sans-serif;

  /* Bordures & Ombres */
  --radius: 10px;
  --border-radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

  /* Transition globale */
  --transition: all 0.3s ease;
}

.card-modern-shadow {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px; /* Ombre douce et moderne */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animation hover */
}

.card-modern-shadow:hover {
  transform: translateY(-5px); /* Légère élévation au hover */
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* Ombre plus prononcée */
}
/* Breadcrumb amélioré */
.breadcrumb {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1rem;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: #1a72f5ff;
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: #4b4040;
  font-weight: 600;
}

/* Version minimaliste mobile */
@media (max-width: 576px) {
  .breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }

  .breadcrumb::-webkit-scrollbar {
    display: none;
  }

  .breadcrumb-item {
    flex: 0 0 auto;
    max-width: none;
  }

  /* Masquer tous les textes longs, garder courts */
  .breadcrumb-item:not(:first-child):not(:last-child) span {
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
  }
}

body {
  background-color: #f9f9f9;
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--dark);
  margin: 0;
}

/* ===============================
   TITRES & TEXTE
   =============================== */
.modern-title {
  font-weight: 600;
  line-height: 1;
  font-size: 25px;
}
@media (min-width: 768px) {
  .modern-title {
    font-size: 2rem;
  }
}

.subtitle {
  position: relative;
  display: inline-block;
  color: #26476e;
  font-size: 1.5rem;
  text-transform: capitalize;
  padding-bottom: 8px;
}
.subtitle::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 50px;
  background: var(--primary);
  border-radius: 2px;
}

/* ===============================
   BADGES, BOUTONS & ALERTES
   =============================== */
.badge-etat {
  background-color: var(--success);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 1rem;
  display: inline-block;
}

.contact-btn {
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  transition: var(--transition);
}
.contact-btn:hover {
  transform: translateY(-2px);
}

.safety-alert {
  background: #fff8e1;
  border: 1px solid #ffe0b2;
  color: #5d4037;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  padding: 1rem;
}

/* ===============================
   IMAGES & GALERIE
   =============================== */
.gallery-thumbnail {
  width: 100px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.gallery-thumbnail:hover,
.gallery-thumbnail.active {
  border-color: var(--primary);
}
.main-image-container {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.image-counter {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* ===============================
   CARDS & ANNONCES
   =============================== */
.card-modern {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
}
.card-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
.titre-annonce {
  font-size: 1.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===============================
   HERO SECTION
   =============================== */
.hero-section {
  background: linear-gradient(135deg, #00417f 0%, #0b64cf 100%);
  min-height: 400px;
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  color: #fff;
}

.hero-section .hero-highlight {
  color: #ffe066;
  font-weight: 800;
}
.hero-section .btn-light {
  color: var(--primary);
  background: #fff;
  border-radius: 0.7rem;
  font-weight: 600;
}

/* Search Form */
.search-section {
  margin-top: -50px;
  position: relative;
  z-index: 10;
}
/* ===============================
   PROFIL UTILISATEUR
   =============================== */
.profile-sidebar {
  position: sticky;
  top: 20px;
  background: #fff;
  border-radius: 15px;
  padding: 25px 20px;
  box-shadow: var(--shadow);
}

.profile-sidebar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  object-fit: cover;
  transition: var(--transition);
}
.profile-sidebar img:hover {
  transform: scale(1.05);
}
.profile-sidebar h4 {
  font-weight: 600;
  margin-top: 15px;
}
.profile-sidebar ul li a {
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  transition: var(--transition);
}
.profile-sidebar ul li a:hover {
  background-color: rgba(67, 97, 238, 0.12);
  color: var(--primary);
}

/* ======================== 
STYLE ÉQUIPEMENTS AVEC BORDER
 ======================== */
/* Équipements améliorés */

.car-equipment-box {
  border: 1px solid #e5e7eb; /* bordure autour de chaque équipement */
  transition: all 0.25s ease;
  background: #fff;
  cursor: default;
}

.car-equipment-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.car-equipment-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.car-equipment-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
}

/* Responsive */
@media (max-width: 576px) {
  .car-equipment-box {
    padding: 0.5rem;
  }
  .car-equipment-icon {
    width: 32px;
    height: 32px;
  }
  .car-equipment-img {
    width: 20px;
    height: 20px;
  }
  .car-equipment-label {
    font-size: 0.8rem;
    font-weight: 600;
  }
}
/* ===============================
   Equipemnt
   =============================== */
.image-checkbox {
  cursor: pointer;
  border: 2px solid #dfdddd;
  border-radius: 12px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  user-select: none;
}

.image-checkbox input[type="checkbox"] {
  display: none; /* cache le checkbox */
}

/* Style coché — dans ton cas, on peut le garder si tu veux le réutiliser pour l'édition */
.image-checkbox:has(input[type="checkbox"]:checked) {
  border-color: #5086c1;
  background-color: #d9f2ff;
}

/* Effet hover visuel */
.image-checkbox:hover {
  border-color: #529dec;
  background-color: #f0f8ff;
}

.image-checkbox img {
  border-radius: 8px;
  max-width: 46px;
  margin-bottom: 6px;
  transition: all 0.3s;
}

.image-checkbox p {
  margin: 0;
  font-size: 14px;
  text-align: center;
}

/* ===============================
   FORMULAIRES
   =============================== */
.form-label {
  font-weight: 600;
  color: var(--dark);
}
.form-control,
.form-select {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ced4da;
  transition: var(--transition);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.1);
}

/* ===============================
   PAGINATION
   =============================== */
.pagination .page-link {
  color: var(--primary);
  border: 1px solid #dee2e6;
  transition: var(--transition);
}
.pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pagination .page-link:hover {
  background-color: #e9f3ff;
}

/* ===============================
   FOOTER
   =============================== */
.footer-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}
.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ===============================
   RESPONSIVE
   =============================== */
@media (max-width: 768px) {
  .gallery-thumbnail {
    width: 70px;
    height: 50px;
  }
  .hero-section {
    padding: 1.4rem 0;
  }
}

#smartwizard.blocked::after {
  content: "Limite atteinte";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: red;
  font-weight: bold;
}

/* Carte annonce */
.boost-annonce-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.boost-annonce-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* === Badge Boost Or Professionnel === */
.boost-badge.boost-gold {
  position: absolute;
  top: 10px;
  left: 10px;
  letter-spacing: 0.8px;
  padding: 2px 7px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 15px;
  color: #333;
  background: #ffdc1eed;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card {
  border: none;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-card {
  padding: 1.5rem;
  text-align: center;
}

.annonce-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
  display: flex;
  align-items: center;
  justify-content: center;
}

.annonce-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.annonce-image:hover {
  transform: scale(1.05);
}

.annonce-details .stat-item {
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Plans */
.plan-card {
  cursor: pointer;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  /* transition: background 0.3s ease; */
}

.plan-card:hover::before {
  background: var(--primary-gradient);
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.plan-card.active {
  box-shadow: 0 8px 25px rgba(78, 84, 200, 0.2);
  border: 2px solid #0fbbd5c2;
}

.plan-card.active::before {
  background: var(--primary-gradient);
}

.popular-plan {
  transform: scale(1.02);
}

.popular-plan::before {
  background: var(--warning-gradient) !important;
}

.popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--warning-gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
  z-index: 2;
}

.boost-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.boost-icon.bg-primary {
  background: var(--primary-gradient);
}
.boost-icon.bg-warning {
  background: var(--warning-gradient);
}
.boost-icon.bg-success {
  background: var(--success-gradient);
}

.plan-features ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.plan-features ul li:last-child {
  border-bottom: none;
}

/* Paiement */
.payment-instructions .step-number {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}

.account-info {
  border-left: 4px solid #4e54c8;
}

/* Upload */
.file-upload-area {
  border: 2px dashed #dee2e6;
  transition: all 0.3s ease;
  background: rgba(248, 249, 250, 0.5);
}

.file-upload-area:hover {
  border-color: #4e54c8;
  background: rgba(78, 84, 200, 0.05);
}

.file-upload-area.dragover {
  border-color: #4e54c8;
  background: rgba(78, 84, 200, 0.1);
  transform: scale(1.02);
}

.confirmation-icon {
  font-size: 3rem;
  opacity: 0.9;
}

/* Animations */
.step-content {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.progress-bar-animated {
  animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .annonce-image-wrapper {
    height: 180px;
    border-radius: 8px 8px 0 0;
  }

  .boost-icon {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
  }

  .plan-card {
    margin-bottom: 1.5rem;
  }

  .popular-plan {
    transform: none;
  }

  .qr-container {
    max-width: 180px;
  }
}

@media (max-width: 576px) {
  .boost-icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .step-indicator {
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
  }
}

.d17-logo {
  max-height: 80px; /* Hauteur idéale pour les interfaces modernes */
  width: auto; /* Garde les proportions */
  object-fit: contain; /* Empêche la déformation */
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}
.d17-logo:hover {
  transform: scale(1.05); /* Petit effet visuel élégant au survol */
}

/* Layout desktop */
@media (min-width: 992px) {
  .layout-wrapper {
    display: flex;
    align-items: flex-start;
  }

  .sidebar-fixed {
    width: 360px;
    flex: 0 0 360px;
    max-width: 360px;
    position: sticky;
    top: 10px;
    height: fit-content;
    z-index: 10;
  }

  .main-content {
    flex: 1;
    min-width: 0;
  }
}

/* Mobile : masquer sidebar */
@media (max-width: 991.98px) {
  .sidebar-fixed {
    display: none;
  }

  .main-content {
    width: 100%;
  }
}

/* Navbar custom */

/* Navigation principale */
.navbar-modern {
  background: var(--gradient-primary);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.navbar-brand {
  padding: 0;
  margin-right: 2rem;
}

/* Navigation items */
.navbar-nav .nav-item {
  margin: 0 0.5rem;
}

.navbar-nav .nav-link {
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 17px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: white;
  background-color: rgba(255, 255, 255, 0.15);
}

.navbar-nav .nav-link i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

/* Dropdown */
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 0.5rem;
}

.dropdown-item {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: rgba(37, 99, 235, 0.08);
}

/* Actions utilisateur */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Menu utilisateur */
.user-dropdown {
  position: relative;
}

.user-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: white;
  transition: var(--transition);
}

.user-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: white;
}

.user-toggle i {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.user-dropdown.show .user-toggle i {
  transform: rotate(180deg);
}

/* Contrôles mobiles */
.mobile-controls {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.btn-user-mobile {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-user-mobile:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Menu mobile principal */
.mobile-menu .offcanvas-header {
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.offcanvas-logo {
  display: flex;
  align-items: center;
}

/* Menu mobile moderne */

.mobile-actions {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
}

/* S'assurer que l'offcanvas-body a une hauteur définie */
.offcanvas-body {
  height: 100%;
}

.mobile-menu {
  width: 380px;
  max-width: 85vw;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
}

.offcanvas-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(135deg, #0072c3, #005ccd);
}

.offcanvas-logo {
  display: flex;
  align-items: center;
}

.offcanvas-logo img {
  border-radius: 8px;
}

.btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.welcome-box {
  background: linear-gradient(135deg, #f8f9fa, #f8f9fa);
  border-radius: var(--border-radius);
  padding: 0.8rem;
}

.mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.mobile-nav li {
  margin-bottom: 0.25rem;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.2rem;
  color: var(--dark);
  text-decoration: none;
  transition: var(--transition);
  border-radius: 0;
  font-weight: 500;
  position: relative;
  font-size: 1rem;
}

.mobile-nav a:hover {
  background-color: rgba(13, 110, 253, 0.08);
  color: var(--primary-color);
  padding-left: 1.75rem;
}

.mobile-nav a i {
  width: 24px;
  margin-right: 12px;
  font-size: 1rem;
  color: var(--primary-color);
}

.mobile-nav a.active {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
}

.mobile-actions {
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
  font-size: 0.9rem;
}

.category-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.stats-section {
  display: flex;
  justify-content: space-around;
  padding: 1rem 1.5rem;
  background: rgba(13, 110, 253, 0.05);
  border-radius: var(--border-radius);
  margin: 0 1.5rem 1.5rem 1.5rem;
}

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

.stat-value {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.75rem;
  color: #6c757d;
}

.quick-search {
  padding: 0 1.5rem;
}

.search-input {
  border-radius: 50px;
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
  font-size: 0.9rem;
}

.search-btn {
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  border: none;
}

.badge-new {
  background: var(--success-color);
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.social-links a {
  color: #6c757d;
  font-size: 1.25rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Animation d'entrée personnalisée */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.offcanvas-start {
  animation: slideInLeft 0.3s ease-out;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .mobile-menu {
    width: 320px;
  }

  .welcome-box {
    margin: 1rem;
  }

  .stats-section {
    margin: 0 1rem 1rem 1rem;
  }
}
.nav-divider {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

.mobile-actions {
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
}

/* Menu utilisateur mobile */
.mobile-user-menu .offcanvas-header {
  border-bottom: 1px solid var(--border-color);
}

.user-profile-mobile {
  text-align: center;
  margin-bottom: 2rem;
}

.user-avatar-large {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.user-avatar-large img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
}

.btn-edit-avatar {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.user-info-mobile h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.user-since {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.mobile-user-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-user-nav li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  font-size: 18px;
  font-weight: 500;
}

.mobile-user-nav li a:hover {
  background: rgba(37, 99, 235, 0.08);
}

.mobile-user-nav li a i {
  width: 20px;
  text-align: center;
  color: var(--primary-color);
}

.mobile-user-nav .badge {
  background: var(--primary-color);
  color: white;
  border-radius: 50px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  margin-left: auto;
}

.logout-link {
  color: #ef4444 !important;
}

.logout-link:hover {
  background: rgba(239, 68, 68, 0.08) !important;
}

/* Responsive - Masquer le menu desktop sur petits écrans */
@media (max-width: 991.98px) {
  .navbar-collapse {
    display: none !important;
  }

  .mobile-controls {
    display: flex;
  }

  .navbar-toggler {
    border: none;
    padding: 0.5rem;
    font-size: 1.25rem;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    margin-right: auto;
  }

  .mobile-menu {
    width: 85%;
  }

  .mobile-user-menu {
    width: 85%;
  }
}

/* Hamburger custom (pour navbar-toggler-icon) */
.navbar-toggler {
  border: none;
}
.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}
.custom-toggler-icon {
  width: 24px;
  height: 22px;
  position: relative;
  display: inline-block;
}
.custom-toggler-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: var(--color-secondary);
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transition: all 0.25s ease-in-out;
}
.custom-toggler-icon span:nth-child(1) {
  top: 0;
}
.custom-toggler-icon span:nth-child(2) {
  top: 9px;
}
.custom-toggler-icon span:nth-child(3) {
  top: 18px;
}

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

/* === CARTE === */

.price-badge {
  position: absolute;
  bottom: 6px;
  left: 8px;

  background: rgb(28 28 28 / 75%); /* خلفية صغيرة وواضحة */
  color: #fff;

  padding: 2px 4px;
  font-size: 16px;
  font-weight: 600;

  border-radius: 4px;
  display: inline-flex; /* يمنع توسعه */
  align-items: center;
  white-space: nowrap; /* يمنع ان يصبح سطرين */
  max-width: max-content; /* يمنع تمدده */
}

.price-badge i {
  margin-right: 4px;
  font-size: 12px;
}

/* === TITRE === */
.titre-annonce {
  font-size: 18px;
  padding: 6px;
  margin-bottom: 4px;
}

.titre-annonce a {
  color: #222;
  font-weight: 600;
  text-decoration: none;
}

/* === SPECS === */
/* === SPECS === */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 0 6px 6px;
}

.spec-item {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-item i {
  margin-right: 5px;
  color: #1877f2;
  font-size: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.annonce-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  height: 100%;
}

.annonce-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.ad-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: #f8f9fa;
}

.ad-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.price-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
}

.new-badge {
  font-size: 0.75rem;
}

.titre-annonce a {
  color: #212529;
  font-weight: 600;
  text-decoration: none;
}

.titre-annonce a:hover {
  color: #0d6efd;
}

.card-footer-annonce {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 8px 12px;
  font-size: 0.8rem;
  color: #6c757d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

/* === Responsive === */
@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cartes par ligne */
  }
}

@media (max-width: 576px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cartes par ligne */
  }
}

/* Image */

.ad-img-container {
  width: 100%;
  height: 160px; /* ou la hauteur désirée */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crucial - remplit l'espace sans déformation */
  object-position: center;
  aspect-ratio: 16/9;
}

/* Lien autour de l'image pour UX */
.ad-link {
  display: block;
  text-decoration: none;
  color: inherit;
  outline: none;
}

/* Badge Boost (si présent) toujours au top right */
.ad-img-container .boost-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
}

#mobileActions {
  position: fixed;
  bottom: 0x;
  left: 0;
  width: 400px; /* même largeur que ton offcanvas */
  max-width: 100%; /* pour mobile, ne pas dépasser l’écran */
  margin-left: auto;
  margin-right: auto;
}
/* --- Bouton favoris --- */
.favorite-btn {
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 10;
}

/* --- État actif (favori ajouté) --- */
.favorite-btn.active {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse 0.3s ease;
}

/* --- Icône à l’intérieur --- */
.favorite-btn i {
  font-size: 1.2rem;
  color: #ff4d4d; /* rouge cœur */
  transition: transform 0.3s ease, color 0.3s ease;
}

/* --- Animation “pulse” lorsque le favori est ajouté --- */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* --- Hover léger --- */
.favorite-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 1);
}

.image-counter {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
}
/* --- Footer de carte --- */
.card-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e9ecef;
  padding-top: 0.5rem;
  margin-top: auto;
  font-size: 0.95rem;
}

.card-footer-info .info-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48%;
}

/* --- Style région --- */
.info-badge.region {
  background: #f8f9fa;
  color: #212529;
  border: 1px solid #dee2e6;
}
/* Badges */
.badge-professionnel {
  background-color: #fff3cd;
  color: #856404;
}

.badge-particulier {
  background-color: #e2e3e5;
  color: #383d41;
}

/* Validation, aide et feedback UX */
.form-text,
.text-muted {
  font-size: 0.97em;
  color: #6c757d;
}

.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 1.5px #dc3545 !important;
}

.invalid-feedback {
  font-size: 0.97em;
  color: #dc3545;
  margin-top: 4px;
}

/* Focus visible pour accessibilitÃ© */
:focus-visible {
  outline: 2px solid #0071e2;
  outline-offset: 2px;
}

.step-content select:required:invalid,
.step-content input:required:invalid {
  border-left: 2px solid #dc3545;
  /* Rouge Bootstrap */
  transition: border-left 0.3s ease;
}

.step-content select:focus,
.step-content input:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
  /* focus doux */
  border-color: #86b7fe;
}

.step-header {
  text-align: left; /* ou center si tu préfères */
}

.step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #0899ecff; /* bleu principal */
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 20px;
  background: #247de2ff;
  border-radius: 3px;
}

.step-description {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}
.required {
  color: #dc3545;
  font-weight: bold;
}

/* Pagination */
.pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
}

.pagination .page-link {
  color: var(--primary);
}

/* Features Section */
.features-section {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
/* Icones */
.feature-icon {
  font-size: 1.2rem;
  color: #2c89cd; /* Couleur moderne bleu */
  text-align: center;
}

/* Labels */
.feature-label {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 500;
}

/* Valeurs */
.feature-value {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
}
/* Description améliorée */

.description-content {
  max-height: 120px;
  overflow: hidden;
  position: relative;
  line-height: 1.7;
  color: #575656ff;
  font-size: 16px;
}

.description-content p {
  margin-bottom: 0.75rem;
  text-align: justify;
}

.description-expanded {
  max-height: none !important;
}

#readMoreBtn {
  font-weight: 500;
}

.description-content.expanded {
  max-height: 1000px;
}
.read-more-btn {
  background: none;
  border: none;
  font-weight: 600;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.read-more-btn:hover {
  color: var(--primary-dark);
}

.seller-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.seller-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-btn {
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  transition: var(--transition);
}

.contact-btn:hover {
  transform: translateY(-2px);
}
/* Ã‰QUIPEMENTS */
/* Grille principale */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
}

/* Carte d'équipement */
.equipment-card {
  background-color: #f9fafb;
  border: 1px solid rgb(230, 230, 230);
  border-radius: 0.8rem;
  padding: 0.5rem 0.5rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 85px;
  cursor: default;
}

/* Icône */
.equipment-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.equipment-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: invert(37%) sepia(92%) saturate(5000%) hue-rotate(200deg)
    brightness(95%) contrast(105%);
}

/* Nom de l’équipement */
.equipment-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: #212529;
  line-height: 1.2;
  text-align: center;
}

/* Responsive */
@media (max-width: 767px) {
  .equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .equipment-card {
    height: 90px;
  }
  .equipment-icon {
    width: 32px;
    height: 32px;
  }
}

/* Responsive */
@media (max-width: 991.98px) {
  .offcanvas-filters {
    width: 300px;
  }
}

/* Groupe de toggles checkbox */
.toggle-group {
  display: flex;
  gap: 20px; /* espace entre les switches */
  flex-wrap: wrap; /* pour s’adapter aux petits écrans */
}
.toggle-switch {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  user-select: none;
  gap: 12px;
}

/* Cacher la checkbox par défaut */
.toggle-switch input {
  display: none;
}

/* Le slider (bouton du switch) */
.toggle-switch .slider {
  position: relative;
  width: 40px;
  height: 22px;
  background-color: #d1d5db;
  border-radius: 50px;
  transition: background-color 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Le cercle mobile */
.toggle-switch .slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Effet activé */
.toggle-switch input:checked + .slider {
  background-color: #22c55e; /* Vert moderne (type WhatsApp) */
}

/* Déplacement du cercle à droite quand activé */
.toggle-switch input:checked + .slider::before {
  transform: translateX(18px);
}

/* Texte à droite du switch */
.toggle-switch .label-text {
  color: #111827;
  font-weight: 500;
}

/* Animation au survol */
.toggle-switch:hover .slider {
  background-color: #b5e3c1;
  transition: 0.25s;
}

/* Effet focus (accessibilité) */
.toggle-switch input:focus + .slider {
  outline: 2px solid #22c55e;
  outline-offset: 3px;
}

.announcement-pricing-container {
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 0.5rem;
}

.price-section {
  padding: 0.5rem 0;
}

.price-amount {
  font-size: 1.7rem;
  line-height: 1;
  color: #fc2d1f;
  font-weight: 600;
}

.price-tag {
  color: #222020;
  padding: 0.25rem 0.25rem;
  font-weight: 600;
  font-size: 1.2rem;
  top: 0.5rem;
  left: 0.5rem;
}

/* bade prix de l'annocne */
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.prix {
  background: linear-gradient(135deg, #fff0f0 0%, rgb(255 237 237) 100%);
  color: #c90000;
  border: 2px solid #ff5555;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.82rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-badge.negotiable {
  background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
  color: #2e7d32;
  border-color: #4caf50;
}

.feature-badge.exchange {
  background: linear-gradient(135deg, #fffbf0 0%, #fff3cd 100%);
  color: #8d6e00;
  border-color: #ffc107;
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.feature-badge.negotiable .badge-icon {
  background: #4caf50;
  color: white;
}

.feature-badge.exchange .badge-icon {
  background: #ffc107;
  color: #212529;
}

/* ===== Section ===== */
.brands-section {
  background-color: #f8fafc;
}

/* ===== Cards Marques & Villes ===== */
.brand-tile {
  transition: all 0.3s ease-in-out;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  padding: 25px 10px;
}

.brand-tile:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.1);
}

/* ===== Wrapper logo / icône ===== */
.brand-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  width: 60px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background-color: #eef2ff;
}

/* ===== Logo ou icône ===== */
.brand-logo {
  font-size: 22px;
  color: var(--primary-color);
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(20%);
}

.brand-tile:hover .brand-logo {
  transform: scale(1.15);
  filter: brightness(1.2);
}

/* ===== CTA Box ===== */
.cta-box {
  background: linear-gradient(145deg, #ffffff, #ffffff);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
  padding: 40px 20px;
}

.btn-primary {
  background: var(--primary-color);
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0a58ca;
  transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .brand-img-wrapper {
    width: 60px;
    height: 60px;
  }
  .brand-name {
    font-size: 0.85rem;
  }
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-weight: 700;
  font-size: 1.7rem;
  border-left: 4px solid #0d6efd;
  padding-left: 12px;
  color: #2c2d2e;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.section-subtitle {
  color: #6b7280;
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.6;
}

.card-vertical {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}
.card-vertical:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Badges */
.badge {
  font-size: 0.8rem;
  font-weight: 600;
}
.badge-timer {
  background: #1e88e5;
}
.btn-light.rounded-circle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.btn-light.rounded-circle:hover {
  transform: scale(1.1);
}

/* Stats */
.stats-container {
  width: 100%;
}
.stat-item {
  flex: 1 1 calc(50% - 0.5rem);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}
.stat-item:hover {
  background: #eef2ff;
  transform: translateY(-2px);
}
.stat-item i {
  color: #64748b;
}

/* Gradient Button */
.btn-primary-gradient {
  background: linear-gradient(135deg, #007bff 0%, #106af2 100%);
  color: #fff;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
}
.btn-primary-gradient:hover {
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  transform: translateY(-2px);
}

.specs-list {
  padding: 0.5rem 0;
}

.spec-line {
  display: flex;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s;
}

.spec-line:last-child {
  border-bottom: none;
}

.spec-line:hover {
  background-color: #f8f9fa;
}

.spec-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spec-icon i {
  color: #2a7fff; /* bleu foncé */
  font-size: 1.1rem;
}

.spec-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}

.spec-name {
  color: #393939;
  font-weight: 500;
  font-size: 0.95rem;
}

.spec-data {
  color: #1e293b;
  font-weight: 600;
  text-align: right;
  padding-left: 1.5rem;
}

/* page help */
.accordion-button {
  background: transparent;
  color: #474c52ff;
  font-weight: 600;
  font-size: 1.15rem;
  box-shadow: none;
  border: none;
  padding: 1rem 1.25rem;
  transition: background-color 0.3s ease;
}
.accordion-button:hover {
  background-color: #e7f1ff;
}
.accordion-button::after {
  content: "";
  background-image: url("data:image/svg+xml,%3csvg fill='%230d6efd' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3e%3c/svg%3e");
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
}
.accordion-button.collapsed::after {
  transform: rotate(-90deg);
}
.accordion-body {
  font-size: 1rem;
  color: #495057;
  padding: 1rem 1.25rem 1.5rem;
}

/* Card hover */
.similar-car-card:hover {
  transform: translateY(-4px);
  transition: 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

/* Taille de l'image principale sur les petits écrans */
@media (max-width: 576px) {
  #mainImage {
    height: 300px; /* Ajuste la taille à ton goût */
    object-fit: cover;
  }
}

/* Taille de l'image principale sur les écrans plus grands (tablette et desktop) */
@media (min-width: 577px) {
  #mainImage {
    height: 500px; /* Ajuste la taille à ton goût */
    object-fit: cover;
  }
}

/* Taille des miniatures sur les petits écrans */
@media (max-width: 576px) {
  #thumbnails img {
    width: 50px;
    height: 50px;
  }
}

/* Taille des miniatures sur les écrans plus grands */
@media (min-width: 577px) {
  #thumbnails img {
    width: 70px;
    height: 70px;
  }
}

/* Taille de l'image principale sur les petits écrans */
@media (max-width: 576px) {
  #mainImage {
    height: 300px; /* Ajuste la taille à ton goût */
    object-fit: cover;
  }
}

/* Taille de l'image principale sur les écrans plus grands (tablette et desktop) */
@media (min-width: 577px) {
  #mainImage {
    height: 500px; /* Ajuste la taille à ton goût */
    object-fit: cover;
  }
}

/* Taille des miniatures sur les petits écrans */
@media (max-width: 576px) {
  #thumbnails img {
    width: 50px;
    height: 50px;
  }
}

/* Taille des miniatures sur les écrans plus grands */
@media (min-width: 577px) {
  #thumbnails img {
    width: 70px;
    height: 70px;
  }
}

/* ----- FOOTER DESKTOP ONLY ----- */
.card-footer-annonce {
  padding: 5px 10px;
  border-top: 1px solid #eee;
  background: #f8f8f8ff;
}

.card-footer-annonce .footer-left {
  color: #555555;
  font-size: 14px;
  display: flex;
  gap: 5px;
  align-items: center;
}

.card-footer-annonce .footer-right {
  font-size: 14px;
  color: #555555;
}

/* MOBILE: Hide footer on mobile */
@media (max-width: 480px) {
  .card-footer-annonce {
    display: none !important;
  }
}
.region-count {
  min-height: 1.2em; /* ou la hauteur du texte */
}

/* ===== Nom marque / ville ===== */
.brand-name {
  font-size: 1rem;
  letter-spacing: 0.2px;
  color: #1e293b;
  font-weight: 600;
}

.badge-annonces {
  display: inline-block;
  font-size: 0.85rem; /* un peu plus petit que le texte normal */
  font-weight: 500;
  color: rgb(0, 76, 156); /* couleur principale du site */
  background-color: rgba(1, 79, 163, 0.1); /* fond léger */
  padding: 0.25rem 0.5rem;
  border-radius: 10px; /* arrondi complet */
  margin-top: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); /* légère ombre */
  transition: all 0.3s ease;
}

.badge-annonces:hover {
  background-color: rgba(1, 79, 163, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* //page detais annonce */
/* Groupe de labels */
.label-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
}

/* Style simple et moderne pour chaque label */
.label-tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0462c0;
  background-color: #ffffff;
  border: 1px solid #ebebebff;
  border-radius: 15px;

  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.label-tag:hover {
  background-color: #e9ecef;
  border-color: #ebebebff;
  color: #0175e9;
}
