/* =========================================================
   GEDO – Styles personnalisés pour articles techniques
   Objectif : tableaux lisibles, encarts clairs, rendu pro B2B
   ========================================================= */

/* Conteneur de tableaux */
.gedo-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
}

/* Tableau GEDO */
.gedo-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  font-size: 14px;
  line-height: 1.45;
}

/* En-têtes et cellules */
.gedo-table th,
.gedo-table td {
  padding: 10px 12px;
  vertical-align: top;
  white-space: normal;
  word-break: normal;
}

/* En-têtes */
.gedo-table thead th {
  background: #f5f7fa;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid #dcdfe6;
}

/* Largeur des colonnes (3 colonnes comparatif) */
.gedo-table th:nth-child(1),
.gedo-table td:nth-child(1) {
  width: 22%;
  font-weight: 600;
}

.gedo-table th:nth-child(2),
.gedo-table td:nth-child(2),
.gedo-table th:nth-child(3),
.gedo-table td:nth-child(3) {
  width: 39%;
}

/* Séparateurs de colonnes */
.gedo-table th:not(:last-child),
.gedo-table td:not(:last-child) {
  border-right: 1px solid #e0e0e0;
}

/* Lignes */
.gedo-table tbody tr {
  border-bottom: 1px solid #ececec;
}

/* Légende de tableau */
.gedo-table caption {
  caption-side: bottom;
  padding-top: 6px;
  font-size: 12px;
  color: #666;
  text-align: left;
}

/* Encarts d'information */
.encart {
  background: #fafafa;
  border: 1px solid #ddd;
  padding: 14px 16px;
  margin: 20px 0;
  border-left: 4px solid #c62828;
}

.encart strong {
  color: #000;
}

/* Titres dans les articles */
.page-content h2 {
  margin-top: 32px;
}

.page-content h3 {
  margin-top: 24px;
}

/* Version mobile : tableaux empilés */
@media (max-width: 768px) {

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

  .gedo-table thead {
    display: none;
  }

  .gedo-table tr {
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    padding: 10px;
    background: #fff;
  }

  .gedo-table td {
    border: none;
    padding: 6px 0;
  }

  .gedo-table td:first-child {
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
  }
}