/* =============================================
   N-JOY AUTOS — FEUILLE DE STYLE PRINCIPALE
   ============================================= */

/* === VARIABLES === */
:root {
  --royal-blue: #1b4f8a;
  --royal-blue-dark: #163d6e;
  --royal-blue-light: #2563ad;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --mid-gray: #e9ecef;
  --border-gray: #dee2e6;
  --text-dark: #1a1a2e;
  --text-mid: #495057;
  --text-light: #6c757d;
  --accent: #e8a020;
  --accent-dark: #c8851a;
  --success: #28a745;
  --danger: #dc3545;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.07);
  --transition: all 0.3s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; scrollbar-gutter: stable; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

/* === UTILITIES === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,160,32,0.35); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--royal-blue); }

.btn-blue {
  background: var(--royal-blue);
  color: var(--white);
}
.btn-blue:hover { background: var(--royal-blue-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,79,138,0.35); }

.section-title {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 0;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: #f2f3f5;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 32px;
  overflow: visible;
}

.header-nav {
  flex: 1;
  justify-content: center;
}

/* Logo area */
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-logo {
  height: 233px;
  width: auto;
}

.header-title-img {
  height: 36px;
  width: auto;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  color: #1a2535;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--royal-blue);
  background: rgba(27,79,138,0.08);
}

/* Contact button with tooltip */
.contact-btn-wrapper {
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--royal-blue);
  border: 2px solid var(--royal-blue);
  border-radius: 10px;
  padding: 10px 18px;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.contact-btn:hover {
  background: #163f6e;
  border-color: #163f6e;
}

.contact-btn-icon {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-btn-icon svg {
  width: 11px;
  height: 11px;
  fill: white;
}

.contact-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.contact-btn-text span:first-child {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-btn-text span:last-child {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  padding: 28px;
  width: 360px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  border-top: 3px solid var(--royal-blue);
  pointer-events: none;
}

.contact-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  right: 24px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--royal-blue);
}

.contact-btn-wrapper:hover .contact-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.contact-dropdown h3 {
  color: var(--royal-blue);
  font-size: 1.15rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.contact-dropdown-info {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.8;
}

.contact-dropdown-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--royal-blue);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 12px;
}

.contact-dropdown-phone svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   HERO — PAGE D'ACCUEIL
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-light) 60%, #3a7bd5 100%);
  padding: 40px 0 50px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.hero-title-img {
  height: 140px;
  width: auto;
  margin: 0 auto 40px;
  display: block;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-services {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-services span {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
  padding: 0 16px;
  position: relative;
  white-space: nowrap;
}

.hero-services span:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.4);
}

.hero-search {
  max-width: 620px;
  margin: 0 auto;
}

.search-bar {
  display: flex;
  background: var(--white);
  border-radius: 50px;
  padding: 6px 6px 6px 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  gap: 8px;
  align-items: center;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--text-dark);
  font-family: var(--font);
  background: transparent;
}

.search-bar input::placeholder { color: var(--text-light); }

.search-bar button {
  background: var(--royal-blue);
  color: white;
  border: none;
  border-radius: 40px;
  padding: 10px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  white-space: nowrap;
}

.search-bar button:hover { background: var(--royal-blue-dark); }

.search-bar button svg {
  width: 16px;
  height: 16px;
  fill: white;
}

/* =============================================
   SERVICES BOXES — PAGE D'ACCUEIL
   ============================================= */
.services-section {
  padding: 40px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 24px;
}

.service-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-gray);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--royal-blue-light);
}

.service-card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #dde4ee 0%, #c8d4e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-card-img img,
.service-card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  width: 100%;
}

.service-card-img-placeholder svg {
  width: 64px;
  height: 64px;
  fill: var(--royal-blue);
  opacity: 0.35;
}

.service-icon-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  background: var(--royal-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(27,79,138,0.4);
}

.service-icon-badge svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.service-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  text-align: center;
}

.service-card-body p {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--royal-blue);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  fill: var(--royal-blue);
  transition: var(--transition);
}

.service-card:hover .service-card-link { color: var(--royal-blue-light); }
.service-card:hover .service-card-link svg { transform: translateX(4px); }

/* Overlay hover effect */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,79,138,0.03), rgba(27,79,138,0));
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.service-card:hover::after { opacity: 1; }

