/* Configurateur et catalogue : complète site.css */
.cfg { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .95fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.cfg-steps { display: grid; gap: var(--s-6); min-width: 0; }
.step header { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: baseline; margin-bottom: var(--s-4); }
.step header .num { font: 900 1rem/1 var(--f-dot); color: var(--accent); letter-spacing: .06em; }
.step header h2 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.step header p { grid-column: 2; color: var(--muted); font-size: .95rem; max-width: 60ch; }
.step[hidden] { display: none; }

/* Cartes d'usage : icônes détaillées 128 × 128 (icons.js), 4 colonnes, hauteurs égales */
.use-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.use-card { position: relative; display: grid; grid-template-rows: auto auto 1fr; gap: 6px; justify-items: center; align-content: start; text-align: center; padding: 18px 14px 16px; border-radius: var(--r-3); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0)), var(--navy-up); color: var(--text); cursor: pointer; font: inherit; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s, background .2s; }
.uc-ico { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 4px; border-radius: 50%; background: radial-gradient(closest-side, rgba(70,224,250,.10), transparent); color: var(--accent-light); transition: color .2s, transform .3s var(--ease); }
.uc-ico svg { width: 80px; height: 80px; display: block; }
.use-card b { font-size: 1rem; font-weight: 600; line-height: 1.25; }
.use-card .uc-sub { font-size: .8rem; line-height: 1.4; color: var(--muted); }
.uc-check { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); transition: all .2s; }
.use-card:hover { border-color: var(--accent-deep); transform: translateY(-2px); } .use-card:hover .uc-ico { color: var(--accent); transform: scale(1.04); }
.use-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 44px -22px rgba(70,224,250,.65); background: linear-gradient(160deg, rgba(70,224,250,.14), rgba(123,37,240,.14)), var(--navy-up); }
.use-card[aria-pressed="true"] .uc-ico { color: var(--accent); }
.use-card[aria-pressed="true"] .uc-check { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230a0d33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--accent); }
@media (max-width: 1240px) and (min-width: 1041px) { .use-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .use-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .use-card { padding: 14px 10px 12px; } .uc-ico { width: 68px; height: 68px; } .uc-ico svg { width: 64px; height: 64px; } .use-card b { font-size: .92rem; } .use-card .uc-sub { font-size: .74rem; } }

