/* ═══════════════════════════════════════════════
   LONAR CAFÉ — catalogue partageable
   Écran : même univers noir & or que la boutique.
   Impression / PDF : fond blanc, A4, trois colonnes.
   ═══════════════════════════════════════════════ */

/* ═══════════ EN-TÊTE ═══════════ */

.cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.cat-back {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 10px 18px;
  transition: border-color 0.3s, color 0.3s;
}

.cat-back:hover { border-color: var(--gold); color: var(--gold); }

/* ═══════════ COUVERTURE ═══════════ */

.cat-cover {
  text-align: center;
  padding: clamp(56px, 10vw, 110px) 16px clamp(48px, 8vw, 80px);
  background:
    radial-gradient(ellipse 60% 55% at 50% 30%, rgba(212, 175, 55, 0.10), transparent 72%),
    var(--noir);
}

.cat-cover-mark {
  width: clamp(84px, 14vw, 120px);
  height: auto;
  margin: 0 auto 28px;
}

.cat-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 7vw, 3.8rem);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  line-height: 1.15;
}

.cat-edition {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.cat-edition::first-letter { text-transform: uppercase; }

.cat-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.cat-actions .btn { padding: 13px 26px; font-size: 0.72rem; }

.cat-status {
  min-height: 1.6em;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--champagne);
  overflow-wrap: anywhere;
}

/* ═══════════ SECTIONS ═══════════ */

.cat-loading {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
}

.cat-section { padding: clamp(40px, 7vw, 72px) 0; }

.cat-section + .cat-section { border-top: 1px solid rgba(212, 175, 55, 0.14); }

.cat-section .section-head { margin-bottom: 32px; }

.cat-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.cat-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: linear-gradient(165deg, var(--anthracite-soft) 0%, var(--anthracite) 55%, #141414 100%);
  border: 1px solid rgba(212, 175, 55, 0.12);
  transition: border-color 0.4s, transform 0.4s var(--ease-lux);
}

.cat-item:hover { border-color: rgba(212, 175, 55, 0.45); transform: translateY(-4px); }

.cat-item-art {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(180deg, #1f1f1f, #121212);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.cat-item-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-item.is-out .cat-item-art img { opacity: 0.55; }

.cat-item-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 18px 18px 20px;
}

.cat-item-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

.cat-intensity {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.cat-intensity strong { color: var(--gold); font-weight: 500; }

.cat-compat {
  font-size: 0.7rem;
  color: var(--muted);
  font-style: italic;
}

.cat-price {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  font-family: var(--font-display);
  color: var(--champagne);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.cat-price em {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0;
}

/* ═══════════ PIED ═══════════ */

.cat-foot {
  text-align: center;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  padding: 48px 0 56px;
  color: var(--muted);
  font-size: 0.82rem;
}

.cat-foot p + p { margin-top: 8px; }

.cat-foot-brand {
  font-family: var(--font-display);
  letter-spacing: 0.38em;
  color: var(--blanc);
  font-size: 0.9rem;
}

.cat-foot-link a { color: var(--gold); }

.cat-foot-note { font-size: 0.72rem; opacity: 0.8; }

@media (max-width: 520px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-item-body { padding: 14px 12px 16px; }
  .cat-item-name { font-size: 0.88rem; }
  .cat-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 360px) {
  .cat-head .nav-brand-name { display: none; }
}

/* ═══════════ IMPRESSION / PDF ═══════════ */

@page { size: A4; margin: 14mm 12mm; }

@media print {
  body.page-catalogue {
    background: #fff;
    color: #111;
    font-size: 10pt;
  }

  .cat-head,
  .cat-actions,
  .cat-status { display: none; }

  /* Couverture : une page à elle seule */
  .cat-cover {
    background: #fff;
    min-height: 250mm;
    display: flex;
    flex-direction: column;
    justify-content: center;
    break-after: page;
  }
  .cat-title { color: #111; }
  .cat-edition { color: #555; }

  .container { max-width: none; padding-inline: 0; }

  .cat-section { padding: 0 0 8mm; break-before: page; }
  .cat-section + .cat-section { border-top: none; }
  .cat-section .section-head { margin-bottom: 6mm; }
  .section-title { color: #111; font-size: 18pt; }
  .eyebrow { color: #A8862A; }

  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 5mm;
  }

  .cat-item {
    background: #fff;
    border: 0.5pt solid #D9C88F;
    transform: none !important;
    break-inside: avoid;
  }
  .cat-item-art { background: #F6F3EA; border-bottom-color: #E6DAB2; }
  .cat-item-body { padding: 3mm 3.5mm 4mm; gap: 1.5mm; }
  .cat-item-name { color: #111; font-size: 10.5pt; }
  .card-kicker, .cat-intensity strong { color: #A8862A; }
  .card-meta, .cat-intensity, .cat-compat, .cat-price em { color: #666; }
  .cat-price { color: #111; border-top-color: #E6DAB2; font-size: 11pt; }

  .stock-flag { background: #fff; }

  .cat-foot {
    border-top: 0.5pt solid #D9C88F;
    color: #444;
    padding: 6mm 0 0;
    break-inside: avoid;
  }
  .cat-foot-brand { color: #111; }
  .cat-foot-link a { color: #A8862A; }
}
