/* Catalogue et fiche d'offre : s'appuie sur les variables de styles.css */
.cat-head { max-width: 40rem; margin: 0 auto 2rem; text-align: center; }
.cat-head h1 { margin-bottom: .5rem; text-wrap: balance; }
.cat-head p { color: var(--foreground-muted); }

.cat-nav { position: sticky; top: 0; z-index: 20; display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center;
  padding: .75rem 0; margin-bottom: 2.5rem; background: color-mix(in srgb, var(--background) 88%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.cat-chip { display: flex; flex-direction: column; align-items: center; gap: .1rem; min-width: 9.5rem; padding: .55rem 1.1rem;
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--foreground); text-decoration: none;
  transition: border-color var(--transition-fast), background var(--transition-fast); }
.cat-chip strong { font-family: var(--font-display); font-size: 1rem; }
.cat-chip small { color: var(--foreground-muted); font-size: .8rem; }
.cat-chip:hover, .cat-chip:focus-visible { border-color: var(--primary); background: var(--gradient-subtle); }
.cat-chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.cat-section { scroll-margin-top: 6rem; margin-bottom: 4rem; }
.cat-section > header { margin-bottom: 1.5rem; max-width: 42rem; }
.cat-section > header h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .35rem; }
.cat-section > header p { color: var(--foreground-muted); }
.cat-sub { font-family: var(--font-display); font-size: 1.1rem; margin: 2rem 0 1rem; color: var(--foreground-muted); font-weight: 600; }

.cat-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); align-items: stretch; }
.cat-card { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
.cat-card.is-featured { border-color: var(--primary); box-shadow: 0 10px 40px -12px var(--primary-glow); }
.cat-card.is-full { opacity: .72; }
.cat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.cat-top h3 { font-size: 1.2rem; line-height: 1.25; }
.cat-flag { flex: none; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  background: var(--primary); color: var(--primary-foreground); white-space: nowrap; }
.cat-flag.is-full { background: var(--destructive); color: #fff; }
.cat-price { display: flex; align-items: baseline; gap: .35rem; }
.cat-price strong { font-family: var(--font-display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cat-price span { color: var(--foreground-muted); font-size: .9rem; }
.cat-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr)); gap: .5rem; margin: 0; padding: .75rem 0;
  border-block: 1px solid var(--border); }
.cat-specs div { display: flex; flex-direction: column; }
.cat-specs dt { color: var(--foreground-muted); font-size: .75rem; order: 2; }
.cat-specs dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.cat-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; flex: 1; font-size: .92rem; }
.cat-feats li { display: flex; gap: .5rem; align-items: flex-start; }
.cat-feats svg { flex: none; width: 1rem; height: 1rem; margin-top: .2rem; stroke: var(--primary); }
.cat-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cat-actions .btn { flex: 1 1 auto; justify-content: center; text-align: center; }
.cat-empty { text-align: center; color: var(--foreground-muted); padding: 3rem 0; }
.cat-help { text-align: center; color: var(--foreground-muted); margin-top: 1rem; }
.cat-help a { color: var(--primary); }

/* Fiche d'une offre */
.off-wrap { display: grid; gap: 1.5rem; grid-template-columns: 1fr; max-width: 62rem; margin: 0 auto; }
@media (min-width: 880px) { .off-wrap { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.off-main, .off-buy { padding: 2rem; }
.off-main h1 { text-wrap: balance; margin-bottom: .75rem; }
.off-main .lead { color: var(--foreground-muted); margin-bottom: 1.5rem; max-width: 65ch; }
.off-main h2 { font-size: 1.1rem; margin: 1.5rem 0 .75rem; }
.off-buy { position: sticky; top: 1.5rem; display: grid; gap: 1rem; }
.off-buy .cat-price strong { font-size: 2.4rem; }
.off-note { color: var(--foreground-muted); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { .cat-chip { transition: none; } }
