/* ── Variables ───────────────────────────────────────────────────────────── */
.fcg-act-wrapper {
    --fcg-red:     #B91C1C;
    --fcg-dark:    #111827;
    --fcg-gray:    #6B7280;
    --fcg-radius:  14px;
    --fcg-shadow:  0 4px 20px rgba(0,0,0,.08);
    font-family: inherit;
    width: 100%;
}

/* ── Titre de section ────────────────────────────────────────────────────── */
.fcg-act-titre-section {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fcg-dark);
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--fcg-red);
    display: inline-block;
}

/* ── Grille ──────────────────────────────────────────────────────────────── */
.fcg-act-grid {
    display: grid;
    grid-template-columns: repeat(var(--fcg-cols, 3), 1fr);
    gap: 24px;
}

/* ── Carte ───────────────────────────────────────────────────────────────── */
.fcg-act-card {
    background: #fff;
    border-radius: var(--fcg-radius);
    overflow: hidden;
    box-shadow: var(--fcg-shadow);
    border: 1.5px solid #F3F4F6;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}

.fcg-act-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(0,0,0,.13);
}

.fcg-act-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── Image ───────────────────────────────────────────────────────────────── */
.fcg-act-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    flex-shrink: 0;
}

.fcg-act-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.fcg-act-card:hover .fcg-act-img-wrap img {
    transform: scale(1.05);
}

.fcg-act-img-placeholder {
    width: 100%;
    height: 100%;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcg-act-img-placeholder svg {
    width: 48px;
    height: 48px;
    color: #D1D5DB;
}

/* ── Badge catégorie ─────────────────────────────────────────────────────── */
.fcg-act-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--fcg-red);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(185,28,28,.35);
}

/* ── Corps carte ─────────────────────────────────────────────────────────── */
.fcg-act-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.fcg-act-card-titre {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fcg-dark);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fcg-act-date {
    font-size: 0.75rem;
    color: var(--fcg-gray);
    margin-top: auto;
}

/* ── Carrousel ───────────────────────────────────────────────────────────── */
.fcg-act-carrousel {
    position: relative;
}

.fcg-act-carrousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fcg-act-track-outer {
    overflow: hidden;
    width: 100%;
    border-radius: var(--fcg-radius);
}

.fcg-act-track {
    display: flex;
    gap: 20px;
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.fcg-act-carrousel .fcg-act-card {
    flex-shrink: 0;
}

/* ── Navigation carrousel ────────────────────────────────────────────────── */
.fcg-act-nav {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #E5E7EB;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: var(--fcg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    transition: background .15s, border-color .15s;
    z-index: 2;
}

.fcg-act-nav:hover {
    background: var(--fcg-red);
    border-color: var(--fcg-red);
    color: #fff;
}

/* ── Points carrousel ────────────────────────────────────────────────────── */
.fcg-act-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    width: 100%;
}

.fcg-act-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D1D5DB;
    cursor: pointer;
    transition: background .2s, transform .2s;
    border: none;
    padding: 0;
}

.fcg-act-dot.active {
    background: var(--fcg-red);
    transform: scale(1.25);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .fcg-act-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 600px) {
    .fcg-act-grid { grid-template-columns: 1fr !important; gap: 14px; }
    .fcg-act-nav { width: 32px; height: 32px; font-size: 1.1rem; }
}