/* Étapes en panneaux */
.cfg-steps .step { padding: clamp(20px, 2.6vw, 32px); border-radius: var(--r-big); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); }
.cfg-steps { gap: var(--s-4); }
.step header .num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent-deep); font-size: .85rem; align-self: center; }
.step header p { margin-top: 2px; }
/* Barre de synthèse collante sur mobile : la configuration courante reste visible pendant les étapes */
.minibar { display: none; }
@media (max-width: 1040px) {
  .minibar { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 40; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px 10px 16px; border-radius: var(--r-3); background: rgba(9,12,44,.92); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
  .minibar .t { display: grid; gap: 1px; min-width: 0; }
  .minibar b { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .minibar small { font: 700 .75rem/1.2 var(--f-dot); color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .minibar .btn { padding: 10px 14px; font-size: .82rem; }
  .minibar.off { display: none; }
  .cfg-steps { padding-bottom: 72px; }
}

/* Lignes de champ, segments, curseurs */
.field-row { display: grid; gap: 10px; margin-bottom: var(--s-4); }
.lab { font-size: var(--t-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-light); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: 500 .9rem/1.2 var(--f-brand); color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: var(--r-max); padding: 10px 16px; cursor: pointer; display: inline-grid; gap: 2px; justify-items: center; transition: all .2s; }
.seg button small { font: 600 .68rem/1 var(--f-dot); letter-spacing: .03em; color: var(--accent-light); }
.seg button:hover:not(:disabled) { color: var(--text); border-color: var(--accent-deep); }
.seg button[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.seg button[aria-checked="true"] small { color: var(--navy); }
.seg button:disabled { opacity: .4; cursor: not-allowed; }
.prod-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.prod-opt { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; text-align: left; padding: 10px; border-radius: var(--r-3); border: 1px solid var(--line); background: var(--navy-up); color: var(--text); font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.prod-opt img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-2); background: var(--navy-deep); }
.prod-opt .t { display: grid; gap: 2px; min-width: 0; }
.prod-opt b { font-size: .95rem; font-weight: 600; }
.prod-opt small { font-size: .78rem; color: var(--muted); }
.prod-opt em { font: 700 .78rem/1 var(--f-dot); color: var(--accent); font-style: normal; letter-spacing: .03em; }
.prod-opt:hover { border-color: var(--accent); }
.prod-opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 560px) { .dim-grid { grid-template-columns: 1fr; } }
.slider { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.slider .val { font: 700 1rem/1 var(--f-dot); color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.slider .val input { width: 6ch; font: 700 1.1rem/1 var(--f-dot); color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: var(--r-2); padding: 9px 10px; text-align: right; -moz-appearance: textfield; transition: border-color .2s; } .slider .val input:focus { outline: none; border-color: var(--accent); background: rgba(70,224,250,.08); }
.slider .val input::-webkit-inner-spin-button { -webkit-appearance: none; }
.slider input[type="range"] { grid-column: 1 / -1; width: 100%; height: 28px; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; background: transparent; --fill: 50%; }
.slider input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #46E0FA, #7B25F0) 0 0 / var(--fill) 100% no-repeat, rgba(255,255,255,.12); }
.slider input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.slider input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #46E0FA, #7B25F0); }
.slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: 0 0 0 4px rgba(70,224,250,.18), 0 4px 12px rgba(0,0,0,.4); transition: transform .15s; }
.slider input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: 0 0 0 4px rgba(70,224,250,.18); }
.slider input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.slider input[type="range"]:focus-visible { outline: none; } .slider input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(70,224,250,.35); }
.rng-scale { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: -6px; font: 600 .7rem/1 var(--f-dot); color: var(--muted); letter-spacing: .04em; }
.hint { font-size: .9rem; color: var(--muted); }
.hint b { color: var(--text); }
.hint.warn { color: #FFD08A; }
.linkbtn { background: none; border: 0; padding: 0; font: 600 .9rem/1.4 var(--f-brand); color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cfg-foot { color: var(--muted); font-size: .9rem; }

/* Panneau résultat */
.cfg-result { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); display: grid; gap: var(--s-3); }
.res-card { background: var(--navy-up); border-radius: var(--r-big); overflow: hidden; display: grid; }
.res-head { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 18px 20px 10px; }
.res-head img { width: 72px; height: 72px; border-radius: var(--r-2); object-fit: cover; background: var(--navy-deep); }
.res-head h2 { font-size: 1.25rem; margin-top: 4px; }
.res-head p { font-size: .85rem; color: var(--muted); margin-top: 2px; }
#preview { display: block; width: 100%; aspect-ratio: 16 / 9; background: #04061a; }
.res-kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.res-kpi div { background: var(--navy-up); padding: 12px 16px; display: grid; gap: 2px; }
.res-kpi span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-light); font-weight: 600; }
.res-kpi b { font: 700 1.05rem/1.2 var(--f-dot); color: var(--text); font-variant-numeric: tabular-nums; }
.res-kpi small { font-size: .78rem; color: var(--muted); }
.res-budget { padding: 18px 20px 6px; display: grid; gap: 4px; }
.res-budget .price { font: 900 clamp(1.4rem, 2.4vw, 1.9rem)/1.1 var(--f-dot); background-image: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.res-budget small { font-size: .8rem; color: var(--muted); }
.res-notes { list-style: none; margin: 0; padding: 8px 20px 0; display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.res-notes li::before { content: "▪ "; color: var(--accent); }
.res-notes:empty { display: none; }
.res-actions { padding: 18px 20px 20px; display: grid; gap: 12px; }
.res-actions .btn { justify-content: center; }
.res-tools { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; }
.res-tools button, .res-tools a { background: none; border: 0; padding: 0; font: 600 .85rem/1.4 var(--f-brand); color: var(--accent-light); cursor: pointer; text-decoration: none; }
.res-tools button:hover, .res-tools a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.res-alts h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-light); margin: 12px 0 8px; font-weight: 600; }
.alts { display: flex; flex-wrap: wrap; gap: 8px; }
.alt { display: grid; gap: 2px; text-align: left; padding: 10px 14px; border-radius: var(--r-2); border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; cursor: pointer; font-size: .82rem; position: relative; transition: border-color .2s, color .2s; }
.alt b { font: 700 .95rem/1.2 var(--f-dot); color: var(--text); }
.alt em { position: absolute; top: -8px; right: 10px; font: 700 .6rem/1 var(--f-dot); letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: var(--accent); padding: 4px 6px; border-radius: var(--r-1); font-style: normal; }
.alt:hover { border-color: var(--accent); color: var(--text); }
.cfg-help { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s-5) clamp(32px, 6vw, 96px); background: var(--navy-up); border-radius: var(--r-big); padding: clamp(24px, 4vw, 48px); }
.cfg-help h2 { font-size: var(--t-h3); margin-top: 10px; }
.cfg-help .copy { display: grid; gap: var(--s-3); color: var(--muted); }
@media (max-width: 1040px) {
  .cfg { grid-template-columns: 1fr; }
  .cfg-result { position: static; }
  .cfg-help { grid-template-columns: 1fr; }
}