/* =============================================
   SECTION MANDAT DE RECHERCHE
   ============================================= */
.mandat-section {
  background: var(--light-gray);
  padding: 80px 0;
}

.mandat-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.mandat-inner h2 {
  color: var(--royal-blue);
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.mandat-inner p {
  color: var(--text-mid);
  margin-bottom: 36px;
  font-size: 1rem;
}

.mandat-form {
  background: var(--white);
  padding: 36px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border-gray);
  border-radius: var(--border-radius-sm);
  font-size: 0.93rem;
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(27,79,138,0.1);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-submit {
  margin-top: 24px;
  text-align: center;
}

/* =============================================
   PAGE VOITURES — FILTRES
   ============================================= */
.vehicles-page {
  background: var(--light-gray);
  min-height: 80vh;
}

.vehicles-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  padding: 40px 0;
  align-items: start;
}

/* Filters sidebar */
.filters-sidebar {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
  position: sticky;
  top: 96px;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-gray);
}

.filters-header h3 {
  font-size: 1rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filters-header h3 svg {
  width: 18px;
  height: 18px;
  fill: var(--royal-blue);
}

.filter-reset {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font);
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition);
}
.filter-reset:hover { color: var(--danger); background: rgba(220,53,69,0.06); }

.filter-group {
  margin-bottom: 22px;
}

.filter-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-group-title svg {
  width: 14px;
  height: 14px;
  fill: var(--royal-blue);
  opacity: 0.7;
}

.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="number"] {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border-gray);
  border-radius: var(--border-radius-sm);
  font-size: 0.88rem;
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(27,79,138,0.08);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border-gray);
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}

.filter-chip:hover { border-color: var(--royal-blue); color: var(--royal-blue); }
.filter-chip.active {
  background: var(--royal-blue);
  border-color: var(--royal-blue);
  color: white;
}

.range-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.range-group input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border-gray);
  border-radius: var(--border-radius-sm);
  font-size: 0.88rem;
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.range-group input:focus {
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(27,79,138,0.08);
}

/* Results area */
.vehicles-results {
  min-width: 0;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-mid);
}

.results-count strong { color: var(--text-dark); }

.sort-select {
  padding: 8px 14px;
  border: 1.5px solid var(--border-gray);
  border-radius: var(--border-radius-sm);
  font-size: 0.88rem;
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}
.sort-select:focus { border-color: var(--royal-blue); }

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Car card */
.car-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-gray);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-color: #c8d4e8;
}

.car-card-img {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #dde4ee 0%, #c8d4e8 100%);
  object-fit: cover;
  position: relative;
  overflow: hidden;
}

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

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

.car-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #e8edf5 0%, #d4dcec 100%);
}

.car-card-img-placeholder svg {
  width: 48px;
  height: 48px;
  fill: var(--royal-blue);
  opacity: 0.25;
}

.car-card-img-placeholder span {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

.car-status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.car-status-badge.available { background: rgba(40,167,69,0.9); color: white; }
.car-status-badge.reserved { background: rgba(232,160,32,0.9); color: white; }
.car-status-badge.sold { background: rgba(220,53,69,0.9); color: white; }

.car-card-body { padding: 14px; }

.car-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.car-meta-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-mid);
  background: var(--light-gray);
  padding: 3px 8px;
  border-radius: 20px;
}

.car-meta-tag svg {
  width: 11px;
  height: 11px;
  fill: var(--royal-blue);
  opacity: 0.7;
  flex-shrink: 0;
}

.car-card-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--royal-blue);
}

.car-card-price sup {
  font-size: 0.7rem;
  font-weight: 600;
  vertical-align: super;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}

.no-results svg {
  width: 64px;
  height: 64px;
  fill: var(--border-gray);
  margin: 0 auto 16px;
}

.no-results h3 { color: var(--text-mid); font-size: 1.1rem; margin-bottom: 8px; }
.no-results p { font-size: 0.9rem; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.page-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--border-gray);
  background: var(--white);
  color: var(--text-mid);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
}

.page-btn:hover, .page-btn.active {
  border-color: var(--royal-blue);
  background: var(--royal-blue);
  color: white;
}

.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-btn:disabled:hover { border-color: var(--border-gray); background: var(--white); color: var(--text-mid); }

