/* ==========================================================================
   JMS Annuaire Voyance — jeux et outils (chargé uniquement sur les pages concernées)
   ========================================================================== */

/* ---------- Cadre commun des outils ---------- */
.tool { position: relative; max-width: 1080px; margin: 0 auto; padding: clamp(22px, 4vw, 44px); border-radius: 30px; background: radial-gradient(90% 70% at 50% 0%, rgba(200, 30, 51, .28), transparent 70%), linear-gradient(170deg, rgba(70, 22, 34, .85), rgba(26, 8, 13, .9)); border: 1px solid var(--line-2); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05); scroll-margin-top: calc(var(--header-h) + 16px); }
.tool::before { content: ""; position: absolute; left: 50%; top: -1px; width: 180px; height: 2px; margin-left: -90px; background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 20px var(--gold); }
.tool__steps { display: flex; justify-content: center; gap: clamp(10px, 3vw, 34px); margin: 0 0 26px; padding: 0; list-style: none; counter-reset: none; }
.tool__steps li { display: flex; align-items: center; gap: 8px; font: 500 13.5px/1 var(--f-display); color: var(--muted-2); transition: color .3s; }
.tool__steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 12.5px; transition: all .3s; }
.tool__steps li.is-active { color: var(--ink); }
.tool__steps li.is-active span { background: var(--grad-gold); color: #2a0a10; border-color: transparent; box-shadow: 0 0 18px var(--gold-glow); }
.tool__steps li.is-done span { background: rgba(255, 157, 136, .16); color: var(--gold); border-color: rgba(255, 157, 136, .4); }
.tool__intro { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 640px; margin: 0 auto; text-align: center; }
.tool__title { font: 400 clamp(26px, 3.4vw, 38px)/1.15 var(--f-display); color: var(--ink); letter-spacing: -.015em; }
.tool__hint { color: var(--muted); font-size: 16.5px; }
.tool__q { display: block; width: 100%; max-width: 520px; }
.tool__q input, .hm__pick select, .datef select, .datef input { width: 100%; height: 54px; padding: 0 20px; border-radius: 16px; background: rgba(10, 3, 5, .55); border: 1px solid var(--line-2); color: var(--ink); font-size: 16px; transition: border-color .25s, box-shadow .25s; }
.tool__q input::placeholder, .datef input::placeholder { color: var(--muted-2); }
.tool__q input:focus, .hm__pick select:focus, .datef select:focus, .datef input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 157, 136, .15); }
.tool__privacy { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted-2); }
.tool__privacy .icon { width: 14px; height: 14px; }
.tool__noscript { text-align: center; color: var(--muted); }
.tool .chips { justify-content: center; }

