/* ScanPlaque.fr — Premium styles & animations */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --navy: #020817;
  --navy-light: #0f172a;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 50px rgba(37, 99, 235, 0.12);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo site */

.site-logo {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.site-logo--navbar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  transition: transform var(--transition);
}

.group:hover .site-logo--navbar {
  transform: scale(1.05);
}

.site-logo--footer {
  width: 52px;
  height: 52px;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
}

.site-logo--standalone {
  width: 64px;
  height: 64px;
}

/* Base */

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

::selection {
  background: var(--primary-light);
  color: var(--primary-dark);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Skip link — accessibilité */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: white;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

/* Navbar sticky */

.navbar-sticky {
  transition: box-shadow var(--transition), padding var(--transition), background var(--transition);
}

.navbar-sticky.is-scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Hero radar / scan background */

.hero-scan {
  position: relative;
  overflow: hidden;
}

.hero-scan::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -10%;
  width: 600px;
  height: 600px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.08);
  pointer-events: none;
  animation: radar-ring 4s ease-out infinite;
}

.hero-scan::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 5%;
  width: 400px;
  height: 400px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.radar-sweep {
  position: absolute;
  top: 50%;
  right: 5%;
  width: 320px;
  height: 320px;
  transform: translate(50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.35;
}

.radar-sweep::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(37, 99, 235, 0.15) 60deg, transparent 120deg);
  animation: radar-sweep 6s linear infinite;
}

@keyframes radar-ring {
  0% {
    transform: translateY(-50%) scale(0.85);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-50%) scale(1.15);
    opacity: 0;
  }
}

@keyframes radar-sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Plaque d'immatriculation française — design réaliste SIV */

.plate-search-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 32rem;
}

.plate-fr {
  display: flex;
  align-items: stretch;
  height: clamp(72px, 12vw, 100px);
  border-radius: 6px;
  border: 3.5px solid #111;
  overflow: hidden;
  box-shadow:
    0 3px 0 #000,
    0 6px 20px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  background: #fff;
  cursor: text;
  transition: box-shadow var(--transition), transform var(--transition);
}

.plate-fr:focus-within {
  box-shadow:
    0 3px 0 #000,
    0 8px 28px rgba(0, 51, 153, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.plate-eu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(42px, 8vw, 52px);
  min-width: clamp(42px, 8vw, 52px);
  background: #003399;
  padding: 6px 4px 4px;
  gap: 3px;
}

.star-ring {
  position: relative;
  width: 28px;
  height: 28px;
}

.star-ring span {
  position: absolute;
  color: #ffd700;
  font-size: 6.5px;
  line-height: 1;
}

.star-ring span:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.star-ring span:nth-child(2) { top: 2px; right: 2px; }
.star-ring span:nth-child(3) { top: 50%; right: 0; transform: translateY(-50%); }
.star-ring span:nth-child(4) { bottom: 2px; right: 2px; }
.star-ring span:nth-child(5) { bottom: 0; left: 50%; transform: translateX(-50%); }
.star-ring span:nth-child(6) { bottom: 2px; left: 2px; }
.star-ring span:nth-child(7) { top: 50%; left: 0; transform: translateY(-50%); }
.star-ring span:nth-child(8) { top: 2px; left: 2px; }

.eu-f {
  color: #fff;
  font-size: clamp(13px, 2.5vw, 16px);
  font-weight: 900;
  font-family: 'Arial Black', Arial, sans-serif;
  line-height: 1;
  margin-top: 1px;
}

.plate-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-left: 2px solid #ddd;
  border-right: 2px solid #ddd;
  padding: 0 8px;
  min-width: 0;
}

.plate-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Arial Black', Impact, Arial, sans-serif;
  font-size: clamp(1.5rem, 5.5vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #111;
  text-align: center;
  text-transform: uppercase;
  caret-color: #003399;
  font-variant-numeric: tabular-nums;
}

.plate-input::placeholder {
  color: #ccc;
  letter-spacing: 0.06em;
}

