/* VVhite Pages — « Les Genesis Incarnon ». Couleurs réglables : --vvi-acc (accent), --vvi-fx (effet de la semaine en
   cours, turquoise du Néant), --vvi-int (1–3), --vvi-speed, --vvi-p / --vvi-s / --vvi-m (types), colonnes --vvi-cols… */
.vvp-incarnon { --vvi-mut: var(--muted, #8a90ad); max-width: var(--vvi-maxw, 1100px); margin: 0 auto 2.5em; }
.vvp-incarnon.is-wide { width: min(calc(100vw - 32px), var(--vvi-maxw, 1100px)); max-width: none; margin-left: calc(50% - min(50vw - 16px, var(--vvi-maxw, 1100px) / 2)); }
body.vvp-page--incarnon { overflow-x: clip; }
.vvp-incarnon *, .vvi-badge * { box-sizing: border-box; }
.vvp-incarnon a { color: var(--vvi-acc, #d9a441); }

.vvi-intro { line-height: 1.65; margin: 0 0 26px; }
.vvi-intro p { margin: 0 0 .6em; }
.vvi-sec { margin: 0 0 44px; scroll-margin-top: 90px; }
.vvi-h2 { --vvp-base: 1.7em; margin: 0 0 10px !important; line-height: 1.15; color: var(--vvp-c, #fff); }
.vvi-sintro { margin: 0 0 18px; line-height: 1.6; }
.vvi-sintro p { margin: 0 0 .5em; }
.vvi-edit { display: inline-block; margin: 6px 0 0 8px; padding: 1px 8px; border-radius: 6px; border: 1px dashed rgba(255, 255, 255, .35); color: #b4bad0 !important; font-size: .78rem; font-style: normal; font-weight: 500; text-decoration: none !important; vertical-align: middle; }
.vvi-edit:hover, .vvi-edit:focus-visible { color: #fff !important; border-color: #fff; }
.vvi-empty { color: var(--vvi-mut); font-style: italic; }

/* ---------- Cette semaine ---------- */
.vvi-hero { overflow: hidden; isolation: isolate; }
.vvi-hero::before { /* Halo du Néant derrière l'encadré */
	content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1; pointer-events: none;
	background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--vvi-fx, #2de0d2) 22%, transparent), transparent 65%);
}
.vvi-hero-t { --vvp-base: 1.5em; margin: 0 0 4px !important; line-height: 1.15; color: var(--vvp-c, #fff); }
.vvi-hero-sub { margin: 0 0 16px; color: var(--vvi-fx, #2de0d2); font-weight: 600; letter-spacing: .02em; }
.vvi-cards { display: grid; grid-template-columns: repeat(var(--vvi-cols, 5), minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.vvi-hero-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.vvi-count { margin: 0; font-size: 1.05em; }
.vvi-cd { font-family: var(--vvp-font-chiffres, var(--vvp-font-texte, var(--font-ui, 'Open Sans', sans-serif))); font-variant-numeric: tabular-nums; }
.vvi-goto { font-weight: 600; text-decoration: none !important; }
.vvi-goto:hover, .vvi-goto:focus-visible { text-decoration: underline !important; }
.vvi-hero-next { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); color: #b4bad0; font-size: .95em; }
.vvi-lab { color: var(--vvi-mut); }

/* Carte d'une arme */
.vvi-card { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; text-decoration: none !important; color: #fff !important; transition: transform .2s ease, border-color .2s ease; min-width: 0; }
a.vvi-card:hover, a.vvi-card:focus-visible { transform: translateY(-3px); border-color: var(--vvi-acc, #d9a441); }
a.vvi-card:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vvi-card-img { display: block; width: 100%; aspect-ratio: 1; border-radius: calc(var(--vvp-r, 10px) - 4px); overflow: hidden; background: rgba(255, 255, 255, .04); }
.vvi-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vvi-card-ph { display: grid; place-items: center; width: 100%; height: 100%; font-size: 1.6em; font-weight: 800; color: var(--vvi-tc, var(--vvi-acc)); background: radial-gradient(circle, color-mix(in srgb, var(--vvi-tc, var(--vvi-acc)) 18%, transparent), transparent 70%); text-transform: uppercase; }
.vvi-card-n { line-height: 1.2; overflow-wrap: break-word; hyphens: auto; max-width: 100%; }
.vvi-card--p { --vvi-tc: var(--vvi-p, #e0a63a); }
.vvi-card--s { --vvi-tc: var(--vvi-s, #5fb3f0); }
.vvi-card--m { --vvi-tc: var(--vvi-m, #e0606a); }
.vvi-type { padding: 1px 8px; border-radius: 999px; font-size: .72em; font-weight: 700; letter-spacing: .03em; color: var(--vvi-tc); border: 1px solid color-mix(in srgb, var(--vvi-tc) 55%, transparent); }

/* ---------- Les semaines ---------- */
.vvi-weeks { display: flex; flex-direction: column; gap: 18px; }
.vvi-week { isolation: isolate; scroll-margin-top: 90px; border-left: 4px solid var(--vvi-wc, var(--vvp-bd, var(--vvp-line))); }
.vvi-week-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0 0 12px; }
.vvi-week-t { --vvp-base: 1.15em; margin: 0 !important; line-height: 1.3; color: var(--vvp-c, #fff); }
.vvi-letter { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; margin-left: 6px; padding: 0 4px; border-radius: 6px; font-size: .7em; vertical-align: .15em; color: var(--vvi-acc, #d9a441); border: 1px solid color-mix(in srgb, var(--vvi-acc, #d9a441) 50%, transparent); }
.vvi-state { margin: 0; font-size: .92em; }
.vvi-cur-label { margin: 0 0 10px !important; letter-spacing: .08em; }
.vvi-cur-label[hidden] { display: none; }
.vvi-banner { display: block; width: 100%; height: auto; margin: 0 0 14px; border-radius: 10px; }
.vvi-grid { display: grid; grid-template-columns: repeat(var(--vvi-gc, 5), minmax(0, 1fr)); gap: 10px; }
.vvi-grid .vvi-card { --vvp-pad: 8px; font-size: .84em; }
.vvi-week.is-next { border-left-color: color-mix(in srgb, var(--vvi-fx, #2de0d2) 45%, transparent); }

/* Semaine en cours : contour et couleur de l'effet */
.vvi-week.is-cur { border-color: var(--vvi-fx, #2de0d2); border-left-color: var(--vvi-fx, #2de0d2); }
.vvi-week.is-cur .vvi-state { color: var(--vvi-fx, #2de0d2); font-weight: 700; }
.vvi-glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; display: none; overflow: hidden; }
.vvi-week.is-cur .vvi-glow { display: block; }
.vvi-glow i { display: none; }

@media (prefers-reduced-motion: no-preference) {
	/* Lueur du Néant : halo qui respire */
	.vvi-fx--void .vvi-week.is-cur { animation: vvi-breathe var(--vvi-speed, 4s) ease-in-out infinite; }
	.vvi-fx--void .vvi-hero { animation: vvi-breathe calc(var(--vvi-speed, 4s) * 1.25) ease-in-out infinite; }
	/* Reflet */
	.vvi-fx--shine .vvi-week.is-cur .vvi-glow { background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--vvi-fx) calc(var(--vvi-int, 2) * 12%), transparent) 50%, transparent 65%) no-repeat; background-size: 250% 100%; animation: vvi-shine var(--vvi-speed, 4s) linear infinite; }
	/* Contour qui tourne */
	.vvi-fx--spin .vvi-week.is-cur .vvi-glow { inset: -2px; padding: 2px; z-index: 0; background: conic-gradient(from var(--vvi-a, 0deg), transparent 0 70%, var(--vvi-fx) 85%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: vvi-spin var(--vvi-speed, 4s) linear infinite; }
	/* Particules du Néant */
	.vvi-fx--particles .vvi-week.is-cur .vvi-glow i { display: block; position: absolute; bottom: -10px; width: calc(2px + var(--vvi-int, 2) * 1.5px); aspect-ratio: 1; border-radius: 50%; background: var(--vvi-fx); box-shadow: 0 0 8px var(--vvi-fx); opacity: 0; animation: vvi-rise calc(var(--vvi-speed, 4s) * 1.5) linear infinite; }
	.vvi-glow i:nth-child(1) { left: 6%; animation-delay: 0s !important; }
	.vvi-glow i:nth-child(2) { left: 18%; animation-delay: -1.1s !important; }
	.vvi-glow i:nth-child(3) { left: 31%; animation-delay: -2.6s !important; }
	.vvi-glow i:nth-child(4) { left: 44%; animation-delay: -.6s !important; }
	.vvi-glow i:nth-child(5) { left: 57%; animation-delay: -3.3s !important; }
	.vvi-glow i:nth-child(6) { left: 69%; animation-delay: -1.8s !important; }
	.vvi-glow i:nth-child(7) { left: 82%; animation-delay: -4.2s !important; }
	.vvi-glow i:nth-child(8) { left: 93%; animation-delay: -2.2s !important; }
	.vvi-fx--particles .vvi-week.is-cur, .vvi-fx--shine .vvi-week.is-cur, .vvi-fx--spin .vvi-week.is-cur { box-shadow: 0 0 calc(var(--vvi-int, 2) * 9px) -4px var(--vvi-fx); }
}
@media (prefers-reduced-motion: reduce) {
	.vvp-incarnon:not(.vvi-fx--none) .vvi-week.is-cur { box-shadow: 0 0 calc(var(--vvi-int, 2) * 10px) -4px var(--vvi-fx); }
}
@property --vvi-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes vvi-breathe {
	0%, 100% { box-shadow: 0 0 calc(var(--vvi-int, 2) * 6px) -4px var(--vvi-fx, #2de0d2), inset 0 0 calc(var(--vvi-int, 2) * 4px) -6px var(--vvi-fx, #2de0d2); }
	50% { box-shadow: 0 0 calc(var(--vvi-int, 2) * 16px) 0 var(--vvi-fx, #2de0d2), inset 0 0 calc(var(--vvi-int, 2) * 10px) -6px var(--vvi-fx, #2de0d2); }
}
@keyframes vvi-shine { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes vvi-spin { to { --vvi-a: 360deg; } }
@keyframes vvi-rise {
	0% { transform: translateY(0); opacity: 0; }
	15% { opacity: .9; }
	100% { transform: translateY(calc(-1 * var(--vvi-h, 260px))); opacity: 0; }
}
.vvi-fx--none .vvi-glow { display: none !important; }

/* ---------- FAQ ---------- */
.vvi-faq { display: flex; flex-direction: column; gap: 12px; }
.vvi-q { --vvp-base: 1.08em; margin: 0 0 8px !important; line-height: 1.3; color: var(--vvp-c, #fff); }
.vvi-a { line-height: 1.6; }
.vvi-a p { margin: 0 0 .5em; }
.vvi-a p:last-child { margin-bottom: 0; }

/* ---------- Encart des pages d'armes ---------- */
.vvi-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 1.5em; line-height: 1.45; border-left: 4px solid var(--vvi-acc, #d9a441); }
.vvi-badge.is-cur { border-color: var(--vvi-fx, #2de0d2); box-shadow: 0 0 16px -6px var(--vvi-fx, #2de0d2); }
.vvi-badge.is-cur .vvi-badge-t { color: var(--vvi-fx, #2de0d2); font-weight: 700; }
.vvi-badge-ico { font-size: 1.2em; }
.vvi-badge-t { flex: 1 1 260px; }
.vvi-badge-l { font-weight: 600; color: var(--vvi-acc, #d9a441) !important; white-space: nowrap; }

/* ---------- Écrans étroits ---------- */
@media (max-width: 960px) {
	.vvi-cards { grid-template-columns: repeat(min(var(--vvi-cols, 5), 3), minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.vvi-cards { grid-template-columns: repeat(var(--vvi-cols-m, 2), minmax(0, 1fr)); }
	.vvi-grid { grid-template-columns: repeat(var(--vvi-gc-m, 3), minmax(0, 1fr)); }
	.vvi-hero { --vvp-pad: 16px; }
	.vvi-week { --vvp-pad: 14px; }
}
