/* =======================================================
   1. FORCE FULL WIDTH (Override GeneratePress)
   ======================================================= */
body.page-template-landing-donnees .site.grid-container,
body.page-template-landing-donnees .site-content,
body.page-template-landing-donnees #content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* =======================================================
   2. FIX COULEURS HERO DATA
   ======================================================= */
.hero-title-data {
    color: #ffffff !important;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.hero-description-data {
    color: #cbd5e1 !important; /* Gris clair bleuté très lisible */
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* Amélioration visuelle de la barre de recherche */
.data-search-bar input {
    color: #0A2463; /* Texte foncé quand on écrit */
    background: #fff;
}

/* HERO DATA */
    .hero-data {
        background: linear-gradient(135deg, #0f172a, #1e293b);
        color: white;
        padding: 100px 0 80px;
        position: relative;
        overflow: hidden;
    }

    .hero-data::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 50%;
        height: 100%;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="15" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
        opacity: 0.3;
    }

    .hero-data-content {
        max-width: 900px;
        margin: 0 auto;
        text-align: center;
        position: relative;
        z-index: 1;
    }

    .hero-badge-data {
        display: inline-block;
        background: rgba(62, 146, 204, 0.2);
        padding: 10px 25px;
        border-radius: 30px;
        font-weight: 700;
        margin-bottom: 25px;
    }

    .hero-title-data {
        font-family: 'Sora', sans-serif;
        font-size: 3.5rem;
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 25px;
    }

    .hero-description-data {
        font-size: 1.3rem;
        opacity: 0.9;
        line-height: 1.7;
        margin-bottom: 50px;
    }

    /* SEARCH BAR */
    .data-search-bar {
        max-width: 600px;
        margin: 0 auto 50px;
        display: flex;
        background: white;
        border-radius: 50px;
        padding: 8px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    }

    .data-search-bar input {
        flex: 1;
        border: none;
        padding: 15px 25px;
        font-size: 1.05rem;
        color: #1E293B;
        outline: none;
        font-family: 'Inter', sans-serif;
    }

    .data-search-bar button {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #3E92CC, #0A2463);
        border: none;
        border-radius: 50%;
        color: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s;
    }

    .data-search-bar button:hover {
        transform: scale(1.05);
    }

    .hero-data-stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        max-width: 800px;
        margin: 0 auto;
    }

    .data-stat {
        text-align: center;
    }

    .data-number {
        display: block;
        font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: 8px;
    }

    .data-label {
        font-size: 0.95rem;
        opacity: 0.9;
    }

    /* FILTERS */
    .data-filters {
        background: white;
        padding: 40px 0;
        border-bottom: 2px solid #E2E8F0;
        position: sticky;
        top: 120px;
        z-index: 100;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    .filters-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        align-items: end;
    }

    .filter-group label {
        display: block;
        font-weight: 600;
        color: #0A2463;
        margin-bottom: 10px;
        font-size: 0.9rem;
    }

    .filter-group select {
        width: 100%;
        padding: 15px;
        border: 2px solid #E2E8F0;
        border-radius: 8px;
        font-family: 'Inter', sans-serif;
        font-size: 0.95rem;
        cursor: pointer;
        transition: border-color 0.2s;
    }

    .filter-group select:focus {
        outline: none;
        border-color: #3E92CC;
    }

    .btn-filter-apply {
        width: 100%;
        padding: 15px;
        background: linear-gradient(135deg, #3E92CC, #0A2463);
        color: white;
        border: none;
        border-radius: 8px;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.2s;
    }

    .btn-filter-apply:hover {
        transform: translateY(-2px);
    }

    /* CATEGORIES */
    .data-categories {
        padding: 80px 0;
        background: #F8FAFC;
    }

    .section-title-center {
        font-family: 'Sora', sans-serif;
        font-size: 2.5rem;
        font-weight: 800;
        color: #0A2463;
        text-align: center;
        margin-bottom: 60px;
    }

    .categories-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .category-card {
        background: white;
        border-radius: 20px;
        padding: 40px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        transition: all 0.3s;
        cursor: pointer;
    }

    .category-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    }

    .category-icon {
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.5rem;
        margin-bottom: 25px;
    }

    .category-card h3 {
        font-family: 'Sora', sans-serif;
        font-size: 1.5rem;
        color: #0A2463;
        margin-bottom: 20px;
    }

    .category-indicators {
        list-style: none;
        padding: 0;
        margin-bottom: 25px;
    }

    .category-indicators li {
        padding: 8px 0;
        color: #64748B;
        font-size: 0.95rem;
        position: relative;
        padding-left: 20px;
    }

    .category-indicators li::before {
        content: '•';
        position: absolute;
        left: 0;
        color: #3E92CC;
        font-weight: 700;
    }

    .category-count {
        display: inline-block;
        background: #3E92CC;
        color: white;
        padding: 6px 15px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 700;
    }

    /* DATA LIST */
    .recent-data {
        padding: 80px 0;
    }

    .data-list {
        display: grid;
        gap: 25px;
    }

    .data-item {
        background: white;
        border-radius: 16px;
        padding: 30px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        transition: all 0.3s;
    }

    .data-item:hover {
        box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    }

    .data-item-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .data-item-info h3 {
        font-family: 'Sora', sans-serif;
        font-size: 1.3rem;
        color: #0A2463;
        margin-bottom: 10px;
    }

    .data-item-meta {
        display: flex;
        gap: 20px;
    }

    .data-source,
    .data-updated {
        font-size: 0.85rem;
        color: #64748B;
    }

    .premium-badge-data {
        background: linear-gradient(135deg, #D4AF37, #DAA520);
        color: white;
        padding: 6px 15px;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .data-item-description {
        color: #64748B;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .data-item-actions {
        display: flex;
        gap: 15px;
    }

    .btn-view-data,
    .btn-download-data {
        padding: 12px 20px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.2s;
    }

    .btn-view-data {
        background: linear-gradient(135deg, #3E92CC, #0A2463);
        color: white;
    }

    .btn-view-data:hover {
        transform: translateX(5px);
    }

    .btn-download-data {
        background: #F8FAFC;
        color: #0A2463;
        border: 2px solid #E2E8F0;
    }

    .btn-download-data:hover {
        background: #E2E8F0;
    }

    /* API SECTION */
    .api-section {
        padding: 80px 0;
        background: linear-gradient(135deg, #0f172a, #1e293b);
    }

    .api-card {
        background: white;
        border-radius: 24px;
        padding: 60px;
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
    }

    .api-icon {
        width: 100px;
        height: 100px;
        background: linear-gradient(135deg, #3E92CC, #0A2463);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3rem;
        margin: 0 auto 30px;
    }

    .api-card h2 {
        font-family: 'Sora', sans-serif;
        font-size: 2.5rem;
        color: #0A2463;
        margin-bottom: 20px;
    }

    .api-card > p {
        font-size: 1.2rem;
        color: #64748B;
        margin-bottom: 40px;
    }

    .api-features {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        margin-bottom: 40px;
    }

    .api-feature {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        background: #F8FAFC;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }

    .api-feature span:last-child {
        font-weight: 600;
        color: #0A2463;
    }

    .btn-api {
        display: inline-block;
        background: linear-gradient(135deg, #3E92CC, #0A2463);
        color: white;
        padding: 18px 40px;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 700;
        font-size: 1.1rem;
        transition: transform 0.2s;
    }

    .btn-api:hover {
        transform: scale(1.05);
    }

    /* RESPONSIVE */
    @media (max-width: 1024px) {
        .hero-data-stats {
            grid-template-columns: repeat(2, 1fr);
        }

        .filters-grid {
            grid-template-columns: 1fr;
        }

        .categories-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .api-features {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        .hero-title-data {
            font-size: 2.5rem;
        }

        .categories-grid,
        .hero-data-stats,
        .api-features {
            grid-template-columns: 1fr;
        }

        .data-item-actions {
            flex-direction: column;
        }

        .btn-view-data,
        .btn-download-data {
            justify-content: center;
        }
    }
