/* ==========================================================
   ecomstrike — articles (guides éditoriaux)

   Chargée après style.css, uniquement par les pages articles.
   Tout le reste (chapeau, étapes, cartes, glossaire, remarques)
   vient de style.css : ici, seulement ce qui manquait.
   ========================================================== */

/* ---------- Le chapeau en deux temps ----------
   Le premier paragraphe répond à la question, le second présente
   le guide. Plus petit et plus sombre : il se lit après. */
.hero .lead.suite {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--grey-dark);
}

/* ---------- Attaque de paragraphe ----------
   Quelques mots en blanc pour ouvrir un paragraphe d'une série
   (« La première erreur… ») : on repère chaque point en survolant. */
.par strong {
  font-weight: 500;
  color: var(--white);
}

/* ---------- Respiration après un bloc ----------
   .par garde 20 px au-dessus d'elle : trop serré derrière une liste
   d'étapes ou un tableau, qui se terminent sans marge propre. */
.timeline + .par,
.tableau + .par,
.glossary + .note,
.note + .par { margin-top: 30px; }

/* ---------- Tableau comparatif ----------
   Même matière que les cartes : liseré discret, fond presque vide.
   Les en-têtes reprennent l'étiquette du surtitre. */
.tableau {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  overflow: hidden;
}

.tableau table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.tableau thead th {
  padding: 17px 18px 15px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
  vertical-align: bottom;
  color: var(--grey-dark);
  border-bottom: 1px solid var(--line-strong);
}

.tableau tbody th,
.tableau td {
  padding: 17px 18px;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.6;
  text-wrap: pretty;
}

.tableau tbody th {
  width: 20%;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--white);
}

.tableau td { color: var(--grey-dark); }
.tableau td:last-child { color: var(--grey); }

.tableau tbody tr + tr { border-top: 1px solid var(--line); }
.tableau tbody tr { transition: background .4s var(--ease-doux); }
.tableau tbody tr:hover { background: rgba(255,255,255,.025); }

/* Sur téléphone, cinq colonnes ne tiennent pas : chaque ligne
   devient une carte, et chaque cellule affiche son intitulé. */
@media (max-width: 640px) {
  .tableau {
    border: 0;
    border-radius: 0;
    background: none;
    overflow: visible;
  }

  .tableau thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .tableau table,
  .tableau tbody,
  .tableau tr,
  .tableau tbody th,
  .tableau td { display: block; width: 100%; }

  .tableau tbody tr {
    padding: 18px 18px 6px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--glass);
  }
  .tableau tbody tr + tr { margin-top: 10px; border-top: 1px solid var(--line); }
  .tableau tbody tr:hover { background: var(--glass); }

  .tableau tbody th { padding: 0 0 12px; font-size: 15.5px; }

  .tableau td {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    gap: 14px;
    padding: 11px 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--grey);
    border-top: 1px solid var(--line);
  }
  .tableau td::before {
    content: attr(data-label);
    padding-top: 2px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    line-height: 1.6;
    text-transform: uppercase;
    color: var(--grey-dark);
  }
}
