/*
============================================================================
COURSMARKETING.FR — PAGE RESSOURCES
============================================================================
*/

.cm-resources-page {
    --cm-res-blue: #1264f7;
    --cm-res-dark: #081b3c;
    --cm-res-text: #17253e;
    --cm-res-muted: #69768a;
    --cm-res-border: #e2e9f2;
    --cm-res-soft: #f5f9ff;

    background: #ffffff;
    color: var(--cm-res-text);
}

.cm-resources-page *,
.cm-resources-page *::before,
.cm-resources-page *::after {
    box-sizing: border-box;
}

.cm-resources-container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}


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

.cm-resources-hero {
    padding: 30px 0 36px;
}

.cm-resources-breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    color: #8190a4;
    font-size: 12px;
}

.cm-resources-breadcrumb a {
    color: #4774ad;
    text-decoration: none;
}

.cm-resources-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.cm-resources-eyebrow {
    margin: 0 0 12px;
    color: var(--cm-res-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
}

.cm-resources-hero h1 {
    max-width: 620px;
    margin: 0;
    color: var(--cm-res-dark);
    font-size: clamp(42px, 5vw, 62px);
    line-height: 1.03;
    letter-spacing: -.04em;
}

.cm-resources-hero-copy > p:not(.cm-resources-eyebrow) {
    max-width: 610px;
    margin: 20px 0 0;
    color: var(--cm-res-muted);
    font-size: 15px;
    line-height: 1.7;
}

.cm-resources-hero-button {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    margin-top: 22px;
    padding: 0 18px;
    border-radius: 7px;
    background: var(--cm-res-blue);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.cm-resources-hero-visual {
    display: flex;
    justify-content: center;
}


.cm-resources-hero-image {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin-inline: auto;
    object-fit: contain;
}

/*
============================================================================
FILTRES
============================================================================
*/

.cm-resources-library {
    padding: 28px 0 10px;
}

.cm-resources-filters {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px;
    border: 1px solid var(--cm-res-border);
    border-radius: 10px;
}


.cm-resources-page .cm-resource-filter {
    min-height: 34px;
    border: 1px solid #d7e2f2 !important;
    border-radius: 7px;
    background: #ffffff !important;
    color: #081b3c !important;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    box-shadow: none !important;
}

.cm-resources-page .cm-resource-filter:hover:not(.is-active) {
    border-color: #9fbcf5 !important;
    background: #f3f7ff !important;
    color: #081b3c !important;
}

.cm-resources-page .cm-resource-filter.is-active {
    border-color: #1264f7 !important;
    background: #1264f7 !important;
    color: #ffffff !important;
    font-weight: 700;
}
/*
============================================================================
GRILLE
============================================================================
*/

.cm-resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.cm-resource-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    min-height: 150px;
    padding: 14px;
    border: 1px solid var(--cm-res-border);
    border-radius: 12px;
    background: #ffffff;
}

.cm-resource-card[hidden] {
    display: none;
}

.cm-resource-icon {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: var(--cm-res-soft);
}

.cm-resource-icon img {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.cm-resource-copy {
    min-width: 0;
}

.cm-resource-copy h2 {
    margin: 0 0 6px;
    color: var(--cm-res-dark);
    font-size: 14px;
    line-height: 1.3;
}

.cm-resource-copy p {
    margin: 0 0 10px;
    color: var(--cm-res-muted);
    font-size: 11px;
    line-height: 1.5;
}

.cm-resource-type {
    display: inline-flex;
    padding: 3px 6px;
    border: 1px solid #bcd1fb;
    border-radius: 4px;
    background: #f3f7ff;
    color: #225ecc;
    font-size: 9px;
    font-weight: 700;
}

.cm-resource-download {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid #8ab1ff;
    border-radius: 6px;
    color: var(--cm-res-blue);
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.cm-resource-download:hover {
    background: #eef5ff;
}

.cm-resources-empty {
    padding: 34px;
    border: 1px dashed var(--cm-res-border);
    border-radius: 12px;
    color: var(--cm-res-muted);
    text-align: center;
}


/*
============================================================================
INFO
============================================================================
*/

.cm-resources-info {
    padding: 10px 0 20px;
}

.cm-resources-info-box {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 13px 16px;
    border: 1px solid #d4e3ff;
    border-radius: 10px;
    background: #f4f8ff;
}

.cm-resources-info-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--cm-res-blue);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.cm-resources-info-box p {
    margin: 0;
    color: var(--cm-res-muted);
    font-size: 11px;
}


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

.cm-resources-kreaboard {
    padding: 6px 0 54px;
}

.cm-resources-kreaboard-box {
    position: relative;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) auto;
    gap: 34px;
    align-items: center;
    overflow: hidden;
    min-height: 210px;
    padding: 30px 34px;
    border: 1px solid #bfd6ff;
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 88% 28%,
            rgba(37, 99, 235, .08),
            transparent 24%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7faff 100%
        );
    box-shadow: 0 18px 45px rgba(37, 99, 235, .08);
}

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

