/* Accaven — catalogue (Main.dc.html desktop, Mobile.dc.html mobile ; spec §4). */

.acc-catalog { font-family: var(--acc-font-body); color: var(--acc-navy); font-size: 15px; line-height: 1.4; background: var(--acc-white); }
.acc-catalog * { box-sizing: border-box; }
.acc-catalog :focus-visible { outline: 2px solid var(--acc-navy); outline-offset: 2px; }
.acc-catalog__inner { padding-top: 12px; padding-bottom: 48px; }


.acc-catalog__head { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.acc-catalog .acc-catalog__title { margin: 0; padding: 0; font-family: var(--acc-font-head); font-weight: 700; font-size: 22px; line-height: 28px; letter-spacing: -.01em; color: var(--acc-navy); text-transform: none; }
.acc-catalog__count { font-size: 14px; color: var(--acc-muted); }

.acc-catalog .acc-catalog__grid { margin-top: 16px; }
.acc-catalog__item { margin: 0; padding: 0; list-style: none; min-width: 0; display: flex; }
.acc-catalog__item > .acc-card { flex: 1; }

/* Pagination WooCommerce (repli quand « Voir plus » n'est pas disponible) */
.acc-catalog__pagination { margin-top: 40px; }
/* TheGem remplace le gabarit WooCommerce : liens directement dans div.gem-pagination (sans ul). */
.acc-catalog .woocommerce-pagination, .acc-catalog .woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; border: 0; list-style: none; }
.acc-catalog .woocommerce-pagination .page-numbers::before, .acc-catalog .woocommerce-pagination .page-numbers::after { content: none !important; display: none !important; }
.acc-catalog .woocommerce-pagination .page-numbers.dots { border-color: transparent; }
.acc-catalog .woocommerce-pagination li { margin: 0; border: 0; float: none; }
.acc-catalog .woocommerce-pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 12px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--acc-control); border-radius: var(--acc-radius-btn); background: var(--acc-white);
  color: var(--acc-navy); font-family: var(--acc-font-head); font-weight: 600; font-size: 14px; text-decoration: none;
}
.acc-catalog .woocommerce-pagination .page-numbers.current { background: var(--acc-navy); border-color: var(--acc-navy); color: var(--acc-white); }

@media (min-width: 768px) {
  .acc-catalog__inner { padding-top: 24px; padding-bottom: 72px; }
  .acc-catalog .acc-catalog__grid { margin-top: 24px; }
}
@media (min-width: 1200px) {
  .acc-breadcrumb { font-size: 14px; }
  .acc-catalog__head { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
  .acc-catalog .acc-catalog__title { font-size: 32px; line-height: 40px; }
  .acc-catalog__count { font-size: 15px; }
  .acc-catalog__pagination { margin-top: 56px; }
}

/* ===== Étape 6 : sous-catégories, filtres, tri, « Voir plus », état vide ===== */
.acc-catalog button { font-family: inherit; }

/* Sous-catégories */
.acc-chips { display: flex; gap: 8px; margin: 14px calc(-1 * var(--acc-gutter)) 0 0; padding-right: var(--acc-gutter); overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 14px; }
.acc-chips::-webkit-scrollbar { display: none; }
.acc-catalog .acc-chip { flex-shrink: 0; height: 44px; padding: 0 16px; display: flex; align-items: center; border-radius: var(--acc-radius-chip); background: var(--acc-surface); color: var(--acc-navy); text-decoration: none; }
.acc-catalog .acc-chip.is-current { padding: 0 18px; background: var(--acc-navy); color: var(--acc-white); font-weight: 600; }

/* Pastille de compte (lime) */
.acc-count-pill { min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--acc-radius-chip); background: var(--acc-lime); color: var(--acc-navy); font-family: var(--acc-font-head); font-size: 11px; font-weight: 700; }
.acc-count-pill--m { min-width: 22px; height: 22px; font-size: 12px; }

/* Barre mobile Filtrer / Trier */
.acc-mbar {
  position: sticky; top: var(--acc-header-h); z-index: 5; background: var(--acc-white);
  margin: 12px calc(-1 * var(--acc-gutter)) 0; padding: 10px var(--acc-gutter);
  border-top: 1px solid var(--acc-border); border-bottom: 1px solid var(--acc-border);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}
