/* Jurisprudence PISTE – styles de base (compatibles GenerateBlocks) */

.wjp-wrapper {
    max-width: 960px;
    margin: 0 auto;
    font-family: inherit;
    line-height: 1.5;
}

.wjp-search-box {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.wjp-row {
    margin-bottom: 1rem;
}

.wjp-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.wjp-input,
.wjp-select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.wjp-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.wjp-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: normal;
    cursor: pointer;
}

.wjp-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.wjp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 1.25rem;
}

.wjp-btn {
    background: #1a365d;
    color: #fff;
    border: none;
    padding: 0.65rem 1.4rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.wjp-btn:hover {
    background: #2c5282;
}

.wjp-btn-secondary {
    background: #718096;
    margin-bottom: 1rem;
}

.wjp-btn-secondary:hover {
    background: #4a5568;
}

.wjp-loading {
    text-align: center;
    padding: 2rem;
    color: #4a5568;
    font-style: italic;
}

/* Résultats */
.wjp-results {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.wjp-card {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1.25rem;
    background: #fff;
    transition: box-shadow 0.2s;
}

.wjp-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wjp-card-ref {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.wjp-card-ref a {
    color: #1a365d;
    text-decoration: none;
}

.wjp-card-ref a:hover {
    text-decoration: underline;
}

.wjp-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 0.75rem;
}

.wjp-card-keywords {
    font-size: 0.85rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.wjp-card-excerpt {
    font-size: 0.95rem;
    color: #2d3748;
    line-height: 1.55;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    overflow: hidden;
}

/* Pagination */
.wjp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.wjp-pagination button {
    min-width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #cbd5e0;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.wjp-pagination button:hover:not(:disabled) {
    background: #edf2f7;
}

.wjp-pagination button.active {
    background: #1a365d;
    color: #fff;
    border-color: #1a365d;
}

.wjp-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .wjp-dates {
        grid-template-columns: 1fr;
    }

    .wjp-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wjp-btn {
        width: 100%;
    }
}
