/* Clickable link cards (Saphonyx Product Finder 0.2.10). Classes and the cover link are added by cards.js on cards
   with one link. */

.spx-card { position: relative; transition: transform .18s ease, box-shadow .18s ease; }

/* invisible copy of the card's link over the whole card (keyboards and screen readers use the visible link) */
.spx-card-cover { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; display: block; margin: 0; padding: 0; border: 0; background: none; }

/* hover and keyboard focus: the card lifts and casts a hard shadow on its left and bottom (Christophe's mockup) */
.spx-card:hover, .spx-card:focus-within { transform: translateY(-4px); box-shadow: -4px 4px 0 #aaa; }   /* 0.2.12: #555 → #aaa, lighter */
.spx-card .spx-card-main:focus-visible { outline: 2px solid #1f6fae; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.spx-card { transition: none; }
	.spx-card:hover, .spx-card:focus-within { transform: none; }
}
@media print {
	.spx-card-cover { display: none; }
	.spx-card:hover, .spx-card:focus-within { transform: none; box-shadow: none; }
}

/* 0.4.1: product cards (the cards with a « p.spx-doc » line) are no longer clickable as a whole (Christophe,
   26-11-2026). The invisible full-card link written into the pages (« a.spx-doc-overlay ») is switched off; the
   visible link of the card and the « Ma sélection » cart keep working. The other cards keep their whole-card link. */
.spx-doc a.spx-doc-overlay { display: none !important; }