.admin-bar .acc-mbar { top: calc(var(--acc-header-h) + 46px); }
@media (max-width: 600px) { .admin-bar .acc-mbar { top: var(--acc-header-h); } }
.acc-catalog .acc-mbar__btn {
  width: 100%; height: 48px; padding: 0; margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--acc-navy); border-radius: var(--acc-radius-btn); background: var(--acc-white); box-shadow: none;
  color: var(--acc-navy); font-family: var(--acc-font-head); font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.acc-catalog .acc-mbar__btn.is-active { box-shadow: inset 0 0 0 1px var(--acc-navy); }
.acc-dd--msort { position: relative; }
.acc-fbar, .acc-active { display: none; }

/* Menus déroulants */
.acc-dd { position: relative; }
.acc-catalog .acc-dd__btn {
  height: 40px; padding: 0 14px 0 16px; margin: 0; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--acc-control); border-radius: var(--acc-radius-btn); background: var(--acc-white); box-shadow: none;
  color: var(--acc-navy); font-family: var(--acc-font-head); font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; cursor: pointer; white-space: nowrap;
}
.acc-catalog .acc-dd__btn.is-active { border-color: var(--acc-navy); }
.acc-catalog .acc-dd__btn[aria-expanded="true"] { border-color: var(--acc-navy); box-shadow: inset 0 0 0 1px var(--acc-navy); }
.acc-dd__btn svg { transition: transform var(--acc-ease); }
.acc-dd__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc-dd__muted { font-weight: 500; color: var(--acc-muted); }
.acc-dd__panel {
  position: absolute; top: 48px; left: 0; z-index: 20; width: 300px;
  border: 1px solid var(--acc-border); border-radius: 12px; background: var(--acc-white); box-shadow: 0 12px 32px rgba(60, 57, 80, .16);
  font-family: var(--acc-font-body); font-size: 15px; font-weight: 400;
}
.acc-dd__panel[hidden] { display: none; }
.acc-dd__panel--size { width: 440px; }
.acc-dd__body { max-height: 400px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.acc-dd__body--rows { gap: 0; padding: 8px 16px; }
.acc-dd__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--acc-border); }
.acc-catalog .acc-link-btn { height: 40px; padding: 0 4px; margin: 0; border: 0; background: transparent; box-shadow: none; color: var(--acc-navy); text-decoration: underline; font-family: var(--acc-font-body); font-size: 14px; cursor: pointer; text-transform: none; }
.acc-catalog .acc-see { height: 40px; padding: 0 18px; margin: 0; border: 0; border-radius: var(--acc-radius-btn); background: var(--acc-navy); color: var(--acc-white); box-shadow: none; font-family: var(--acc-font-head); font-weight: 600; font-size: 13px; text-transform: none; letter-spacing: 0; cursor: pointer; }

.acc-dd__panel--sort { left: auto; right: 0; width: 240px; padding: 8px; display: flex; flex-direction: column; }
.acc-dd__panel--sort[hidden] { display: none; }
.acc-catalog .acc-sort__opt { height: 44px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; border-radius: 6px; color: var(--acc-navy); font-size: 15px; text-decoration: none; }
.acc-catalog .acc-sort__opt:hover { background: var(--acc-surface); }
.acc-catalog .acc-sort__opt.is-current { background: var(--acc-surface); font-weight: 600; }
.acc-dd--msort .acc-dd__panel { top: 56px; }