.cm-resources-kreaboard-panel {
    position: relative;
    width: 190px;
    height: 150px;
    overflow: hidden;
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            #1765f5,
            #0d48be
        );
    box-shadow: 0 18px 34px rgba(25, 88, 210, .22);
}

.cm-resources-kreaboard-doc,
.cm-resources-kreaboard-list,
.cm-resources-kreaboard-folder {
    position: absolute;
    display: block;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(4, 33, 89, .12);
}

.cm-resources-kreaboard-doc::before,
.cm-resources-kreaboard-doc::after,
.cm-resources-kreaboard-list::before,
.cm-resources-kreaboard-list::after {
    content: "";
    position: absolute;
    left: 14px;
    height: 7px;
    border-radius: 6px;
    background: #dce8fb;
}

.cm-resources-kreaboard-doc-a {
    top: 24px;
    left: 25px;
    width: 86px;
    height: 88px;
}

.cm-resources-kreaboard-doc-a::before {
    top: 20px;
    width: 46px;
}

.cm-resources-kreaboard-doc-a::after {
    top: 38px;
    width: 58px;
}

.cm-resources-kreaboard-doc-b {
    top: 40px;
    right: 24px;
    width: 72px;
    height: 76px;
}

.cm-resources-kreaboard-doc-b::before {
    top: 18px;
    width: 34px;
}

.cm-resources-kreaboard-doc-b::after {
    top: 35px;
    width: 44px;
}

.cm-resources-kreaboard-list {
    left: 18px;
    bottom: 20px;
    width: 92px;
    height: 60px;
}

.cm-resources-kreaboard-list::before {
    top: 15px;
    width: 50px;
}

.cm-resources-kreaboard-list::after {
    top: 32px;
    width: 62px;
}

.cm-resources-kreaboard-folder {
    right: 18px;
    bottom: 16px;
    width: 78px;
    height: 54px;
    background:
        linear-gradient(
            180deg,
            #6aa0ff,
            #3d78e7
        );
}

.cm-resources-kreaboard-content {
    min-width: 0;
}

.cm-resources-kreaboard-content h2 {
    max-width: 610px;
    margin: 0 0 12px;
    color: var(--cm-res-dark);
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.cm-resources-kreaboard-content p {
    max-width: 600px;
    margin: 0;
    color: var(--cm-res-muted);
    font-size: 14px;
    line-height: 1.6;
}

.cm-resources-kreaboard-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 20px;
}

.cm-resources-kreaboard-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cm-res-dark);
    font-size: 12px;
    font-weight: 700;
}

.cm-resources-kreaboard-benefits i {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #eaf2ff;
    color: var(--cm-res-blue);
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
}

.cm-resources-kreaboard-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 10px;
    background: var(--cm-res-blue);
    color: #ffffff;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
    transition:
        background-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.cm-resources-kreaboard-button:hover {
    background: #0e54d8;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .24);
}


/*
============================================================================
RESPONSIVE
============================================================================
*/

@media (max-width: 1050px) {

    .cm-resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cm-resource-card {
        grid-template-columns: 72px 1fr;
    }

    .cm-resource-download {
        grid-column: 2;
        justify-self: start;
    }

}

@media (max-width: 760px) {

    .cm-resources-container {
        width: min(100% - 32px, 1160px);
    }

    .cm-resources-hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .cm-resources-filters {
        grid-template-columns: repeat(2, 1fr);
    }

    .cm-resources-grid {
        grid-template-columns: 1fr;
    }

    .cm-resources-kreaboard-box {
        grid-template-columns: 48px 1fr;
    }

    .cm-resources-kreaboard-box > a {
        grid-column: 2;
        justify-self: start;
    }

}

@media (max-width: 520px) {

    .cm-resource-card {
        grid-template-columns: 58px 1fr;
    }

    .cm-resource-icon {
        width: 58px;
        height: 58px;
    }

    .cm-resource-icon img {
        width: 46px;
        height: 46px;
    }

    .cm-resources-hero h1 {
        font-size: 38px;
    }

}

@media (max-width: 980px) {

    .cm-resources-kreaboard-box {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .cm-resources-kreaboard-panel {
        width: 165px;
        height: 135px;
    }

    .cm-resources-kreaboard-button {
        grid-column: 2;
        justify-self: start;
    }

}

@media (max-width: 720px) {

    .cm-resources-kreaboard-box {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 26px;
    }

    .cm-resources-kreaboard-visual {
        justify-content: flex-start;
    }

    .cm-resources-kreaboard-content h2 {
        font-size: 23px;
    }

    .cm-resources-kreaboard-button {
        grid-column: auto;
        justify-self: start;
    }

}
