/* Styles pour l'éditeur Quill de l'amélioration IA */

#ai-improved-text .ql-editor {
    font-size: 14px !important;
    color: #333 !important;
    line-height: 1.6 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    background-color: transparent !important;
    background: transparent !important;
}

#ai-improved-text .ql-editor * {
    font-family: inherit !important;
    box-sizing: border-box !important;
    background-color: transparent !important;
}

#ai-improved-text .ql-editor h1 {
    font-size: 2.5em !important;
    font-weight: bold !important;
    margin: 0.67em 0 !important;
    color: #333 !important;
}

#ai-improved-text .ql-editor h2 {
    font-size: 1.5em !important;
    font-weight: bold !important;
    margin: 0.5em 0 !important;
    color: #333 !important;
}

#ai-improved-text .ql-editor h3 {
    font-size: 1.17em !important;
    font-weight: bold !important;
    margin: 0.5em 0 !important;
    color: #333 !important;
}

#ai-improved-text .ql-editor h4 {
    font-size: 1em !important;
    font-weight: bold !important;
    margin: 0.5em 0 !important;
    color: #333 !important;
}

#ai-improved-text .ql-editor h5 {
    font-size: 0.83em !important;
    font-weight: bold !important;
    margin: 0.5em 0 !important;
    color: #333 !important;
}

#ai-improved-text .ql-editor h6 {
    font-size: 0.67em !important;
    font-weight: bold !important;
    margin: 0.5em 0 !important;
    color: #333 !important;
}

#ai-improved-text .ql-editor p {
    margin: 0.5em 0 !important;
    font-size: 14px !important;
    color: #333 !important;
}

#ai-improved-text .ql-editor ul,
#ai-improved-text .ql-editor ol {
    margin: 0.5em 0 !important;
    padding-left: 1.5em !important;
}

#ai-improved-text .ql-editor li {
    margin: 0.25em 0 !important;
    font-size: 14px !important;
    color: #333 !important;
}

#ai-improved-text .ql-editor strong {
    font-weight: bold !important;
}

#ai-improved-text .ql-editor em {
    font-style: italic !important;
}


/* ===========================================
   Styles pour l'affichage des annonces améliorées par l'IA
   Ces styles s'appliquent au HTML généré (h2, h3, p, ul, li, strong)
   =========================================== */

.search-result__comment h2 {
    font-size: 1.4em;
    font-weight: 600;
    color: #2c3e50;
    margin: 1.2em 0 0.6em 0;
    padding-bottom: 0.3em;
    border-bottom: 2px solid #f39c12;
}

.search-result__comment h2:first-child {
    margin-top: 0;
}

.search-result__comment h3 {
    font-size: 1.15em;
    font-weight: 600;
    color: #34495e;
    margin: 1em 0 0.5em 0;
}

.search-result__comment p {
    margin: 0.8em 0;
    line-height: 1.7;
    color: #444;
}

.search-result__comment ul {
    margin: 0.8em 0;
    padding-left: 1.5em;
    list-style-type: disc;
}

.search-result__comment ul li {
    margin: 0.4em 0;
    line-height: 1.6;
    color: #444;
}

.search-result__comment strong {
    font-weight: 600;
    color: #2c3e50;
}


/* Styles pour le preview de l'annonce (si différent du view) */

.fiche-bloc--annonce .search-result__comment h2,
.fiche-bloc--annonce .search-result__comment h3 {
    color: #e67e22;
}

.fiche-bloc--annonce .search-result__comment h2 {
    border-bottom-color: #e67e22;
}