/**
 * Custom Post Styles
 * Styles pour les images et tables dans les articles
 */

/* Style global des images */
.single-post .entry-content > img {
    width: 100% !important;
    height: auto !important;
}

/* Style global des tables */
.single-post table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 16px;
}

/* Bordures et couleurs */
.single-post th,
.single-post td {
    border: 1px solid #ddd;
    padding: 12px 16px;
    text-align: left;
}

/* En-tête */
.single-post th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
}

/* Lignes alternées */
.single-post tr:nth-child(even) {
    background-color: #fafafa;
}

/* Table responsive sur mobile */
@media (max-width: 600px) {
    .single-post table,
    .single-post thead,
    .single-post tbody,
    .single-post th,
    .single-post td,
    .single-post tr {
        display: block;
    }

    .single-post tr {
        margin-bottom: 1rem;
    }

    .single-post td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .single-post td::before {
        content: attr(data-label);
        position: absolute;
        left: 16px;
        width: 45%;
        text-align: left;
        font-weight: bold;
    }
}
