/**
 * ============================================================================
 * COURSMARKETING.FR — ARTICLE
 * ============================================================================
 *
 * Design desktop du modèle unique d'article.
 *
 * PÉRIMÈTRE :
 * - breadcrumb ;
 * - header éditorial ;
 * - métadonnées ;
 * - image mise en avant ;
 * - layout contenu + sidebar ;
 * - sommaire ;
 * - contenu éditorial ;
 * - CTA KreaBoard principal et sidebar ;
 * - auteur ;
 * - partage ;
 * - commentaires WordPress.
 *
 * Le responsive est géré séparément dans responsive.css.
 * ============================================================================
 */


/* ==========================================================================
   1. PAGE ARTICLE
   ========================================================================== */

.cm-article {
    width: 100%;
    background: #ffffff;
    color: #172033;
}

.cm-article-container {
    width: min(1140px, calc(100% - 56px));
    margin: 0 auto;
    padding: 30px 0 84px;
    padding-top: 22px;
    padding-bottom: 56px;
}


/* ==========================================================================
   2. FIL D'ARIANE
   ========================================================================== */

.cm-article-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 34px;
    font-size: 12px;
    line-height: 1.4;
    color: #7a8497;
    margin-bottom: 22px;
}

.cm-article-breadcrumb a {
    color: #5d687b;
    text-decoration: none;
}

.cm-article-breadcrumb a:hover,
.cm-article-breadcrumb a:focus-visible {
    color: #0f55f5;
    text-decoration: underline;
}


/* ==========================================================================
   3. HEADER ARTICLE
   ========================================================================== */

.cm-article-header {
    max-width: none;
    margin: 0 0 34px;
    text-align: left;
}

.cm-article-category {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 18px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #0f55f5;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cm-article-category:hover,
.cm-article-category:focus-visible {
    text-decoration: underline;
}

.cm-article-title {
    max-width: 760px;
    margin: 0;
    color: #172033;
    font-size: clamp(34px, 3.2vw, 48px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.cm-article-lead {
    max-width: 730px;
    margin: 14px 0 0;
    color: #667085;
    font-size: 16px;
    line-height: 1.55;
}

.cm-article-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 16px;
    color: #7b8494;
    font-size: 11px;
    line-height: 1.5;
}

.cm-article-meta > * {
    position: relative;
}

.cm-article-meta > *:not(:last-child)::after {
    content: "";

    position: absolute;
    top: 50%;
    right: -13px;

    width: 3px;
    height: 3px;

    border-radius: 50%;
    background: #b7bfca;

    transform: translateY(-50%);
}

.cm-article-author {
    color: #3d4758;
    font-weight: 600;
}


/* ==========================================================================
   4. IMAGE MISE EN AVANT
   ========================================================================== */

.cm-article-featured-image {
    margin: 38px auto 0;

    border-radius: 22px;
    background: #f3f5f8;
}

.cm-article-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}


/* --------------------------------------------------------------------------
   Header avec vraie image mise en avant
   -------------------------------------------------------------------------- */

.cm-article-header:has(.cm-article-featured-image) {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr)
        minmax(340px, 0.85fr);
    column-gap: 46px;
    align-items: center;
}

.cm-article-header:has(.cm-article-featured-image)
.cm-article-category,
.cm-article-header:has(.cm-article-featured-image)
.cm-article-title,
.cm-article-header:has(.cm-article-featured-image)
.cm-article-lead,
.cm-article-header:has(.cm-article-featured-image)
.cm-article-meta {
    grid-column: 1;
}

.cm-article-header:has(.cm-article-featured-image)
.cm-article-featured-image {
    grid-column: 2;
    grid-row: 1 / 6;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    border-radius: 14px;
}

.cm-article-header:has(.cm-article-featured-image)
.cm-article-featured-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   5. LAYOUT PRINCIPAL
   ========================================================================== */

.cm-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr)
        286px;
    gap: 38px;
    align-items: start;
}

.cm-article-main-column {
    min-width: 0;
    max-width: 760px;
}

.cm-article-sidebar {
    display: grid;
    gap: 18px;
    min-width: 0;
}


/* ==========================================================================
   6. SOMMAIRE
   ========================================================================== */

