:root {
  --color-brand: #ef4444;
  --color-cta: #f59e0b;
  --text-muted: #777;
  --border: #ddd;
  --text-dark: #222;
  --text-body: #333;
  --bg-light: #fafafa;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

img,
video,
iframe,
svg,
canvas {
  max-width: 100%;
  height: auto;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background-color: #fff;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.article-main {
  width: 100%;
  max-width: 100%;
}

.article-hero {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background-color: #111;
}

.article-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.45);
}

.article-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 48px;
}

.article-hero__content {
  max-width: 820px;
}

.article-hero__category {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand);
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}

.article-hero__title {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.7;
  color: #fff;
  margin: 0 0 16px;
}

.article-hero__lead {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  color: #e8e8e8;
  margin: 0 0 20px;
  max-width: 680px;
}

.article-hero__meta {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.article-hero__date,
.article-hero__read,
.article-hero__km {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  color: #ccc;
}

.article-hero__date svg,
.article-hero__read svg,
.article-hero__km svg {
  color: var(--color-brand);
  flex-shrink: 0;
}

.article-container {
  max-width: 860px;
  width: 90%;
  margin: 0 auto;
  padding: 48px 0 80px;
}

.article-disclaimer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background-color: #fff8f0;
  border-left: 4px solid var(--color-brand);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 40px;
}

.article-disclaimer svg {
  color: var(--color-brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.article-disclaimer p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

.article-intro {
  margin-bottom: 48px;
}

.article-intro p {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 20px;
}

.article-intro p:last-child {
  margin-bottom: 0;
}

.article-section {
  margin-bottom: 56px;
}

.article-section h2 {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text-dark);
  margin: 0 0 20px;
  padding-top: 8px;
  border-top: 3px solid var(--color-brand);
  padding-top: 16px;
}

.article-section p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 20px;
}

.article-section p:last-child {
  margin-bottom: 0;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.article-list li {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  padding: 12px 16px 12px 44px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.article-list li:first-child {
  border-top: 1px solid var(--border);
}

.article-list li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 20px;
  width: 8px;
  height: 8px;
  background-color: var(--color-brand);
  border-radius: 50%;
}

.article-list li strong {
  font-weight: 700;
  color: var(--text-dark);
}

.article-tabs-section {
  margin-bottom: 56px;
}

.article-tabs-intro {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 24px;
}

.tab-radio {
  display: none;
}

.tabs-wrapper {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.tabs-nav {
  display: flex;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.tab-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-right: 1px solid var(--border);
  transition: background-color 0.2s, color 0.2s;
  text-align: center;
}

.tab-label:last-child {
  border-right: none;
}

.tab-label svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.2s;
}

.tab-label:hover {
  background-color: #fff;
  color: var(--color-brand);
}

.tab-label:hover svg {
  color: var(--color-brand);
}

#tab-chiffres:checked ~ .tabs-nav label[for="tab-chiffres"],
#tab-vehicule:checked ~ .tabs-nav label[for="tab-vehicule"],
#tab-budget:checked ~ .tabs-nav label[for="tab-budget"] {
  background-color: #fff;
  color: var(--color-brand);
  border-bottom: 3px solid var(--color-brand);
  margin-bottom: -1px;
}

#tab-chiffres:checked ~ .tabs-nav label[for="tab-chiffres"] svg,
#tab-vehicule:checked ~ .tabs-nav label[for="tab-vehicule"] svg,
#tab-budget:checked ~ .tabs-nav label[for="tab-budget"] svg {
  color: var(--color-brand);
}

.tabs-content {
  padding: 28px;
  background-color: #fff;
}

.tab-panel {
  display: none;
}

#tab-chiffres:checked ~ .tabs-content #panel-chiffres,
#tab-vehicule:checked ~ .tabs-content #panel-vehicule,
#tab-budget:checked ~ .tabs-content #panel-budget {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--bg-light);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-brand);
  line-height: 1.7;
  display: block;
}

.stat-label {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  display: block;
  margin-top: 4px;
}

