.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.article-featured-image {
  width: 100%;
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.article-content h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
}

.article-content h2 {
  font-size: 2rem;
  margin-top: 50px;
  margin-bottom: 20px;
  color: var(--color-gray-dark);
  font-weight: 600;
}

.article-content h3 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--color-gray-dark);
  font-weight: 600;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.article-content a:hover {
  color: var(--color-secondary);
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 30px 0;
  box-shadow: var(--shadow);
}

.article-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--color-gray);
}

.article-content code {
  background-color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.article-content pre {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 30px 0;
}

.article-content pre code {
  background-color: transparent;
  padding: 0;
}

/* ===========================================
   TABLEAUX COMPARATIFS - STYLES RÉUTILISABLES
   =========================================== */

/* Wrapper responsive pour tous les tableaux */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
  -webkit-overflow-scrolling: touch;
}

/* Style de base pour tous les tableaux d'article */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.article-content table caption {
  padding: 12px 16px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: left;
  color: var(--color-gray-dark);
  background: #f8f9fa;
  border-bottom: 2px solid var(--color-primary);
}

.article-content table th,
.article-content table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.article-content table th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.article-content table tbody tr:hover {
  background: #f8f9fa;
}

.article-content table tbody tr:last-child td {
  border-bottom: none;
}

/* Alignement centré pour colonnes spécifiques */
.article-content table td:nth-child(2),
.article-content table td:nth-child(3),
.article-content table th:nth-child(2),
.article-content table th:nth-child(3) {
  text-align: center;
}

/* Colonne "Winner/Gagnant" - dernière colonne */
.article-content table td:last-child,
.article-content table th:last-child {
  text-align: center;
  font-weight: 600;
}

/* Badges pour le gagnant */
.article-content table .winner-elliptical {
  color: #2e7d32;
  background: #e8f5e9;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.article-content table .winner-treadmill {
  color: #1565c0;
  background: #e3f2fd;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.article-content table .winner-tie {
  color: #6a1b9a;
  background: #f3e5f5;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Icônes/Emojis dans les cellules */
.article-content table .icon-check {
  color: #2e7d32;
}

.article-content table .icon-cross {
  color: #c62828;
}

.article-content table .icon-warning {
  color: #f57c00;
}

/* Tableau 4 colonnes - modèle standard comparatif */
.article-content table.table-compare-4col th:first-child,
.article-content table.table-compare-4col td:first-child {
  width: 30%;
  text-align: left;
  font-weight: 500;
}

.article-content table.table-compare-4col th:nth-child(2),
.article-content table.table-compare-4col td:nth-child(2),
.article-content table.table-compare-4col th:nth-child(3),
.article-content table.table-compare-4col td:nth-child(3) {
  width: 25%;
}

.article-content table.table-compare-4col th:last-child,
.article-content table.table-compare-4col td:last-child {
  width: 20%;
}

/* Tableau 3 colonnes */
.article-content table.table-compare-3col th:first-child,
.article-content table.table-compare-3col td:first-child {
  width: 40%;
  text-align: left;
}

.article-content table.table-compare-3col th:nth-child(2),
.article-content table.table-compare-3col td:nth-child(2),
.article-content table.table-compare-3col th:last-child,
.article-content table.table-compare-3col td:last-child {
  width: 30%;
}

/* Tableau 5 colonnes - modèle budget/produits */
.article-content table.table-compare-5col th:first-child,
.article-content table.table-compare-5col td:first-child {
  width: 15%;
  text-align: left;
  font-weight: 600;
}

.article-content table.table-compare-5col th:nth-child(2),
.article-content table.table-compare-5col td:nth-child(2),
.article-content table.table-compare-5col th:nth-child(4),
.article-content table.table-compare-5col td:nth-child(4) {
  width: 28%;
  text-align: left;
}

.article-content table.table-compare-5col th:nth-child(3),
.article-content table.table-compare-5col td:nth-child(3),
.article-content table.table-compare-5col th:nth-child(5),
.article-content table.table-compare-5col td:nth-child(5) {
  width: 14%;
  text-align: center;
  font-weight: 600;
  color: var(--color-primary);
}

/* Ligne de résumé / total en bas du tableau */
.article-content table tfoot td {
  background: #f8f9fa;
  font-weight: 600;
  border-top: 2px solid var(--color-primary);
}

/* ===========================================
   RESPONSIVE TABLEAUX
   =========================================== */

@media (max-width: 768px) {
  .article-container {
    padding: 20px 15px;
  }

  .article-content h1 {
    font-size: 2rem;
  }

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

  .article-content h3 {
    font-size: 1.3rem;
  }

  .article-content {
    font-size: 1rem;
  }

  /* Tableaux responsive */
  .article-content table {
    font-size: 0.85rem;
  }

  .article-content table th,
  .article-content table td {
    padding: 10px 12px;
  }

  .article-content table caption {
    font-size: 1rem;
    padding: 10px 12px;
  }

  /* Indication scroll horizontal */
  .table-wrapper {
    position: relative;
  }

  .table-wrapper::after {
    content: '→ scroll';
    position: absolute;
    right: 8px;
    top: 8px;
    font-size: 0.7rem;
    color: #999;
    background: rgba(255,255,255,0.9);
    padding: 2px 6px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .table-wrapper:hover::after {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .article-content table th,
  .article-content table td {
    padding: 8px 10px;
  }

  .article-content table .winner-elliptical,
  .article-content table .winner-treadmill,
  .article-content table .winner-tie {
    padding: 3px 6px;
    font-size: 0.75rem;
  }
}