/* 
 * Styles CSS SIMPLIFIÉS pour le contenu généré par Trumbowyg
 * Compatible avec Tailwind CSS et MaterializeCSS
 * RESET COMPLET pour éviter les conflits
 */

.content,
.trumbowyg-editor {
    line-height: 1.6;
    color: #333;
}

/* Titres */
.content h1 {
    font-size: 2.25rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.content h2 {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Paragraphes */
.content p {
    color: #4a4a4a;
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* RESET COMPLET - Empêche tous les autres styles de s'appliquer */
.content ul,
.content ol,
.trumbowyg-editor ul,
.trumbowyg-editor ol,
.content-list-ul,
.content-list-ol {
    all: unset !important;
    display: block !important;
    margin: 1rem 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.content ul li,
.content ol li,
.trumbowyg-editor ul li,
.trumbowyg-editor ol li,
.content-list-ul li,
.content-list-ol li {
    all: unset !important;
    display: block !important;
    color: #4a4a4a !important;
    margin-bottom: 0.25rem !important;
    padding-left: 1.5rem !important;
    position: relative !important;
}

/* Puces pour listes à puces */
.content ul li::before,
.trumbowyg-editor ul li::before,
.content-list-ul li::before {
    content: "●" !important;
    position: absolute !important;
    left: 0 !important;
    color: #4a4a4a !important;
    font-weight: bold !important;
}

/* Numéros pour listes numérotées */
.content ol,
.trumbowyg-editor ol,
.content-list-ol {
    counter-reset: item !important;
}

.content ol li,
.trumbowyg-editor ol li,
.content-list-ol li {
    counter-increment: item !important;
}

.content ol li::before,
.trumbowyg-editor ol li::before,
.content-list-ol li::before {
    content: counter(item) "." !important;
    position: absolute !important;
    left: 0 !important;
    color: #4a4a4a !important;
    font-weight: bold !important;
}

/* Citations */
.content blockquote {
    background-color: #f8f9fa;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #4a4a4a;
    border-radius: 4px;
}

/* Liens */
.content a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.content a:hover {
    color: #1d4ed8;
}

/* Tableaux */
.content table {
    width: 100%;
    background-color: white;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border-collapse: collapse;
}

.content thead {
    background-color: #f8f9fa;
}

.content th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e5e7eb;
}

.content td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #4a4a4a;
    border-bottom: 1px solid #e5e7eb;
}

.content tr:hover {
    background-color: #f8f9fa;
}

/* Formatage du texte */
.content strong {
    font-weight: bold;
    color: #1a1a1a;
}

.content em {
    font-style: italic;
    color: #4a4a4a;
}

.content del {
    text-decoration: line-through;
    color: #6b7280;
}

.content sup {
    vertical-align: super;
    font-size: smaller;
}

.content sub {
    vertical-align: sub;
    font-size: smaller;
}

/* Ligne horizontale */
.content hr {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid #d1d5db;
}

/* Code */
.content code {
    background-color: #f3f4f6;
    color: #1f2937;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875em;
}

.content pre {
    background-color: #f3f4f6;
    color: #1f2937;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.content pre code {
    background: none;
    padding: 0;
}

/* Images */
.content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Alignement du texte */
.content .text-left {
    text-align: left;
}

.content .text-center {
    text-align: center;
}

.content .text-right {
    text-align: right;
}

.content .text-justify {
    text-align: justify;
}