/* =============================================
   PAGE VOITURE DETAIL
   ============================================= */
.car-detail-page { padding: 40px 0 80px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.88rem;
  color: var(--text-light);
}

.breadcrumb a { color: var(--royal-blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb svg { width: 12px; height: 12px; fill: var(--text-light); }

.car-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.car-gallery { border-radius: var(--border-radius); overflow: hidden; }

.gallery-main {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, #dde4ee, #c8d4e8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

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

.gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 80px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--royal-blue); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.car-detail-info { position: sticky; top: 96px; }

.car-detail-title { font-size: 1.8rem; margin-bottom: 8px; }

.car-detail-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--royal-blue);
  margin-bottom: 20px;
}

.car-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.spec-item {
  background: var(--light-gray);
  border-radius: var(--border-radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.spec-item svg {
  width: 20px;
  height: 20px;
  fill: var(--royal-blue);
  opacity: 0.8;
  flex-shrink: 0;
}

.spec-item-data { display: flex; flex-direction: column; }
.spec-item-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); font-weight: 600; }
.spec-item-value { font-size: 0.92rem; font-weight: 700; color: var(--text-dark); }

.car-description {
  background: var(--light-gray);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 20px;
}

.car-description h4 { font-size: 1rem; margin-bottom: 10px; color: var(--text-dark); }
.car-description p { font-size: 0.92rem; color: var(--text-mid); line-height: 1.7; }

.car-features {
  margin-bottom: 24px;
}

.car-features h4 { font-size: 1rem; margin-bottom: 12px; }

/* ---- Simulateur financement ---- */
.btn-financement-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 11px 16px;
  background: rgba(27,79,138,0.07);
  color: var(--royal-blue);
  border: 1.5px solid rgba(27,79,138,0.18);
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.btn-financement-toggle:hover,
.btn-financement-toggle.active {
  background: rgba(27,79,138,0.13);
  border-color: var(--royal-blue);
}
.financement-panel {
  margin-top: 14px;
  padding: 18px;
  background: #f7f9fd;
  border: 1.5px solid rgba(27,79,138,0.12);
  border-radius: 10px;
}
.financement-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(27,79,138,0.07);
  gap: 12px;
}
.financement-row:last-of-type { border-bottom: none; }
.financement-row label {
  font-size: 0.88rem;
  color: var(--text-mid);
  flex-shrink: 0;
}
.financement-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}
.financement-highlight .financement-value {
  color: var(--royal-blue);
  font-size: 1.05rem;
}
.financement-result .financement-value {
  color: var(--accent);
  font-size: 1.15rem;
}
.financement-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-mid);
}
.financement-input-wrap input,
.financement-input-wrap select {
  padding: 6px 10px;
  border: 1.5px solid #d0d9e8;
  border-radius: 6px;
  font-size: 0.9rem;
  width: 110px;
  outline: none;
  transition: border-color .2s;
}
.financement-input-wrap input:focus,
.financement-input-wrap select:focus { border-color: var(--royal-blue); }
.financement-separator {
  border-top: 1.5px dashed rgba(27,79,138,0.15);
  margin: 12px 0 4px;
}
.financement-dureemin {
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 0.88rem;
  margin-top: 8px;
}
.financement-dureemin.ok {
  background: rgba(34,197,94,0.1);
  color: #166534;
  border: 1px solid rgba(34,197,94,0.25);
}
.financement-dureemin.ko {
  background: rgba(239,68,68,0.08);
  color: #991b1b;
  border: 1px solid rgba(239,68,68,0.2);
}
.financement-mention {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.5;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  background: rgba(27,79,138,0.08);
  color: var(--royal-blue);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-page { padding: 60px 0 80px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form-wrapper h2 { color: var(--royal-blue); margin-bottom: 8px; }
.contact-form-wrapper p { color: var(--text-mid); margin-bottom: 32px; font-size: 0.95rem; }

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
  width: 100%;
}

.contact-socials {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--border-gray);
  color: var(--text-dark);
}

