/*! Le Mage du Tarot — le Mage détouré (v4.8.7 : une seule illustration, sur l'accueil de l'outil et sur la page des offres) */
.tdm-mage-fig { --gold: #f0c86a; position: relative; width: 100%; margin: 0; line-height: 0; isolation: isolate; }
/* halo qui respire derrière lui */
.tdm-mage-glow { position: absolute; left: -12%; right: -12%; top: 2%; bottom: -4%; z-index: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(176,107,196,.42), rgba(118,86,211,.18) 58%, transparent 74%); animation: tdmGlow 6s ease-in-out infinite; }
/* l'arc de lune derrière lui, comme sur l'illustration */
.tdm-mage-arc { position: absolute; left: 0; right: 0; top: 2%; aspect-ratio: 1; z-index: 0; border-radius: 50%; pointer-events: none; border: 1.5px solid rgba(212,162,60,.5); box-shadow: 0 0 0 7px rgba(212,162,60,.08), inset 0 0 40px rgba(240,200,106,.12); }
.tdm-mage-arc::before { content: "☾  ○  ☽"; position: absolute; left: 50%; top: -.72em; transform: translateX(-50%); padding: 0 .6em; line-height: 1; font-size: clamp(.9rem, 2.2vw, 1.25rem); letter-spacing: .35em; color: #d4a23c; background: #fbf6ff; border-radius: 999px; text-shadow: 0 0 10px rgba(240,200,106,.6); white-space: nowrap; }
/* le Mage flotte doucement ; la boule, la baguette et les étincelles flottent avec lui */
.tdm-mage-float { position: relative; z-index: 1; animation: tdmFloat 7s ease-in-out infinite; }
.tdm-mage-img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 18px 20px rgba(57,42,92,.36)); }
/* étincelles */
.tdm-mage-spark { position: absolute; z-index: 4; line-height: 1; color: var(--gold); font-size: clamp(.8rem, 2vw, 1.3rem); text-shadow: 0 0 10px rgba(255,217,120,.9), 0 0 22px rgba(240,200,106,.6); pointer-events: none; animation: tdmTwinkle 3.4s ease-in-out infinite; }
.tdm-mage-spark.s1 { left: 5%; top: 24%; animation-delay: .4s; }
.tdm-mage-spark.s2 { left: 60%; top: 3%; animation-delay: 1.3s; font-size: clamp(.65rem, 1.5vw, 1rem); }
.tdm-mage-spark.s3 { left: 99%; top: 17%; animation-delay: 2.1s; }
.tdm-mage-spark.s4 { left: 3%; top: 66%; animation-delay: 2.8s; font-size: clamp(.65rem, 1.5vw, 1rem); }
.tdm-mage-spark.tip { left: 31.1%; top: 1.2%; transform: translate(-50%, -50%); font-size: clamp(1.3rem, 3.4vw, 2.1rem); color: #fff6d0; animation-duration: 2.2s; }
/* la boule, dans sa main ouverte */
.tdm-mage-orb { position: absolute; left: 91.9%; top: 47%; z-index: 3; width: 19%; aspect-ratio: 1; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; transform: translate(-50%, -50%); cursor: default; display: block; -webkit-tap-highlight-color: transparent; }
button.tdm-mage-orb { cursor: pointer; }
.tdm-mage-orb:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }
.tdm-orb-core { position: absolute; inset: 16%; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #fff 0, #fff7d6 16%, #ffd978 40%, #e9a8ff 72%, #b06bc4 100%); box-shadow: 0 0 18px 6px rgba(255,217,120,.7), 0 0 52px 18px rgba(190,140,255,.5); animation: tdmOrb 3.2s ease-in-out infinite; }
.tdm-orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(240,200,106,.85); border-top-color: transparent; border-bottom-color: transparent; animation: tdmSpin 9s linear infinite; }
.tdm-orb-ring.r2 { inset: 9%; border-color: rgba(255,255,255,.8); border-left-color: transparent; border-right-color: transparent; animation-duration: 6s; animation-direction: reverse; }
button.tdm-mage-orb:hover .tdm-orb-core, button.tdm-mage-orb:focus-visible .tdm-orb-core, .tdm-mage-fig.on .tdm-orb-core { filter: brightness(1.15) saturate(1.1); transform: scale(1.12); }
/* à côté de la boule : le message du jour (aucune invitation, l'internaute la découvre seul) */
.tdm-mage-bubble { position: absolute; left: 106%; top: 47%; transform: translateY(-50%) scale(.96); transform-origin: left center; z-index: 6; width: min(320px, 62vw); padding: 12px 14px; border-radius: 16px; line-height: 1.45; font-size: .93rem; background: rgba(255,255,255,.97); border: 1px solid rgba(118,86,211,.28); box-shadow: 0 12px 30px rgba(57,42,92,.3); color: #392a5c; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; pointer-events: none; }
.tdm-mage-bubble::before { content: ""; position: absolute; left: -7px; top: calc(50% - 6px); width: 12px; height: 12px; background: #fff; border-left: 1px solid rgba(118,86,211,.28); border-bottom: 1px solid rgba(118,86,211,.28); transform: rotate(45deg); }
.tdm-mage-bubble strong { display: block; margin-bottom: 4px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #6a49c8; }
.tdm-mage-fig.on .tdm-mage-bubble { opacity: 1; visibility: visible; transform: translateY(-50%); }
@media (max-width: 760px) {
  .tdm-mage-fig { max-width: 320px; margin-left: auto; margin-right: auto; }
  .tdm-mage-bubble { left: 4px; right: 4px; top: auto; bottom: 34px; width: auto; transform: translateY(8px); transform-origin: center; }
  .tdm-mage-bubble::before { display: none; }
  .tdm-mage-fig.on .tdm-mage-bubble { transform: none; }
}
@keyframes tdmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes tdmGlow { 0%, 100% { opacity: .75; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes tdmTwinkle { 0%, 100% { opacity: .25; transform: scale(.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
@keyframes tdmOrb { 0%, 100% { transform: scale(.94); } 50% { transform: scale(1.08); } }
@keyframes tdmSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .tdm-mage-glow, .tdm-mage-float, .tdm-mage-spark, .tdm-orb-core, .tdm-orb-ring { animation: none; } .tdm-mage-spark { opacity: .8; } }

/* v4.10.0 : visuel d'en-tête (accueil de l'outil et page des offres) */
.tdm-banniere { margin: 0 0 18px; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(70,40,140,.28); line-height: 0; }
.tdm-banniere img { display: block; width: 100%; height: auto; }
@media (max-width: 480px) { .tdm-banniere { border-radius: 12px; margin-bottom: 12px; } }
