.table {
  width: 100%;
  font-family: system-ui, Arial, sans-serif;
}

.row-article {
  display: flex;
  align-items: center;
  padding: 50px 0;
  cursor: pointer;
}

.cell {
  padding: 0 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Colonnes proportionnelles */
.col-1 {
  flex: 1;
} /* prend 1 parts */
.col-2 {
  flex: 1;
} /* prend 3 part */
.col-3 {
  flex: 3;
  padding-left: 20%;
  font-weight: bold;
} /* prend 1 part */

/* Colonne fixe */
.col-fixed {
  flex: 0 0 100px;
}

.category-au-fil-de-leau {
  background-color: #edf6f9;
  color: #719fae;
  font-weight: 600;
  font-size: 16px;
  justify-content: center;
  border-radius: 50px;
  padding: 2px 15px;
  display: inline-block;
}

/* Responsive */
@media (max-width: 600px) {
  .row {
    flex-direction: column;
    align-items: stretch;
  }
  .cell {
    white-space: normal;
  }
}

.author-fil-de-leau {
  color: #95a5a6;
  font-size: 16px;
}

.header-article {
  margin: 20px 0 60px 90px;
  font-weight: bold;
  font-size: 90px;
}

.style-list {
  margin: 20px 50px;
  list-style: none;
}

@media (max-width: 768px) {
  /* transforme la row en grille 2 colonnes x 2 lignes */
  .row-article {
    display: grid;
    grid-template-columns: 1fr auto; /* gauche = auteur / titre, droite = catégorie / icône */
    grid-template-rows: auto auto; /* ligne 1 = auteur+cat, ligne2 = titre+icone */
    column-gap: 12px;
    row-gap: 6px;
    align-items: center;
    padding: 12px 0;
  }

  /* Première ligne (auteur à gauche) */
  .row-article .col-1 {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-self: start;
    white-space: nowrap; /* auteur reste sur une ligne */
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 6px;
  }

  /* Première ligne (catégorie à droite) */
  .row-article .col-2 {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-self: end;
    padding: 0 6px;
  }

  /* Deuxième ligne (titre à gauche, peut wrap) */
  .row-article .col-3 {
    grid-column: 1;
    grid-row: 2;
    display: block;
    white-space: normal; /* autorise le retour à la ligne pour le titre */
    padding: 6px 6px 0 6px;
    font-weight: bold;
    overflow: visible;
  }

  /* Deuxième ligne (icone à droite) */
  .row-article .col-fixed {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    display: flex;
    align-items: center;
    padding: 0 6px;
    flex-shrink: 0;
  }

  /* petite adaptation de l'image d'icône si nécessaire */
  .row-article .col-fixed img {
    width: 20px;
    height: auto;
    display: block;
  }

  /* override des règles précédentes qui obligeaient chaque col à 100% */
  .row-article .col-1,
  .row-article .col-2,
  .row-article .col-3,
  .row-article .col-fixed {
    flex: initial;
    width: auto;
  }

  /* ajustements d'affichage */
  .row-article .author-fil-de-leau,
  .row-article .category-au-fil-de-leau {
    font-size: 0.85rem;
  }

  .style-list {
    margin-right: 20px;
    margin-left: 0px;
    list-style: none;
  }

  .header-article {
    margin: 20px 0 60px clamp(10px, 5vw, 90px);
    font-weight: bold;
    font-size: clamp(40px, 5vw, 90px);
  }
}
