/* Header Actualité startups — stacked card slider (type capture) */
.kn-actu-hero {
    --kn-actu-radius: 20px;
    --kn-actu-card-w: 200px;
    --kn-actu-card-h: 250px;
    --kn-actu-gap: 20px;
    width: 100%;
    margin: 0 0 1.75rem;
}

.kn-actu-hero__frame {
    position: relative;
    width: 100%;
    max-width: 920px;
    height: 420px;
    margin: 0 auto;
    background: #111827;
    box-shadow: 0 30px 50px rgba(15, 23, 42, 0.18);
    border-radius: var(--kn-actu-radius);
    overflow: hidden;
}

.kn-actu-hero__slide {
    position: absolute;
    inset: 0;
    border-radius: var(--kn-actu-radius);
}

.kn-actu-hero__item {
    width: var(--kn-actu-card-w);
    height: var(--kn-actu-card-h);
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(0, -50%);
    border-radius: var(--kn-actu-radius);
    box-shadow: 0 28px 48px rgba(0, 0, 0, 0.45);
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
    background-color: #1f2937;
    display: inline-block;
    transition: all 0.5s ease;
    z-index: 1;
}

/* Slide actif = plein cadre (item 2) ; item 1 reste en fond plein derrière */
.kn-actu-hero__item:nth-child(1),
.kn-actu-hero__item:nth-child(2) {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    border-radius: var(--kn-actu-radius);
    box-shadow: none;
}

.kn-actu-hero__item:nth-child(1) {
    z-index: 1;
}

.kn-actu-hero__item:nth-child(2) {
    z-index: 2;
}

/* Cartes preview à droite */
.kn-actu-hero__item:nth-child(3) {
    left: 52%;
    z-index: 3;
}

.kn-actu-hero__item:nth-child(4) {
    left: calc(52% + var(--kn-actu-card-w) + var(--kn-actu-gap));
    z-index: 3;
}

.kn-actu-hero__item:nth-child(5) {
    left: calc(52% + (var(--kn-actu-card-w) + var(--kn-actu-gap)) * 2);
    z-index: 3;
}

.kn-actu-hero__item:nth-child(n + 6) {
    left: calc(52% + (var(--kn-actu-card-w) + var(--kn-actu-gap)) * 3);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

/* Overlay sombre à gauche pour lisibilité du texte */
.kn-actu-hero__item:nth-child(2)::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.45) 38%,
        rgba(0, 0, 0, 0.12) 58%,
        transparent 72%
    );
    pointer-events: none;
    z-index: 1;
}

.kn-actu-hero__content {
    position: absolute;
    top: 50%;
    left: clamp(1.35rem, 9vw, 100px);
    width: min(320px, 42%);
    text-align: left;
    color: #f8fafc;
    transform: translate(0, -50%);
    display: none;
    z-index: 2;
}

.kn-actu-hero__item:nth-child(2) .kn-actu-hero__content {
    display: block;
}

.kn-actu-hero__name {
    font-family: Manrope, "DM Sans", system-ui, sans-serif;
    font-size: clamp(1.75rem, 4.2vw, 2.55rem);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0;
    opacity: 0;
    animation: kn-actu-animate 1s ease-in-out 1 forwards;
}

.kn-actu-hero__des {
    margin: 0.75rem 0 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(248, 250, 252, 0.92);
    opacity: 0;
    animation: kn-actu-animate 1s ease-in-out 0.3s 1 forwards;
}

.kn-actu-hero__cta {
    display: inline-flex;
    text-decoration: none;
}

.kn-actu-hero__cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.2rem;
    border: none;
    cursor: pointer;
    opacity: 0;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.72);
    color: #111827;
    font-weight: 700;
    font-size: 0.92rem;
    transition: background-color 0.35s ease, transform 0.2s ease;
    animation: kn-actu-animate 1s ease-in-out 0.6s 1 forwards;
}

.kn-actu-hero__cta:hover .kn-actu-hero__cta-btn {
    background-color: #fff;
}

@keyframes kn-actu-animate {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }
    to {
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

.kn-actu-hero__nav {
    display: flex;
    flex-direction: row;
    gap: 0.65rem;
    position: absolute;
    left: 50%;
    bottom: 1.15rem;
    transform: translateX(-50%);
    z-index: 6;
}

.kn-actu-hero__nav button {
    width: 42px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.45);
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.62);
    color: #111;
    line-height: 1;
    font-size: 0.95rem;
}

.kn-actu-hero__nav button:hover,
.kn-actu-hero__nav button:focus-visible {
    background: #fff;
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.08);
}

@media (max-width: 900px) {
    .kn-actu-hero__frame {
        height: 380px;
    }

    .kn-actu-hero__item:nth-child(3) {
        left: 58%;
    }

    .kn-actu-hero__item:nth-child(4),
    .kn-actu-hero__item:nth-child(5),
    .kn-actu-hero__item:nth-child(n + 6) {
        opacity: 0;
        pointer-events: none;
    }

    .kn-actu-hero__content {
        width: min(280px, 48%);
    }
}

@media (max-width: 640px) {
    .kn-actu-hero__frame {
        height: 340px;
        border-radius: 16px;
    }

    .kn-actu-hero__item:nth-child(3),
    .kn-actu-hero__item:nth-child(4),
    .kn-actu-hero__item:nth-child(5),
    .kn-actu-hero__item:nth-child(n + 6) {
        display: none;
    }

    .kn-actu-hero__content {
        left: 1.15rem;
        width: calc(100% - 2.3rem);
    }

    .kn-actu-hero__item:nth-child(2)::before {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.25) 0%,
            rgba(0, 0, 0, 0.55) 45%,
            rgba(0, 0, 0, 0.7) 100%
        );
    }
}

/* Largeur page pour laisser respirer le slider */
.kn-adminlte.kn-adminlte--startup-news .app-content-header {
    display: none;
}

.kn-adminlte.kn-adminlte--startup-news .app-content > .container-fluid {
    max-width: min(100%, 980px);
}

.kn-startup-news__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.kn-startup-news__cat {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.kn-startup-news__cat.is-active,
.kn-startup-news__cat:hover {
    border-color: #e30613;
    color: #e30613;
}

.kn-startup-news__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.kn-startup-news__card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #fff;
    overflow: hidden;
}

.kn-startup-news__cover {
    display: block;
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    overflow: hidden;
}

.kn-startup-news__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kn-startup-news__cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #94a3b8;
    font-size: 1.75rem;
}

.kn-startup-news__card-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.9rem 1rem 1.05rem;
    flex: 1;
}

.kn-startup-news__badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.72rem;
    font-weight: 700;
}

.kn-startup-news__card-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.kn-startup-news__card-title a {
    color: inherit;
    text-decoration: none;
}

.kn-startup-news__card-title a:hover {
    color: #e30613;
}

.kn-startup-news__excerpt {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.45;
}

.kn-startup-news__article-cover img {
    width: 100%;
    max-height: 28rem;
    object-fit: cover;
}

.kn-startup-news__gallery {
    display: grid;
    gap: 1.25rem;
}

.kn-startup-news__media {
    margin: 0;
}

@media (max-width: 900px) {
    .kn-startup-news__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .kn-startup-news__grid {
        grid-template-columns: 1fr;
    }
}

