/* Custom Tables Builder - Frontend Styles */

.ctb-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: inherit;
}

.ctb-table th,
.ctb-table td {
    padding: 12px 15px;
    text-align: left;
}

.ctb-table th {
    background-color: #f0f0f0;
    font-weight: bold;
    color: #333;
}

/* Bordures */
.ctb-table.ctb-bordered {
    border: 1px solid #ddd;
}

.ctb-table.ctb-bordered th,
.ctb-table.ctb-bordered td {
    border: 1px solid #ddd;
}

/* Lignes alternées */
.ctb-table.ctb-striped tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Effet hover */
.ctb-table.ctb-hover tbody tr:hover {
    background-color: #f5f5f5;
    transition: background-color 0.2s ease;
}

/* Responsive wrapper */
.ctb-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Responsive sur petits écrans */
@media (max-width: 768px) {
    .ctb-table th,
    .ctb-table td {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .ctb-responsive-wrapper {
        border: 1px solid #ddd;
        border-radius: 4px;
    }
}

/* Styles pour le contenu des cellules */
.ctb-table a {
    color: #2271b1;
    text-decoration: underline;
}

.ctb-table a:hover {
    text-decoration: none;
}

.ctb-table strong {
    font-weight: bold;
}

.ctb-table em {
    font-style: italic;
}