.social-link:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.social-link.whatsapp { border-color: #25d366; color: #25d366; }
.social-link.whatsapp:hover { background: #25d366; color: white; }

.social-link.facebook { border-color: #1877f2; color: #1877f2; }
.social-link.facebook:hover { background: #1877f2; color: white; }

.social-link.instagram { border-color: #e1306c; color: #e1306c; }
.social-link.instagram:hover { background: #e1306c; color: white; }

.social-link svg { width: 22px; height: 22px; fill: currentColor; }

.contact-map-wrapper h2 { color: var(--royal-blue); margin-bottom: 8px; }
.contact-map-wrapper p { color: var(--text-mid); margin-bottom: 20px; font-size: 0.95rem; }

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 420px;
  border: 1px solid var(--border-gray);
}

#contact-map { height: 100%; }

.map-info-card {
  background: var(--light-gray);
  border-radius: var(--border-radius-sm);
  padding: 16px 20px;
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.map-info-card svg {
  width: 20px;
  height: 20px;
  fill: var(--royal-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.map-info-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.6;
}

/* =============================================
   PAGE HERO — sous pages
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--royal-blue) 0%, var(--royal-blue-light) 100%);
  padding: 52px 0;
  color: white;
}

.page-hero h1 { font-size: 2.2rem; margin-bottom: 8px; }
.page-hero p { opacity: 0.8; font-size: 1rem; }

/* =============================================
   REPROGRAMMATION & LAVAGE PAGES
   ============================================= */
.service-page { padding: 60px 0 80px; }

.service-info-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  margin-bottom: 60px;
  align-items: center;
}

.service-info-content h2 { font-size: 1.9rem; margin-bottom: 16px; color: var(--royal-blue); }
.service-info-content p { color: var(--text-mid); line-height: 1.8; margin-bottom: 16px; }

.service-pricing {
  background: var(--light-gray);
  border-radius: var(--border-radius);
  padding: 28px;
}

.service-pricing h3 { font-size: 1.1rem; margin-bottom: 20px; color: var(--royal-blue); }

.pricing-list { display: flex; flex-direction: column; gap: 12px; }

.pricing-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
}

.pricing-item-name { font-weight: 500; color: var(--text-dark); }
.pricing-item-price { font-weight: 700; color: var(--royal-blue); }

/* =============================================
   HISTOIRE / AVIS / PARTENAIRES PAGES
   ============================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.team-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-gray);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-blue), var(--royal-blue-light));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar svg { width: 40px; height: 40px; fill: white; opacity: 0.85; }

.team-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.team-card .team-role { font-size: 0.85rem; color: var(--royal-blue); font-weight: 600; margin-bottom: 12px; }
.team-card p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.review-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-gray);
  transition: var(--transition);
}

.review-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

.review-stars { display: flex; gap: 4px; margin-bottom: 12px; }
.review-stars svg { width: 16px; height: 16px; fill: var(--accent); }

.review-text { font-size: 0.9rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 16px; }

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-blue), #3a7bd5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
}

.review-author-name { font-size: 0.88rem; font-weight: 700; color: var(--text-dark); }
.review-author-date { font-size: 0.78rem; color: var(--text-light); }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.partner-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
  min-height: 120px;
  text-align: center;
}

.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--royal-blue-light); }

.partner-card-name { font-size: 0.88rem; font-weight: 600; color: var(--text-mid); }

.partner-logo-placeholder {
  width: 56px;
  height: 56px;
  background: var(--light-gray);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-placeholder svg { width: 28px; height: 28px; fill: var(--border-gray); }

/* =============================================
   ADMIN PANEL
   ============================================= */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
}

.admin-login-box {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
  text-align: center;
}

.admin-login-box .admin-logo { height: 52px; margin: 0 auto 20px; }

.admin-login-box h2 { font-size: 1.5rem; margin-bottom: 6px; color: var(--text-dark); }
.admin-login-box p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 28px; }

.admin-login-box .form-group { text-align: left; margin-bottom: 16px; }

.admin-login-error {
  background: rgba(220,53,69,0.08);
  border: 1px solid rgba(220,53,69,0.3);
  color: var(--danger);
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}

.admin-container { display: none; }

.admin-header {
  background: var(--royal-blue);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.admin-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
}

.admin-header-brand img { height: 38px; }

.admin-header-actions { display: flex; align-items: center; gap: 12px; }

.admin-logout {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-logout:hover { background: rgba(255,255,255,0.22); }
.admin-logout svg { width: 14px; height: 14px; fill: white; }

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 64px);
}

.admin-sidebar {
  background: var(--white);
  border-right: 1px solid var(--border-gray);
  padding: 24px 0;
}

.admin-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-mid);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.admin-sidebar-nav a:hover { background: var(--light-gray); color: var(--text-dark); }

.admin-sidebar-nav a.active {
  color: var(--royal-blue);
  background: rgba(27,79,138,0.06);
  border-left-color: var(--royal-blue);
  font-weight: 600;
}

.admin-sidebar-nav a svg { width: 18px; height: 18px; fill: currentColor; opacity: 0.7; }

.admin-main { background: var(--light-gray); padding: 32px; }

.admin-section { display: none; }
.admin-section.active { display: block; }

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.admin-section-header h2 { font-size: 1.4rem; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg { width: 24px; height: 24px; fill: white; }
.stat-icon.blue { background: var(--royal-blue); }
.stat-icon.green { background: var(--success); }
.stat-icon.orange { background: var(--accent); }
.stat-icon.red { background: var(--danger); }

.stat-data { flex: 1; }
.stat-number { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }

/* Admin vehicle form */
.admin-form-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
  margin-bottom: 28px;
}

.admin-form-card h3 { font-size: 1.05rem; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-gray); }

