.hero {
    position: relative;
    height: calc(100vh - 40px);
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media video,
.hero-media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(3, 7, 30, 1) 0%, rgba(3, 7, 30, .4) 45%, rgba(3, 7, 30, .2) 100%),
        linear-gradient(to right, rgba(3, 7, 30, .85) 0%, rgba(3, 7, 30, .2) 50%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    z-index: 2;
    bottom: 60px;
    padding: 0 20px;
    left: 0px;

    @media (min-width: 992px) {
        padding: 0;
        left: 60px;
        max-width: 50%;
    }
}

.all-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.all-categories span,
.all-categories a {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
}

.hero h1 {
    margin: 0 0 20px;
    font-family: var(--title-font);
    font-size: 45px;
    line-height: 1.2;

    @media (min-width: 992px) {
        font-size: 80px;
    }
}

.hero p {
    max-width: 550px;
    color: rgba(255, 255, 255, .75);
    line-height: 1.7;
    margin-bottom: 30px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 16px;
    background: var(--primary-color);
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    transition: all .3s ease;
}

.hero-button:hover {
    transform: translateY(-2px);
    background: #ef651d;
}

.category-section {
    margin-bottom: 80px;
}

.category-section h2 {
    margin-bottom: 24px;
    font-family: var(--title-font);
    font-size: 42px;
}

.cards-row {
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
    grid-template-columns: 1fr;

    @media (min-width: 992px) {
        grid-template-columns: repeat(auto-fill, 300px);
    }
}

.cards-row::-webkit-scrollbar {
    height: 6px;
}

.cards-row::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .2);
    border-radius: 999px;
}

.content-card {
    width: 100%;
    text-decoration: none;
    color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: .3s ease;
    display: flex;
    flex-direction: column;

    .content-body {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .content-author {
        margin-top: auto;
    }
}

.content-card:hover {
    transform: translateY(-6px);
    border-color: rgba(254, 205, 62, .35);
}

.content-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.content-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.content-body {
    padding: 20px;
}

.content-body h3 {
    margin: 0 0 18px;
    font-size: 22px;
    line-height: 1.2;
}

.content-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-author img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.content-author span {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
}

.splide__track {
    overflow: visible !important;
}

.category,
.contenu,
.contenu_profil {
    max-width: 320px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: all 0.3s ease;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 35%;
    position: relative;
    text-decoration: none;
    text-align: center;
    padding: 20px;
    height: 250px;

    &:not(:hover) {
        color: var(--white);
    }

    h2 {
        transition: all 0.3s ease;
        z-index: 2;
        margin: 0 !important;
    }

    &:not(>h2) {
        filter: grayscale(1);
    }
}

.category-slide {

    &:before {
        content: "";
        position: absolute;
        background: rgba(3, 7, 30, 1);
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 16px;
    }

    &:hover {
        border-color: var(--primary-color);
        color: var(--primary-color);

        &:before {
            background: rgba(3, 7, 30, 0.6);
            border-color: var(--primary-color);
        }
    }
}

.content-sections {
    .wrapper_slider {
        margin: 30px 0;
    }

    .wrapper_slider {
        max-width: 100%;
        @media (max-width: 991px) {
            overflow: hidden;
        }
    }

    .wrapper_slider .splide__track {
        @media (max-width: 991px) {
            overflow: hidden;      /* sécurité si le CSS core de Splide manque */
        }
    }

    /* En cas de fallback non-monté : empêche la liste flex de pousser la page */
    .wrapper_slider .splide__list {
        max-width: 100%;
    }

    /* &>.container {
        &>h2 {
            font-size: 42px;
            margin-bottom: 24px;
        }
    } */
}