/* Empêche le rognage par Elementor */
.elementor-widget-coub_table_widget {
    width: fit-content !important;
    max-width: none !important;
    overflow-x: auto;
}

.elementor-widget-coub_table_widget > .elementor-widget-container {
    display: inline-block !important;
    width: auto !important;
}

/* Conteneur du tableau */
.coub-table-wrap {
    display: inline-block;
    width: auto;
    max-width: none;
    overflow: visible;
}

/* Table principale */
.coub-table {
    width: auto;
    max-width: none;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 16px;
}

/* Cellules */
.coub-table td,
.coub-table th {
    border: 1px solid #ccc;
    padding: 10px;
    vertical-align: middle;
    white-space: nowrap;
}

/* Cellules fusionnées */
.coub-table td[colspan] {
    font-weight: bold;
    background: #f3f3f3;
}

/* Style première ligne */
.coub-table tr:first-child td {
    font-weight: bold;
}

/* Style deuxième ligne */
.coub-table tr:nth-child(2) td {
    font-style: italic;
}

/* Alternance des lignes */
.coub-table tr:nth-child(odd) td {
    background-color: #f9f9f9;
}

.coub-table tr:nth-child(even) td {
    background-color: #ffffff;
}

/* Responsive fallback : scroll horizontal sur petits écrans */
@media screen and (max-width: 768px) {
    .elementor-widget-coub_table_widget {
        overflow-x: auto;
    }

    .coub-table-wrap {
        display: block;
        overflow-x: auto;
    }

    .coub-table {
        display: table;
        min-width: 600px;
    }
}
