/* ============================================================
   QV Entreprises — styles
   ============================================================ */

.qve-wrap {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

/* ---- Filtres ------------------------------------------------ */
.qve-filters {
    background: #f5f6f7;
    border: 1px solid #e3e6e8;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.qve-filters__row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.qve-filters__group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1 1 180px;
}

.qve-filters__search {
    flex: 2 1 260px;
}

.qve-filters__group label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #555;
}

.qve-filters__group input[type="search"],
.qve-filters__group select {
    padding: 9px 12px;
    border: 1px solid #d0d4d8;
    border-radius: 5px;
    font-size: 14px;
    background: #fff;
    color: #1a1a1a;
    height: 40px;
    box-sizing: border-box;
    transition: border-color .15s;
}

.qve-filters__group input[type="search"]:focus,
.qve-filters__group select:focus {
    outline: none;
    border-color: #1a6cad;
    box-shadow: 0 0 0 3px rgba(26, 108, 173, .15);
}

.qve-filters__actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
}

/* ---- Boutons ----------------------------------------------- */
.qve-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: 40px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.qve-btn--primary {
    background: #1a6cad;
    color: #fff;
}

.qve-btn--primary:hover {
    background: #145990;
    color: #fff;
}

.qve-btn--reset {
    background: transparent;
    color: #666;
    border: 1px solid #ccc;
}

.qve-btn--reset:hover {
    background: #f0f0f0;
    color: #333;
}

/* ---- En-tête résultats ------------------------------------- */
.qve-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.qve-count {
    font-size: 14px;
    color: #666;
}

/* ---- Grille cartes ----------------------------------------- */
.qve-grid {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 260px, 1fr ) );
    gap: 20px;
    margin-bottom: 36px;
}

.qve-card {
    background: #fff;
    border: 1px solid #e0e3e7;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .15s, transform .15s;
}

.qve-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, .09);
    transform: translateY( -2px );
}

.qve-card__body {
    padding: 18px 20px;
}

.qve-card__title {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.35;
    color: #1a1a1a;
    font-weight: 700;
}

.qve-card__tag {
    margin: 4px 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.qve-card__tag--assoc {
    color: #1a6cad;
}

.qve-card__tag--sect {
    color: #4a7c3f;
}

.qve-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1px;
    transition: color .15s, border-color .15s;
    word-break: break-all;
}

.qve-card__link:hover {
    color: #1a6cad;
    border-color: #1a6cad;
}

/* ---- Vue liste -------------------------------------------- */
.qve-list {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    border: 1px solid #e0e3e7;
    border-radius: 8px;
    overflow: hidden;
}

.qve-list__item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f2f4;
    transition: background .1s;
}

.qve-list__item:last-child {
    border-bottom: none;
}

.qve-list__item:hover {
    background: #fafbfc;
}

.qve-list__name {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
}

.qve-list__meta {
    font-size: 13px;
    color: #1a6cad;
}

.qve-list__meta--sect {
    color: #4a7c3f;
}

.qve-list__link {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
    transition: color .15s;
}

.qve-list__link:hover {
    color: #1a6cad;
}

/* ---- Aucun résultat ---------------------------------------- */
.qve-no-results {
    text-align: center;
    padding: 48px 24px;
    background: #f8f9fa;
    border: 1px solid #e3e6e8;
    border-radius: 8px;
    color: #666;
    font-size: 15px;
    margin-bottom: 36px;
}

/* ---- Pagination -------------------------------------------- */
.qve-pagination {
    text-align: center;
    margin-top: 8px;
    margin-bottom: 16px;
}

.qve-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    margin: 0 2px;
    border: 1px solid #d0d4d8;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    color: #444;
    transition: background .1s, border-color .1s;
}

.qve-pagination .page-numbers:hover {
    background: #f0f2f4;
    border-color: #aaa;
}

.qve-pagination .page-numbers.current {
    background: #1a6cad;
    border-color: #1a6cad;
    color: #fff;
    font-weight: 700;
}

/* ---- Responsive -------------------------------------------- */
@media ( max-width: 768px ) {
    .qve-filters__row {
        flex-direction: column;
        gap: 12px;
    }

    .qve-filters__group,
    .qve-filters__search {
        flex: 1 1 100%;
    }

    .qve-filters__actions {
        width: 100%;
    }

    .qve-btn {
        flex: 1;
        justify-content: center;
    }

    .qve-list__item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