/* ---------- Catalogue ---------- */
.cat-filters { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; margin-bottom: var(--s-6); }
.cat-sub { padding-block: var(--s-6); border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.cat-sub .sec-head { margin-bottom: var(--s-5); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s-3); }
.cat-card { background: var(--navy-up); border-radius: var(--r-3); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-width: 0; scroll-margin-top: 110px; }
.cat-card[hidden] { display: none; }
.cat-card .media { aspect-ratio: 4/3; }
.cat-card .body { padding: var(--s-4); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
.cat-card details { min-width: 0; }
.cat-card .top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.cat-card h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.cat-card .ref { font: 900 .78rem/1 var(--f-dot); color: var(--accent); letter-spacing: .06em; display: block; margin-bottom: 6px; }
.cat-card .env { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: var(--r-1); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.cat-card .price { font: 900 1.15rem/1.1 var(--f-dot); background-image: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.cat-card .price small { display: block; font: 500 .72rem/1.3 var(--f-brand); color: var(--muted); -webkit-text-fill-color: var(--muted); margin-top: 3px; }
.cat-card p.desc { font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card details[open] p.desc { -webkit-line-clamp: unset; display: block; }
.cat-card .pitches { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-card .pitches span { font: 700 .75rem/1 var(--f-dot); color: var(--accent-light); padding: 6px 9px; border: 1px solid var(--line); border-radius: var(--r-1); }
.cat-card .uses { display: grid; gap: 6px; font-size: .86rem; color: var(--muted); list-style: none; padding: 0; margin: 0; }
.cat-card .uses b { color: var(--text); font-weight: 600; }
.cat-card .apps { display: flex; flex-wrap: wrap; gap: 5px; }
.cat-card .apps span { font-size: .72rem; padding: 4px 8px; border-radius: var(--r-max); background: rgba(255,255,255,.06); color: var(--muted); }
.cat-card .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cat-card .actions .btn { padding: 11px 16px; font-size: .86rem; }
.cat-card details > summary { cursor: pointer; list-style: none; font-size: .88rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.cat-card details > summary::-webkit-details-marker { display: none; }
.cat-card details > summary::after { content: "+"; font: 900 1rem/1 var(--f-dot); transition: transform .25s var(--ease); }
.cat-card details[open] > summary::after { transform: rotate(45deg); }
.sheet { margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-2); overflow: auto; }
.sheet table { border-collapse: collapse; width: 100%; font-size: .82rem; font-variant-numeric: tabular-nums; }
.sheet.wide table { min-width: 760px; } .sheet.wide tbody th { width: auto; min-width: 150px; white-space: normal; } .sheet.wide td { white-space: nowrap; }
.sheet th, .sheet td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet thead th { background: rgba(255,255,255,.05); color: var(--accent-light); font: 700 .8rem/1.2 var(--f-dot); letter-spacing: .03em; white-space: nowrap; }
.sheet tbody th { font-weight: 500; color: var(--text); width: 42%; }
.sheet td { color: var(--muted); }
.sheet td.span { color: var(--muted); }

/* Galerie de visuels (fiches catalogue et panneaux de référence) */
.gal { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.gal-it { flex: none; width: 112px; height: 84px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--navy-deep); cursor: pointer; overflow: hidden; scroll-snap-align: start; transition: border-color .2s, transform .2s var(--ease); }
.gal-it img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 4px; }
.gal-it:hover { border-color: var(--accent); transform: translateY(-2px); }
.media.contain img { object-fit: contain; padding: 8%; background: var(--navy-deep); }

/* Références de catalogue sur les pages produit */
.refs { display: grid; gap: var(--s-4); }
.ref-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ref-tabs button { font: 700 .85rem/1 var(--f-dot); letter-spacing: .04em; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: var(--r-max); padding: 11px 16px; cursor: pointer; transition: all .2s; }
.ref-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.ref-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 48px); background: var(--navy-up); border-radius: var(--r-big); padding: clamp(20px, 3vw, 40px); }
.ref-panel[hidden] { display: none; }
.ref-panel .media { aspect-ratio: 4/3; border-radius: var(--r-3); }
.ref-panel .intro { display: grid; gap: 12px; align-content: start; }
.ref-panel .intro h3 { font-size: var(--t-h3); }
.ref-panel .intro .ref { font: 900 .85rem/1 var(--f-dot); color: var(--accent); letter-spacing: .06em; }
.ref-panel .intro p { color: var(--muted); font-size: .95rem; }
.ref-panel .intro .price { font: 900 1.4rem/1.1 var(--f-dot); background-image: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.ref-panel .intro .price small { display: block; font: 500 .75rem/1.3 var(--f-brand); color: var(--muted); -webkit-text-fill-color: var(--muted); }
.ref-panel .sheet { margin-top: 0; }
@media (max-width: 900px) { .ref-panel { grid-template-columns: 1fr; } }

/* Pitchs : cartes plutôt que pastilles */
.pitch-row .seg { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.pitch-row .seg button { border-radius: var(--r-2); padding: 14px 10px 12px; font: 700 1rem/1 var(--f-dot); color: var(--text); background: var(--navy-up); position: relative; gap: 6px; }
.pitch-row .seg button small { font: 500 .74rem/1.2 var(--f-brand); color: var(--muted); letter-spacing: 0; }
.pitch-row .seg button em { position: absolute; top: -8px; left: 50%; translate: -50% 0; font: 700 .58rem/1 var(--f-brand); letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: var(--navy); background: #FFE2A8; padding: 4px 7px; border-radius: var(--r-max); white-space: nowrap; }
.pitch-row .seg button[aria-checked="true"] { background: linear-gradient(160deg, rgba(70,224,250,.22), rgba(123,37,240,.2)), var(--navy-up); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 1px var(--accent); }
.pitch-row .seg button[aria-checked="true"] small { color: var(--accent-light); }
/* Panneau résultat */
.res-card { border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); position: relative; }
.res-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); z-index: 1; }
.res-alts { padding: 4px 20px 18px; border: 1px solid var(--line); border-radius: var(--r-big); background: rgba(255,255,255,.02); }
.res-alts:empty { display: none; }
.alts .alt { background: var(--navy-up); }
.prod-opt { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0)), var(--navy-up); }
.prod-opt[aria-pressed="true"] { background: linear-gradient(160deg, rgba(70,224,250,.14), rgba(123,37,240,.12)), var(--navy-up); }
.slider { margin-bottom: 10px; } .dim-grid + .hint { margin-top: 6px; } .slider + .field-row { margin-top: 8px; }
.alt em { background: #FFE2A8; font-family: var(--f-brand); letter-spacing: .08em; border-radius: var(--r-max); padding: 4px 7px; }

/* ---------- Catalogue compact (v68) : sections resserrées, cartes denses, fiche en fenêtre ---------- */
.cat-sub { padding-block: var(--s-5); }
.cs-head { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 20px; align-items: baseline; margin-bottom: var(--s-4); }
.cs-head h2 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); white-space: nowrap; }
.cs-head h2 b { font: 700 .85rem/1 var(--f-dot); color: var(--accent); vertical-align: middle; margin-left: 4px; }
.cs-head p { color: var(--muted); font-size: .9rem; margin: 0; }
.cs-head .see-all { font-size: .85rem; white-space: nowrap; }
@media (max-width: 760px) { .cs-head { grid-template-columns: 1fr auto; } .cs-head p { grid-column: 1 / -1; grid-row: 2; } }
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 12px; }
.cat-card { border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease); }
.cat-card:hover { border-color: var(--accent-deep); transform: translateY(-2px); }
.cc-media { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
.cat-card .media { aspect-ratio: 4/3; }
.cat-card .body { padding: 12px 14px 14px; gap: 8px; }
.cat-card h3 { font-size: .98rem; line-height: 1.25; }
.cat-card .ref { font-size: .7rem; margin-bottom: 3px; }
.cat-card .env { font-size: .62rem; padding: 3px 6px; }
.cat-card .pitches { gap: 4px; } .cat-card .pitches span { font-size: .66rem; padding: 4px 6px; }
.cat-card .price { font-size: 1rem; } .cat-card .price small { font-size: .66rem; }
.cat-card .actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 2px; }
.cc-btn { display: inline-flex; justify-content: center; align-items: center; padding: 8px 4px; border-radius: var(--r-2); font: 600 .78rem/1 var(--f-brand); text-decoration: none; cursor: pointer; border: 1px solid var(--accent-deep); background: rgba(70,224,250,.08); color: var(--accent-light); transition: background .2s, color .2s, border-color .2s; }
.cc-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.cc-btn.ghost { border-color: var(--line); background: transparent; color: var(--muted); }
.cat-dlg { width: min(980px, calc(100% - 24px)); }
.cat-dlg .cd-body { padding: clamp(18px, 3vw, 36px); display: grid; gap: 14px; }
.cd-close { position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(9,12,44,.85); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.cd-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(16px, 3vw, 32px); align-items: start; }
.cd-head .media { aspect-ratio: 4/3; border-radius: var(--r-3); }
.cd-head > div { display: grid; gap: 10px; } .cd-head h2 { font-size: var(--t-h3); }
.cd-head .ref { font: 900 .8rem/1 var(--f-dot); color: var(--accent); letter-spacing: .06em; }
.cd-head .price { font: 900 1.3rem/1.1 var(--f-dot); background-image: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.cd-head .price small { display: block; font: 500 .74rem/1.3 var(--f-brand); color: var(--muted); -webkit-text-fill-color: var(--muted); }
.cat-dlg .desc { color: var(--muted); font-size: .92rem; }
.cd-uses { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); list-style: none; padding: 0; margin: 0; } .cd-uses b { color: var(--text); }
.cat-dlg .apps { display: flex; flex-wrap: wrap; gap: 5px; } .cat-dlg .apps span { font-size: .72rem; padding: 4px 8px; border-radius: var(--r-max); background: rgba(255,255,255,.06); color: var(--muted); }
.cat-dlg .actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) { .cd-head { grid-template-columns: 1fr; } .cat-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .cat-card .actions { grid-template-columns: 1fr 1fr; } .cat-card .actions .ghost { grid-column: 1 / -1; } }
/* barre de filtres collante */
.cat-filter-sec { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 20; padding-block: 12px !important; background: rgba(15,20,65,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cat-filter-sec .cat-filters { margin: 0; gap: 8px 20px; }
.cat-filter-sec .filters button { padding-block: 7px; font-size: .8rem; }
.cat-sub { scroll-margin-top: 150px; }
@media (max-width: 760px) { .cat-filter-sec .cat-filters { flex-wrap: nowrap; overflow-x: auto; } .cat-filter-sec .filters { flex-wrap: nowrap; } .cat-filter-sec .filters button { white-space: nowrap; } }
.cat-card .body { display: flex; flex-direction: column; } .cat-card .actions { margin-top: auto; padding-top: 4px; }

/* Carrousel de la visionneuse (galeries du catalogue et des pages produit) */
.pop-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(9,12,44,.75); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.pop-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pop-nav:hover { background: var(--accent); color: var(--navy); } .pop-nav.prev { left: 14px; } .pop-nav.next { right: 14px; }
.pop-count { position: absolute; left: 16px; top: 16px; z-index: 3; font: 700 .78rem/1 var(--f-dot); color: #fff; background: rgba(9,12,44,.75); padding: 7px 10px; border-radius: var(--r-max); }
.pop-thumbs { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; z-index: 3; display: flex; gap: 6px; max-width: calc(100% - 140px); overflow-x: auto; padding: 4px; border-radius: var(--r-2); background: rgba(9,12,44,.6); scrollbar-width: none; }
.pop-thumbs button { flex: none; width: 54px; height: 40px; padding: 0; border: 1px solid transparent; border-radius: 6px; overflow: hidden; background: var(--navy-deep); cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.pop-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pop-thumbs button:hover, .pop-thumbs button[aria-current] { opacity: 1; border-color: var(--accent); }
@media (max-width: 760px) { .pop-nav { width: 38px; height: 38px; } .pop-thumbs { display: none; } }

/* v81 : pas de débordement horizontal sur mobile (fiches et en-têtes du catalogue) */
.refs, .ref-panel > *, .cs-head > * { min-width: 0; }
@media (max-width: 900px) { .ref-panel { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .cs-head h2 { white-space: normal; } .cs-head .see-all { white-space: normal; } }
