/* Blog Koann - mise en forme du HTML produit par Content Factory (content.capston.ai).
   Le contenu recu contient des titres h2/h3, des listes, des tableaux et des images inline. */

.cf-hero {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.cf-content {
    line-height: 1.7;
    overflow-wrap: break-word;
}

.cf-content h2 {
    font-size: 1.5rem;
    color: #172B4D;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.cf-content h3 {
    font-size: 1.2rem;
    color: #172B4D;
    margin-top: 2rem;
    margin-bottom: .75rem;
}

.cf-content p {
    margin-bottom: 1.25rem;
}

.cf-content ul,
.cf-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.cf-content li {
    margin-bottom: .5rem;
}

.cf-content a {
    color: #0052CC;
    text-decoration: underline;
}

.cf-content blockquote {
    border-left: 4px solid #0052CC;
    padding: .5rem 0 .5rem 1rem;
    margin: 1.5rem 0;
    color: #42526E;
    font-style: italic;
}

.cf-content img {
    max-width: 100%;
    height: auto;
    border-radius: .5rem;
    margin: 1.5rem 0;
}

.cf-content figure {
    margin: 1.5rem 0;
}

.cf-content figcaption {
    font-size: .875rem;
    color: #6B778C;
}

/* Les tableaux peuvent etre larges : on les rend defilables sur mobile. */
.cf-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    display: block;
    overflow-x: auto;
}

.cf-content th,
.cf-content td {
    border: 1px solid #DFE1E6;
    padding: .625rem .75rem;
    text-align: left;
    vertical-align: top;
}

.cf-content th {
    background-color: #F4F5F7;
    font-weight: 600;
    color: #172B4D;
}

.cf-content pre {
    background-color: #F4F5F7;
    padding: 1rem;
    border-radius: .5rem;
    overflow-x: auto;
}

.cf-content code {
    background-color: #F4F5F7;
    padding: .125rem .25rem;
    border-radius: .25rem;
    font-size: .9em;
}

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

/* Cartes de la page liste */
.cf-card {
    box-shadow: 0 2px 8px rgba(23, 43, 77, .08);
    transition: box-shadow .2s ease, transform .2s ease;
}

.cf-card:hover {
    box-shadow: 0 8px 20px rgba(23, 43, 77, .12);
    transform: translateY(-2px);
}

.cf-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