.cm-article-toc {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.cm-article-toc-title {
    margin: 0 0 14px;
    color: #172033;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
}

.cm-article-toc-list:empty {
    display: none;
}

.cm-article-toc-list ul,
.cm-article-toc-list ol {
    display: grid;
    gap: 3px;
    margin: 0;
    padding-left: 18px;
}

.cm-article-toc-list a {
    color: #4d596c;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
}

.cm-article-toc-list a:hover,
.cm-article-toc-list a:focus-visible {
    color: #0f55f5;
    text-decoration: underline;
}


/* ==========================================================================
   7. CONTENU ÉDITORIAL
   ========================================================================== */

.cm-article-content {
    min-width: 0;
    color: #30394a;
    font-size: 15px;
    line-height: 1.7;
}

.cm-article-content > *:first-child {
    margin-top: 0;
}

.cm-article-content > *:last-child {
    margin-bottom: 0;
}

.cm-article-content p {
    margin: 0 0 24px;
    margin-bottom: 17px;
}

.cm-article-content h2 {
    margin: 34px 0 12px;
    color: #172033;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.025em;
}

.cm-article-content h3 {
    margin: 25px 0 10px;
    color: #202a3c;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.018em;
}

.cm-article-content h4 {
    margin: 22px 0 9px;
    color: #2d3748;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.35;
}

.cm-article-content ul,
.cm-article-content ol {
    margin: 0 0 26px;
    padding-left: 26px;
    margin-bottom: 18px;
}

.cm-article-content li + li {
    margin-top: 4px;
}

.cm-article-content strong {
    color: #202a3c;
    font-weight: 700;
}

.cm-article-content a {
    color: #0f55f5;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.cm-article-content blockquote {
    margin: 22px 0;
    padding: 14px 18px;
    border-left: 4px solid #0f55f5;
    border-radius: 0 14px 14px 0;
    background: #f7f9fc;
    color: #475467;
    font-size: 14px;
    line-height: 1.7;
}

.cm-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.cm-article-content figure {
    margin: 24px 0;
}

.cm-article-content figcaption {
    margin-top: 10px;

    color: #8a94a6;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.cm-article-content table {
    width: 100%;
    margin: 32px 0;

    border-collapse: collapse;
    overflow: hidden;

    border: 1px solid #e2e7ee;
    border-radius: 14px;

    font-size: 15px;
}

.cm-article-content th,
.cm-article-content td {
    padding: 14px 16px;
    border-bottom: 1px solid #e7ebf1;
    text-align: left;
    vertical-align: top;
}

.cm-article-content th {
    background: #f7f9fc;
    color: #253044;
    font-weight: 700;
}


/* ==========================================================================
   8. CARTES SIDEBAR
   ========================================================================== */

.cm-article-sidebar-card {
    padding: 18px;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    background: #ffffff;
}

.cm-article-sidebar-card h2 {
    margin: 0 0 18px;
    color: #172033;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 14px;
}


/* --------------------------------------------------------------------------
   Articles liés
   -------------------------------------------------------------------------- */

.cm-article-related-list {
    display: grid;
    gap: 14px;
}

.cm-article-related-item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
    padding: 0;
}

.cm-article-related-item--without-image {
    grid-template-columns: minmax(0, 1fr);
}

.cm-article-related-image {
    display: block;
    width: 84px;
    height: 64px;
    overflow: hidden;
    border-radius: 7px;
    background: #f3f5f8;
}

.cm-article-related-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cm-article-related-content {
    min-width: 0;
}

.cm-article-related-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px 5px;
    margin: 0 0 4px;
    color: #8a94a6;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.25;
}

.cm-article-related-meta span {
    color: #0f55f5;
}

.cm-article-related-meta span::after {
    content: "·";
    margin-left: 7px;
    color: #a8b0bc;
}

.cm-article-related-title {
    margin: 0;
    font-size: 9px;
    font-weight: 650;
    line-height: 1.35;
}

.cm-article-related-title a {
    color: #263143;
    text-decoration: none;
}

.cm-article-related-title a:hover,
.cm-article-related-title a:focus-visible {
    color: #0f55f5;
}


/* --------------------------------------------------------------------------
   État vide Articles liés
   -------------------------------------------------------------------------- */

