/* Bloc Documents V2 — structure uniquement (grille Bootstrap, filtres, pagination, slider).
   Le visuel des cards (.card-document) est géré par le thème. */
.docv2 { margin: 2rem 0; }
.docv2 *, .docv2 *::before, .docv2 *::after { box-sizing: border-box; }

/* La liste est un .row Bootstrap : on neutralise les styles <ul> par défaut */
.docv2__list { list-style: none; padding-left: 0; margin-bottom: 0; }

/* Chaque item est une colonne Bootstrap ; on étire la card pour des hauteurs égales */
.docv2-item { display: flex; }
.docv2-item > * { width: 100%; }

/* 5 par ligne : pas de col Bootstrap natif → 20% à partir de md */
@media (min-width: 768px) {
    .docv2-col-5 { flex: 0 0 auto; width: 20%; }
}

/* Items masqués (filtre / pagination) */
.docv2-hide-filter, .docv2-hide-page { display: none !important; }

/* ---- Regroupement par catégorie ---- */
.docv2__group { margin-bottom: 2.5rem; }
.docv2__group:last-child { margin-bottom: 0; }
.docv2__group-title { margin: 0 0 1rem; }

/* ---- Filtres (barre pleine largeur) ---- */
.docv2__filters { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; width: 100%; margin-bottom: 1.25rem; }
.docv2__filter { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }


.docv2__reset:hover { background: #b32d2e; color: #fff; border-color: #b32d2e; }
.docv2__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.docv2__chip {
    border: 1px solid #ccd2d8;
    background: #fff;
    color: #3a4a5a;
    font-size: .8rem;
    padding: .3rem .7rem;
    border-radius: 16px;
    cursor: pointer;
}
.docv2__chip:hover { border-color: #2271b1; }
.docv2__chip.is-active { background: #2271b1; color: #fff; border-color: #2271b1; }


/* Filtres en sidebar (gauche / droite) → on repasse en colonne */
.docv2--filters-left, .docv2--filters-right { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.docv2--filters-left .docv2__filters,
.docv2--filters-right .docv2__filters { flex: 0 0 220px; flex-direction: column; align-items: stretch; width: auto; margin-bottom: 0; }
.docv2--filters-left .docv2__reset,
.docv2--filters-right .docv2__reset { margin-left: 0; }
.docv2--filters-left .docv2__list,
.docv2--filters-right .docv2__list { flex: 1 1 60%; }
.docv2--filters-left .docv2__pagination,
.docv2--filters-right .docv2__pagination { flex-basis: 100%; }
.docv2--filters-right .docv2__filters { order: 2; }

/* ---- Pagination ---- */
.docv2__pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 1.5rem; }
.docv2__page {
    min-width: 34px;
    border: 1px solid #ccd2d8;
    background: #fff;
    padding: .35rem .6rem;
    border-radius: 4px;
    cursor: pointer;
}
.docv2__page.is-active { background: #2271b1; color: #fff; border-color: #2271b1; }

.docv2__empty { text-align: center; color: #777; padding: 2rem 0; }

/* ---- Slider (slick) ---- */
.docv2--slider .docv2__list { display: block; }
.docv2--slider .docv2-item { display: block; height: auto; padding: 0 .75rem; }
.docv2--slider .slick-track { display: flex; }
.docv2--slider .slick-track .slick-slide { height: auto; display: flex; }
.docv2--slider .docv2-item > * { height: 100%; }
