/**
 * @file
 * Tableaux responsive — vues, contenu éditorial, accordéons AO.
 */

.views-table-scroll,
.table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.views-table-scroll table,
.table-wrapper table {
  overflow: visible;
  margin-top: 0;
  margin-bottom: 0;
}

.gva-view .view-content:has(table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.gva-view .view-content table {
  overflow: visible;
}

/* Contenu éditorial et accordéons AO */
.field--type-text-with-summary,
.field--name-body,
.text-formatted,
.ao-ppp-accordion .faq-item-body,
.Lancement_fr,
.Lancement_ar {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.field--type-text-with-summary table,
.field--name-body table,
.text-formatted table,
.ao-ppp-accordion table {
  min-width: 320px;
  overflow: visible;
}

@media (max-width: 767px) {
  table thead th {
    padding: 8px 10px;
    font-size: 13px;
  }

  table tbody tr td {
    padding: 8px 10px;
    font-size: 13px;
  }

  table {
    margin: 24px 0;
  }
}

html[lang="ar"] .field--type-text-with-summary,
html[lang="ar"] .field--name-body,
html[lang="ar"] .text-formatted,
html[lang="ar"] .ao-ppp-accordion .faq-item-body {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] .views-table-scroll table,
html[lang="ar"] .table-wrapper table {
  direction: rtl;
}
