/* AIDA Veille Juridique — vj-search.css */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─── Wrapper ──────────────────────────────────────── */
.vj-wrap {
    max-width: 100%;
    font-family: 'Source Sans 3', sans-serif;
}

/* ─── Formulaire ────────────────────────────────────── */
.vj-form {
    margin-bottom: 8px;
}

.vj-form-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.vj-input,
.vj-select,
.vj-btn {
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    font-family: 'Source Sans 3', sans-serif;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 44px;
}

.vj-input {
    flex: 1;
    min-width: 220px;
    background: #fff;
    color: #1e2d4a;
}

.vj-input:focus {
    outline: 2px solid #1e2d4a;
    outline-offset: 1px;
}

.vj-select {
    background: #fff;
    cursor: pointer;
    color: #1e2d4a;
}

.vj-select:focus {
    outline: 2px solid #1e2d4a;
    outline-offset: 1px;
}

.vj-btn {
    padding: 0 24px;
    background: #1e2d4a;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.vj-btn:hover,
.vj-btn:focus {
    background: #2d4270;
    outline: none;
}

.vj-reset {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
    align-self: center;
    white-space: nowrap;
    cursor: pointer;
}

.vj-reset:hover {
    color: #1e2d4a;
}

/* ─── Loader ────────────────────────────────────────── */
.vj-loading {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1e2d4a;
    margin-bottom: 16px;
}

.vj-loading.active {
    display: flex;
}

.vj-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #d0d7e3;
    border-top-color: #1e2d4a;
    border-radius: 50%;
    animation: vj-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes vj-spin {
    to { transform: rotate(360deg); }
}

/* ─── Tableau ───────────────────────────────────────── */
.vj-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    font-family: 'Source Sans 3', sans-serif;
}

.vj-table th {
    background: #1e2d4a;
    color: #fff;
    padding: 11px 16px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.vj-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    color: #333;
}

.vj-table tr:hover td {
    background: #f7f9fc;
}

/* ─── Bouton télécharger ────────────────────────────── */
.vj-btn-dl {
    display: inline-block;
    padding: 6px 16px;
    background: #1e2d4a;
    color: #fff;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.vj-btn-dl:hover,
.vj-btn-dl:focus {
    background: #2d4270;
    color: #fff;
    outline: none;
}

.vj-no-file {
    color: #aaa;
}

/* ─── Footer (compteur + pagination) ───────────────── */
.vj-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.vj-count {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.vj-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vj-page-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #1e2d4a;
    color: #1e2d4a;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.vj-page-btn:hover,
.vj-page-btn:focus {
    background: #1e2d4a;
    color: #fff;
    outline: none;
}

.vj-page-info {
    font-size: 13px;
    color: #666;
}

/* ─── Messages ──────────────────────────────────────── */
.vj-empty {
    color: #888;
    font-style: italic;
    font-size: 15px;
    margin-top: 8px;
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 640px) {
    .vj-form-row {
        flex-direction: column;
    }

    .vj-input,
    .vj-select,
    .vj-btn {
        width: 100%;
    }

    .vj-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .vj-table {
        font-size: 13px;
    }

    .vj-table th,
    .vj-table td {
        padding: 8px 10px;
    }
}
