/**
 * ============================================================================
 * COURSMARKETING.FR — HOME
 * ============================================================================
 *
 * Styles Home de base.
 * Les adaptations responsive sont centralisées dans responsive.css.
 * ============================================================================
 */

.cm-home {
    overflow: clip;
    background: #ffffff;
    color: #071b35;
}

.cm-home-section {
    padding: 38px 0;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.cm-home-hero {
    padding: 64px 0 42px;
}

.cm-home-hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(380px, 0.92fr);

    align-items: stretch;
    gap: clamp(38px, 4vw, 64px);
}

.cm-home-hero-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
}

.cm-home-eyebrow,
.cm-featured-label {
    width: fit-content;

    margin: 0 0 15px;
    padding: 6px 11px;

    border-radius: 999px;

    background: #eef5ff;
    color: #1268f5;

    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.cm-home-title {
    max-width: 720px;

    margin: 0;

    color: #061a34;

    font-size: clamp(42px, 4.15vw, 60px);
    font-weight: 750;
    line-height: 1.04;

    letter-spacing: -0.045em;
}

.cm-home-title strong {
    color: #1268f5;
    font-weight: inherit;
}

.cm-home-lead {
    max-width: 620px;

    margin: 21px 0 0;

    color: #536174;

    font-size: 15px;
    line-height: 1.65;
}

.cm-home-hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 25px;
}

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

    gap: 9px;

    min-height: 43px;
    padding: 0 18px;

    border: 1px solid transparent;
    border-radius: 6px;

    font-size: 13px;
    font-weight: 650;
    line-height: 1;

    text-decoration: none;

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

.cm-button:hover {
    transform: translateY(-1px);
}

.cm-button-primary {
    background: #1268f5;
    color: #ffffff;

    box-shadow: 0 8px 20px rgba(18, 104, 245, 0.18);
}

.cm-button-secondary {
    border-color: #1268f5;

    background: #ffffff;
    color: #1268f5;
}

.cm-home-proof {
    max-width: 590px;

    margin: 21px 0 0;

    color: #788493;

    font-size: 11px;
    line-height: 1.55;
}

/* ==========================================================================
   ARTICLE À LA UNE
   ========================================================================== */

.cm-home-featured {
    min-width: 0;
}

.cm-featured-card {
    display: flex;
    flex-direction: column;

    min-height: 350px;
    height: 100%;

    padding: clamp(30px, 3vw, 40px);

    overflow: hidden;

    border-radius: 17px;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(18, 104, 245, 0.26),
            transparent 44%
        ),
        #031b3d;

    color: #ffffff;

    box-shadow: 0 20px 46px rgba(3, 27, 61, 0.16);
}

/* ==========================================================================
   IMAGE DE L'ARTICLE À LA UNE
   ========================================================================== */

.cm-featured-image {
    display: block;

    width: 100%;

    margin: 0 0 22px;

    overflow: hidden;

    aspect-ratio: 16 / 9;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.06);
}

.cm-featured-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cm-featured-label {
    margin-bottom: 25px;

    background: #1268f5;
    color: #ffffff;
}

.cm-featured-title {
    max-width: 540px;

    margin: 0;

    font-size: clamp(27px, 2.45vw, 36px);
    font-weight: 750;
    line-height: 1.09;

    letter-spacing: -0.035em;
}

.cm-featured-title a {
    color: #ffffff;
    text-decoration: none;
}

.cm-featured-excerpt {
    max-width: 540px;

    margin: 18px 0 0;

    color: rgba(255, 255, 255, 0.74);

    font-size: 13px;
    line-height: 1.58;
}

.cm-featured-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 7px;

    margin-top: auto;
    padding-top: 28px;

    color: rgba(255, 255, 255, 0.66);

    font-size: 10px;
}

.cm-featured-link {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    gap: 9px;

    margin-top: 14px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 650;

    text-decoration: none;
}

/* ==========================================================================
   TITRES DE SECTION
   ========================================================================== */

.cm-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 28px;

    margin-bottom: 21px;
}

.cm-section-heading h2 {
    margin: 0;

    color: #071b35;

    font-size: 24px;
    font-weight: 750;
    line-height: 1.15;

    letter-spacing: -0.025em;
}

.cm-section-heading > a {
    flex: 0 0 auto;

    color: #1268f5;

    font-size: 11px;
    font-weight: 650;

    text-decoration: none;
}

/* ==========================================================================
   SIX THÉMATIQUES
   ========================================================================== */

.cm-topics-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));

    gap: 12px;
}

.cm-topic-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 150px;

    padding: 20px 17px 17px;

    border: 1px solid #e4eaf2;
    border-radius: 10px;

    background: #ffffff;
    color: #071b35;

    text-decoration: none;

    box-shadow: 0 7px 20px rgba(19, 42, 73, 0.045);

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

.cm-topic-card:hover {
    transform: translateY(-2px);

    border-color: rgba(18, 104, 245, 0.28);

    box-shadow: 0 12px 26px rgba(19, 42, 73, 0.08);
}

/*
 * Zone structurelle réservée au futur pictogramme SVG.
 * Invisible tant que les pictogrammes ne sont pas validés.
 */
.cm-topic-icon-slot {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin: 0;

    flex: 0 0 auto;
}

.cm-topic-icon-slot img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.cm-topic-card h3 {
    margin: 18px 0 0;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.cm-topic-card p {
    margin: 7px 0 0;

    color: #758194;

    font-size: 10px;
    line-height: 1.45;
}

.cm-topic-arrow {
    margin-top: auto;
    padding-top: 16px;

    color: #1268f5;

    font-size: 15px;
    line-height: 1;
}

/* ==========================================================================
   DERNIERS ARTICLES
   ========================================================================== */

.cm-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 15px;
}