.cm-article-related-empty {
    margin: 0;
    color: #7b8494;
    font-size: 11px;
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Articles populaires — attente d'une métrique réelle
   -------------------------------------------------------------------------- */

.cm-article-popular-empty {
    margin: 0;
    color: #7b8494;
    font-size: 11px;
    line-height: 1.45;
}


/* ==========================================================================
   9. CTA KREABOARD — BASE
   ========================================================================== */

.cm-article-kreaboard {
    border-radius: 22px;
}

.cm-article-kreaboard-eyebrow {
    margin: 0 0 10px;

    color: #0f55f5;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cm-article-kreaboard h2 {
    margin: 0;

    color: #172033;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cm-article-kreaboard h2 strong {
    color: #0f55f5;
}

.cm-article-kreaboard-intro {
    color: #596579;
    line-height: 1.65;
}

.cm-article-kreaboard-benefits {
    margin: 0;
    padding: 0;

    list-style: none;
}

.cm-article-kreaboard-benefits li {
    position: relative;
    padding-left: 22px;

    color: #4f5b6e;
    line-height: 1.55;
}

.cm-article-kreaboard-benefits li::before {
    content: "✓";

    position: absolute;
    top: 0;
    left: 0;

    color: #0f55f5;
    font-weight: 800;
}

.cm-article-kreaboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    background: #0f55f5;

    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.cm-article-kreaboard-button:hover,
.cm-article-kreaboard-button:focus-visible {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 85, 245, 0.18);
}

.cm-article-kreaboard-note {
    display: block;

    color: #8a94a6;
    font-size: 12px;
    line-height: 1.5;
}


/* ==========================================================================
   10. CTA KREABOARD PRINCIPAL
   ========================================================================== */

.cm-article-kreaboard--main {
    margin: 32px 0 0;
    padding: 22px 24px;
    border: 1px solid #dce6ff;
    background: linear-gradient(
            135deg,
            #f4f7ff 0%,
            #ffffff 100%
        );
    border-radius: 12px;
}

.cm-article-kreaboard--main
.cm-article-kreaboard-eyebrow {
    margin-bottom: 5px;
    font-size: 9px;
}

.cm-article-kreaboard--main h2 {
    max-width: 520px;
    font-size: 20px;
    line-height: 1.2;
}

.cm-article-kreaboard--main .cm-article-kreaboard-intro {
    max-width: 580px;
    margin: 16px 0 0;
    font-size: 12px;
    margin-top: 9px;
    line-height: 1.5;
}

