/* Homepage « Nouveau » section (compNewSkills) */

.ns-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;

    @media (max-width: 589px) {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ns-card {
    border: 1px solid var(--grey-blue-light);
    border-radius: 1.4rem;
    line-height: 1.4;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;

    &:hover {
        transform: translateY(-3px);
        border-color: var(--blue-light);
        box-shadow: 0 12px 28px rgba(5, 42, 84, 0.12);
    }

    /* Latest fiche spans the full width; on phones every card is identical */
    &:first-child {
        @media (min-width: 590px) {
            grid-column: span 2;

            & .ns-title {
                font-size: 2.1rem;
                font-weight: 800;
                letter-spacing: -0.01em;
            }
        }
    }
}

.ns-img {
    aspect-ratio: 575 / 216;
    border-bottom: 1px solid var(--blue-grey);

    & img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.ns-body {
    padding: 1.4rem 1.6rem 1.6rem;
}

.ns-title {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--blue-dark);
}

.ns-ago {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.3rem;
    color: var(--grey-dark);

    &::before {
        content: '';
        width: 7px;
        height: 7px;
        background-color: var(--blue-light);
        border-radius: 50%;
        box-shadow: 0 0 0 3px rgba(63, 136, 245, 0.18);
    }
}
