/* ==========================================================================
   ProductCard — styles partagés (voir site/js/product-card.js)
   Les couleurs suivent les variables de la page (solutions.css ou portail.css),
   avec des valeurs de repli de la direction artistique.
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; align-items: stretch; }
.product-card {
    --pc-surface: var(--card, var(--p-surface, #ffffff));
    --pc-line: var(--border, var(--p-line, #e2e8f0));
    --pc-text: var(--ink, var(--p-text, #0f172a));
    --pc-muted: var(--muted, var(--p-muted, #64748b));
    --pc-blue: #2563eb;
    display: flex; flex-direction: column; min-width: 0; overflow: hidden;
    background: var(--pc-surface); color: var(--pc-text);
    border: 1px solid var(--pc-line); border-radius: 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.product-card:hover { border-color: color-mix(in srgb, var(--pc-blue) 45%, var(--pc-line)); box-shadow: 0 14px 34px -26px rgba(15, 23, 42, .55); }
.product-card__media { position: relative; aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--pc-blue) 8%, var(--pc-surface)); border-bottom: 1px solid var(--pc-line); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card__media--placeholder { display: grid; place-items: center; align-content: center; gap: 4px;
    background: repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--pc-blue) 6%, transparent) 12px 24px),
                color-mix(in srgb, var(--pc-blue) 7%, var(--pc-surface)); }
.product-card__ref { font-size: 30px; font-weight: 800; letter-spacing: .04em; color: var(--pc-blue); opacity: .8; }
.product-card__placeholder { font-size: 12px; font-weight: 600; color: var(--pc-muted); }
.product-card__status {
    position: absolute; top: 10px; left: 10px; height: 24px; padding: 0 9px; display: inline-flex; align-items: center;
    border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(15, 23, 42, .72); color: #e2e8f0;
}
.product-card__status.is-live { background: #059669; color: #fff; }
.product-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 8px; flex: 1 1 auto; }
.product-card__category { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--pc-blue); }
.product-card__title { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--pc-text); letter-spacing: 0; }
.product-card__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--pc-muted);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__price { margin: auto 0 0; padding-top: 8px; font-size: 20px; font-weight: 700; color: var(--pc-text); }
.product-card .portal-link-button { align-self: flex-start; padding: 0; min-height: 0; border: 0; background: none; color: var(--pc-blue); font: 600 13px/1.4 inherit; cursor: pointer; }
.product-card .portal-link-button:hover { text-decoration: underline; }
.product-card__actions { display: grid; gap: 8px; padding: 8px 16px 16px; }
.product-card__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }

.pc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; margin: 0;
    border-radius: 8px; border: 1px solid transparent; font: 600 14px/1 Inter, "Segoe UI", system-ui, sans-serif;
    white-space: nowrap; text-decoration: none; cursor: pointer; width: 100%;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; transform: none;
}
.pc-btn:hover, .pc-btn:focus-visible, .pc-btn:active { text-decoration: none; transform: none; }
.pc-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.pc-btn--primary { background: var(--pc-blue); border-color: var(--pc-blue); color: #fff; }
.pc-btn--primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.pc-btn--outline { background: transparent; border-color: var(--pc-line); color: var(--pc-text); }
.pc-btn--outline:hover { border-color: var(--pc-blue); color: var(--pc-blue); }
.pc-btn--secondary { background: color-mix(in srgb, var(--pc-blue) 10%, var(--pc-surface)); border-color: color-mix(in srgb, var(--pc-blue) 30%, var(--pc-line)); color: var(--pc-blue); }
.pc-btn--secondary:hover { background: color-mix(in srgb, var(--pc-blue) 16%, var(--pc-surface)); }
.pc-btn:focus-visible { outline: 2px solid var(--pc-blue); outline-offset: 2px; }
:root[data-theme="dark"] .product-card { --pc-blue: #60a5fa; }
:root[data-theme="dark"] .pc-btn--primary { background: #2563eb; border-color: #2563eb; }
@media (prefers-reduced-motion: reduce) { .product-card, .pc-btn { transition: none; } }

/* Bandeau Solutions VIP & Premium du catalogue (palette VIP, doré en accent) */
.vip-strip { margin: 8px 0 24px; padding: 20px; border-radius: 16px; background: #102744; color: #f8f5ec; border: 1px solid rgba(197, 160, 89, .45); }
.vip-strip h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 19px; color: #d4af69; letter-spacing: 0; }
.vip-strip__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.vip-strip__card { display: grid; gap: 6px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(197, 160, 89, .35); color: inherit; text-decoration: none; }
.vip-strip__card:hover { border-color: #c5a059; text-decoration: none; }
.vip-strip__card strong { font-size: 18px; }
.vip-strip__card span { font-size: 14px; color: #d8d2c4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