/* Tailles (filtre) */
.acc-f__group { display: flex; flex-direction: column; gap: 8px; }
.acc-f__group + .acc-f__group { margin-top: 16px; }
.acc-dd__body .acc-f__group + .acc-f__group { margin-top: 0; }
.acc-catalog .acc-f__group-title { margin: 0; padding: 0; font-family: var(--acc-font-head); font-weight: 600; font-size: 12px; letter-spacing: .04em; color: var(--acc-muted); text-transform: none; line-height: 1.4; }
.acc-f__sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-f__sizes--mobile { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.acc-catalog .acc-f__size {
  height: 36px; padding: 0 12px; margin: 0; border: 1px solid var(--acc-control); border-radius: var(--acc-radius-btn); background: var(--acc-white);
  box-shadow: none; color: var(--acc-navy); font-family: var(--acc-font-body); font-size: 14px; font-weight: 400; text-transform: none; letter-spacing: 0; cursor: pointer; white-space: nowrap;
}
.acc-catalog .acc-f__sizes--mobile .acc-f__size { height: 44px; padding: 0 6px; font-size: 15px; }
.acc-catalog .acc-f__size[aria-pressed="true"] { border-color: var(--acc-navy); background: var(--acc-lime); font-weight: 600; }
.acc-f__empty { margin: 0; color: var(--acc-muted); }

/* Prix */
.acc-f__range { --lo: 0%; --hi: 100%; position: relative; height: 28px; margin: 0 12px; }
.acc-f__track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: var(--acc-radius-chip); background: var(--acc-border); }
.acc-f__fill { position: absolute; top: 0; bottom: 0; left: var(--lo); right: calc(100% - var(--hi)); border-radius: var(--acc-radius-chip); background: var(--acc-navy); }
.acc-catalog .acc-f__thumb { position: absolute; left: -12px; right: -12px; top: 0; width: calc(100% + 24px); height: 28px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.acc-f__thumb::-webkit-slider-runnable-track { background: transparent; height: 28px; }
.acc-f__thumb::-moz-range-track { background: transparent; }
.acc-f__thumb::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--acc-white); border: 2px solid var(--acc-navy); cursor: pointer; }
.acc-f__thumb::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--acc-white); border: 2px solid var(--acc-navy); cursor: pointer; }
.acc-f__thumb:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--acc-navy); outline-offset: 2px; }
.acc-f__inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.acc-f__inputs label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--acc-muted); }
.acc-catalog .acc-f__inputs input { height: 44px; padding: 0 12px; margin: 0; border: 1px solid var(--acc-control); border-radius: var(--acc-radius-btn); background: var(--acc-white); box-shadow: none; color: var(--acc-navy); font-family: var(--acc-font-body); font-size: 16px; }

/* Disponibilité */
.acc-catalog .acc-f__check { height: 44px; margin: 0; display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--acc-navy); cursor: pointer; }
.acc-catalog .acc-f__check input { width: 20px; height: 20px; margin: 0; accent-color: var(--acc-navy); }
.acc-dd__body .acc-f__check { height: 40px; font-size: 15px; }
.acc-dd__body .acc-f__check input { width: 18px; height: 18px; }

/* Filtres actifs */
.acc-active { flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; font-size: 14px; }
.acc-catalog .acc-active__chip { height: 32px; padding: 0 10px 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--acc-navy); border-radius: var(--acc-radius-chip); background: var(--acc-lime); color: var(--acc-navy); font-weight: 600; text-decoration: none; }
.acc-catalog .acc-active__clear { margin-left: 8px; color: var(--acc-navy); text-decoration: underline; }