/* ---------- Résultat commun ---------- */
.tool__result { margin-top: 30px; scroll-margin-top: calc(var(--header-h) + 20px); }
.result__head { text-align: center; margin-bottom: 26px; }
.result__q { font: italic 400 clamp(19px, 2.2vw, 24px)/1.4 var(--f-accent); color: var(--ink); margin-bottom: 12px; }
.result__answer { display: inline-flex; align-items: center; justify-content: center; min-width: 200px; padding: 14px 34px; border-radius: 999px; font: 300 clamp(36px, 6vw, 56px)/1 var(--f-display); letter-spacing: .04em; animation: popIn .8s var(--ease-out) both; }
.result__answer--oui { background: var(--grad-gold); color: #2a0a10; box-shadow: 0 0 50px var(--gold-glow); }
.result__answer--non { background: rgba(255, 255, 255, .06); color: var(--ink); border: 1px solid var(--line-2); }
.result__answer--peut-etre, .result__answer--nuance { background: rgba(224, 48, 63, .2); color: var(--violet-2); border: 1px solid rgba(255, 150, 140, .4); }
@keyframes popIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.result__tone { display: inline-flex; align-items: center; gap: 12px; font: 500 18px/1.2 var(--f-display); color: var(--ink); }
.result__meter { position: relative; width: 120px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.result__meter i { position: absolute; inset: 0 auto 0 0; width: var(--v, 50%); border-radius: inherit; background: var(--grad-gold); animation: grow 1.2s var(--ease-out) both; }
@keyframes grow { from { width: 0; } }
.result__items { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.result__item { padding: 22px; border-radius: 20px; background: rgba(10, 3, 5, .4); border: 1px solid var(--line); animation: fadeUp .7s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 120ms); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.result__pos { font: 600 11.5px/1 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.result__name { margin-top: 8px; font-size: 22px; font-weight: 500; }
.result__name small { font-size: .62em; color: var(--muted-2); letter-spacing: .08em; }
.result__kw { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.result__kw span { padding: 4px 10px; border-radius: 999px; background: rgba(224, 48, 63, .14); font-size: 12px; color: var(--violet-2); }
.result__text { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.result__synth { margin-top: 18px; padding: 20px 22px; border-radius: 18px; background: rgba(255, 157, 136, .07); border: 1px solid rgba(255, 157, 136, .25); font-size: 15.5px; }
.result__synth p + p { margin-top: 8px; }
.result__synth strong { color: var(--gold-2); }
.result__cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 18px 30px; align-items: center; margin-top: 22px; padding: 24px; border-radius: 22px; background: radial-gradient(90% 120% at 100% 0%, rgba(224, 48, 63, .35), transparent 60%), rgba(255, 255, 255, .03); border: 1px solid var(--line-2); }
.result__cta-t { font: 500 21px/1.25 var(--f-display); color: var(--ink); }
.result__cta-p { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.result__again { margin-top: 20px; text-align: center; }
.btn-again { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 14.5px/1 var(--f-display); color: var(--ink-2); transition: all .25s; }
.btn-again .icon { width: 17px; height: 17px; color: var(--gold); }
.btn-again:hover { border-color: rgba(255, 157, 136, .5); color: var(--ink); }
.result__disclaimer { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--muted-2); }

/* ---------- Cartes ---------- */
.tcard { position: relative; width: 100%; aspect-ratio: 7 / 12; border-radius: 9px; container-type: inline-size; isolation: isolate; overflow: hidden; }
.tcard__frame { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.tcard__frame rect { fill: none; stroke: url(#jms-gold) var(--gold); }
.tcard__f1 { stroke-width: .9; }
.tcard__f2 { stroke-width: .35; opacity: .8; }
.tcard__fs { fill: url(#jms-gold) var(--gold); }
/* Face */
.tcard--face {
	--glow: rgba(255, 110, 110, .7);
	--sky-1: #561626;
	--sky-2: #150509;
	display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; gap: 4cqi;
	padding: 13% 12% 11%;
	background: radial-gradient(100% 50% at 50% 0%, rgba(224, 48, 63, .35), transparent 70%), linear-gradient(170deg, #44121f 0%, #2a0c14 55%, #16060a 100%);
	box-shadow: inset 0 0 0 1px rgba(255, 157, 136, .2), 0 18px 34px -16px rgba(0, 0, 0, .8);
}
.tcard--face::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 240, 200, .45) 45%, rgba(255, 166, 154, .3) 52%, transparent 64%); background-size: 260% 100%; background-position: 125% 0; transition: background-position 1.2s var(--ease), opacity .35s; }
.tcard--face:hover::after, .is-flipped .tcard--face::after { opacity: .8; background-position: -35% 0; }
.tcard__num { position: relative; z-index: 1; display: flex; align-items: center; gap: 3cqi; min-height: 1em; font: 500 11cqi/1 var(--f-display); letter-spacing: .16em; color: var(--gold-2); white-space: nowrap; }
.tcard__num::before, .tcard__num::after { content: ""; width: 0; height: 0; border-left: 2.4cqi solid transparent; border-right: 2.4cqi solid transparent; border-bottom: 4cqi solid var(--gold); opacity: .8; }
.tcard__window { position: relative; z-index: 1; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%); background: radial-gradient(80% 50% at 50% 55%, var(--glow), transparent 72%), linear-gradient(180deg, var(--sky-1), var(--sky-2)); }
.tcard__sky { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 18% 30%, #fff, transparent), radial-gradient(1px 1px at 72% 22%, #fff, transparent), radial-gradient(1.4px 1.4px at 40% 70%, #fff, transparent), radial-gradient(1px 1px at 85% 64%, #fff, transparent), radial-gradient(1px 1px at 30% 86%, #fff, transparent), radial-gradient(1.2px 1.2px at 60% 42%, #fff, transparent); opacity: .7; }
.tcard__window::after { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0, 100% 24%, 100% 100%, 0 100%, 0 24%); box-shadow: inset 0 0 0 1px rgba(255, 157, 136, .55); background: linear-gradient(180deg, transparent 70%, rgba(255, 157, 136, .12)); }
.tcard__glyph { position: relative; z-index: 1; width: 72%; height: auto; color: #fff0ea; stroke-width: 1.35; filter: drop-shadow(0 0 2px var(--glow)) drop-shadow(0 0 9px var(--glow)); }
.tcard__name { position: relative; z-index: 1; max-width: 100%; padding-top: 2.6cqi; border-top: 1px solid rgba(255, 157, 136, .35); font: 600 9.4cqi/1.05 var(--f-display); letter-spacing: .08em; text-align: center; text-transform: uppercase; color: var(--gold-2); }
.tcard__name--long { font-size: 7.6cqi; letter-spacing: .03em; }
.tcard[data-tone="soleil"] { --glow: rgba(255, 186, 110, .7); --sky-1: #4a2a1a; }
.tcard[data-tone="lune"] { --glow: rgba(196, 206, 255, .62); --sky-1: #3a1424; }
.tcard[data-tone="mercure"] { --glow: rgba(120, 224, 214, .55); --sky-1: #123a3c; }
.tcard[data-tone="venus"] { --glow: rgba(255, 130, 190, .7); --sky-1: #4c1748; }
.tcard[data-tone="mars"] { --glow: rgba(255, 98, 98, .66); --sky-1: #4a1620; }
.tcard[data-tone="jupiter"] { --glow: rgba(255, 140, 130, .7); --sky-1: #4a1626; }
.tcard[data-tone="saturne"] { --glow: rgba(178, 188, 208, .55); --sky-1: #232a3a; }
.tcard[data-tone="hors_planete"], .tcard[data-tone="bleue"] { --glow: rgba(255, 214, 160, .66); --sky-1: #3a2b1f; }
.tcard[data-tone="rouge"] { --glow: rgba(255, 110, 140, .68); --sky-1: #46163a; }
.tcard[data-tone="noir"] { --glow: rgba(255, 168, 156, .6); --sky-1: #3a1520; }
.tcard[data-tone="saisons"] { --glow: rgba(255, 206, 128, .62); --sky-1: #3d2c1c; }
.tcard[data-tone="personnages"] { --glow: rgba(255, 170, 160, .62); --sky-1: #40182a; }
.tcard--mini { grid-template-rows: minmax(0, 1fr); padding: 11%; }
/* Dos */
.tcard--back { display: grid; place-items: center; padding: 12% 11%; color: var(--gold); background: radial-gradient(70% 45% at 50% 42%, rgba(224, 48, 63, .45), transparent 72%), repeating-linear-gradient(60deg, rgba(255, 157, 136, .05) 0 1px, transparent 1px 9px), repeating-linear-gradient(-60deg, rgba(255, 157, 136, .05) 0 1px, transparent 1px 9px), linear-gradient(170deg, #3a0f1b 0%, #150509 60%, #2c0c15 100%); box-shadow: inset 0 0 0 1px rgba(255, 157, 136, .16), 0 18px 34px -16px rgba(0, 0, 0, .85); }
.tcard--back::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(120deg, transparent 35%, rgba(255, 230, 180, .2) 50%, transparent 65%); background-size: 260% 100%; background-position: 130% 0; transition: background-position 1.1s var(--ease); }
.tcard--back:hover::after, .deck-card:hover .tcard--back::after { background-position: -30% 0; }
.tcard__sigil { position: relative; z-index: 1; width: 92%; height: auto; fill: none; stroke: url(#jms-gold) var(--gold); stroke-width: 1; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(255, 157, 136, .5)); }
.tcard__sigil .fill { fill: url(#jms-gold) var(--gold); stroke: none; }
.tcard__pyr { fill: rgba(224, 48, 63, .22); }
.tcard__facets { stroke-width: .6; opacity: .75; }
.tcard__orbit { stroke-width: .7; opacity: .8; }
.tcard__rays { stroke-width: .8; opacity: .85; }

/* Retournement */
.flip { position: relative; width: 100%; perspective: 1200px; }
.flip__inner { position: relative; width: 100%; aspect-ratio: 7 / 12; transform-style: preserve-3d; transition: transform .9s var(--ease-out); }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__side { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip__side--face { transform: rotateY(180deg); }

/* ---------- Tirage de cartes ---------- */
.tirage__board { margin-top: 6px; }
.tirage__instr { text-align: center; font: 500 18px/1.4 var(--f-display); color: var(--ink); min-height: 2.8em; }
.tirage__instr strong { color: var(--gold-2); }
.tirage__swipe { display: block; margin-top: 4px; font: 400 13px/1.3 var(--f-body); color: var(--muted-2); }
.tirage__deck { position: relative; height: 230px; margin: 10px 0 30px; }
.deck-card { position: absolute; left: 50%; top: 20px; width: 104px; margin-left: -52px; border-radius: 9px; transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0)); transform-origin: 50% 120%; transition: transform .7s var(--ease-out), opacity .4s, filter .3s; }
.deck-card .tcard { pointer-events: none; }
.deck-card:hover, .deck-card:focus-visible { transform: translate(var(--x, 0), calc(var(--y, 0px) - 22px)) rotate(var(--r, 0)); filter: drop-shadow(0 0 14px rgba(255, 157, 136, .55)); z-index: 200 !important; }
.deck-card.is-picked { opacity: 0; pointer-events: none; transform: translate(var(--x, 0), calc(var(--y, 0px) - 60px)) rotate(var(--r, 0)); }
.tirage__deck.is-shuffling .deck-card { transition-duration: .38s; }
.tirage__deck.is-locked .deck-card { pointer-events: none; opacity: .4; }
.tirage__deck.is-grid { display: flex; height: auto; gap: 8px; overflow-x: auto; padding: 18px 6px 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.tirage__deck.is-grid .deck-card { position: relative; left: auto; top: auto; margin: 0; flex: 0 0 72px; transform: none; scroll-snap-align: center; }
.tirage__deck.is-grid .deck-card.is-picked { display: none; }
.tirage__slots { display: flex; justify-content: center; gap: clamp(12px, 3vw, 30px); flex-wrap: wrap; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 12px; width: clamp(110px, 17vw, 168px); }
.slot__place { position: relative; width: 100%; aspect-ratio: 7 / 12; border-radius: 10px; border: 1px dashed rgba(255, 157, 136, .35); background: rgba(10, 3, 5, .35); transition: border-color .3s, box-shadow .3s; }
.slot.is-next .slot__place { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 157, 136, .1), 0 0 30px rgba(255, 157, 136, .2); animation: slotPulse 1.8s ease-in-out infinite; }
@keyframes slotPulse { 50% { box-shadow: 0 0 0 7px rgba(255, 157, 136, .06), 0 0 40px rgba(255, 157, 136, .3); } }
.slot.is-filled .slot__place { border-color: transparent; background: none; }
.slot__place .flip { position: absolute; inset: 0; transition: transform .2s; }
.slot__label { font: 600 12px/1.3 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.slot.is-revealed .slot__label { color: var(--gold-2); }
.slot.is-revealed .slot__place { filter: drop-shadow(0 0 22px rgba(224, 48, 63, .45)); }
.tirage__slots--croix { display: grid; grid-template-columns: repeat(3, clamp(96px, 15vw, 150px)); grid-template-areas: ". c3 ." "c1 c5 c2" ". c4 ."; justify-content: center; gap: 12px 18px; }
.tirage__slots--croix .slot { width: auto; }
.tirage__slots--croix .slot:nth-child(1) { grid-area: c1; }
.tirage__slots--croix .slot:nth-child(2) { grid-area: c2; }
.tirage__slots--croix .slot:nth-child(3) { grid-area: c3; }
.tirage__slots--croix .slot:nth-child(4) { grid-area: c4; }
.tirage__slots--croix .slot:nth-child(5) { grid-area: c5; }
.tirage__slots--croix .slot:nth-child(5) .slot__place { border-color: rgba(255, 150, 140, .4); }

/* Carte du jour */
.tirage--mini { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.tirage--mini .tirage__deck { display: flex; justify-content: center; gap: clamp(12px, 3vw, 24px); height: auto; margin: 0; }
.mini-card-wrap { width: clamp(96px, 15vw, 150px); border-radius: 10px; transition: transform .5s var(--ease-out), opacity .5s, filter .3s; }
.mini-card-wrap:nth-child(1) { transform: rotate(-6deg) translateY(10px); }
.mini-card-wrap:nth-child(3) { transform: rotate(6deg) translateY(10px); }
.mini-card-wrap:hover { transform: translateY(-14px) rotate(0); filter: drop-shadow(0 0 20px rgba(255, 157, 136, .5)); }
.tirage--mini.is-done .mini-card-wrap:not(.is-chosen) { opacity: .25; transform: scale(.92); pointer-events: none; }
.mini-card-wrap.is-chosen { transform: translateY(-8px) scale(1.06) rotate(0); filter: drop-shadow(0 0 30px rgba(224, 48, 63, .6)); }
.tirage--mini .tirage__result { max-width: 520px; padding: 22px 24px; border-radius: 20px; background: rgba(10, 3, 5, .5); border: 1px solid var(--line-2); text-align: center; animation: fadeUp .7s var(--ease-out) both; }
.tirage--mini .result__text { margin-top: 8px; }
.mini__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin-top: 14px; font: 600 14px/1 var(--f-display); }
.mini__links button, .mini__links a { color: var(--gold-2); border-bottom: 1px solid rgba(255, 157, 136, .4); padding-bottom: 2px; }

/* ---------- Yi King ---------- */
.yk { display: grid; justify-items: center; gap: 22px; }
.yk__coins { display: flex; gap: 18px; perspective: 800px; }
.coin { position: relative; width: 70px; height: 70px; transform-style: preserve-3d; transition: transform .1s; }
.coin__face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: radial-gradient(circle at 35% 30%, #ffe6dc, #ff8a78 45%, #b3141f 100%); box-shadow: inset 0 0 0 3px rgba(122, 76, 20, .6), inset 0 0 0 7px rgba(255, 232, 170, .4), 0 8px 18px rgba(0, 0, 0, .5); }
.coin__face::before { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(110, 66, 15, .8); background: rgba(40, 20, 0, .35); }
.coin__face i { position: absolute; display: block; width: 28px; height: 3px; border-radius: 2px; background: rgba(110, 66, 15, .9); }
.coin__face--yang i { top: 16px; }
.coin__face--yin { transform: rotateY(180deg); background: radial-gradient(circle at 35% 30%, #ffeae6, #ff9d92 45%, #8e0e1c 100%); box-shadow: inset 0 0 0 3px rgba(110, 18, 32, .6), inset 0 0 0 7px rgba(255, 220, 212, .35), 0 8px 18px rgba(0, 0, 0, .5); }
.coin__face--yin::before { border-color: rgba(110, 18, 32, .8); }
.coin__face--yin i { width: 11px; top: 16px; background: rgba(110, 18, 32, .9); }
.coin__face--yin i:first-child { margin-left: -16px; }
.coin__face--yin i:last-child { margin-left: 16px; }
.coin.is-tossing { animation: toss .9s var(--ease-out); }
@keyframes toss { 0% { transform: translateY(0) rotateY(0); } 45% { transform: translateY(-70px) rotateY(900deg); } 100% { transform: translateY(0) rotateY(var(--end, 1800deg)); } }
.yk__hex { display: flex; flex-direction: column-reverse; gap: 12px; width: min(100%, 280px); min-height: 222px; justify-content: flex-start; }
.yk-line { position: relative; display: flex; justify-content: space-between; height: 24px; animation: lineIn .6s var(--ease-out) both; }
@keyframes lineIn { from { opacity: 0; transform: scaleX(.3); } }
.yk-line i { display: block; width: 100%; height: 100%; border-radius: 5px; background: var(--grad-gold); box-shadow: 0 0 16px var(--gold-glow); }
.yk-line.is-yin i { width: 43%; background: var(--grad-violet); box-shadow: 0 0 16px var(--violet-glow); }
.yk-line.is-moving::after { content: attr(data-mark); position: absolute; right: -36px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-2); font: 600 12px/1 var(--f-display); }
.yk-line__n { position: absolute; left: -38px; top: 50%; transform: translateY(-50%); font: 500 12px/1 var(--f-display); color: var(--muted-2); }
.yk__status { min-height: 1.6em; font: 500 17px/1.4 var(--f-display); color: var(--ink); text-align: center; }
.yk__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; }
.yk-result { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.yk-card { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; padding: 24px; border-radius: 22px; background: rgba(10, 3, 5, .45); border: 1px solid var(--line-2); animation: fadeUp .7s var(--ease-out) both; }
.yk-card--main { border-color: rgba(255, 157, 136, .45); background: radial-gradient(90% 90% at 0% 0%, rgba(255, 157, 136, .1), transparent 60%), rgba(10, 3, 5, .45); }
.yk-mini { display: flex; flex-direction: column-reverse; align-self: start; gap: 7px; padding-top: 6px; }
.yk-mini i { display: block; height: 10px; border-radius: 3px; background: var(--grad-gold); }
.yk-mini i.is-yin { background: linear-gradient(90deg, #ff9d92 0 42%, transparent 42% 58%, #ff9d92 58%); }
.yk-mini i.is-moving { outline: 1px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
.yk-card__n { font: 600 11.5px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.yk-card__name { margin-top: 6px; font: 500 24px/1.15 var(--f-display); color: var(--ink); }
.yk-card__pin { font: italic 400 16px/1.3 var(--f-accent); color: var(--violet-2); }
.yk-card__img { margin-top: 10px; font-size: 14px; color: var(--muted); }
.yk-card__text { margin-top: 10px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.yk-card__adv { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 157, 136, .08); font-size: 14.5px; color: var(--ink); }
.yk-moving { margin-top: 16px; padding: 18px 20px; border-radius: 18px; background: rgba(224, 48, 63, .08); border: 1px solid rgba(255, 150, 140, .22); font-size: 15px; color: var(--ink-2); }

/* ---------- Pendule ---------- */
.pend { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 50px); align-items: center; }
.pend__stage { position: relative; aspect-ratio: 300 / 330; max-width: 420px; width: 100%; margin: 0 auto; }
.pend__svg { width: 100%; height: 100%; overflow: visible; }
.pend__ring { fill: none; stroke: rgba(255, 150, 140, .35); stroke-width: 1.2; }
.pend__ring--2 { stroke: rgba(255, 157, 136, .3); stroke-dasharray: 3 5; }
.pend__axis { stroke: rgba(255, 150, 140, .18); stroke-width: 1; }
.pend__pivot { fill: var(--gold); filter: drop-shadow(0 0 6px var(--gold)); }
.pend__string { stroke: url(#jms-gold) var(--gold); stroke-width: 1.3; }
.pend__bob { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.pend__trail { fill: none; stroke: rgba(255, 157, 136, .55); stroke-width: 1.6; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--gold)); }
.pend__panel { display: flex; flex-direction: column; gap: 16px; }
.pend__status { min-height: 1.5em; font: 500 17px/1.4 var(--f-display); color: var(--gold-2); }

/* ---------- Boule de cristal ---------- */
.orb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 50px); align-items: center; }
.orb__stage { position: relative; display: grid; justify-items: center; isolation: isolate; }
.orb__ball { position: relative; width: min(78vw, 330px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; cursor: pointer; background: radial-gradient(circle at 50% 60%, #c81e33 0%, #5c1020 55%, #170409 100%); box-shadow: 0 0 60px rgba(224, 48, 63, .55), 0 0 140px rgba(200, 30, 51, .35), inset 0 -24px 60px rgba(0, 0, 0, .65), inset 0 10px 40px rgba(255, 200, 190, .25); transition: box-shadow .8s; }
.orb__ball.is-active { box-shadow: 0 0 90px rgba(255, 150, 140, .9), 0 0 200px rgba(200, 30, 51, .6), inset 0 -24px 60px rgba(0, 0, 0, .5), inset 0 10px 40px rgba(255, 228, 222, .4); }
.orb__mist { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; }
.orb__shine { position: absolute; left: 18%; top: 12%; width: 34%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .55), transparent); transform: rotate(-30deg); pointer-events: none; }
.orb__msg { position: absolute; top: 0; left: 50%; width: min(70vw, 260px); height: min(78vw, 330px); margin-left: calc(min(70vw, 260px) / -2); display: grid; place-items: center; padding: 0 6%; text-align: center; font: italic 400 clamp(17px, 2.2vw, 21px)/1.35 var(--f-accent); color: #fff; text-shadow: 0 0 14px rgba(224, 48, 63, .9), 0 0 2px #000; opacity: 0; transform: scale(.85); transition: opacity 1.2s, transform 1.2s var(--ease-out); pointer-events: none; }
.orb__msg.is-on { opacity: 1; transform: none; }
.orb__base { position: relative; width: min(56vw, 230px); height: 54px; margin-top: -26px; z-index: -1; }
.orb__base::before { content: ""; position: absolute; inset: 0; clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, #ff9d88, #b3141f 70%, #5a0c16); }
.orb__base span { position: absolute; left: -6%; right: -6%; bottom: -8px; height: 14px; border-radius: 50%; background: rgba(0, 0, 0, .5); filter: blur(6px); }
.orb__panel { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Runes ---------- */
.runes { display: grid; justify-items: center; gap: 20px; }
.runes__instr { font: 500 17px/1.4 var(--f-display); color: var(--ink); text-align: center; min-height: 1.4em; }
.runes__row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 4vw, 40px); }
.rune { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rune__stone { position: relative; width: clamp(96px, 14vw, 128px); aspect-ratio: 5 / 6; perspective: 900px; }
.rune__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease-out); }
.rune.is-revealed .rune__inner { transform: rotateY(180deg); }
.rune__side { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 46% 54% 48% 52% / 56% 50% 50% 44%; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: radial-gradient(circle at 35% 28%, #7a5258, #3a1a26 58%, #24101a 100%); box-shadow: inset 0 -10px 18px rgba(0, 0, 0, .55), inset 0 6px 10px rgba(255, 255, 255, .08), 0 14px 24px rgba(0, 0, 0, .55); }
.rune__side--face { transform: rotateY(180deg); }
.rune__side--back::after { content: ""; width: 26%; height: 26%; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: rgba(255, 157, 136, .35); }
.rune__side svg { width: 44%; height: auto; fill: none; stroke: url(#jms-gold) var(--gold); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255, 157, 136, .65)); }
.rune.is-reversed .rune__side--face svg { transform: rotate(180deg); }
.rune__label { font: 600 12px/1.3 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rune.is-revealed .rune__label { color: var(--gold-2); }
button.rune__stone { cursor: pointer; border-radius: 46%; }
.rune__mark { display: inline-block; margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: rgba(224, 48, 63, .2); color: var(--violet-2); font: 600 11px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }

/* ---------- Heures miroirs (outil) ---------- */
.hm { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 50px); align-items: center; }
.hm__clock { display: flex; flex-direction: column; align-items: center; padding: 26px 10px; border-radius: 24px; background: rgba(10, 3, 5, .45); border: 1px solid var(--line); }
.hm__time { font: 200 clamp(62px, 9vw, 104px)/1 var(--f-display); color: var(--ink); text-shadow: 0 0 30px rgba(224, 48, 63, .85); font-variant-numeric: tabular-nums; }
.hm__mirror { font: 200 clamp(62px, 9vw, 104px)/1 var(--f-display); transform: scaleY(-1); color: transparent; background: linear-gradient(0deg, rgba(255, 210, 200, .4), transparent 70%); -webkit-background-clip: text; background-clip: text; filter: blur(1px); font-variant-numeric: tabular-nums; }
.hm__next { margin-top: 6px; font-size: 14.5px; color: var(--muted); text-align: center; }
.hm__next strong { color: var(--gold-2); }
.hm__panel { display: flex; flex-direction: column; gap: 16px; }
.hm__pick select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2c46d' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; cursor: pointer; }
.hm__pick option, .datef option { background: #2a0c14; color: var(--ink); }
.hm__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hm__chip { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); font: 500 14.5px/1 var(--f-display); color: var(--ink-2); transition: all .2s; }
.hm__chip.is-inv { border-style: dashed; color: var(--violet-2); }
.hm__chip:hover, .hm__chip.is-active { background: var(--grad-gold); color: #2a0a10; border-color: transparent; }
.hm-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding: 26px; border-radius: 24px; background: radial-gradient(90% 90% at 0% 0%, rgba(224, 48, 63, .2), transparent 60%), rgba(10, 3, 5, .5); border: 1px solid rgba(255, 157, 136, .35); animation: fadeUp .6s var(--ease-out) both; }
.hm-card__t { font: 200 clamp(54px, 8vw, 84px)/1 var(--f-display); background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-card__k { font: 600 11.5px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.hm-card__msg { margin-top: 8px; font: 500 19px/1.4 var(--f-display); color: var(--ink); }
.hm-card__facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.hm-card__facts b { color: var(--ink); font-weight: 600; }
.hm-card .btn { margin-top: 16px; }

/* ---------- Numérologie ---------- */
.num { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(20px, 4vw, 50px); align-items: center; }
.num__panel { display: flex; flex-direction: column; gap: 16px; }
.num__fields { display: flex; flex-wrap: wrap; gap: 10px; }
.datef { display: flex; flex-wrap: wrap; gap: 10px; }
.datef__f { display: flex; flex-direction: column; gap: 6px; font: 600 12px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.datef__f select, .datef__f input { width: 104px; height: 52px; padding: 0 14px; }
.datef__f--m select { width: 150px; }
.datef__f--y select { width: 120px; }
.num__err { min-height: 1.2em; font-size: 14px; color: #ff9fb4; }
.num__dial { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: min(100%, 300px); margin: 0 auto; border-radius: 50%; background: radial-gradient(circle, rgba(200, 30, 51, .35), transparent 65%); }
.num__dial::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 157, 136, .3); background: repeating-conic-gradient(from 0deg, rgba(255, 157, 136, .25) 0 1deg, transparent 1deg 30deg); -webkit-mask-image: radial-gradient(circle, transparent 66%, #000 67%); mask-image: radial-gradient(circle, transparent 66%, #000 67%); animation: spin 60s linear infinite; }
.num__dial::after { content: ""; position: absolute; inset: 14%; clip-path: polygon(50% 0, 100% 87%, 0 87%); border: 0; background: linear-gradient(180deg, rgba(224, 48, 63, .14), rgba(224, 48, 63, .02)); }
.num__big { position: relative; z-index: 1; font: 200 clamp(84px, 12vw, 130px)/1 var(--f-display); background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num__big.is-pop { animation: popIn .9s var(--ease-out) both; }
.num__calc { position: absolute; bottom: 14%; left: 8%; right: 8%; z-index: 1; text-align: center; font-size: 12.5px; color: var(--muted); }
.num-card { padding: 26px; border-radius: 24px; background: rgba(10, 3, 5, .45); border: 1px solid rgba(255, 157, 136, .35); animation: fadeUp .6s var(--ease-out) both; }
.num-card h3 { font-size: 24px; }
.num-card p { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); line-height: 1.7; }
.num-card__k { font: 600 11.5px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.num-card__more { display: inline-flex; margin-top: 14px; color: var(--gold-2); font: 600 14.5px/1 var(--f-display); border-bottom: 1px solid rgba(255, 157, 136, .4); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.pend, .orb, .hm, .num { grid-template-columns: minmax(0, 1fr); }
	.pend__stage { max-width: 300px; }
	.result__cta { grid-template-columns: minmax(0, 1fr); }
	.num__dial { width: min(70%, 240px); order: -1; }
}
@media (max-width: 720px) {
	.tool { border-radius: 22px; padding: 22px 16px; }
	.tool__steps li { font-size: 0; gap: 0; }
	.tool__steps span { font-size: 12.5px; }
	.tirage__deck { height: auto; }
	.slot { width: 30%; min-width: 90px; }
	.tirage__slots--croix { grid-template-columns: repeat(3, minmax(0, 92px)); gap: 10px; }
	.tirage__slots--croix .slot { min-width: 0; }
	.tirage__slots--croix .slot__label { font-size: 9.5px; letter-spacing: .06em; }
	.yk-card { grid-template-columns: 70px minmax(0, 1fr); padding: 18px; gap: 14px; }
	.yk-line.is-moving::after { right: -32px; }
	.coin { width: 58px; height: 58px; }
	.hm-card { grid-template-columns: minmax(0, 1fr); text-align: center; }
	.hm-card__facts { justify-content: center; }
	.result__item { padding: 18px; }
	.datef__f select, .datef__f input { width: 88px; }
	.datef__f--m select { width: 132px; }
}

/* Boutons des panneaux : largeur du contenu */
.num__panel > .btn, .pend__panel > .btn, .orb__panel > .btn { align-self: flex-start; }
@media (max-width: 720px) { .num__panel > .btn, .pend__panel > .btn, .orb__panel > .btn { align-self: stretch; } }
