/* GLOBAL FRIGO — catalogue : filtres latéraux, recherche, grille 4 colonnes / liste, pagination, fiche pièce, barre « Demande de devis ».
   Mêmes composants que l'accueil (site.css) ; seuls les blocs propres à la page sont définis ici. */

/* ---------- héro de page intérieure (bloc commun aux pages intérieures, à l'identique) ---------- */
.page-hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 18, 18,.95) 0%, rgba(18, 18, 18,.82) 40%, rgba(18, 18, 18,.35) 100%); }
.page-hero .container { position: relative; z-index: 2; padding-top: clamp(44px, 6vw, 84px); padding-bottom: clamp(44px, 6vw, 84px); display: grid; gap: 14px; }
.page-hero h1 { color: #fff; } .page-hero .lead { color: #e8e8e0; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: #c8c8bf; } .crumbs a:hover { color: #fff; text-decoration: underline; } .crumbs span::before { content: '/'; margin-right: 8px; opacity: .6; }
.page-hero .kicker { color: #b3d1ff; }
.page-hero .container { min-height: clamp(300px, 27vw, 380px); align-content: center; }
.page-hero .lead strong { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }

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

/* ---------- mise en page ---------- */
.cat-section { background: var(--bg-soft); padding: clamp(24px, 3vw, 40px) 0 clamp(56px, 7vw, 96px); }
.cat-layout { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: clamp(20px, 2.4vw, 36px); align-items: start; }
.cat-main { min-width: 0; scroll-margin-top: 96px; }

/* ---------- filtres ---------- */
.filters { position: sticky; top: 94px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.f-head, .f-foot { display: none; }
.f-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d9d9d0 transparent; }
.f-group { padding: 18px 18px 16px; border-bottom: 1px solid var(--line); }
.f-group:last-child { border-bottom: 0; }
.f-title { font-family: var(--f); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); line-height: 1.3; margin-bottom: 10px; }
.f-list { display: grid; gap: 2px; margin: 0 -8px; }
.f-list:empty { display: none; }
.f-opt { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 7px; text-align: left; font-size: 14.5px; line-height: 1.3; color: var(--text); border-left: 3px solid transparent; transition: background .15s, color .15s; }
.f-opt:hover:not([disabled]) { background: var(--bg-soft); color: var(--blue); }
.f-opt.is-active { background: var(--blue-50); color: var(--blue); font-weight: 650; border-left-color: var(--blue); }
.f-opt[disabled] { opacity: .45; cursor: default; }
.f-list-sm .f-opt { font-size: 13.5px; letter-spacing: .01em; min-height: 36px; }
.f-n { flex: none; font-size: 12.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.f-opt.is-active .f-n { color: var(--blue); font-weight: 650; }
.f-hint { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.f-more { margin-top: 6px; min-height: 36px; font-size: 13.5px; font-weight: 650; color: var(--blue); }
.f-more:hover { text-decoration: underline; }
.f-search input { width: 100%; height: 40px; margin-bottom: 8px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 12px; background: var(--bg-soft); font-size: 14px; transition: border-color .2s, background .2s; }
.f-search input:focus { outline: none; border-color: var(--blue); background: #fff; }
.f-check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14.5px; cursor: pointer; }
.f-check input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--blue); cursor: pointer; }
.f-check .f-n { margin-left: auto; }
.f-check:hover { color: var(--blue); }
.f-overlay { display: none; }
.f-foot .btn[disabled] { opacity: .5; cursor: default; }

/* ---------- recherche + barre d'outils ---------- */
.c-toolbar { display: grid; gap: 14px; margin-bottom: 18px; }
.c-search { position: relative; }
.c-search input { width: 100%; height: 58px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; padding: 0 56px 0 52px; font-size: 16.5px; color: var(--text); box-shadow: 0 8px 20px -16px rgba(18, 18, 18, .35); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.c-search input::placeholder { color: #8a8a84; }
.c-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(41, 90, 169, .12); }
.c-search input::-webkit-search-cancel-button, .f-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.c-search-ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--blue); pointer-events: none; }
.c-search-ico svg { width: 20px; height: 20px; }
.c-search-clear { position: absolute; right: 7px; top: 7px; width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: background .15s, color .15s; }
.c-search-clear[hidden] { display: none; }
.c-search-clear:hover { background: var(--bg-soft); color: var(--navy); }
.c-search-clear svg { width: 18px; height: 18px; }