.plate-region {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(42px, 8vw, 52px);
  min-width: clamp(42px, 8vw, 52px);
  background: #003399;
  padding: 5px 3px;
  gap: 3px;
}

.region-emblem {
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.region-emblem svg {
  width: 20px;
  height: 20px;
}

.region-num {
  color: #fff;
  font-size: clamp(11px, 2vw, 13px);
  font-weight: 900;
  font-family: 'Arial Black', Arial, sans-serif;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: opacity 0.3s;
}

.plate-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
}

.btn-analyser {
  width: 100%;
  padding: 0.9rem 1rem;
  background: #003399;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.1s;
}

.btn-analyser:hover {
  background: #0044cc;
}

.btn-analyser:active {
  transform: scale(0.98);
}

.plate-reassurance.reassurance-bar span::before {
  content: '✓ ';
  color: #003399;
  font-weight: 700;
}

/* Ancien module plaque (pages non migrées) */
.plate-module {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.plate-module:has(.plate-module-row) {
  display: flex;
  flex-direction: column;
}

.plate-module-row {
  display: flex;
  min-width: 0;
  border-bottom: 1px solid var(--gray-200);
}

.plate-module .plate-btn {
  width: 100%;
  text-align: center;
}

.plate-badge {
  background: linear-gradient(180deg, #003399 0%, #002266 100%);
  position: relative;
}

.plate-btn {
  position: relative;
  overflow: hidden;
  transition: background var(--transition), transform 0.15s ease;
}

.plate-btn:active {
  transform: scale(0.98);
}

/* Stat cards */

.stat-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.15);
}

.stat-card .stat-value {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Service cards */

.service-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.2);
}

.service-card:hover .service-icon {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.service-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: gap var(--transition), color var(--transition);
}

.service-link:hover {
  gap: 0.6rem;
  color: var(--primary-dark);
}

/* Panne items */

.panne-item {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.2s ease;
  cursor: pointer;
}

.panne-item:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateX(4px);
}

.panne-item:hover .panne-arrow {
  transform: translateX(4px);
}

.panne-arrow {
  transition: transform var(--transition);
  opacity: 0.7;
}

/* Why cards */

.why-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: box-shadow var(--transition);
}

.why-card:hover {
  box-shadow: var(--shadow-md);
}

.why-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--gray-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid var(--gray-200);
}

/* Testimonials slider */

.testimonial-slider {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: 0.25rem;
}

.testimonial-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}

.testimonial-dot.is-active {
  background: var(--primary);
  transform: scale(1.25);
}

.stars {
  color: #fbbf24;
  letter-spacing: 2px;
}

/* Scroll reveal — visible par défaut si JS absent */

.reveal {
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
}

html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Buttons */

.btn-primary {
  background: var(--primary);
  color: white;
  font-weight: 700;
  border-radius: var(--radius-lg);
  transition: background var(--transition), transform 0.15s ease, box-shadow var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Mobile menu */

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.is-open {
  max-height: 600px;
}

/* French flag */

.flag-fr {
  display: flex;
  width: 22px;
  height: 14px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.flag-fr span:nth-child(1) { background: #0055a4; flex: 1; }
.flag-fr span:nth-child(2) { background: #fff; flex: 1; }
.flag-fr span:nth-child(3) { background: #ef4135; flex: 1; }

/* Footer */

.footer-link {
  color: #94a3b8;
  transition: color var(--transition);
}

.footer-link:hover {
  color: white;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.social-icon:hover {
  background: rgba(37, 99, 235, 0.2);
  border-color: var(--primary);
  color: white;
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .hero-scan::before,
  .radar-sweep::before,
  .testimonial-track {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Print */

@media print {
  .topbar,
  .navbar-sticky,
  .radar-sweep,
  .mobile-menu-btn { display: none !important; }
}

/* ── Résultat véhicule (recherche plaque) ── */

.vehicle-result {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  max-width: 48rem;
  margin: 0 auto;
}

.demo-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
}

.vehicle-header {
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--gray-200);
}

.vehicle-logo {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  padding: 0.5rem;
  border: 1px solid var(--gray-200);
}

.vehicle-logo-placeholder {
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.vehicle-plate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #003399 0%, #002266 100%);
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  border: 2px solid #001a66;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.vehicle-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0;
}

.vehicle-specs-sections {
  margin-bottom: 1.75rem;
}

.vehicle-specs-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-100);
}

.vehicle-specs-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.vehicle-specs-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.vehicle-specs-section .vehicle-specs-grid {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .vehicle-specs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.vehicle-spec {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: border-color var(--transition);
}

.vehicle-spec:hover {
  border-color: rgba(37, 99, 235, 0.2);
}

.vehicle-spec-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.vehicle-spec-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  margin-bottom: 0.15rem;
}

.vehicle-spec-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gray-800);
  word-break: break-all;
}

.vehicle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding-top: 0.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--gray-200);
}

