/* JOSYSCOPE : fenêtre du quiz (popup), bandeau de la page d'accueil et bouton de la boutique.
   Tout est préfixé .jsc- pour ne pas toucher au reste du site. Les couleurs suivent celles du site (--accent, --accent-2). */
.jsc-modal, .jsc-showcase, .jsc-inline-btn { --jsc-a: var(--accent, #61dafb); --jsc-b: var(--accent-2, #a855f7); --jsc-ink: #f4f4f6; --jsc-mut: #9aa0aa; }

/* ===== Fenêtre ===== */
.jsc-modal, .jsc-modal *, .jsc-showcase, .jsc-showcase *, .jsc-inline-btn { box-sizing: border-box; }
.jsc-modal { position: fixed; inset: 0; z-index: 2147483000; /* au-dessus de l'ecran d'accueil anime (splash, z-index 10000000) */ display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 5, 8, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.jsc-modal.open { display: flex; animation: jscFade .2s ease; }
.jsc-lock { overflow: hidden !important; }
@keyframes jscFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes jscUp { from { opacity: 0; transform: translateY(18px) scale(.98) } to { opacity: 1; transform: none } }
.jsc-box { position: relative; width: min(560px, 100%); max-height: min(92vh, 760px); overflow-y: auto; background: radial-gradient(120% 90% at 50% 0%, #1d1830 0%, #111118 55%, #0c0c10 100%); color: var(--jsc-ink); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 28px 22px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .65), 0 0 0 1px rgba(168, 85, 247, .18); text-align: center; animation: jscUp .28s ease; font-family: inherit; }
.jsc-close { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; font-size: 1rem; cursor: pointer; line-height: 1; }
.jsc-close:hover { background: rgba(255, 255, 255, .16); }
.jsc-prev { position: absolute; top: 10px; left: 10px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; font-size: .85rem; cursor: pointer; font-family: inherit; }
.jsc-prev:hover { background: rgba(255, 255, 255, .16); }
.jsc-prev[hidden] { display: none; }
.jsc-title { margin: 6px 0 8px; font-size: 1.9rem; font-weight: 900; letter-spacing: 3px; background: linear-gradient(90deg, var(--jsc-a), var(--jsc-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jsc-text { margin: 0 auto 20px; max-width: 420px; color: #d4d6dd; line-height: 1.5; font-size: 1rem; }
.jsc-hint { color: var(--jsc-mut); font-size: .8rem; }
.jsc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 14px; border: 0; cursor: pointer; font: 800 .95rem/1.1 inherit; font-family: inherit; letter-spacing: 1px; color: #0b0b10; background: linear-gradient(90deg, var(--jsc-a), var(--jsc-b)); box-shadow: 0 10px 28px rgba(168, 85, 247, .35); transition: transform .15s ease, box-shadow .15s ease; text-decoration: none; }
.jsc-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 34px rgba(168, 85, 247, .5); }
.jsc-btn.ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .2); }

/* sphère de l'oracle */
.jsc-orb { position: relative; width: 120px; height: 120px; margin: 4px auto 6px; }
.jsc-orb i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0%, var(--jsc-a) 22%, var(--jsc-b) 62%, #1a0f33 100%); box-shadow: 0 0 40px var(--jsc-b), 0 0 90px rgba(168, 85, 247, .45), inset -10px -14px 30px rgba(0, 0, 0, .45); animation: jscPulse 3.2s ease-in-out infinite; }
.jsc-orb b { position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .28); animation: jscSpin 14s linear infinite; }
.jsc-orb span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
@keyframes jscPulse { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.06) } }
@keyframes jscSpin { to { transform: rotate(360deg) } }

/* questions */
.jsc-progress { height: 6px; margin: 34px 0 18px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.jsc-progress div { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--jsc-a), var(--jsc-b)); transition: width .3s ease; }
.jsc-step { color: var(--jsc-mut); font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; }
.jsc-q { margin: 6px 0 16px; font-size: 1.25rem; line-height: 1.3; min-height: 3.2rem; font-weight: 800; }
.jsc-answers { display: grid; gap: 10px; }
.jsc-ans { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: #fff; font: 600 1rem/1.25 inherit; font-family: inherit; text-align: left; cursor: pointer; transition: all .15s ease; }
.jsc-ans:hover, .jsc-ans:focus-visible { border-color: var(--jsc-a); background: rgba(97, 218, 251, .1); transform: translateX(3px); outline: none; }

/* chargement */
.jsc-spin { width: 54px; height: 54px; margin: 40px auto 18px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .12); border-top-color: var(--jsc-a); border-right-color: var(--jsc-b); animation: jscSpin .9s linear infinite; }

/* résultat */
.jsc-stats { color: var(--jsc-mut); font-size: .82rem; letter-spacing: 1px; margin: 22px 0 10px; }
.jsc-comment { font-style: italic; color: #e2e4ea; line-height: 1.45; margin: 10px auto 14px; max-width: 440px; }
.jsc-label { text-transform: uppercase; font-size: .7rem; letter-spacing: 2px; color: var(--jsc-mut); margin: 8px 0 2px; }
.jsc-word { display: inline-block; font-size: 2rem; font-weight: 900; letter-spacing: 1px; margin: 2px 0 16px; background: linear-gradient(90deg, var(--jsc-a), #ff7ad9, var(--jsc-b), var(--jsc-a)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: jscShine 4s linear infinite; word-break: break-word; }
@keyframes jscShine { to { background-position: 300% 0 } }
.jsc-cards { display: grid; gap: 10px; margin: 6px 0 18px; text-align: left; }
.jsc-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: #fff; text-decoration: none; transition: all .15s ease; }
.jsc-card:hover { border-color: var(--jsc-a); transform: translateY(-2px); background: rgba(97, 218, 251, .08); }
.jsc-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; flex: none; background: #1c1c24; }
.jsc-card .k { font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--jsc-a); font-weight: 800; }
.jsc-card .t { font-weight: 800; font-size: 1rem; margin: 2px 0; }
.jsc-card .d { font-size: .84rem; color: #c9ccd4; line-height: 1.35; }
/* Bouton d'action de chaque produit conseille : c'est lui l'action principale de l'ecran de resultat (« voir la boutique » est secondaire) */
.jsc-card .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: .74rem; line-height: 1; font-family: inherit; letter-spacing: 1.2px; color: #0b0b10; background: linear-gradient(90deg, var(--jsc-a), var(--jsc-b)); box-shadow: 0 6px 18px rgba(168, 85, 247, .3); }
.jsc-card .go b { font-size: .9rem; }
.jsc-card:hover .go { box-shadow: 0 8px 22px rgba(168, 85, 247, .5); }
.jsc-sw { display: inline-flex; align-items: center; gap: 6px; margin: 6px 12px 0 0; font-size: .76rem; color: #b6bac4; }
.jsc-sw u { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); display: inline-block; }
.jsc-perso { margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(255, 255, 255, .18); }
.jsc-mot { font-weight: 700; color: #f0e6ff; }
.jsc-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.jsc-error { color: #ffb4b4; padding: 24px 6px; }

/* ===== Bandeau de la page d'accueil ===== */
.jsc-showcase { position: relative; overflow: hidden; margin: 40px auto; width: min(1080px, calc(100% - 32px)); padding: 38px 28px; border-radius: 28px; text-align: center; color: var(--jsc-ink); background: radial-gradient(90% 140% at 15% 0%, rgba(168, 85, 247, .38) 0%, transparent 60%), radial-gradient(90% 140% at 100% 100%, rgba(97, 218, 251, .26) 0%, transparent 60%), #111118; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 24px 70px rgba(0, 0, 0, .45); }
.jsc-showcase::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: linear-gradient(120deg, var(--jsc-a), var(--jsc-b), #ff7ad9, var(--jsc-a)); background-size: 300% 300%; animation: jscBorder 6s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
@keyframes jscBorder { to { background-position: 300% 300% } }
.jsc-showcase .jsc-orb { width: 96px; height: 96px; }
.jsc-showcase .jsc-orb span { font-size: 2rem; }
.jsc-showcase h2 { margin: 10px 0 8px; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; line-height: 1.15; }
.jsc-showcase h2 em { font-style: normal; background: linear-gradient(90deg, var(--jsc-a), var(--jsc-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jsc-showcase p { margin: 0 auto 8px; max-width: 560px; color: #d4d6dd; font-size: 1.05rem; line-height: 1.5; }
.jsc-points { display: flex; gap: 10px 18px; justify-content: center; flex-wrap: wrap; margin: 16px 0 22px; padding: 0; list-style: none; }
.jsc-points li { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .86rem; font-weight: 600; }
.jsc-showcase .jsc-btn { padding: 17px 34px; font-size: 1.05rem; animation: jscGlow 2.6s ease-in-out infinite; }
@keyframes jscGlow { 0%, 100% { box-shadow: 0 10px 28px rgba(168, 85, 247, .35) } 50% { box-shadow: 0 10px 44px rgba(97, 218, 251, .55) } }

/* ===== Bouton de la boutique (et lien rapide) ===== */
.jsc-inline-btn { display: inline-flex; align-items: center; gap: 10px; margin: 14px auto 6px; padding: 12px 22px; border-radius: 999px; cursor: pointer; font: 800 .95rem/1.1 inherit; font-family: inherit; color: #fff; background: linear-gradient(90deg, rgba(168, 85, 247, .35), rgba(97, 218, 251, .25)); border: 1px solid rgba(255, 255, 255, .35); transition: all .15s ease; }
.jsc-inline-btn:hover { transform: translateY(-2px); border-color: var(--jsc-a); box-shadow: 0 8px 26px rgba(168, 85, 247, .4); }
.jsc-inline-wrap { text-align: center; }

@media (max-width: 520px) {
  .jsc-box { padding: 26px 14px 18px; border-radius: 18px; }
  .jsc-title { font-size: 1.6rem; }
  .jsc-q { font-size: 1.12rem; }
  .jsc-showcase { padding: 28px 16px; margin: 28px auto; }
  .jsc-card img { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .jsc-orb i, .jsc-orb b, .jsc-word, .jsc-showcase::before, .jsc-showcase .jsc-btn, .jsc-spin { animation: none; }
}
