/* ================================================================
   GI ARMECO — Featured Members Widget CSS
   Shortcode [armeco_featured]
   ================================================================ */

.gi-featured-members {
    width: 100%;
    font-family: inherit;
}

/* ── GRILLE ─────────────────────────────────────────────────── */
.gi-featured-grid {
    display: grid;
    gap: 20px;
}

.gi-featured-cols-2 { grid-template-columns: repeat(2, 1fr); }
.gi-featured-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gi-featured-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gi-featured-cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 900px) {
    .gi-featured-cols-3,
    .gi-featured-cols-4,
    .gi-featured-cols-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .gi-featured-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ── CARTE ──────────────────────────────────────────────────── */
.gi-featured-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .22s ease, transform .22s ease;
}
.gi-featured-card:hover {
    box-shadow: 0 6px 24px rgba(139,0,0,.18);
    transform: translateY(-3px);
}

.gi-featured-card-link {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    height: 100%;
}

/* ── IMAGE CARRÉE ───────────────────────────────────────────── */
.gi-featured-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}
.gi-featured-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.gi-featured-no-image {
    font-size: 40px;
    opacity: .35;
}

/* ── CORPS ──────────────────────────────────────────────────── */
.gi-featured-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}

.gi-featured-title {
    font-size: 15px;
    font-weight: 700;
    color: #333333;
    margin: 0;
    line-height: 1.3;
}

.gi-featured-btn {
    display: inline-block;
    background: #8B0000;
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background .22s ease;
    margin-top: auto;
}
.gi-featured-card:hover .gi-featured-btn {
    background: #6a0000;
}