.vehicle-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spec-row {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.spec-row:first-child {
  border-top: 1px solid var(--border);
}

.spec-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  min-width: 160px;
  flex-shrink: 0;
}

.spec-value {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.7;
}

.overflow-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.budget-table,
.comparison-table,
.cols-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.budget-table th,
.comparison-table th,
.cols-table th {
  background-color: var(--color-brand);
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

.budget-table td,
.comparison-table td,
.cols-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
  font-weight: 400;
  line-height: 1.7;
  vertical-align: top;
}

.budget-table tr:nth-child(even) td,
.cols-table tr:nth-child(even) td {
  background-color: var(--bg-light);
}

.budget-total td {
  font-weight: 700;
  color: var(--text-dark);
  background-color: #fff0f0;
  border-top: 2px solid var(--color-brand);
}

.comp-good {
  color: #2a7a2a;
  font-weight: 700;
}

.comp-mid {
  color: #7a5a00;
  font-weight: 700;
}

.comp-bad {
  color: var(--color-brand);
  font-weight: 700;
}

.comparison-note {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--border);
}

.checklist-block {
  background-color: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}

.checklist-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.7;
  margin: 0 0 20px;
}

.checklist-title svg {
  color: var(--color-brand);
  flex-shrink: 0;
}

.checklist-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.7;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.checklist-list li:last-child {
  border-bottom: none;
}

.checklist-list li svg {
  color: var(--color-brand);
  flex-shrink: 0;
  margin-top: 3px;
}

.article-comparison {
  margin-bottom: 56px;
}

.article-comparison h2 {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text-dark);
  margin: 0 0 16px;
  border-top: 3px solid var(--color-brand);
  padding-top: 16px;
}

.article-comparison p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 20px;
}

.article-timeline {
  margin-bottom: 56px;
}

.article-timeline h2 {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text-dark);
  margin: 0 0 16px;
  border-top: 3px solid var(--color-brand);
  padding-top: 16px;
}

.article-timeline > p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 36px;
}

.timeline-container {
  position: relative;
  padding-left: 64px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border);
}

.timeline-entry {
  position: relative;
  margin-bottom: 48px;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -52px;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: var(--color-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.timeline-day {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-transform: uppercase;
}

.timeline-content {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.7;
}

.timeline-location svg {
  color: var(--color-brand);
  flex-shrink: 0;
}

.timeline-distance {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

.timeline-content img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.timeline-content p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  padding: 20px 24px 0;
  margin: 0;
}

.timeline-content p:last-of-type {
  padding-bottom: 20px;
}

.timeline-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background-color: #fffbeb;
  border-top: 1px solid #fde68a;
  padding: 16px 24px;
  margin-top: 4px;
}

.timeline-tip svg {
  color: #b45309;
  flex-shrink: 0;
  margin-top: 2px;
}

.timeline-tip p {
  font-size: 14px;
  font-weight: 400;
  color: #78350f;
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

.article-pullquote {
  margin-bottom: 56px;
}

.article-pullquote blockquote {
  background-color: var(--color-brand);
  border-radius: 8px;
  padding: 36px 40px;
  margin: 0;
  position: relative;
}

.article-pullquote blockquote::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 24px;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
}

.article-pullquote blockquote p {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.7;
  color: #fff;
  margin: 0 0 16px;
  padding-left: 20px;
}

.article-pullquote blockquote cite {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  padding-left: 20px;
  font-style: normal;
  line-height: 1.7;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-top: none;
  padding: 20px 24px;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
}

.faq-item:last-child {
  border-radius: 0 0 8px 8px;
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.7;
  margin: 0 0 10px;
}

.faq-question svg {
  color: var(--color-brand);
  flex-shrink: 0;
  margin-top: 3px;
}

.faq-answer {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0;
  padding-left: 28px;
}

.article-cta-block {
  margin-bottom: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 56px;
}

.article-cta-block img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}

.article-cta-content {
  padding: 36px 40px;
  background-color: var(--text-dark);
}

.article-cta-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.7;
  color: #fff;
  margin: 0 0 16px;
}

