/* Rendu des cartes : la carte est un conteneur, tout à l'intérieur se mesure en cqw (% de sa largeur). */
.carte { position: relative; aspect-ratio: var(--ratio, 0.716); container-type: inline-size; width: 100%; user-select: none; }
.carte-in { position: absolute; inset: 0; overflow: hidden; background-clip: padding-box; box-shadow: 0 0.9cqw 0 rgba(0, 0, 0, 0.55); isolation: isolate; }
.carte .motif { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.carte .calque { position: absolute; display: flex; transform-origin: center; }
.carte .calque > * { width: 100%; height: 100%; position: relative; }
.k-forme { overflow: hidden; }
.k-texte { display: flex; flex-direction: column; overflow: hidden; overflow-wrap: anywhere; }
.k-texte > span { display: block; }
.k-texte .saveur { display: block; margin-top: 0.6em; font-size: 0.85em; opacity: 0.75; font-weight: 400; }
.k-illus { overflow: hidden; background: #d9d4c7; }
.k-illus img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.k-illus.sans-image { display: grid; place-items: center; color: rgba(0, 0, 0, 0.28); background-color: #e6e0d2; background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.07) 0 1cqw, transparent 1cqw 4cqw); }
.k-illus.sans-image .ico { width: 30%; height: 30%; }
.k-image { overflow: hidden; }
.k-image img { width: 100%; height: 100%; }
.k-icone { display: grid; place-items: center; }
.k-icone .ico { width: 100%; height: 100%; filter: drop-shadow(0 0.35cqw 0 rgba(0, 0, 0, 0.45)); }
.k-rarete { display: grid; place-items: center; }
.k-rarete .ico { width: 100%; height: 100%; filter: drop-shadow(0 0.35cqw 0 rgba(0, 0, 0, 0.6)); }
.k-rarete.gemme .ico { stroke: #111; stroke-width: 0.9px; paint-order: stroke; }
.k-rarete.avec-nom { display: flex; align-items: center; gap: 0.3em; }
.k-champ { display: flex; align-items: center; gap: 0.25em; overflow: hidden; white-space: nowrap; }
.k-champ.aff-pastille { justify-content: center; border-radius: 999px; border: 0.45cqw solid rgba(0, 0, 0, 0.75); box-shadow: 0 0.5cqw 0 rgba(0, 0, 0, 0.55); }
.k-champ.aff-pastille .ico { width: 0.9em; height: 0.9em; }
.k-champ .ic { display: inline-flex; }
.k-champ.aff-barre { flex-direction: column; align-items: stretch; justify-content: center; }
.k-champ .barre-fond { height: 45%; background: rgba(0, 0, 0, 0.2); border-radius: 99px; overflow: hidden; border: 0.3cqw solid rgba(0, 0, 0, 0.6); }
.k-champ .barre-plein { height: 100%; }
.k-champ .lib { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.dos-defaut { position: absolute; inset: 12%; display: grid; place-items: center; text-align: center; }
.dos-defaut img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dos-defaut b { font-size: 11cqw; line-height: 0.9; text-transform: uppercase; overflow-wrap: anywhere; }
.carte-secrete { position: absolute; inset: 0; display: grid; place-items: center; font: 900 40cqw/1 'Big Shoulders', sans-serif; color: rgba(255, 255, 255, 0.85); z-index: 5; text-shadow: 0 1.5cqw 0 rgba(0, 0, 0, 0.5); }
.badge-variante { position: absolute; z-index: 40; top: 2.5%; left: 50%; transform: translateX(-50%); padding: 0.6cqw 2.4cqw; border-radius: 99px; border: 0.4cqw solid #111; font: 800 4cqw/1.1 'Barlow Condensed', sans-serif; letter-spacing: 0.05em; text-transform: uppercase; color: #111; white-space: nowrap; }
.carte-nombre { position: absolute; z-index: 45; right: -4px; top: -6px; padding: 2px 7px; border-radius: 99px; background: #151515; color: #fff; border: 2px solid #fff; font: 800 13px/1.1 'Barlow Condensed', sans-serif; }
.carte-nouvelle { position: absolute; z-index: 45; left: 50%; top: -9px; transform: translateX(-50%) rotate(-3deg); padding: 3px 9px; background: #ffd500; color: #151515; border: 2px solid #151515; border-radius: 4px; font: 900 12px/1 'Barlow Condensed', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }

/* Inclinaison au survol (cartes de la collection). */
.carte.inclinable { perspective: 900px; }
.carte.inclinable .carte-in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.12s ease-out; }

/* ─── Effets de rareté (et de variantes) ─────────────────────────────────── */
.effet { position: absolute; inset: 0; z-index: 30; pointer-events: none; }
.effet-brillant { background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 45%, transparent 60%); background-size: 260% 100%; background-position: 120% 0; animation: reflet 4.5s ease-in-out infinite; mix-blend-mode: overlay; }
@keyframes reflet { 0%, 55% { background-position: 120% 0; } 100% { background-position: -40% 0; } }
.effet-holo {
  background: repeating-linear-gradient(115deg, #ff5ba5 0%, #ffd34e 8%, #6ef0a5 16%, #4fc3ff 24%, #b388ff 32%, #ff5ba5 40%);
  background-size: 250% 250%; mix-blend-mode: color-dodge; opacity: 0.32; animation: holo 7s linear infinite;
}
.inclinable .effet-holo { background-position: var(--mx, 50%) 50%; animation: none; }
@keyframes holo { from { background-position: 0% 50%; } to { background-position: 250% 50%; } }
.effet-lueur { box-shadow: inset 0 0 0 1.2cqw var(--rc), inset 0 0 7cqw var(--rc); opacity: 0.75; }
.effet-anime { background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0.5cqw, transparent 0.9cqw) 0 0 / 16cqw 16cqw, radial-gradient(circle, rgba(255, 255, 255, 0.6) 0.35cqw, transparent 0.7cqw) 8cqw 5cqw / 13cqw 13cqw; animation: monte-p 9s linear infinite; opacity: 0.8; }
@keyframes monte-p { to { background-position: 0 -160cqw, 8cqw -125cqw; } }
.effet-paillettes { background: radial-gradient(circle, #fff 0.35cqw, transparent 0.6cqw) 0 0 / 7cqw 9cqw, radial-gradient(circle, var(--rc) 0.4cqw, transparent 0.7cqw) 3cqw 4cqw / 9cqw 7cqw; mix-blend-mode: screen; animation: scintille 2.4s ease-in-out infinite alternate; }
@keyframes scintille { from { opacity: 0.35; } to { opacity: 0.85; } }
.effet-arcenciel { border: 1.6cqw solid transparent; border-image: linear-gradient(135deg, #ff4d4d, #ffcf33, #4dff88, #33b5ff, #b44dff) 1; }
.effet-givre { background: linear-gradient(160deg, rgba(220, 240, 255, 0.55), transparent 45%), repeating-linear-gradient(60deg, rgba(255, 255, 255, 0.25) 0 0.3cqw, transparent 0.3cqw 3cqw); mix-blend-mode: screen; }
.effet-or { box-shadow: inset 0 0 0 1.4cqw #d4af37, inset 0 0 0 2cqw #7a5a12; background: linear-gradient(115deg, transparent 35%, rgba(255, 236, 170, 0.6) 48%, transparent 60%); background-size: 260% 100%; animation: reflet 5s ease-in-out infinite; mix-blend-mode: screen; }
body.photosensible .effet-holo { opacity: 0.22; }
body.photosensible .effet-paillettes { opacity: 0.5; }