/* Voir plus */
.acc-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; }
.acc-more__text { margin: 0; font-size: 14px; color: var(--acc-muted); }
.acc-more__bar { width: 200px; height: 3px; border-radius: var(--acc-radius-chip); background: var(--acc-border); overflow: hidden; }
.acc-more__fill { height: 100%; background: var(--acc-navy); }
.acc-catalog .acc-more__btn {
  width: 100%; margin-top: 8px; height: 48px; padding: 0 32px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: var(--acc-radius-btn); background: var(--acc-navy); color: var(--acc-white); box-shadow: none;
  font-family: var(--acc-font-head); font-weight: 600; font-size: 14px; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.acc-catalog .acc-more__btn[hidden] { display: none; }
.acc-catalog .acc-more__btn.is-loading { background: var(--acc-surface); color: var(--acc-navy); cursor: default; }
.acc-spinner { width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; border: 2px solid #C9C8D3; border-top-color: var(--acc-navy); animation: acc-spin .8s linear infinite; }
@keyframes acc-spin { to { transform: rotate(360deg); } }
.acc-catalog__pagination[hidden] { display: none; }

/* État vide */
.acc-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 0; text-align: center; }
.acc-empty p { margin: 0; font-size: 16px; }
.acc-catalog .acc-empty__btn { height: 44px; padding: 0 24px; display: inline-flex; align-items: center; border: 1px solid var(--acc-navy); border-radius: var(--acc-radius-btn); color: var(--acc-navy); font-family: var(--acc-font-head); font-weight: 600; font-size: 13px; text-decoration: none; }

/* Volet « Filtres » */
.acc-sheet { position: fixed; inset: 0; z-index: 100000; font-family: var(--acc-font-body); color: var(--acc-navy); }
.acc-sheet[hidden] { display: none; }
.acc-sheet__overlay { position: absolute; inset: 0; background: var(--acc-overlay); opacity: 0; transition: opacity var(--acc-ease); }
.acc-sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; height: 85vh; height: 85dvh; display: flex; flex-direction: column; border-radius: 16px 16px 0 0; background: var(--acc-white); transform: translateY(100%); transition: transform var(--acc-ease); }
.acc-sheet__panel:focus { outline: none; }
.acc-sheet.is-open .acc-sheet__overlay { opacity: 1; }
.acc-sheet.is-open .acc-sheet__panel { transform: none; }
.acc-sheet__grip { flex-shrink: 0; display: flex; justify-content: center; padding-top: 8px; }
.acc-sheet__grip span { width: 36px; height: 4px; border-radius: var(--acc-radius-chip); background: var(--acc-control); }
.acc-sheet__head { flex-shrink: 0; height: 56px; padding: 0 6px 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--acc-border); }
.acc-sheet__head h2 { margin: 0; font-family: var(--acc-font-head); font-weight: 700; font-size: 18px; color: var(--acc-navy); text-transform: none; }
.acc-sheet .acc-sheet__close { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--acc-navy); display: flex; align-items: center; justify-content: center; box-shadow: none; cursor: pointer; }
.acc-sheet__body { flex-grow: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px; }
.acc-acc { border-bottom: 1px solid var(--acc-border); }
.acc-acc--last { border-bottom: 0; }
.acc-sheet .acc-acc__btn {
  width: 100%; height: 48px; padding: 0; margin: 0; display: flex; align-items: center; justify-content: space-between;
  border: 0; background: transparent; box-shadow: none; color: var(--acc-navy); font-family: var(--acc-font-head); font-weight: 600; font-size: 15px; text-transform: none; letter-spacing: 0; cursor: pointer;
}
.acc-acc__btn svg { transition: transform var(--acc-ease); }
.acc-acc__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc-acc__value { display: flex; align-items: center; gap: 10px; font-family: var(--acc-font-body); font-weight: 400; font-size: 14px; color: var(--acc-muted); }
.acc-acc__panel { padding-bottom: 12px; }
.acc-acc__panel[hidden] { display: none; }
.acc-acc__panel--links { display: flex; flex-direction: column; }
.acc-acc__panel--links[hidden] { display: none; }
.acc-sheet .acc-acc__panel--links a { min-height: 44px; display: flex; align-items: center; color: var(--acc-navy); text-decoration: none; font-size: 15px; }
.acc-sheet .acc-acc__panel--links a[aria-current] { font-weight: 600; }
.acc-sheet__foot { flex-shrink: 0; padding: 12px 16px 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; gap: 12px; border-top: 1px solid var(--acc-border); background: var(--acc-white); }
.acc-sheet .acc-sheet__clear { flex: 1 1 0; height: 48px; margin: 0; border: 1px solid var(--acc-navy); border-radius: var(--acc-radius-btn); background: var(--acc-white); color: var(--acc-navy); box-shadow: none; font-family: var(--acc-font-head); font-weight: 600; font-size: 14px; text-transform: none; cursor: pointer; }
.acc-sheet .acc-see--sheet { flex: 2 1 0; height: 48px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .acc-sheet__panel, .acc-sheet__overlay { transition: none; } }

/* Tablette et desktop */
@media (min-width: 768px) {
  .acc-mbar, .acc-sheet { display: none !important; }
  .acc-chips { flex-wrap: wrap; margin: 20px 0 0; padding-right: 0; overflow: visible; white-space: normal; }
  .acc-catalog .acc-chip { height: 40px; }
  .acc-fbar {
    display: block; position: sticky; top: var(--acc-header-h); z-index: 5; background: var(--acc-white);
    margin-top: 24px; padding: 12px 0; border-top: 1px solid var(--acc-border); border-bottom: 1px solid var(--acc-border);
  }
  .admin-bar .acc-fbar { top: calc(var(--acc-header-h) + 46px); }
  .acc-fbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .acc-fbar__group { display: flex; gap: 8px; flex-wrap: wrap; }
  .acc-active { display: flex; }
  .acc-more { margin-top: 56px; }
  .acc-more__bar { width: 240px; }
  .acc-catalog .acc-more__btn { width: auto; }
}
@media (min-width: 783px) { .admin-bar .acc-fbar { top: calc(var(--acc-header-h) + 32px); } }
