/* Styles pour les tableaux générés à partir du markdown */

.markdown-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.markdown-table thead {
    background-color: #1e40af;
    color: white;
}

.markdown-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 2px solid #3b82f6;
}

.markdown-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.markdown-table tbody tr:hover {
    background-color: #f9fafb;
}

.markdown-table tbody tr:last-child {
    border-bottom: none;
}

.markdown-table td {
    padding: 1rem;
    vertical-align: top;
    line-height: 1.6;
}

.markdown-table td strong {
    color: #1e40af;
    font-weight: 600;
}

.markdown-table td em {
    color: #6b7280;
}

/* Style pour les puces dans les cellules */
.markdown-table td br + • {
    margin-left: 1rem;
}

/* Style alternatif pour les lignes paires */
.markdown-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.markdown-table tbody tr:nth-child(even):hover {
    background-color: #f3f4f6;
}

/* Style pour les listes dans les cellules de tableau */
.markdown-table td ul,
.markdown-table td ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.markdown-table td li {
    margin: 0.25rem 0;
}

/* Responsivité pour petits écrans */
@media (max-width: 768px) {
    .markdown-table {
        font-size: 0.875rem;
    }

    .markdown-table th,
    .markdown-table td {
        padding: 0.75rem;
    }
}

/* Style pour les éléments strong en dehors des tableaux */
.legal-analysis strong {
    color: #1e40af;
    font-weight: 600;
}

/* Style pour les listes à puces générées dynamiquement */
.legal-analysis ul {
    list-style-type: disc;
    padding-left: 2rem;
    margin: 1rem 0;
}

.legal-analysis ul li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Style pour les séparateurs horizontaux */
.legal-analysis hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2rem 0;
}
