/* ═══════════════════════════════════════════════════════════════════════════════
   LISTING GRID 2026 - VARIANTE A : CARDS GLASSMORPHISM
   ═══════════════════════════════════════════════════════════════════════════════

   Design: Cards glassmorphism sur fond Navy gradient
   - Fond section: Navy gradient (#0a1628 -> #1a365d)
   - Cards: Glassmorphism avec bordures subtiles
   - Badge: Gold gradient
   - Hover: Lift + glow Gold ambiant
   - Mobile-first, grid 1 -> 2 -> 3 -> 4 colonnes

   Date: 2026-01-31
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════════
   SECURISATION AFFICHAGE
   ═══════════════════════════════════════════════════════════════════════════════ */
.sxo-2026-wrapper section[data-section-type="listing_grid"],
.sxo-2026-wrapper .trust-listing-grid-2026 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SECTION ROOT - Navy Gradient
   ═══════════════════════════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .trust-listing-grid-2026 {
    background: linear-gradient(180deg, #0a1628 0%, #1a365d 100%);
    padding: 48px 0;
    position: relative;
}

@media (min-width: 768px) {
    .sxo-2026-wrapper .trust-listing-grid-2026 {
        padding: 64px 0;
    }
}

@media (min-width: 1200px) {
    .sxo-2026-wrapper .trust-listing-grid-2026 {
        padding: 80px 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .trust-listing-grid-2026 .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .sxo-2026-wrapper .trust-listing-grid-2026 .container {
        padding: 0 24px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .listing-grid-header-2026 {
    text-align: center;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .sxo-2026-wrapper .listing-grid-header-2026 {
        margin-bottom: 50px;
    }
}

.sxo-2026-wrapper .listing-grid-title-2026 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .sxo-2026-wrapper .listing-grid-title-2026 {
        font-size: 2rem;
    }
}

@media (min-width: 1200px) {
    .sxo-2026-wrapper .listing-grid-title-2026 {
        font-size: 2.5rem;
    }
}

.sxo-2026-wrapper .listing-grid-subtitle-2026 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .sxo-2026-wrapper .listing-grid-subtitle-2026 {
        font-size: 1.125rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   GRID CONTAINER
   ═══════════════════════════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .listing-grid-container-2026 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 576px) {
    .sxo-2026-wrapper .listing-grid-container-2026 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 1200px) {
    .sxo-2026-wrapper .listing-grid-container-2026 {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .sxo-2026-wrapper .listing-grid-container-2026[data-columns="4"] {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ITEM CARD - Glassmorphism
   ═══════════════════════════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .listing-grid-item-2026 {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.sxo-2026-wrapper .listing-grid-item-2026:hover {
    transform: translateY(-8px);
    border-color: rgba(196, 163, 90, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(196, 163, 90, 0.1);
}

/* Hidden state for filtering */
.sxo-2026-wrapper .listing-grid-item-2026.hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CARD IMAGE
   ═══════════════════════════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .listing-card-image-2026 {
    position: relative;
    width: 100%;
    padding-bottom: 62.5%;
    overflow: hidden;
    background: linear-gradient(135deg, #1a365d 0%, #0a1628 100%);
}

.sxo-2026-wrapper .listing-card-img-2026 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sxo-2026-wrapper .listing-grid-item-2026:hover .listing-card-img-2026 {
    transform: scale(1.08);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CARD BADGE - Gold Gradient
   ═══════════════════════════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .listing-card-badge-2026 {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #c4a35a 0%, #d4b86a 100%);
    color: #0a1628;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(196, 163, 90, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CARD ICON (FALLBACK)
   ═══════════════════════════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .listing-card-icon-2026 {
    position: relative;
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a365d 0%, #0a1628 100%);
}

.sxo-2026-wrapper .listing-card-icon-2026 i {
    font-size: 3rem;
    color: rgba(196, 163, 90, 0.8);
    transition: color 0.3s ease, transform 0.3s ease;
}

.sxo-2026-wrapper .listing-grid-item-2026:hover .listing-card-icon-2026 i {
    color: #c4a35a;
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CARD CONTENT
   ═══════════════════════════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .listing-card-content-2026 {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .sxo-2026-wrapper .listing-card-content-2026 {
        padding: 24px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CARD CATEGORY - Gold accent
   ═══════════════════════════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .listing-card-category-2026 {
    display: inline-block;
    color: #c4a35a;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CARD TITLE & DESCRIPTION
   ═══════════════════════════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .listing-grid-item-title-2026 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (min-width: 768px) {
    .sxo-2026-wrapper .listing-grid-item-title-2026 {
        font-size: 1.25rem;
    }
}

.sxo-2026-wrapper .listing-grid-item-description-2026 {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
    overflow-wrap: break-word;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .sxo-2026-wrapper .listing-grid-item-description-2026 {
        font-size: 0.875rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CARD TAGS
   ═══════════════════════════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .listing-card-tags-2026 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.sxo-2026-wrapper .listing-card-tag-2026 {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   CARD LINK - Gold accent
   ═══════════════════════════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .listing-grid-item-link-2026 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c4a35a;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: auto;
}

.sxo-2026-wrapper .listing-grid-item-link-2026 i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.sxo-2026-wrapper .listing-grid-item-link-2026:hover {
    color: #d4b86a;
}

.sxo-2026-wrapper .listing-grid-item-link-2026:hover i {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════════════════════
   FOOTER / COUNT
   ═══════════════════════════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .listing-grid-footer-2026 {
    margin-top: 40px;
    text-align: center;
}

@media (min-width: 768px) {
    .sxo-2026-wrapper .listing-grid-footer-2026 {
        margin-top: 50px;
    }
}

.sxo-2026-wrapper .listing-grid-count-2026 {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.sxo-2026-wrapper .listing-grid-count-2026 .count-visible {
    font-weight: 700;
    color: #c4a35a;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   DATA MISSING
   ═══════════════════════════════════════════════════════════════════════════════ */
.sxo-2026-wrapper .trust-listing-grid-2026 .data-missing-2026,
.sxo-2026-wrapper .data-missing-2026 {
    color: #fbbf24;
    font-weight: 600;
    text-align: center;
    padding: 40px 20px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    max-width: 400px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */
@media print {
    .sxo-2026-wrapper .trust-listing-grid-2026 {
        background: #ffffff !important;
        padding: 24px 0;
    }

    .sxo-2026-wrapper .listing-grid-title-2026 {
        color: #000000 !important;
    }

    .sxo-2026-wrapper .listing-grid-subtitle-2026 {
        color: #333333 !important;
    }

    .sxo-2026-wrapper .listing-grid-item-2026 {
        background: #ffffff !important;
        border: 1px solid #dee2e6 !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .sxo-2026-wrapper .listing-grid-item-title-2026 {
        color: #000000 !important;
    }

    .sxo-2026-wrapper .listing-grid-item-description-2026 {
        color: #333333 !important;
    }

    .sxo-2026-wrapper .listing-card-category-2026 {
        color: #666666 !important;
    }

    .sxo-2026-wrapper .listing-grid-item-link-2026 {
        color: #1e40af !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY - REDUCED MOTION
   ═══════════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .sxo-2026-wrapper .listing-grid-item-2026,
    .sxo-2026-wrapper .listing-card-img-2026,
    .sxo-2026-wrapper .listing-grid-item-link-2026 i,
    .sxo-2026-wrapper .listing-card-icon-2026 i {
        transition: none;
    }

    .sxo-2026-wrapper .listing-grid-item-2026:hover {
        transform: none;
    }

    .sxo-2026-wrapper .listing-grid-item-2026:hover .listing-card-img-2026 {
        transform: none;
    }

    .sxo-2026-wrapper .listing-grid-item-2026:hover .listing-card-icon-2026 i {
        transform: none;
    }
}
