
/* ===== TITRES ===== */
.blog-detail h1 {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 1.5em;
    font-weight: 700;
    color: #111;
    margin: 0 0 0.8em 0;
    padding-bottom: 0.4em;
    border-bottom: 3px solid #3498db;
    line-height: 1.3;
}

.blog-detail h2 {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    color: #2c3e50;
    margin: 2em 0 0.8em 0;
    padding-bottom: 0.3em;
    border-bottom: 2px solid #eee;
    line-height: 1.35;
}

.blog-detail h3 {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 1em;
    font-weight: 600;
    color: #34495e;
    margin: 1.8em 0 0.7em 0;
    line-height: 1.4;
}

/* ===== PARAGRAPHES ===== */
.blog-detail p {
    margin: 0 0 1.5em 0;
    line-height: 1.7;
}

/* ===== CLASSES PRÉDÉFINIES - VERSION SYNCHRONISÉE ===== */

/* Reset des wrappers */
.blog-detail .definition,
.blog-detail .note-important,
.blog-detail .key-points,
.blog-detail .conclusion,
.blog-detail .cta {
    all: initial;
    display: block;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    color: #222;
    margin: 2em 0;
    padding: 1.5em;
    box-sizing: border-box;
    width: 100%;
}

/* Styles identiques à TinyMCE */
.blog-detail .definition {
    background: #f9f9f9;
    border-left: 4px solid #28a745;
    font-style: italic;
    border-radius: 6px;
}

.blog-detail .note-important {
    background: #e8f4fd;
    border: 2px solid #3498db;
    border-radius: 6px;
}

.blog-detail .key-points {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    padding-left: 3em;
}

.blog-detail .conclusion {
    background: #f0f9ff;
    border-left: 5px solid #3498db;
    border-radius: 8px;
}

.blog-detail .cta {
    background: #fff;
    border: 2px dashed #3498db;
    border-radius: 6px;
}

/* Réinitialisation des enfants */
.blog-detail .definition *,
.blog-detail .note-important *,
.blog-detail .key-points *,
.blog-detail .conclusion *,
.blog-detail .cta * {
    all: revert;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 1em;
    line-height: 1.7;
    color: inherit;
    margin: 0.8em 0;
}

/* Ajustement des marges */
.blog-detail .definition p:first-child,
.blog-detail .note-important p:first-child,
.blog-detail .key-points p:first-child,
.blog-detail .conclusion p:first-child,
.blog-detail .cta p:first-child {
    margin-top: 0;
}

.blog-detail .definition p:last-child,
.blog-detail .note-important p:last-child,
.blog-detail .key-points p:last-child,
.blog-detail .conclusion p:last-child,
.blog-detail .cta p:last-child {
    margin-bottom: 0;
}

/* Styles spécifiques enfants */
.blog-detail .conclusion h2 {
    color: #2980b9;
    border-bottom: none;
    margin-top: 0;
    font-size: 1.8em;
}

.blog-detail .definition strong {
    color: #155724;
    font-weight: 700;
}

.blog-detail .definition code {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: "Courier New", Consolas, Monaco, monospace;
}

.blog-detail .note-important strong {
    color: #004085;
}

.blog-detail .cta strong {
    color: #e74c3c;
}

/* ===== CODE ===== */
.blog-detail pre {
    font-family: "Courier New", Consolas, Monaco, monospace;
    font-size: 15px;
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1.5em;
    margin: 2em 0;
    border-radius: 6px;
    overflow-x: auto;
    line-height: 1.5;
    border-left: 4px solid #3498db;
}

.blog-detail code:not(pre code) {
    font-family: "Courier New", Consolas, Monaco, monospace;
    background: #f1f8ff;
    color: #0366d6;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
    border: 1px solid #d1d5da;
}

/* ===== LISTES ===== */
.blog-detail ul,
.blog-detail ol {
    margin: 1.5em 0 1.5em 2em;
    padding: 0;
}

.blog-detail li {
    margin: 0.7em 0;
    line-height: 1.6;
}

/* Listes dans key-points */
.blog-detail .key-points ul {
    margin-left: 0;
    padding-left: 1em;
}

.blog-detail .key-points li {
    margin: 0.5em 0;
}

/* ===== TABLES ===== */
.blog-detail table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.95em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ds-scroll-area {
    overflow-y: auto;
}

.ds-scroll-area {
    overflow-y: auto;
}

.blog-detail table th {
    background: #f8f9fa;
    font-weight: 700;
    text-align: left;
    padding: 1em;
    border: 1px solid #dee2e6;
    color: #2c3e50;
}

.blog-detail table td {
    padding: 0.9em 1em;
    border: 1px solid #dee2e6;
    vertical-align: top;
}

/* ===== IMAGES ===== */
.blog-detail img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ===== LIENS ===== */
.blog-detail a {
    color: #0366d6;
    text-decoration: none;
    border-bottom: 1px solid rgba(3, 102, 214, 0.3);
    transition: all 0.2s;
}

.blog-detail a:hover {
    color: #0056b3;
    border-bottom: 1px solid #0056b3;
}

.blog-detail ul li:before {
    content: none;
}

.blog-detail ul {
    list-style: disc;
}