/* Onglet Téléchargement — en bas de la fiche */

.vehicle-bottom-tabs {
  margin-top: 0.5rem;
}

.vehicle-bottom-tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.vehicle-bottom-tabs-nav .vehicle-tab {
  flex: none;
  padding: 0.65rem 1.25rem;
}

.vehicle-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.vehicle-tab:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.6);
}

.vehicle-tab.is-active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.vehicle-tab-panel {
  display: none;
}

.vehicle-tab-panel.is-active {
  display: block;
  animation: tabFadeIn 0.35s ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.vehicle-download-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vehicle-download-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform 0.2s ease;
}

.vehicle-download-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.vehicle-download-card--pdf {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border-color: rgba(37, 99, 235, 0.2);
}

.vehicle-download-card--pdf:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
}

.vehicle-download-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}

.vehicle-download-card:hover .vehicle-download-icon {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.vehicle-download-icon--pdf {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.vehicle-download-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--gray-800);
  margin-bottom: 0.15rem;
}

.vehicle-download-desc {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.4;
}

.vehicle-download-arrow {
  margin-left: auto;
  color: var(--gray-400);
  flex-shrink: 0;
  transition: color var(--transition), transform var(--transition);
}

.vehicle-download-card:hover .vehicle-download-arrow {
  color: var(--primary);
  transform: translateX(3px);
}

/* Breadcrumb SEO */

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.breadcrumb-list li + li::before {
  content: '/';
  margin-right: 0.35rem;
  color: var(--gray-400);
}

.breadcrumb-list a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

.breadcrumb-list li[aria-current='page'] {
  color: var(--gray-600);
  font-weight: 600;
}

/* Estimation IA */

.estimation-form {
  box-shadow: var(--shadow-md);
}

.estimation-feature {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.estimation-result {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
}

.estimation-result-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.estimation-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.estimation-price-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.25rem;
  margin-bottom: 1.5rem;
}

.estimation-price-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .estimation-price-values {
    grid-template-columns: 1fr 1.4fr 1fr;
    align-items: end;
  }
}

.estimation-price-item--main {
  order: -1;
}

@media (min-width: 640px) {
  .estimation-price-item--main {
    order: 0;
  }
}

.estimation-price-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  margin-bottom: 0.35rem;
}

.estimation-price-amount {
  font-weight: 800;
  color: var(--gray-600);
  font-size: 1.25rem;
}

.estimation-price-amount--main {
  color: var(--primary);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.1;
}

.estimation-range-bar {
  margin-top: 1.25rem;
  padding: 0 0.5rem;
}

.estimation-range-track {
  position: relative;
  height: 6px;
  background: linear-gradient(90deg, #cbd5e1 0%, var(--primary) 50%, #cbd5e1 100%);
  border-radius: 999px;
}

.estimation-range-marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border: 2px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.estimation-block {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.estimation-block-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--gray-800);
  margin-bottom: 0.65rem;
}

.estimation-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.estimation-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.estimation-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.estimation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding-top: 0.5rem;
}

.estimation-siv-data {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.estimation-siv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1rem;
}