.form-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--royal-blue);
  margin-bottom: 16px;
  margin-top: 24px;
}

.form-section-title:first-child { margin-top: 0; }

.photo-upload-area {
  border: 2px dashed var(--border-gray);
  border-radius: var(--border-radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--light-gray);
}

.photo-upload-area:hover { border-color: var(--royal-blue); background: rgba(27,79,138,0.03); }

.photo-upload-area svg { width: 40px; height: 40px; fill: var(--border-gray); margin: 0 auto 12px; }
.photo-upload-area p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 4px; }
.photo-upload-area span { font-size: 0.8rem; color: var(--text-light); }

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.photo-preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--mid-gray);
}

.photo-preview-item img { width: 100%; height: 100%; object-fit: cover; }

.photo-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(220,53,69,0.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-preview-remove svg { width: 12px; height: 12px; fill: white; }

.photo-preview-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--accent);
  color: white;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
  pointer-events: none;
}

.photo-move-btns {
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

.photo-move-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(27,79,138,0.8);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.photo-move-btn:hover:not(:disabled) { background: var(--royal-blue); }
.photo-move-btn:disabled { opacity: 0.25; cursor: default; }
.photo-move-btn svg { width: 14px; height: 14px; fill: white; }

/* Admin vehicles table */
.admin-vehicles-table {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  background: var(--light-gray);
  padding: 13px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-gray);
}

.admin-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border-gray);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--light-gray); }

.admin-table .car-thumb {
  width: 52px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--mid-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.admin-table .car-thumb img { width: 100%; height: 100%; object-fit: cover; }

.admin-table .car-thumb-placeholder {
  width: 52px;
  height: 36px;
  border-radius: 6px;
  background: var(--mid-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-table .car-thumb-placeholder svg {
  width: 20px;
  height: 20px;
  fill: var(--text-light);
  opacity: 0.5;
}

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

.badge-available { background: rgba(40,167,69,0.12); color: var(--success); }
.badge-reserved { background: rgba(232,160,32,0.12); color: var(--accent-dark); }
.badge-sold { background: rgba(220,53,69,0.12); color: var(--danger); }

.admin-actions { display: flex; gap: 8px; }

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.action-btn svg { width: 15px; height: 15px; }

.action-btn.edit { background: rgba(27,79,138,0.1); color: var(--royal-blue); }
.action-btn.edit svg { fill: var(--royal-blue); }
.action-btn.edit:hover { background: var(--royal-blue); }
.action-btn.edit:hover svg { fill: white; }

.action-btn.delete { background: rgba(220,53,69,0.1); }
.action-btn.delete svg { fill: var(--danger); }
.action-btn.delete:hover { background: var(--danger); }
.action-btn.delete:hover svg { fill: white; }

.action-btn.featured { background: rgba(180,180,180,0.15); }
.action-btn.featured svg { fill: #bbb; }
.action-btn.featured:hover { background: rgba(232,160,32,0.15); }
.action-btn.featured:hover svg { fill: var(--accent); }
.action-btn.featured.active { background: rgba(232,160,32,0.15); }
.action-btn.featured.active svg { fill: var(--accent); }
.action-btn.featured.active:hover { background: rgba(220,53,69,0.1); }
.action-btn.featured.active:hover svg { fill: var(--danger); }

.custom-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(27,79,138,0.08);
  border: 1px solid rgba(27,79,138,0.2);
  color: var(--royal-blue);
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 20px;
  margin: 3px 4px 3px 0;
}
.custom-feature-tag button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--danger);
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
}

/* Combobox autocomplete custom */
.combobox-wrapper { position: relative; }
.combobox-wrapper input { width: 100%; }
.combobox-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: white;
  border: 1.5px solid var(--royal-blue);
  border-radius: 8px;
  max-height: 210px;
  overflow-y: auto;
  z-index: 200;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  scrollbar-width: thin;
  scrollbar-color: var(--border-gray) transparent;
}
.combobox-dropdown.open { display: block; }
.combobox-option {
  padding: 9px 13px;
  cursor: pointer;
  font-size: .9rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--light-gray);
}
.combobox-option:last-child { border-bottom: none; }
.combobox-option:hover,
.combobox-option.active { background: rgba(27,79,138,0.07); color: var(--royal-blue); }
.combobox-no-result {
  padding: 9px 13px;
  font-size: .85rem;
  color: var(--text-light);
  font-style: italic;
}

