/* Voiture électrique neuve — page-specific components (prefixed vn-) */

/* Hero */
.vn-hero {
  background: var(--bg-gray);
  padding: 28px 24px 64px;
}

.vn-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--navy-muted);
  margin: 0 0 36px;
}
.vn-breadcrumb a {
  color: var(--navy-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.vn-breadcrumb .current { color: var(--navy); font-weight: 600; }

.vn-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px;
  align-items: center;
}

.vn-hero-grid h1 {
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  text-wrap: balance;
}

.vn-hero-grid p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy-light);
  max-width: 600px;
  margin: 0 0 30px;
  text-wrap: pretty;
}

.vn-hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.vn-hero-collage {
  position: relative;
  width: min(100%, 466px);
  aspect-ratio: 1;
}

.vn-hero-collage .vn-circle-bg {
  position: absolute;
  left: 11%;
  top: 13%;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #FFE1D3;
}

.vn-hero-collage .vn-circle-photo {
  position: absolute;
  left: 4%;
  top: 4%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pastel-blue);
}
.vn-hero-collage .vn-circle-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
}

.vn-hero-collage .vn-dot-1 { position: absolute; left: -1%; top: -3%; width: 8%; aspect-ratio: 1; border-radius: 50%; background: var(--pastel-green); opacity: .85; }
.vn-hero-collage .vn-dot-2 { position: absolute; left: 83%; top: 7%; width: 13%; aspect-ratio: 1; border-radius: 50%; background: var(--pastel-yellow); opacity: .9; }
.vn-hero-collage .vn-dot-3 { position: absolute; left: 13%; top: 1%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: var(--pastel-blue); opacity: .85; }

/* Two-column layout: sticky sommaire + article */
.vn-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 56px;
  align-items: start;
}

.vn-sidebar {
  position: sticky;
  top: 96px;
  max-width: 260px;
}
@media (max-width: 900px) {
  .vn-sidebar { position: static; max-width: none; }
}

.vn-sidebar-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
}

.vn-toc {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--border);
}
.vn-toc a {
  padding: 8px 0 8px 16px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--navy-light);
}
.vn-toc a:hover { color: var(--navy); }

.vn-article {
  grid-column: span 3;
  min-width: 0;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.vn-section { scroll-margin-top: 96px; }

.vn-section h2 {
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 34px);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.vn-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy-light);
  margin: 0 0 22px;
  text-wrap: pretty;
}

