================================
   RESET
================================ */
.spc-slider,
.spc-viewport,
.spc-track,
.spc-card {
    box-sizing: border-box;
}

/* ================================
   SLIDER CONTAINER
================================ */
.spc-slider {
    width: 100%;
    margin: 24px auto;
}

/* ================================
   VIEWPORT – scroll horizontal natif
================================ */
.spc-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Masquer la barre de scroll */
.spc-viewport::-webkit-scrollbar {
    display: none;
}
.spc-viewport {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ================================
   TRACK
================================ */
.spc-track {
    display: flex;
    gap: 24px;
    padding: 8px 4px 16px;
    margin: 0;
    list-style: none;
    align-items: stretch; /* toutes les cards même hauteur */
}

/* ================================
   CARDS
================================ */
.spc-card {
    flex: 0 0 auto;
    width: calc((100% - 48px) / 3);
    scroll-snap-align: start;
    display: flex;            /* permet à l'inner de prendre 100% */
}

@media (max-width: 1024px) {
    .spc-card {
        width: calc((100% - 24px) / 2);
    }
}

@media (max-width: 640px) {
    .spc-card {
        width: 100%;
    }
}

/* ================================
   CARD INNER — fond + hauteur
================================ */
.spc-card-inner {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;

    background: var(--spc-card-bg, #E5E7EB); /* fond uniforme pour TOUTE la card */
    color: #fff;

    height: 100%;   /* prend toute la hauteur de la card */
}

/* ================================
   MEDIA (image top)
================================ */
.spc-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #00000010;
    overflow: hidden;
}
.spc-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ================================
   BODY (texte + dégradé léger)
================================ */
.spc-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;

    /* UNIQUEMENT LE DÉGRADÉ, PAS LE FOND */
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.06) 0%,
        rgba(0, 0, 0, 0) 100%
    );

    flex: 1 1 auto; /* prend tout l'espace dispo sous l'image */
}

.spc-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.spc-excerpt {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #f6f6f6;
}

/* ================================
   BUTTON
================================ */
.spc-button {
    display: inline-block;
    margin-top: auto; /* pousse le bouton en bas de la card */
    font-size: 14px;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    padding: 10px 14px;
    border-radius: 10px;
    transition: background 160ms ease, transform 160ms ease;
}
.spc-button:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

/* ================================
   NAVIGATION (flèches)
================================ */
.spc-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
}

.spc-arrow {
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #1f18c0;
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 140ms ease, transform 140ms ease;
}
.spc-arrow:hover {
    background: #2b24d5;
    transform: translateY(-1px);
}

.spc-arrow-icon {
    display: inline-block;
}

/* Masquer sur mobile */
@media (max-width: 768px) {
    .spc-nav {
        display: none;
    }
}

/* ================================
   DOTS (non utilisés)
================================ */
.spc-dots {
    display: none;
}