@media (min-width: 640px) {
  .estimation-siv-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.estimation-siv-item span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  margin-bottom: 0.1rem;
}

.estimation-siv-item strong {
  font-size: 0.875rem;
  color: var(--gray-800);
}

.demarches-step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Portails officiels (Histovec, SIV, ANTS) */

.official-services-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1e40af;
  background: #dbeafe;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.official-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .official-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.official-service-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.official-service-card--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
}

.official-service-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.official-service-sub {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

.official-service-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--gray-800);
}

.official-service-desc {
  font-size: 0.8125rem;
  color: var(--gray-500);
  line-height: 1.45;
  flex: 1;
  margin-bottom: 0.5rem;
}

.official-service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  margin-top: auto;
}

.official-service-link.official-service-btn {
  color: var(--primary);
  border: 1px solid var(--primary);
  background: white;
}

.official-service-link.official-service-btn:hover {
  background: var(--primary-light);
}

.official-copy-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.official-copy-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  background: var(--gray-50);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.official-copy-item span {
  font-weight: 600;
  color: var(--gray-500);
  min-width: 4.5rem;
}

.official-copy-item code {
  flex: 1;
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  color: var(--gray-800);
}

.official-copy-btn {
  border: none;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.375rem;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--gray-500);
  display: flex;
}

.official-copy-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.vehicle-official-strip {
  margin-bottom: 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.vehicle-official-strip-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--gray-700);
  margin-bottom: 0.65rem;
}

.vehicle-official-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vehicle-official-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  background: white;
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 999px;
  text-decoration: none;
  transition: background var(--transition);
}

.vehicle-official-link:hover {
  background: var(--primary-light);
}

.vehicle-official-link--external {
  color: var(--gray-600);
  border-color: var(--gray-200);
}

.siv-official-block {
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.siv-official-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1e40af;
  background: #dbeafe;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.siv-official-vehicle {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
}

.demarches-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.demarches-step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-primary.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.btn-primary.is-loading .btn-spinner {
  animation: spin 0.8s linear infinite;
}

/* CTA principal — contraste élevé */
.btn-cta {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #fff;
  border-radius: 0.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.35);
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.45);
}

.btn-cta:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 2px;
}

.partner-badge:hover i {
  transform: scale(1.05);
}

.partner-badge i {
  transition: transform 0.2s ease;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Blog article typography */
.blog-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.blog-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

/* Mobile optimizations — Core Web Vitals & UX */
@media (max-width: 639px) {
  .hero-scan {
    padding-bottom: 0.5rem;
  }

  .hero-scan .plate-search-form {
    position: sticky;
    top: 72px;
    z-index: 40;
    margin-bottom: 0.5rem;
  }

  .stat-card {
    padding: 1rem;
  }

  section.py-16 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .faq-item summary {
    font-size: 1rem;
    padding: 1rem 1.25rem;
  }
}

@media (max-width: 1279px) {
  .navbar-sticky + main .plate-search-form {
    scroll-margin-top: 80px;
  }
}

/* Breadcrumbs */
.breadcrumb-wrap {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin-left: 0.5rem;
  color: #cbd5e1;
}

.breadcrumb-item a {
  color: #2563eb;
  font-weight: 600;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #0f172a;
  font-weight: 600;
}

/* Réassurance sous formulaire plaque */
.reassurance-bar {
  display: flex;
  gap: 0.75rem 1.25rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.75rem;
}

.reassurance-bar span {
  white-space: nowrap;
}

#searchHistory {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #64748b;
}

#searchHistory ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

#searchHistory a {
  color: #2563eb;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: #eff6ff;
  border-radius: 0.375rem;
}

/* Sticky CTA mobile */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
  gap: 0.5rem;
  align-items: center;
}

.sticky-cta input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 700;
}

@media (max-width: 768px) {
  .sticky-cta.is-visible {
    display: flex;
  }
}