/* Checklist pills */
.vn-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.vn-checklist-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--pastel-green-light);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.45;
}
.vn-check-icon {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--pastel-green);
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* Income-bracket pricing table */
.vn-pricing {
  display: grid;
  gap: 10px;
  background: var(--bg-gray);
  border-radius: 20px;
  padding: 12px;
  margin-bottom: 12px;
}
.vn-pricing-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 6px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 6px;
}
.vn-pricing-cell {
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vn-pricing-cell-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.35;
  margin-bottom: 6px;
}
.vn-pricing-cell-label a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.vn-pricing-cell-situation { font-size: 15px; font-weight: 600; line-height: 1.4; }
.vn-pricing-cell-amount {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.vn-pricing-cell-highlight {
  background: var(--pastel-blue);
}
.vn-pricing-cell-highlight .vn-pricing-cell-label { color: var(--navy); }
.vn-pricing-cell-highlight .vn-pricing-cell-amount { font-size: 26px; }
.vn-pricing-cell-muted {
  background: var(--bg-gray);
}
.vn-pricing-cell-muted .vn-pricing-cell-label { color: #7A849A; }
.vn-pricing-cell-muted .vn-pricing-cell-amount {
  font-weight: 700;
  color: var(--navy-light);
  font-size: 18px;
}

.vn-footnote {
  font-size: 14px;
  line-height: 1.6;
  color: var(--navy-light);
  margin: 0 0 10px;
  text-wrap: pretty;
}
.vn-footnote b { color: var(--navy); }

/* Note box (eco-score definitions, etc.) */
.vn-note {
  scroll-margin-top: 110px;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
  padding: 12px 16px;
  background: var(--pastel-green-light);
  border-radius: 12px;
  text-wrap: pretty;
}
.vn-note a {
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Conditions box */
.vn-conditions {
  background: var(--pastel-blue-light);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 22px;
}
.vn-conditions-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}
.vn-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vn-pill {
  background: #FFFFFF;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
}

.vn-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.vn-link-inline {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vn-link-arrow {
  font-weight: 600;
  font-size: 15px;
  color: var(--blue);
}

/* Professionnels cards */
.vn-pro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.vn-pro-card {
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vn-pro-card-blue { background: var(--pastel-blue-light); }
.vn-pro-card-gray { background: var(--bg-gray); }

.vn-pro-badge {
  align-self: start;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 600;
}
.vn-pro-badge-blue { background: var(--pastel-blue); }
.vn-pro-badge-gray { background: var(--border); }

.vn-pro-card h3 {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  margin: 0;
}
.vn-pro-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--navy-light);
  margin: 0;
}

.vn-pro-table {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 2px 16px;
  margin-top: 4px;
}
.vn-pro-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.vn-pro-row:last-child { border-bottom: none; }
.vn-pro-row-label {
  font-size: 14px;
  line-height: 1.4;
  color: var(--navy-light);
}
.vn-pro-row-label a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.vn-pro-row-value {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.vn-pro-row-value .unit { font-size: 0.65em; font-weight: 600; letter-spacing: 0; }
.vn-pro-row-sub {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--navy-light);
  margin-top: 2px;
}

.vn-pro-cta {
  align-self: start;
  margin-top: auto;
  background: var(--blue);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
}
.vn-pro-cta:hover { background: var(--blue-dark); color: #FFFFFF; }

/* Aide locale box */
.vn-locale-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: var(--bg-gray);
  border-radius: 22px;
  padding: clamp(22px, 3.5vw, 36px);
}
.vn-locale-box h2 {
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.vn-locale-box p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy-light);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.vn-locale-box img {
  width: clamp(110px, 16vw, 170px);
  height: auto;
}

/* Leasing note */
.vn-leasing-note {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 20px;
  padding: 16px 20px;
  background: var(--pastel-yellow-light);
  border-radius: 14px;
  text-wrap: pretty;
}

/* Exemples de cumul */
.vn-examples {
  display: grid;
  gap: 16px;
}
.vn-example-card {
  border-radius: 22px;
  padding: clamp(22px, 3vw, 30px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 22px;
  align-items: start;
}
.vn-example-chip {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.vn-example-card h3 {
  font-weight: 700;
  font-size: 21px;
  margin: 0 0 10px;
}
.vn-example-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--navy-light);
  margin: 0;
  text-wrap: pretty;
}
.vn-example-table {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 6px 18px;
}
.vn-example-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.vn-example-row-label { font-size: 14px; line-height: 1.45; color: var(--navy-light); }
.vn-example-row-amount { font-weight: 700; font-size: 17px; white-space: nowrap; }
.vn-example-row-total .vn-example-row-label { font-size: 14px; font-weight: 700; color: var(--navy); }
.vn-example-row-total .vn-example-row-amount { font-weight: 800; font-size: 19px; }
.vn-example-row-price {
  border-bottom: none;
  padding: 14px 0 12px;
}
.vn-example-row-price .vn-example-row-label { font-size: 14px; font-weight: 700; color: var(--navy); }
.vn-example-row-price .vn-example-row-amount {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--blue);
}

/* Démarches steps */
.vn-steps {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
}
.vn-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
}
.vn-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.vn-step-number {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
}
.vn-step-line {
  flex: 1;
  width: 2px;
  background: var(--border);
  min-height: 20px;
}
.vn-step-line-hidden { opacity: 0; }
.vn-step-text {
  margin: 0;
  padding: 9px 0 28px;
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

.vn-step-c1 { background: #A9C7FF; }
.vn-step-c2 { background: #7EE0B8; }
.vn-step-c3 { background: #FFE36E; }
.vn-step-c4 { background: #FFB8A0; }
.vn-step-c5 { background: #D9CCFF; }
.vn-step-c6 { background: #A9C7FF; }

@media (max-width: 640px) {
  .vn-article { gap: 40px; }
  .vn-layout { padding: 48px 24px 24px; }

  .vn-locale-box {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .vn-locale-box img {
    order: -1;
    width: min(200px, 55%);
  }
}