.features-checkboxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-mid);
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--royal-blue);
  cursor: pointer;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--text-dark);
  color: white;
  padding: 14px 22px;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.35s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* Bouton WhatsApp flottant */
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  border-radius: 32px;
  padding: 0 18px 0 14px;
  height: 52px;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: wa-pulse 2.2s ease-out infinite;
}
.wa-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 22px rgba(37,211,102,0.6);
  animation: none;
}
.wa-float svg { width: 26px; height: 26px; flex-shrink: 0; }
.wa-float-label {
  color: white;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .wa-float { padding: 0; width: 52px; height: 52px; border-radius: 50%; justify-content: center; }
  .wa-float-label { display: none; }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(2px);
}

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

.modal {
  background: var(--white);
  border-radius: var(--border-radius);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: scale(0.95);
  transition: var(--transition);
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-gray);
}

.modal-header h3 { font-size: 1.2rem; color: var(--text-dark); }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: var(--light-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover { background: var(--mid-gray); }
.modal-close svg { width: 16px; height: 16px; fill: var(--text-mid); }

.modal-body { padding: 28px; }
.modal-footer { padding: 20px 28px; border-top: 1px solid var(--border-gray); display: flex; gap: 12px; justify-content: flex-end; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--royal-blue);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand img { height: 48px; margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  opacity: 0.75;
  max-width: 260px;
}

.footer-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

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

.footer-links a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
  transition: var(--transition);
}