.article-cta-content p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: #ccc;
  margin: 0 0 24px;
}

.article-cta-btn {
  display: inline-block;
  background-color: var(--color-cta);
  color: #111;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s;
}

.article-cta-btn:hover {
  background-color: #d97706;
}

@media (max-width: 768px) {
  .article-hero {
    height: 420px;
  }

  .article-hero__overlay {
    padding: 24px 20px;
    align-items: flex-end;
  }

  .article-hero__title {
    font-size: 1.5rem;
  }

  .article-hero__lead {
    font-size: 0.95rem;
  }

  .article-hero__meta {
    gap: 12px;
  }

  .article-container {
    width: 100%;
    padding: 28px 16px 48px;
  }

  .article-section h2,
  .article-comparison h2,
  .article-timeline h2 {
    font-size: 1.25rem;
  }

  .tabs-nav {
    flex-direction: column;
  }

  .tab-label {
    border-right: none;
    border-bottom: 1px solid var(--border);
    justify-content: flex-start;
    padding: 12px 16px;
  }

  .tab-label:last-child {
    border-bottom: none;
  }

  .tabs-content {
    padding: 16px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .spec-row {
    flex-direction: column;
    gap: 4px;
  }

  .spec-label {
    min-width: auto;
  }

  .timeline-container {
    padding-left: 44px;
  }

  .timeline-container::before {
    left: 16px;
  }

  .timeline-marker {
    left: -44px;
    width: 32px;
    height: 32px;
  }

  .timeline-day {
    font-size: 9px;
  }

  .timeline-content img {
    height: 180px;
  }

  .timeline-content p {
    padding: 14px 16px 0;
    font-size: 0.95rem;
  }

  .timeline-content p:last-of-type {
    padding-bottom: 14px;
  }

  .timeline-tip {
    padding: 14px 16px;
  }

  .article-pullquote blockquote {
    padding: 28px 24px;
  }

  .article-pullquote blockquote p {
    font-size: 1.05rem;
    padding-left: 0;
  }

  .article-pullquote blockquote cite {
    padding-left: 0;
  }

  .article-pullquote blockquote::before {
    display: none;
  }

  .faq-item {
    padding: 16px;
  }

  .faq-answer {
    padding-left: 0;
  }

  .article-cta-content {
    padding: 24px 20px;
  }

  .article-cta-content h2 {
    font-size: 1.15rem;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .comparison-table th,
  .comparison-table td {
    white-space: nowrap;
    font-size: 13px;
    padding: 9px 12px;
  }
}

@media (max-width: 480px) {
  .article-hero {
    height: 340px;
  }

  .article-hero__title {
    font-size: 1.25rem;
  }

  .article-hero__lead {
    display: none;
  }

  .article-hero__meta {
    flex-direction: column;
    gap: 6px;
  }

  .timeline-container {
    padding-left: 36px;
  }

  .timeline-marker {
    left: -36px;
    width: 28px;
    height: 28px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-cta-block img {
    height: 160px;
  }

  .budget-table th,
  .budget-table td,
  .cols-table th,
  .cols-table td {
    font-size: 12px;
    padding: 8px 10px;
  }
}

/* ===== TYPOGRAPHY SPACING FIX (APS_ARTICLE_TYPO_REQUIRED_v2) ===== */
/* Defensive guard against universal * { margin: 0 } reset in global.css. */
/* body-scoped via :where() so specificity stays at 0,0,0,1 — beats * but
   loses to any component rule like .tip-box p / .faq-item p. */
body :where(p)              { margin-bottom: 1.1rem; }
body :where(h2)             { margin-top: 2.5rem; margin-bottom: 1rem; }
body :where(h3)             { margin-top: 1.75rem; margin-bottom: 0.75rem; }
body :where(h4)             { margin-top: 1.25rem; margin-bottom: 0.5rem; }
body :where(ul, ol)         { margin-bottom: 1.1rem; padding-left: 1.5rem; }
body :where(li)             { margin-bottom: 0.4rem; }
body :where(blockquote)     { margin: 1.5rem 0; }