.cm-latest-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 250px;

    padding: 21px;

    border: 1px solid #e7edf5;
    border-radius: 10px;

    background: #ffffff;

    box-shadow: 0 7px 20px rgba(19, 42, 73, 0.05);
}

/* ==========================================================================
   IMAGES DES DERNIERS ARTICLES
   ========================================================================== */

.cm-latest-image {
    display: block;

    margin: -21px -21px 18px;

    overflow: hidden;

    aspect-ratio: 16 / 9;

    border-radius: 9px 9px 0 0;

    background: #eef2f7;
}

.cm-latest-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cm-latest-category {
    width: fit-content;

    margin: 0 0 14px;
    padding: 4px 8px;

    border-radius: 999px;

    background: #eef5ff;
    color: #1268f5;

    font-size: 8px;
    font-weight: 700;

    text-transform: uppercase;
}

.cm-latest-card h3 {
    margin: 0;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.36;
}

.cm-latest-card h3 a {
    color: #071b35;
    text-decoration: none;
}

.cm-latest-excerpt {
    margin: 12px 0 0;

    color: #687588;

    font-size: 11px;
    line-height: 1.56;
}

.cm-latest-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: auto;
    padding-top: 18px;

    color: #8a94a3;

    font-size: 8px;
}

/* ==========================================================================
   CONTENUS INCONTOURNABLES
   ========================================================================== */

.cm-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 15px;
}

.cm-pillar-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);

    gap: 16px;

    min-width: 0;

    padding: 21px;

    border: 1px solid #e7edf5;
    border-radius: 10px;

    background: #ffffff;

    box-shadow: 0 7px 20px rgba(19, 42, 73, 0.045);
}

.cm-pillar-card h3 {
    margin: 0;

    font-size: 13px;
    line-height: 1.3;
}

.cm-pillar-card p {
    margin: 7px 0 10px;

    color: #6d798a;

    font-size: 10px;
    line-height: 1.5;
}

.cm-pillar-card a {
    color: #1268f5;

    font-size: 10px;
    font-weight: 650;

    text-decoration: none;
}


.cm-home-empty {
    margin: 0;

    color: #6d798a;

    font-size: 13px;
}

/* ==========================================================================
   RESPIRATION ENTRE THÉMATIQUES ET ARTICLES
   ========================================================================== */

/*
 * La section des thématiques contient un rail animé.
 * Une respiration inférieure dédiée évite que le carrousel soit
 * visuellement collé à la section éditoriale suivante.
 */
.cm-home-topics {
    padding-bottom: 62px;
}


/*
 * La colonne gauche porte tout le contenu éditorial.
 * Le CTA reste dans le flux naturel : aucun positionnement en bas de panneau.
 */
/*
 * Les bénéfices complètent l'explication sans recréer une troisième colonne.
 */
/*
 * Le bouton suit directement les bénéfices.
 */
/*
 * Visuel de droite.
 */


/* ==========================================================================
   PICTOGRAMMES — GUIDES INCONTOURNABLES
   ========================================================================== */

.cm-pillar-marker {
    width: 38px;
    height: 38px;

    overflow: hidden;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #1268f5,
            #031b3d
        );
}

.cm-pillar-marker img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* ==========================================================================
   KREABOARD
   ========================================================================== */

.cm-home-kreaboard {
    padding-top: 43px;
    padding-bottom: 58px;
}

.cm-kreaboard-panel {
    display: grid;
    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(250px, 0.85fr);

    align-items: center;

    gap: clamp(28px, 4vw, 58px);

    padding: 34px 38px;

    border-radius: 13px;

    background:
        radial-gradient(
            circle at 20% 100%,
            rgba(18, 104, 245, 0.34),
            transparent 36%
        ),
        #031b3d;

    color: #ffffff;
}

.cm-kreaboard-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
}

.cm-kreaboard-eyebrow {
    margin: 0 0 6px;

    color: #a8caff;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cm-kreaboard-copy h2 {
    max-width: 620px;

    margin: 0;

    font-size: clamp(23px, 2vw, 29px);
    line-height: 1.14;

    letter-spacing: -0.025em;
}

.cm-kreaboard-copy h2 strong {
    color: #1680ff;
}

.cm-kreaboard-intro {
    max-width: 650px;

    margin: 11px 0 0;

    color: rgba(255, 255, 255, 0.74);

    font-size: 11px;
    line-height: 1.58;
}

.cm-kreaboard-copy .cm-kreaboard-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    width: 100%;
    max-width: 650px;

    gap: 11px 26px;

    margin: 22px 0 0;
    padding: 0;

    list-style: none;
}

.cm-kreaboard-copy .cm-kreaboard-benefits li {
    position: relative;

    margin: 0;
    padding-left: 17px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 11px;
    line-height: 1.5;
}

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

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

    color: #1d7cff;

    font-weight: 800;
}

.cm-kreaboard-copy .cm-kreaboard-benefits strong {
    color: #ffffff;
    font-weight: 750;
}

.cm-kreaboard-copy .cm-kreaboard-action {
    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 11px;

    margin-top: 26px;
}

.cm-button-kreaboard {
    white-space: nowrap;

    background: #1268f5;
    color: #ffffff;

    box-shadow: 0 8px 22px rgba(18, 104, 245, 0.22);
}

.cm-kreaboard-note {
    color: rgba(255, 255, 255, 0.58);

    font-size: 8px;
}

.cm-kreaboard-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;

    min-width: 0;
}

.cm-kreaboard-visual img {
    display: block;

    width: min(100%, 340px);
    height: auto;

    object-fit: contain;
}

