/* Vignettes animées des jeux (demande de kaki, 3 novembre 2026). Fichier à part pour ne pas toucher à site.css.
   Une vignette fait 100 × 70 en unités cqw. Sans la classe .vj-joue elle est au repos, complète et lisible. */
.vj-carte { display: block; text-decoration: none; border-radius: 14px; box-shadow: var(--ombre); container-type: inline-size; color: #fff; }
.vj-v-cadre { display: block; position: relative; height: 70cqw; overflow: hidden; border-radius: 14px; background: var(--c); }
.vj-scene { position: absolute; inset: 0; }
.vj-scene > *, .vj-battement > * { position: absolute; display: flex; align-items: center; justify-content: center; font-family: var(--titres); font-weight: 900; line-height: 1; }
.vj-bandeau { position: absolute; left: 0; right: 0; bottom: 0; height: 24cqw; background: var(--f); display: flex; align-items: center; justify-content: space-between; gap: 2cqw; padding: 0 4cqw 0 5cqw; }
.vj-b-texte { display: flex; flex-direction: column; gap: .6cqw; min-width: 0; font-family: var(--titres); }
.vj-t-petit { font-size: 7.4cqw; font-weight: 800; line-height: 1; color: #ffe08a; }
.vj-t-grand { font-size: 11.4cqw; font-weight: 900; line-height: 1.02; white-space: nowrap; letter-spacing: -.01em; }
.vj-t-grand.vj-long { font-size: 8.8cqw; }
.vj-b-jouer { flex: none; width: 12cqw; height: 12cqw; border-radius: 50%; background: #ffd23f; position: relative; box-shadow: 0 .5cqw 0 rgba(0,0,0,.25); }
.vj-b-jouer::after { content: ""; position: absolute; left: 4.4cqw; top: 3cqw; border-left: 4.8cqw solid #2b2118; border-top: 3cqw solid transparent; border-bottom: 3cqw solid transparent; }
.vj-v-mode { position: absolute; right: 2.5cqw; top: 2.5cqw; background: #ffd23f; color: #2b2118; font: 900 6.4cqw/1 var(--titres); padding: 1.6cqw 3cqw; border-radius: 99px; box-shadow: 0 .5cqw 0 rgba(0,0,0,.25); }
.vj-carte:hover .vj-b-jouer { transform: scale(1.1); }
.vj-carte:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Petits éléments des scènes */
.vj-tuile { background: #eef2f7; color: #223; border-radius: .8cqw; font-size: 5.4cqw; }
.vj-couvre { background: #9fb3c8; border-radius: .8cqw; box-shadow: inset 0 -.6cqw 0 rgba(0,0,0,.18), inset 0 .5cqw 0 rgba(255,255,255,.35); opacity: 0; }
.vj-drapeau { font-size: 5.6cqw; color: #e03131; background: #9fb3c8; border-radius: .8cqw; box-shadow: inset 0 -.6cqw 0 rgba(0,0,0,.18), inset 0 .5cqw 0 rgba(255,255,255,.35); }
.vj-case { background: #fff; color: #1f2a44; }
.vj-case.vj-trait { box-shadow: inset 0 0 0 .18cqw #9aa6bd; }
.vj-indice { color: #fff; font-size: 4cqw; font-weight: 800; }
.vj-plein { background: #ff5d8f; border-radius: .5cqw; box-shadow: inset 0 0 0 .18cqw rgba(255,255,255,.5); }
.vj-ligne { background: #1f2a44; }
.vj-chiffre { color: #1668c7; }
.vj-donne { color: #1f2a44; }
.vj-carte-j { background: #fff; border-radius: 1.5cqw; flex-direction: column; font-size: 5.4cqw; gap: .2cqw; box-shadow: 0 .6cqw 1.4cqw rgba(0,0,0,.28); color: #1d1d1f; }
.vj-carte-j.vj-rouge { color: #d6242f; }
.vj-dos { background: repeating-linear-gradient(45deg, #1b4fa8 0 1cqw, #2c67c9 1cqw 2cqw); border: .6cqw solid #fff; border-radius: 1.5cqw; }
.vj-tuile-m { background: linear-gradient(#fffdf4, #efe7cf); border-radius: 1.3cqw; font-size: 6.6cqw; box-shadow: .7cqw .9cqw 0 #b8a97d, 1.1cqw 1.4cqw 0 #6b5f3e; color: #17613a; }
.vj-tuile-m.vj-r { color: #c92a2a; }
.vj-tuile-m.vj-b { color: #1864ab; }
.vj-mem-f { background: #fff; border-radius: 1.5cqw; font-size: 10cqw; box-shadow: 0 .5cqw 0 rgba(0,0,0,.2); }
.vj-mem-d { background: #ffd23f; color: #b5451b; border-radius: 1.5cqw; font-size: 9cqw; box-shadow: 0 .5cqw 0 rgba(0,0,0,.2); opacity: 0; }
.vj-lettre-g { color: #fff; font-size: 5cqw; font-weight: 800; }
.vj-capsule { background: #ffd23f; border-radius: 99px; transform-origin: left center; }
.vj-capsule.vj-v { transform-origin: center top; }
.vj-motif { border-radius: 1cqw; font-size: 7cqw; background: #756d63; color: #fff; }
.vj-motif.vj-bon { background: #16803c; }
.vj-motif.vj-ail { background: #7b2cbf; border-radius: 50%; }
.vj-motif.vj-vide { background: rgba(255,255,255,.14); }
.vj-calc { background: #fff; color: #1f1a17; border-radius: 1.5cqw; }
.vj-calc.vj-r { background: #ffd23f; }
.vj-calc.vj-op { background: none; color: #fff; }
.vj-noir { background: #1b2466; border-radius: .3cqw; }

/* Objets cachés : la scène se déplace sous la loupe, l'objet trouvé s'affiche en haut */
.vj-oc-image { position: absolute; left: -5cqw; top: -4cqw; width: 110cqw; height: 61.4cqw; max-width: none; object-fit: cover; transform-origin: 0 0; }
.vj-joue .vj-oc-image { will-change: transform; animation: vj-oc-camera 7.5s ease-in-out both; }
.vj-oc-loupe { left: 33cqw; top: 6cqw; width: 34cqw; height: 34cqw; border-radius: 50%; border: 1.7cqw solid #fff; box-shadow: 0 .8cqw 2cqw rgba(0,0,0,.55), inset 0 0 0 .5cqw rgba(0,0,0,.25); transform: scale(.55); }
.vj-oc-loupe::after { content: ""; position: absolute; left: 86%; top: 86%; width: 12cqw; height: 2.8cqw; border-radius: 99px; background: #fff; transform: rotate(45deg); transform-origin: 0 50%; box-shadow: 0 .4cqw 1cqw rgba(0,0,0,.5); }
.vj-joue .vj-oc-loupe { animation: vj-oc-loupe 7.5s ease-in-out both; }
.vj-oc-vu { left: 33cqw; top: 6cqw; width: 34cqw; height: 34cqw; border-radius: 50%; border: 1.4cqw solid #51cf66; opacity: 0; }
.vj-joue .vj-oc-vu { animation: vj-oc-vu 2.1s ease-out 3 1.05s; }
.vj-oc-nom { left: 3cqw; top: 2.5cqw; max-width: 94cqw; padding: 1.5cqw 3cqw; border-radius: 99px; background: #fff; color: #1f1a17; font-size: 6cqw; white-space: nowrap; opacity: 0; box-shadow: 0 .6cqw 1.5cqw rgba(0,0,0,.4); }
.vj-oc-nom i { font-style: normal; color: #16803c; margin-right: 1.4cqw; }
.vj-joue .vj-oc-nom { animation: vj-oc-nom 1.25s ease-out both; animation-delay: calc(var(--i) * 2.1s + 1.05s); }
@keyframes vj-oc-camera {
	0% { transform: none; }
	10%, 30% { transform: translate(calc(var(--x1) * 1cqw), calc(var(--y1) * 1cqw)) scale(2); }
	38%, 58% { transform: translate(calc(var(--x2) * 1cqw), calc(var(--y2) * 1cqw)) scale(2); }
	66%, 86% { transform: translate(calc(var(--x3) * 1cqw), calc(var(--y3) * 1cqw)) scale(2); }
	100% { transform: none; }
}
@keyframes vj-oc-loupe { 0%, 100% { transform: scale(.55); } 10%, 90% { transform: scale(1); } }
@keyframes vj-oc-vu { 0% { opacity: 0; transform: scale(1.2); } 8%, 40% { opacity: 1; transform: scale(1); } 56%, 100% { opacity: 0; transform: scale(1); } }
@keyframes vj-oc-nom { 0% { opacity: 0; transform: translateY(-3cqw); } 14%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
.vj-puzzle { overflow: visible; }
.vj-puzzle g { transform-box: fill-box; transform-origin: center; }

.vj-ludi-jour { background: #1f2f8f; color: #fff; }
.vj-ludi-date { color: #1f2f8f; }
.vj-ludi-case { background: #fff; border-radius: 1cqw; }
.vj-ludi-soleil { color: #f08c00; }
.vj-ludi-lune { color: #3451d1; }

/* ========= Ce que font les éléments quand c'est le tour de la vignette =========
   Sans la classe .vj-joue la vignette est au repos, complète et lisible. Seuls transform et opacity bougent. */
.vj-joue .vj-scene { animation: vj-fondu .35s both; }
.vj-joue .vj-pop { animation: vj-pop .4s cubic-bezier(.3,1.6,.5,1) both; animation-delay: calc(var(--i, 0) * .13s + .3s); }
.vj-joue .vj-couvre { animation: vj-decouvre .32s both; animation-delay: calc(var(--i, 0) * .09s + .3s); }
.vj-joue .vj-mem-d { animation: vj-retourne 3.2s both; animation-delay: calc(var(--i, 0) * .3s + .3s); }
.vj-joue .vj-mem-f { animation: vj-retourne-f 3.2s both; animation-delay: calc(var(--i, 0) * .3s + .3s); }
.vj-joue .vj-vole { animation: vj-vole .55s cubic-bezier(.25,.9,.35,1.05) both; animation-delay: calc(var(--i, 0) * .17s + .3s); }
.vj-joue .vj-capsule { animation: vj-trace .7s ease-out both; animation-delay: calc(var(--i, 0) * .9s + .5s); }
.vj-joue .vj-capsule.vj-v { animation-name: vj-trace-v; }
.vj-joue .vj-bascule { animation: vj-bascule .42s both; animation-delay: calc(var(--i, 0) * .11s + .3s); }
.vj-joue .vj-paire { animation: vj-paire 3.6s ease-in-out both; animation-delay: .4s; }
.vj-joue .vj-battement { animation: vj-battement .55s ease-in-out 2; animation-delay: 3.6s; }
.vj-joue .vj-b-jouer { animation: vj-invite .5s ease-in-out 3; animation-delay: 1.4s; }
.vj-joue .vj-v-mode { animation: vj-pop .45s cubic-bezier(.3,1.6,.5,1) both; animation-delay: .9s; }
@keyframes vj-fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes vj-pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes vj-decouvre { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.5); } }
@keyframes vj-retourne { 0% { opacity: 1; transform: scaleX(1); } 8% { opacity: 1; transform: scaleX(0); } 9%, 100% { opacity: 0; transform: scaleX(0); } }
@keyframes vj-retourne-f { 0%, 8% { transform: scaleX(0); } 16%, 100% { transform: scaleX(1); } }
@keyframes vj-vole { from { transform: translate(calc(var(--dx) * 1cqw), calc(var(--dy) * 1cqw)) rotate(-14deg); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes vj-trace { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes vj-trace-v { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes vj-bascule { 0% { transform: scaleY(0); } 100% { transform: scaleY(1); } }
@keyframes vj-paire { 0%, 30% { transform: none; opacity: 1; } 42% { transform: translateY(-3cqw) scale(1.14); opacity: 1; } 68% { transform: translate(calc(var(--dx) * 1cqw), -3cqw) scale(1.14); opacity: 1; } 78% { transform: translate(calc(var(--dx) * 1cqw), -3cqw) scale(0); opacity: 0; } 92% { transform: scale(.7); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes vj-battement { 50% { transform: scale(1.12); } }
@keyframes vj-invite { 50% { transform: scale(1.22); } }

.vj-joue .vj-t-petit { animation: vj-glisse .4s ease-out both; }
.vj-joue .vj-t-grand { display: inline-block; transform-origin: left center; animation: vj-rebond .6s cubic-bezier(.3,1.7,.5,1) both .25s; }
@keyframes vj-glisse { from { opacity: 0; transform: translateX(-8cqw); } to { opacity: 1; transform: none; } }
@keyframes vj-rebond { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }


.vj-carte.carte { display: block; }
@media (prefers-reduced-motion: reduce) { .vj-carte *, .vj-carte { animation: none !important; } }