.c-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.c-filters-btn { display: none; }
.c-filters-btn span:empty { display: none; }
.c-count { margin-right: auto; font-size: 15px; color: var(--muted); }
.c-count b { color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.c-tools { display: flex; align-items: center; gap: 10px; }
.c-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.c-sort select { height: 42px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 36px 0 12px; font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer; -webkit-appearance: none; appearance: none; transition: border-color .2s;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6a86' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 15px; }
.c-sort select:hover { border-color: var(--blue); }
.c-view { display: inline-flex; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.c-view button { width: 44px; height: 39px; display: grid; place-items: center; color: var(--muted); transition: background .15s, color .15s; }
.c-view button + button { border-left: 1.5px solid var(--line); }
.c-view button svg { width: 18px; height: 18px; }
.c-view button:hover { color: var(--blue); }
.c-view button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.c-view button:focus-visible { outline-offset: -3px; }

.c-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.c-chips[hidden] { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; max-width: 100%; padding: 4px 10px 4px 12px; border-radius: 999px; background: #fff; border: 1px solid #d9d9d0; font-size: 13.5px; font-weight: 600; color: var(--navy); text-align: left; transition: border-color .15s, color .15s, background .15s; }
.chip small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip svg { width: 14px; height: 14px; flex: none; color: var(--muted); }
.chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.chip:hover svg { color: var(--blue); }
.chip-clear { min-height: 36px; padding: 0 8px; font-size: 13.5px; font-weight: 650; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.chip-clear:hover { color: var(--blue-600); }

.c-approx { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; padding: 12px 16px; border-radius: 8px; background: #fbf5e3; border: 1px solid #f6d7b3; color: #7a4407; font-size: 14.5px; line-height: 1.5; }
.c-approx[hidden] { display: none; }
.c-approx svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--orange-600); }

/* ---------- résultats : grille (4 colonnes sur bureau, 3 ≤ 1200 px, 2 ≤ 760 px ; 48 par page) ---------- */
.c-results .p-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.c-results .p-card { cursor: pointer; min-width: 0; }
.c-results .p-media { display: block; background: var(--bg-soft); }
.c-results .p-body { padding: 12px 14px 14px; gap: 4px; }
.c-results .p-ref { line-height: 1.35; overflow-wrap: anywhere; }
.c-results .p-name { font-size: 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: 2.6em; overflow-wrap: anywhere; }
.c-results .p-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-results .p-name a:hover, .c-results .p-card:hover .p-name a { color: var(--blue); }
.c-results .p-add { padding-top: 8px; }
.c-results .p-grid .p-add .btn { width: 100%; min-width: 0; padding: 0 10px; gap: 6px; font-size: 13.5px; white-space: nowrap; }
.c-results .p-grid .p-add .btn svg { width: 16px; height: 16px; flex: none; }
.c-results .p-grid .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pm .btn { white-space: normal; line-height: 1.2; text-align: center; }
.lbl-s { display: none; }

/* vignette de remplacement (pièce sans photo) : fond clair, flocon de la marque en filigrane, type de pièce */
.p-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--bg-soft); overflow: hidden; }
.p-ph::before { content: ''; position: absolute; inset: 0; background: url(../img/brand/pattern-blue.svg) center / 64px 64px; opacity: .06; }
.p-ph::after { content: ''; order: -1; position: relative; width: 32%; aspect-ratio: 252 / 240; background: url(../img/brand/mark.png) center / contain no-repeat; opacity: .16; }
.p-ph span { position: relative; max-width: 100%; padding: 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: center; line-height: 1.3; color: #8a8a84; overflow-wrap: anywhere; }

/* squelettes pendant le chargement */
.sk { pointer-events: none; }
.sk .p-media, .sk-l { background: linear-gradient(90deg, #ececE3 25%, #f3f6fa 45%, #ececE3 65%) 0 0 / 300% 100%; animation: skShine 1.5s linear infinite; }
.sk-l { display: block; height: 12px; border-radius: 4px; }
.sk-l + .sk-l { margin-top: 4px; }
.sk .p-add .sk-l { height: 42px; border-radius: 8px; }
@keyframes skShine { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* ---------- résultats : liste (tableau compact) ---------- */
.c-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.c-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.c-table th { padding: 12px 10px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--muted); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.c-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.c-table tbody tr:last-child td { border-bottom: 0; }
.c-table tbody tr { cursor: pointer; transition: background .15s; }
.c-table tbody tr:hover { background: #f8fafd; }
.c-table .t-thumb { width: 1%; padding-left: 12px; padding-right: 2px; }
.c-thumb { position: relative; display: block; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--bg-soft); }
.c-thumb img { width: 100%; height: 100%; object-fit: cover; }
.c-thumb .p-ph span { display: none; }
.c-thumb .p-ph::after { width: 56%; }
.c-thumb .p-ph::before { background-size: 40px 40px; }
.t-ref { max-width: 150px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; line-height: 1.35; overflow-wrap: anywhere; color: var(--blue); }
.t-name a { font-weight: 650; line-height: 1.3; color: var(--navy); overflow-wrap: anywhere; }
.c-table tbody tr:hover .t-name a { color: var(--blue); }
.t-sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.t-sub, .t-sub-f, .t-sub-b { display: none; }                /* rappel famille · marque quand les colonnes sont masquées */
.t-fam { font-size: 13.5px; white-space: nowrap; color: var(--text); }
.t-brand { font-size: 13px; white-space: nowrap; color: var(--text); }
.t-na { color: #a9b4c7; }
.t-dispo { white-space: nowrap; }
.c-table .t-act { width: 1%; text-align: right; white-space: nowrap; }
.c-table .t-act .btn { height: 38px; padding: 0 12px; gap: 6px; font-size: 13.5px; }
.c-table .t-act .btn svg { width: 16px; height: 16px; }
.c-table .t-act .btn.is-in { background: var(--blue-50); border-color: var(--blue); color: var(--blue); }
.c-table .lbl { display: none; }
.c-table .lbl-s { display: inline; }

/* ---------- pagination ---------- */
.c-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.c-pager[hidden], .c-pageinfo[hidden] { display: none; }
.pg-nums { display: flex; align-items: center; gap: 6px; }
.pg { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font-size: 14.5px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; transition: border-color .15s, color .15s, background .15s; }
.pg svg { width: 16px; height: 16px; }
.pg:hover:not([disabled]):not(.is-active) { border-color: var(--blue); color: var(--blue); }
.pg.is-active { background: var(--navy); border-color: var(--navy); color: #fff; cursor: default; }
.pg[disabled] { opacity: .45; cursor: default; }
.pg-gap { padding: 0 2px; color: var(--muted); }
.c-pageinfo { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- aucun résultat / erreur ---------- */
.c-empty { display: grid; justify-items: center; gap: 14px; padding: clamp(28px, 4vw, 56px) clamp(18px, 3vw, 40px); text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.c-empty-ico { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.c-empty-ico svg { width: 26px; height: 26px; }
.c-empty h3 { overflow-wrap: anywhere; }
.c-empty p { max-width: 58ch; color: var(--muted); }
.c-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.c-empty-sub { margin-top: 12px; font-size: 13.5px; font-weight: 600; letter-spacing: .02em; }
.c-empty-fams { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.c-empty-fams .tab small { margin-left: 6px; font-weight: 500; color: var(--muted); }
.c-noscript { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.c-noscript a { color: var(--blue); font-weight: 650; text-decoration: underline; }

/* ---------- fiche pièce (fenêtre modale) ---------- */
.pm { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s ease; }
.pm[hidden] { display: none; }
.pm.is-open { opacity: 1; }
.pm-backdrop { position: absolute; inset: 0; background: rgba(18, 18, 18, .62); }
.pm-dialog { position: relative; display: flex; flex-direction: column; width: min(960px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); transform: translateY(10px); transition: transform .22s cubic-bezier(.2, .7, .2, 1); outline: none; }
.pm.is-open .pm-dialog { transform: none; }
.pm-scroll { overflow-y: auto; overscroll-behavior: contain; }
.pm-close { position: absolute; right: 10px; top: 10px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--navy); transition: border-color .15s, color .15s; }
.pm-close:hover { border-color: var(--blue); color: var(--blue); }
.pm-close svg { width: 18px; height: 18px; }
.pm-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.pm-media { position: relative; aspect-ratio: 1; background: var(--bg-soft); border-right: 1px solid var(--line); overflow: hidden; }
.pm-media img { width: 100%; height: 100%; object-fit: cover; }
.pm-media .badge { position: absolute; left: 14px; top: 14px; z-index: 1; }
.pm-media .p-ph span { font-size: 13px; }
.pm-info { display: grid; gap: 16px; align-content: start; padding: clamp(20px, 2.6vw, 34px); }
.pm-info .kicker { padding-right: 48px; }
.pm-info h2 { font-size: clamp(20px, 2vw, 26px); font-weight: 750; overflow-wrap: anywhere; }
.pm-refline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pm-refline > span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.pm-ref { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--blue); background: var(--blue-50); padding: 7px 12px; border-radius: 6px; overflow-wrap: anywhere; }
.pm-copy { height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 6px; font-size: 13px; font-weight: 650; color: var(--navy); transition: border-color .15s, color .15s, background .15s; }
.pm-copy svg { width: 15px; height: 15px; }
.pm-copy:hover { border-color: var(--blue); color: var(--blue); }
.pm-copy.is-done { border-color: var(--green); color: var(--green); background: #e5f6ee; }
.pm-specs { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.pm-specs dt, .pm-specs dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.pm-specs dt { padding-right: 24px; color: var(--muted); }
.pm-specs dd { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.pm-buy { display: flex; }
.pm-buy .btn { flex: 1 1 auto; }
.pm-buy .btn.is-in { background: var(--blue-50); border-color: var(--blue); color: var(--blue); box-shadow: none; }
.pm-wa { width: 100%; }
.pm-wa svg { color: var(--green); }
.pm-wa:hover { border-color: var(--green); color: var(--green); }
.pm-note { font-size: 13px; color: var(--muted); }
.pm-similar { padding: 20px clamp(20px, 2.6vw, 34px) 26px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.pm-similar h3 { margin-bottom: 12px; font-family: var(--f); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.pm-sim-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pm-sim { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.pm-sim:hover { border-color: #d9d9d0; box-shadow: var(--shadow); }
.pm-sim-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.pm-sim-media img { width: 100%; height: 100%; object-fit: cover; }
.pm-sim-media .p-ph span { font-size: 10px; }
.pm-sim-body { display: grid; gap: 4px; padding: 10px 12px 12px; }
.pm-sim-body .p-ref { font-size: 11.5px; overflow-wrap: anywhere; }
.pm-sim-body b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; font-weight: 650; line-height: 1.3; color: var(--navy); }
.pm-sim:hover .pm-sim-body b { color: var(--blue); }

/* ---------- barre fixe « Demande de devis » ---------- */
.req-txt { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #e8e8e0; }
.req-txt svg { width: 20px; height: 20px; flex: none; color: #b3d1ff; }
.req-txt b { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- adaptatif ---------- */
@media (max-width: 1360px) {
  .cat-layout { grid-template-columns: 260px minmax(0, 1fr); }
}
@media (max-width: 1200px) {
  .c-results .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* liste : les colonnes secondaires se replient sous la désignation quand la place manque (avec ou sans barre latérale) */
@media (max-width: 1279px) {
  .c-table .t-fam { display: none; }
  .t-sub { display: block; }
  .t-sub-f { display: inline; }
}
@media (min-width: 981px) and (max-width: 1120px), (max-width: 860px) {
  .c-table .t-brand { display: none; }
  .t-sub-b { display: inline; }
}
@media (max-width: 700px) {
  /* chaque ligne devient un bloc compact : vignette · référence / désignation / dispo · bouton */
  .c-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .c-table, .c-table tbody { display: block; }
  .c-table tbody tr { display: grid; grid-template-columns: 48px minmax(0, 1fr) 44px; grid-template-areas: 'th ref act' 'th name act' 'th dispo act'; column-gap: 12px; row-gap: 3px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .c-table tbody tr:last-child { border-bottom: 0; }
  .c-table td { display: block; padding: 0; border: 0; }
  .c-table .t-thumb { grid-area: th; width: auto; padding: 0; align-self: start; }
  .c-table .t-ref { grid-area: ref; max-width: none; }
  .c-table .t-name { grid-area: name; }
  .c-table .t-dispo { grid-area: dispo; margin-top: 2px; }
  .c-table .t-act { grid-area: act; width: auto; }
  .c-table .t-act .btn { width: 44px; height: 44px; padding: 0; }
  .c-table .t-act .btn svg { width: 18px; height: 18px; }
  .c-table .lbl-s { display: none; }
}
@media (max-width: 980px) {
  .cat-layout { grid-template-columns: minmax(0, 1fr); }
  .c-filters-btn { display: inline-flex; height: 44px; }
  .filters { position: fixed; z-index: 90; top: 0; bottom: 0; left: 0; width: min(380px, 90vw); max-height: none; border: 0; border-radius: 0; box-shadow: var(--shadow-lg); transform: translateX(-104%); visibility: hidden; transition: transform .26s cubic-bezier(.2, .7, .2, 1), visibility 0s .26s; }
  .filters.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .f-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 18px; border-bottom: 1px solid var(--line); font-family: var(--fh); font-size: 18px; font-weight: 800; color: var(--navy); }
  .f-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; color: var(--navy); }
  .f-close svg { width: 20px; height: 20px; }
  .f-foot { display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #fff; }
  .f-foot .btn { flex: 1; height: 46px; padding: 0 12px; }
  .f-opt, .f-list-sm .f-opt, .f-check { min-height: 44px; }
  .f-more { min-height: 44px; }
  .f-search input { height: 44px; font-size: 16px; }
  .f-overlay { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(18, 18, 18, .55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
  .f-overlay.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
  .c-sort select { height: 44px; }
  .c-view button { height: 41px; }
  .chip, .chip-clear { min-height: 44px; }
  .pg { min-width: 44px; height: 44px; }
}
@media (max-width: 860px) {
  .page-hero::after { background: linear-gradient(180deg, rgba(18, 18, 18,.9) 0%, rgba(18, 18, 18,.8) 100%); }
}
@media (max-width: 760px) {
  .c-results .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pm { padding: 10px; }
  .pm-dialog { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .pm-top { grid-template-columns: minmax(0, 1fr); }
  .pm-media { aspect-ratio: 4 / 3; max-height: 42vh; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .pm-info .kicker { padding-right: 0; }
  .pm-sim-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .c-search input { height: 54px; font-size: 16px; padding-left: 46px; }
  .c-search-ico { left: 15px; }
  .c-search-clear { top: 5px; right: 5px; }
  /* barre d'outils sur deux lignes : [Filtres] [grille/liste] puis [compteur] [tri] */
  .c-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'filters view' 'count sort'; gap: 10px 12px; align-items: center; }
  .c-tools { display: contents; }
  .c-filters-btn { grid-area: filters; justify-self: start; }
  .c-view { grid-area: view; justify-self: end; }
  .c-count { grid-area: count; margin-right: 0; font-size: 14.5px; }
  .c-sort { grid-area: sort; justify-self: end; }
  .c-sort span { display: none; }
  .c-sort select { max-width: 52vw; }
  .c-results .p-body { padding: 12px 12px 14px; }
  .c-results .p-grid .p-add .btn { padding: 0 8px; }
  .p-ph span { font-size: 10px; }
  .c-pager { gap: 8px; }
  .pg-nums { order: 3; flex-basis: 100%; justify-content: center; gap: 5px; }
  .pg-prev, .pg-next { flex: 1; }
  .req-txt svg { display: none; }
  .req-txt { font-size: 14.5px; }
}
@media (max-width: 480px) {
}
@media (max-width: 420px) {
  .req-lbl { display: none; }                                  /* « 3 pièces » + bouton « Demander un devis » */
}
@media (max-width: 400px) {
  /* cartes étroites : « Ajouter » / « Ajouté » */
  .c-results .p-grid .lbl { display: none; }
  .c-results .p-grid .lbl-s { display: inline; }
}
@media (max-width: 380px) {
  .pg { min-width: 40px; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .sk .p-media, .sk-l { animation: none; }
  .pm, .pm-dialog, .filters, .f-overlay { transition: none; }
}