.footer-links a:hover { color: white; }
.footer-links a:hover::before { background: var(--accent); }

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: rgba(255,255,255,0.5);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-bottom a:hover { color: white; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-fade-up {
  animation: fadeInUp 0.6s ease both;
}

.animate-fade-up:nth-child(2) { animation-delay: 0.1s; }
.animate-fade-up:nth-child(3) { animation-delay: 0.2s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
  .vehicles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .vehicles-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .vehicles-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .car-detail-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .header-logo { height: 150px; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero-title-img { height: 120px; }
  .header-logo { height: 108px; }
  .header-nav { display: none; }
  .contact-btn-wrapper { display: none; }
  .menu-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .vehicles-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .reviews-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .features-checkboxes { grid-template-columns: repeat(2, 1fr); }
  .contact-dropdown { display: none; }
  .car-card-img { height: 200px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header-logo { height: 84px; }
  .hero-title-img { height: 90px; }
  .vehicles-grid { grid-template-columns: 1fr; }
  .car-specs-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr; }
  .hero-services { flex-direction: column; gap: 4px; }
  .hero-services span::after { display: none; }
  .search-bar { padding: 4px 4px 4px 16px; }
  .search-bar button { padding: 10px 16px; font-size: 0.82rem; }
  .service-card-img { height: 180px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.mobile-nav-overlay.open { display: block; }

.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: var(--white);
  z-index: 1001;
  transition: left 0.3s ease;
  padding: 0;
  overflow-y: auto;
}

.mobile-nav.open { left: 0; }

.mobile-nav-header {
  background: var(--royal-blue);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-header img { height: 40px; }

.mobile-nav-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-links {
  padding: 16px 0;
}

.mobile-nav-links a {
  display: block;
  padding: 14px 24px;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-gray);
  transition: var(--transition);
}

.mobile-nav-links a:hover { background: var(--light-gray); color: var(--royal-blue); }

/* =============================================
   SIMULATEUR REPROGRAMMATION
   ============================================= */

.repro-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  background: var(--white);
  border: 2px solid var(--border-gray);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.repro-brand-card:hover {
  border-color: var(--royal-blue);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.repro-brand-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.repro-brand-card span {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-dark);
}

.repro-choice-card {
  padding: 16px 20px;
  background: var(--white);
  border: 2px solid var(--border-gray);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  color: var(--text-dark);
  text-align: center;
}
.repro-choice-card:hover {
  border-color: var(--royal-blue);
  background: #f0f5ff;
  color: var(--royal-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.repro-back-btn {
  background: var(--light-gray);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  white-space: nowrap;
}
.repro-back-btn:hover {
  background: var(--royal-blue);
  color: white;
  border-color: var(--royal-blue);
}

.repro-stage-tab {
  padding: 10px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
  white-space: nowrap;
  margin-bottom: -2px;
}
.repro-stage-tab:hover { color: var(--royal-blue); }
.repro-stage-tab.active {
  color: var(--royal-blue);
  border-bottom-color: var(--royal-blue);
}

.repro-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.repro-table th {
  background: var(--royal-blue);
  color: white;
  padding: 12px 20px;
  text-align: left;
  font-size: .85rem;
  font-weight: 600;
}
.repro-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-gray);
  font-size: .9rem;
}
.repro-table tr:last-child td { border-bottom: none; }
.repro-table tr:nth-child(even) td { background: var(--light-gray); }

.repro-gain { color: #16a34a; font-weight: 700; font-size: 1rem; }

.repro-gain-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 24px;
  background: var(--light-gray);
  border-radius: 10px;
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.repro-logo-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.repro-logo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--royal-blue);
  color: white;
  font-weight: 800;
  font-size: .85rem;
  border-radius: 50%;
  letter-spacing: .5px;
}
.repro-logo-wrap img {
  position: relative;
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0;
  transition: opacity .2s;
  background: transparent;
}

/* =============================================
   PRISE DE RDV LAVAGE — BOUTONS PRESTATION
   ============================================= */
.rdv-service-btn {
  padding: 10px 22px;
  background: var(--white);
  border: 2px solid var(--border-gray);
  border-radius: 30px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-mid);
  transition: var(--transition);
}
.rdv-service-btn:hover {
  border-color: var(--royal-blue);
  color: var(--royal-blue);
}
.rdv-service-btn.active {
  background: var(--royal-blue);
  border-color: var(--royal-blue);
  color: white;
}

/* ===== CARTES RDV SERVICE ===== */
.rdv-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 20px;
  background: var(--white);
  border: 2px solid var(--border-gray);
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.rdv-service-card:hover {
  border-color: var(--royal-blue);
  box-shadow: 0 8px 24px rgba(27,79,138,.12);
  transform: translateY(-2px);
}
.rdv-service-card--featured {
  border-color: var(--accent);
  background: #fffbf5;
}
.rdv-service-card--featured:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(232,160,32,.18);
}
.rdv-service-card--outline {
  background: var(--bg-light);
}
.rdv-service-card-badge {
  position: absolute;
  top: -12px;
  background: var(--accent);
  color: white;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
}
.rdv-service-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}
.rdv-service-card-price {
  font-size: .95rem;
  font-weight: 600;
  color: var(--royal-blue);
}
.rdv-service-card-cta {
  margin-top: 4px;
  font-size: .82rem;
  font-weight: 600;
  color: white;
  background: var(--royal-blue);
  padding: 8px 20px;
  border-radius: 8px;
  transition: var(--transition);
}
.rdv-service-card--featured .rdv-service-card-cta {
  background: var(--accent);
}
.rdv-service-card:hover .rdv-service-card-cta {
  opacity: .85;
}
