.dc-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 1360px;
    margin: 0 auto;
}

.dc-card {
    flex: 0 1 320px;
    max-width: 320px;
    width: 100%;
    padding: 18px 0 0 0 !important;
    border: none !important;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.dc-card:hover {
    transform: translateY(-3px);
    border-color: #c7d2fe;
    background-color: #c7d2fe !important;
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.12);
}

.dc-card.active {
    border-color: #6366f1;
    background: #f8fbff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* Image pleine largeur en 4:3 */
.dc-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.dc-card__image {
    width: 100%;
    height: 100% !important;
    display: block;
    object-fit: contain;
}

/* Zone texte */
.dc-card__body {
    padding: 16px 14px 18px;
}

.dc-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.dc-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #111827;
    text-align: center;
}

.dc-card__meta {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 1024px) {
    .dc-card {
        flex: 0 1 calc((100% - 48px) / 4);
        max-width: 320px;
    }
}

@media (max-width: 900px) {
    .dc-card {
        flex: 0 1 calc((100% - 16px) / 2);
        max-width: 320px;
    }
}

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