.cm-article-kreaboard--main .cm-article-kreaboard-benefits {
    display: grid;
    gap: 5px 18px;
    margin-top: 13px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cm-article-kreaboard--main .cm-article-kreaboard-benefits li {
    font-size: 10px;
    padding-left: 17px;
}

.cm-article-kreaboard--main .cm-article-kreaboard-button {
    margin-top: 15px;
    padding: 9px 14px;
    font-size: 10px;
    border-radius: 7px;
}

.cm-article-kreaboard--main .cm-article-kreaboard-note {
    margin-top: 6px;
    font-size: 9px;
}


/* ==========================================================================
   11. CTA KREABOARD SIDEBAR
   ========================================================================== */

.cm-article-sidebar-kreaboard {
    min-width: 0;
}

.cm-article-kreaboard--sidebar {
    padding: 18px;
    border: 1px solid #dce6ff;
    background: #f5f8ff;
    border-radius: 12px;
}

.cm-article-kreaboard--sidebar
.cm-article-kreaboard-eyebrow {
    margin-bottom: 5px;
    font-size: 8px;
}

.cm-article-kreaboard--sidebar h2 {
    font-size: 15px;
}

.cm-article-kreaboard--sidebar .cm-article-kreaboard-intro {
    margin: 12px 0 0;
    font-size: 10px;
    margin-top: 8px;
    line-height: 1.45;
}

.cm-article-kreaboard--sidebar .cm-article-kreaboard-benefits {
    display: grid;
    gap: 5px;
    margin-top: 10px;
}

.cm-article-kreaboard--sidebar .cm-article-kreaboard-benefits li {
    padding-left: 15px;
    font-size: 9px;
}

.cm-article-kreaboard--sidebar .cm-article-kreaboard-button {
    width: 100%;
    margin-top: 12px;
    padding: 9px 10px;
    font-size: 10px;
    border-radius: 7px;
}

.cm-article-kreaboard--sidebar .cm-article-kreaboard-note {
    margin-top: 6px;
    text-align: center;
    font-size: 8px;
}


/* ==========================================================================
   12. BLOC AUTEUR
   ========================================================================== */

.cm-article-author-box {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    margin-top: 28px;
    padding: 16px 18px;
    border: 1px solid #e4e8ef;
    border-radius: 11px;
    background: #ffffff;
}

.cm-article-author-avatar img {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.cm-article-author-eyebrow {
    margin: 0 0 5px;
    color: #7b8494;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.cm-article-author-content h2 {
    margin: 0;
    color: #172033;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.cm-article-author-content p {
    margin: 10px 0 0;
    color: #667085;
    font-size: 10px;
    line-height: 1.45;
    margin-top: 6px;
}

.cm-article-author-content a {
    display: inline-block;
    margin-top: 6px;
    color: #0f55f5;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
}

.cm-article-author-content a:hover,
.cm-article-author-content a:focus-visible {
    text-decoration: underline;
}


/* ==========================================================================
   13. PARTAGE
   ========================================================================== */

.cm-article-share {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #e6eaf0;
}

.cm-article-share h2 {
    margin: 0 0 14px;
    color: #172033;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 9px;
}

.cm-article-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cm-article-share-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    padding: 5px 9px;
    border: 1px solid #dce1e8;
    border-radius: 6px;
    background: #ffffff;
    color: #3d4758;
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
}

.cm-article-share-links a:hover,
.cm-article-share-links a:focus-visible {
    border-color: #b9cdfd;
    color: #0f55f5;
}


/* ==========================================================================
   14. COMMENTAIRES WORDPRESS
   ========================================================================== */

.cm-article-main-column .comments-area {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e6eaf0;
}

.cm-article-main-column .comments-area .title-comments,
.cm-article-main-column .comment-reply-title {
    margin: 0 0 22px;
    color: #172033;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 14px;
}

.cm-article-main-column .comment-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.cm-article-main-column .comment-body {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid #e5e9ef;
    border-radius: 9px;
    background: #ffffff;
}

.cm-article-main-column .comment-author {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #2f3949;
}

.cm-article-main-column .comment-author img {
    border-radius: 50%;
}

.cm-article-main-column .comment-metadata {
    margin-top: 6px;

    font-size: 12px;
    color: #8a94a6;
}

.cm-article-main-column .comment-content {
    margin-top: 8px;
    color: #4d596c;
    font-size: 11px;
    line-height: 1.65;
}

.cm-article-main-column .comment-form {
    display: grid;
    gap: 10px;
}

.cm-article-main-column .comment-form p {
    margin: 0;
}

.cm-article-main-column .comment-form label {
    display: block;
    margin-bottom: 7px;

    color: #394456;
    font-size: 13px;
    font-weight: 700;
}

.cm-article-main-column .comment-form input[type="text"],
.cm-article-main-column .comment-form input[type="email"],
.cm-article-main-column .comment-form input[type="url"],
.cm-article-main-column .comment-form textarea {
    width: 100%;
    padding: 12px 14px;

    border: 1px solid #d8dee8;
    border-radius: 10px;
    background: #ffffff;

    color: #283244;
    font: inherit;
}

.cm-article-main-column .comment-form textarea {
    min-height: 110px;
    resize: vertical;
}

.cm-article-main-column .comment-form input:focus,
.cm-article-main-column .comment-form textarea:focus {
    outline: 2px solid rgba(15, 85, 245, 0.18);
    outline-offset: 1px;
    border-color: #8eb0ff;
}

.cm-article-main-column .form-submit .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 0;
    border-radius: 7px;
    background: #0f55f5;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}


/* ==========================================================================
   15. NAVIGATION DES PAGES D'UN ARTICLE
   ========================================================================== */

.cm-article-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 30px;
    padding-top: 22px;

    border-top: 1px solid #e6eaf0;
}

.cm-article-page-links a,
.cm-article-page-links > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 34px;
    min-height: 34px;
    padding: 6px 10px;

    border: 1px solid #dbe1e9;
    border-radius: 9px;

    color: #3d4758;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}


/* ==========================================================================
   16. ACCESSIBILITÉ
   ========================================================================== */

.cm-article a:focus-visible,
.cm-article button:focus-visible,
.cm-article input:focus-visible,
.cm-article textarea:focus-visible {
    outline: 2px solid #0f55f5;
    outline-offset: 3px;
}