/* Impression rapport */
@media print {
  .topbar,
  #navbar,
  .mobile-menu,
  #mobile-menu-btn,
  .sticky-cta,
  .btn-print,
  #searchHistory,
  .reassurance-bar,
  .breadcrumb-wrap,
  footer,
  .skip-link {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .vehicle-result,
  .rapport {
    page-break-inside: avoid;
  }
}

/* ── Pages estimation par marque ── */
.modeles-grid,
.marques-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.modeles-grid a,
.marques-links a {
  display: block;
  padding: 0.5rem 0.75rem;
  background: #f0f4ff;
  border-radius: 8px;
  color: #003399;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.modeles-grid a:hover,
.marques-links a:hover {
  background: #dbeafe;
}

/* ── Glossaire ── */
.glossaire-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.glossaire-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: #003399;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
}

.glossaire-section {
  margin-bottom: 2rem;
}

.glossaire-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #003399;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid #dbeafe;
}

.glossaire-section dl {
  margin: 0;
}

.glossaire-section dt {
  font-weight: 700;
  color: #0f172a;
  margin-top: 1rem;
}

.glossaire-section dd {
  margin: 0.35rem 0 0;
  color: #475569;
  line-height: 1.6;
}

.glossaire-section dd a {
  color: #003399;
  font-weight: 600;
}

/* ── Comparateur ── */
.comparateur-inputs {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.comparateur-col {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comparateur-col label {
  font-weight: 700;
  color: #0f172a;
}

.comparateur-plaque-input {
  padding: 0.85rem 1rem;
  border: 2px solid #003399;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparateur-vs {
  font-size: 1.5rem;
  font-weight: 900;
  color: #003399;
  padding: 0 0.5rem 0.85rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.compare-table thead th {
  background: #003399;
  color: #fff;
  font-weight: 700;
}

.compare-table tbody tr:nth-child(even) {
  background: #f5f7ff;
}

.btn-comparer {
  margin-top: 1rem;
  padding: 0.85rem 2rem;
  background: #003399;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-comparer:disabled {
  opacity: 0.6;
  cursor: wait;
}

.compare-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* ── Newsletter ── */
.newsletter-block {
  background: #f0f4ff;
  border: 1px solid #d0d9f5;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.newsletter-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.newsletter-text {
  flex: 1;
  min-width: 220px;
}

.newsletter-text h3 {
  color: #003399;
  margin-bottom: 0.4rem;
  font-weight: 800;
}

.newsletter-form {
  flex: 1;
  min-width: 260px;
}

.newsletter-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.newsletter-fields {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.newsletter-fields input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #c0c8e8;
  border-radius: 8px;
  font-size: 0.95rem;
  min-width: 180px;
}

.newsletter-fields button {
  padding: 0.75rem 1.2rem;
  background: #003399;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.newsletter-legal {
  font-size: 0.75rem;
  color: #888;
}

.newsletter-legal a {
  color: #003399;
}

.newsletter-success {
  color: #15803d;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ── Équipe (À propos) ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.team-card {
  padding: 1.5rem;
  border: 1px solid #e8ecf5;
  border-radius: 12px;
  text-align: center;
}

.team-avatar {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.team-card h3 {
  margin-bottom: 0.25rem;
  font-weight: 800;
}

.team-role {
  font-size: 0.85rem;
  color: #003399;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ── Rapport premium ── */
.rapport-premium {
  border: 2px solid #003399;
  border-radius: 12px;
  padding: 1.75rem;
  margin-top: 2rem;
  background: #f8f9ff;
}

.premium-header {
  margin-bottom: 1rem;
}

.premium-badge {
  display: inline-block;
  background: #003399;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.premium-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.premium-price {
  margin-top: 0.25rem;
  font-size: 1.3rem;
}

.premium-price span {
  font-size: 0.85rem;
  color: #888;
  font-weight: 400;
}

.premium-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  padding: 0;
}

.btn-premium {
  width: 100%;
  padding: 0.9rem;
  background: #003399;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.premium-guarantee {
  text-align: center;
  font-size: 0.78rem;
  color: #888;
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .premium-features {
    grid-template-columns: 1fr;
  }
}

