:root {
  --color-brand: #f97316;
  --color-cta: #22d3ee;
  --text-muted: #777;
  --border: #ddd;
}

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

html, body {
  overflow-x: hidden;
}

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

body {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  color: #222;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.article-hero {
  position: relative;
  background-image: url('/images/hero-avis-nintendo-switch-2-vaut-elle-le-coup.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a1a2e;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.hero-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 14px 0;
  line-height: 1.7;
}

.hero-intro {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin: 0;
  max-width: 720px;
}

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

.article-body {
  padding-top: 56px;
  padding-bottom: 80px;
}

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

.prose-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 20px 0;
  line-height: 1.7;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-brand);
  display: inline-block;
}

.prose-section p {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.7;
  margin: 0 0 20px 0;
}

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

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 32px 0 0 0;
}

.feature-card {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  border-color: var(--color-brand);
}

.feature-icon {
  color: var(--color-brand);
  margin-bottom: 14px;
}

.feature-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  line-height: 1.7;
}

.feature-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

.perf-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.perf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 0;
}

.perf-table th {
  background: var(--color-brand);
  color: #fff;
  font-weight: 700;
  padding: 14px 16px;
  text-align: left;
  line-height: 1.7;
  white-space: nowrap;
}

.perf-table td {
  padding: 12px 16px;
  color: #333;
  border-bottom: 1px solid #eee;
  line-height: 1.7;
}

.perf-table tr:last-child td {
  border-bottom: none;
}

.perf-table tr:nth-child(even) td {
  background: #f9f9f9;
}

.perf-table .highlight-cell {
  color: var(--color-brand);
  font-weight: 700;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  font-weight: 700;
  color: #111;
  background: #f5f5f5;
}

.games-list {
  background: #fff8f4;
  border: 1px solid #f0c8aa;
  border-radius: 8px;
  padding: 24px 28px;
  margin: 28px 0;
}

.games-list__header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--color-brand);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.games-list ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.games-list ul li {
  color: #333;
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 10px;
  padding-left: 4px;
}

.games-list ul li:last-child {
  margin-bottom: 0;
}

.games-list ul li strong {
  font-weight: 700;
  color: #111;
}

.cons-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.con-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: box-shadow 0.2s;
}

.con-item:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.con-icon {
  flex-shrink: 0;
  color: #c0392b;
  margin-top: 2px;
}

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

.con-content strong {
  display: block;
  font-weight: 700;
  color: #111;
  font-size: 0.97rem;
  margin-bottom: 6px;
  line-height: 1.7;
}

.con-content p {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

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

.calculator-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 12px 0;
  line-height: 1.7;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-brand);
  display: inline-block;
}

.calculator-section > p {
  font-size: 1.02rem;
  color: #555;
  margin: 12px 0 24px 0;
  line-height: 1.7;
}

.calculator-box {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.calc-form {
  padding: 28px;
}

.calc-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.calc-row label {
  font-weight: 700;
  font-size: 0.92rem;
  color: #333;
  line-height: 1.7;
}

.calc-row select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #222;
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
  transition: border-color 0.2s;
}

.calc-row select:focus {
  outline: none;
  border-color: var(--color-brand);
}

.calc-btn {
  display: inline-block;
  background: var(--color-cta);
  color: #111;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  line-height: 1.7;
  margin-top: 8px;
}

.calc-btn:hover {
  background: #06b6d4;
}

.calc-result {
  padding: 28px;
  background: #111;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.result-item {
  background: #1e1e1e;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-item--total {
  background: var(--color-brand);
}

.result-label {
  font-size: 0.8rem;
  color: #aaa;
  line-height: 1.7;
}

.result-item--total .result-label {
  color: rgba(255, 255, 255, 0.8);
}

.result-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.7;
}

.result-note {
  font-size: 0.88rem;
  color: #aaa;
  line-height: 1.7;
  margin: 0;
}

.roi-result {
  padding: 28px;
  background: #111;
}

.roi-verdict {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-brand);
  margin: 0 0 10px 0;
  line-height: 1.7;
}

.roi-detail {
  font-size: 0.93rem;
  color: #bbb;
  line-height: 1.7;
  margin: 0;
}

.verdict-box {
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 32px;
  margin-top: 32px;
}

.verdict-scores {
  margin-bottom: 32px;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.score-label {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.7;
  min-width: 160px;
  flex-shrink: 0;
}

.score-bar {
  flex: 1;
  background: #e0e0e0;
  border-radius: 4px;
  height: 28px;
  overflow: hidden;
  min-width: 0;
}

.score-fill {
  background: var(--color-brand);
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  transition: background-color 0.2s;
}

.score-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  line-height: 1;
}

.verdict-final {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}

.verdict-note {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-brand);
  line-height: 1;
  flex-shrink: 0;
}

.verdict-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  line-height: 1.7;
}

.verdict-text p {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

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

.faq-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 28px 0;
  line-height: 1.7;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-brand);
  display: inline-block;
}

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

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 12px 0;
  line-height: 1.7;
}

.faq-item p {
  font-size: 0.97rem;
  color: #444;
  line-height: 1.7;
  margin: 0;
}

.cta-section {
  background: var(--color-brand);
  border-radius: 8px;
  padding: 44px 40px;
  text-align: center;
  margin-bottom: 56px;
}

.cta-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px 0;
  line-height: 1.7;
}

.cta-section p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 28px 0;
  line-height: 1.7;
}

.btn-cta {
  display: inline-block;
  background: var(--color-cta);
  color: #111;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s;
  line-height: 1.7;
}

.btn-cta:hover {
  background: #06b6d4;
}

@media (max-width: 768px) {
  .article-hero {
    min-height: 380px;
    padding-bottom: 40px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-intro {
    font-size: 0.97rem;
  }

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

  .article-body {
    padding-top: 36px;
    padding-bottom: 48px;
  }

  .prose-section {
    margin-bottom: 40px;
  }

  .prose-section h2 {
    font-size: 1.25rem;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .perf-table th,
  .perf-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .games-list {
    padding: 18px 20px;
  }

  .con-item {
    flex-direction: column;
    gap: 10px;
  }

  .calc-form {
    padding: 20px;
  }

  .calc-result,
  .roi-result {
    padding: 20px;
  }

  .result-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .verdict-box {
    padding: 20px;
  }

  .score-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

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

  .score-bar {
    width: 100%;
  }

  .verdict-final {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .cta-section {
    padding: 32px 20px;
  }

  .cta-section h2 {
    font-size: 1.2rem;
  }

  .btn-cta {
    width: 100%;
    text-align: center;
  }

  .faq-section h2 {
    font-size: 1.25rem;
  }

  .calculator-section h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.25rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .score-bar {
    height: 24px;
  }

  .verdict-note {
    font-size: 2.2rem;
  }

  .prose-section h2 {
    font-size: 1.1rem;
  }
}

/* ===== 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; }
