.pascboule {
--violet: #470367;
--violet-clair: #7508a8;
--lilas: #c9a4e4;
--lilas-pale: #f3ebfa;
--encre: #222;
max-width: 760px;
margin: 0 auto;
padding: 2rem 1rem 2.5rem;
text-align: center;
color: var(--encre);
position: relative;
}
.pascboule .sr-only {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
}
.pascboule-titre {
text-transform: uppercase;
letter-spacing: .18em;
font-size: .78rem;
color: var(--violet-clair);
margin: 0 0 .8rem;
} .pascboule-steps {
list-style: none;
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: .4rem 1.4rem;
margin: 0 0 1.6rem;
padding: 0;
}
.pascboule-steps li {
display: flex;
align-items: center;
gap: .45rem;
font-size: .74rem;
text-transform: uppercase;
letter-spacing: .12em;
color: #9b8aa8;
transition: color .4s;
}
.pascboule-steps .num {
display: grid;
place-items: center;
width: 1.5rem;
height: 1.5rem;
border-radius: 50%;
border: 1px solid #d9cce4;
font-size: .7rem;
line-height: 1;
}
.pascboule-steps li.on {
color: var(--violet);
}
.pascboule-steps li.on .num {
border-color: var(--violet-clair);
background: var(--lilas-pale);
color: var(--violet-clair);
}
.pascboule-steps li.done {
color: var(--lilas);
} .pascboule-hint {
margin: 0 auto 1.4rem;
max-width: 34rem;
min-height: 4.2rem;
}
.pascboule-hint .sur {
display: block;
text-transform: uppercase;
letter-spacing: .16em;
font-size: .72rem;
color: var(--violet-clair);
margin-bottom: .35rem;
}
.pascboule-hint .txt {
display: block;
font-size: 1.12rem;
line-height: 1.55;
} .pascboule-qbox {
transition: opacity .5s, transform .5s;
}
.pascboule[data-etat="brume"] .pascboule-qbox,
.pascboule[data-etat="mains"] .pascboule-qbox,
.pascboule[data-etat="flash"] .pascboule-qbox,
.pascboule[data-etat="reponse"] .pascboule-qbox {
opacity: 0;
transform: translateY(-8px);
pointer-events: none;
height: 0;
overflow: hidden;
margin: 0;
}
.pascboule-input {
box-sizing: border-box;
width: 100%;
max-width: 30rem;
padding: .85rem 1.1rem;
border: 1px solid #dccdea;
border-radius: 10px;
background: #fff;
font-family: inherit;
font-size: 1.05rem;
text-align: center;
color: var(--encre);
box-shadow: 0 2px 14px rgba(71, 3, 103, .06);
}
.pascboule-input:focus {
outline: none;
border-color: var(--violet-clair);
box-shadow: 0 0 0 3px rgba(117, 8, 168, .12);
}
.pascboule-sugg {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: .5rem;
margin: .9rem 0 .6rem;
}
.pascboule-sugg .sugg {
border: 1px solid #e2d5ec;
background: #fff;
border-radius: 999px;
padding: .38rem .9rem;
font-family: inherit;
font-size: .86rem;
color: var(--violet);
cursor: pointer;
transition: background .25s, border-color .25s;
}
.pascboule-sugg .sugg:hover {
background: var(--lilas-pale);
border-color: var(--lilas);
}
.pascboule-discretion {
font-size: .78rem;
color: #8d7f98;
margin: .5rem 0 1rem;
}
.pascboule-ask,
.pascboule-replay {
border: 0;
border-radius: 999px;
padding: .8rem 1.9rem;
background: linear-gradient(135deg, var(--violet-clair), var(--violet));
color: #fff;
font-family: inherit;
font-size: .92rem;
letter-spacing: .1em;
text-transform: uppercase;
cursor: pointer;
box-shadow: 0 6px 18px rgba(71, 3, 103, .22);
transition: transform .2s, box-shadow .2s;
}
.pascboule-ask:hover,
.pascboule-replay:hover {
transform: translateY(-1px);
box-shadow: 0 9px 22px rgba(71, 3, 103, .28);
}
.pascboule-ask[disabled] {
opacity: .45;
cursor: not-allowed;
transform: none;
} .pascboule-stand {
position: relative;
margin: 1.6rem auto .4rem;
width: min(320px, 78vw);
}
.pascboule-ball {
position: relative;
width: 100%;
aspect-ratio: 1;
border-radius: 50%;
margin: 0 auto;
background:
radial-gradient(circle at 33% 27%, rgba(255, 255, 255, .95) 0 6%, rgba(255, 255, 255, .35) 12%, transparent 34%),
radial-gradient(circle at 68% 74%, rgba(201, 164, 228, .55), transparent 42%),
radial-gradient(circle at 50% 50%, #f7f1fc 0 42%, #d9c3ec 68%, #a274c4 92%, #6f3c96 100%);
box-shadow:
inset -14px -18px 38px rgba(71, 3, 103, .28),
inset 12px 14px 30px rgba(255, 255, 255, .7),
0 18px 40px rgba(71, 3, 103, .22);
cursor: pointer;
touch-action: none;
overflow: hidden;
transition: box-shadow .6s;
}
.pascboule[data-etat="question"] .pascboule-ball {
cursor: default;
}
.pascboule-ball .aura {
position: absolute;
inset: -12%;
border-radius: 50%;
background: radial-gradient(circle, rgba(117, 8, 168, .18), transparent 62%);
opacity: 0;
transition: opacity .8s;
pointer-events: none;
}
.pascboule[data-etat="mains"] .pascboule-ball .aura,
.pascboule[data-etat="flash"] .pascboule-ball .aura,
.pascboule[data-etat="reponse"] .pascboule-ball .aura {
opacity: 1;
}
.pascboule-ball .mist {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border-radius: 50%;
opacity: 0;
transition: opacity .6s;
pointer-events: none;
}
.pascboule[data-etat="brume"] .pascboule-ball .mist {
opacity: 1;
}
.pascboule-ball .glass {
position: absolute;
inset: 0;
border-radius: 50%;
background:
radial-gradient(ellipse at 30% 22%, rgba(255, 255, 255, .85), transparent 40%),
radial-gradient(ellipse at 72% 82%, rgba(255, 255, 255, .35), transparent 38%);
pointer-events: none;
}
.pascboule-ball .flash {
position: absolute;
inset: 0;
border-radius: 50%;
background: radial-gradient(circle, #fff, rgba(255, 255, 255, .6) 45%, transparent 72%);
opacity: 0;
pointer-events: none;
}
.pascboule-ball.flashing .flash {
animation: pascboule-flash .9s ease-out;
}
@keyframes pascboule-flash {
0% { opacity: 0; }
18% { opacity: 1; }
100% { opacity: 0; }
}
.pascboule-ball .verdict {
position: absolute;
inset: 0;
display: grid;
place-content: center;
gap: .3rem;
opacity: 0;
transform: scale(.9);
transition: opacity .7s .15s, transform .7s .15s;
pointer-events: none;
padding: 0 12%;
}
.pascboule[data-etat="reponse"] .pascboule-ball .verdict {
opacity: 1;
transform: scale(1);
}
.pascboule-ball .verdict .big {
font-size: clamp(1.9rem, 8vw, 2.9rem);
letter-spacing: .06em;
color: var(--violet);
line-height: 1;
text-shadow: 0 2px 10px rgba(255, 255, 255, .9);
}
.pascboule-ball .verdict .sub {
font-size: .8rem;
text-transform: uppercase;
letter-spacing: .14em;
color: var(--violet-clair);
}
.pascboule-ball .ring {
position: absolute;
inset: -3%;
width: 106%;
height: 106%;
transform: rotate(-90deg);
pointer-events: none;
opacity: 0;
transition: opacity .4s;
}
.pascboule[data-etat="mains"] .pascboule-ball .ring {
opacity: 1;
}
.pascboule-ball .ring .bg {
fill: none;
stroke: rgba(117, 8, 168, .12);
stroke-width: 2;
}
.pascboule-ball .ring .fg {
fill: none;
stroke: var(--violet-clair);
stroke-width: 2.6;
stroke-linecap: round;
stroke-dasharray: 352;
stroke-dashoffset: 352;
}
.pascboule-stand .pedestal {
display: block;
width: 92%;
margin: -7% auto 0;
} .pascboule[data-etat="reponse"] .pascboule-hint .txt {
font-style: italic;
color: var(--violet);
}
.pascboule[data-etat="reponse"] .pascboule-hint .txt::before { content: '« '; }
.pascboule[data-etat="reponse"] .pascboule-hint .txt::after { content: ' »'; } .pascboule-aide {
min-height: 1.4rem;
font-size: .84rem;
color: #8d7f98;
margin: .6rem 0 0;
}
.pascboule-secours {
margin-top: .4rem;
}
.pascboule-secours .lien {
background: none;
border: 0;
font-family: inherit;
font-size: .82rem;
color: var(--violet-clair);
text-decoration: underline;
cursor: pointer;
} .pascboule-answer {
margin-top: 1.8rem;
text-align: left;
background: var(--lilas-pale);
border: 1px solid #e7dbf2;
border-radius: 14px;
padding: 1.5rem 1.6rem 1.7rem;
animation: pascboule-monte .7s ease-out both;
}
@keyframes pascboule-monte {
from { opacity: 0; transform: translateY(14px); }
to { opacity: 1; transform: none; }
}
.pascboule-answer h3 {
font-size: .78rem;
text-transform: uppercase;
letter-spacing: .15em;
color: var(--violet-clair);
margin: 0 0 .5rem;
}
.pascboule-answer h3 + p {
margin: 0 0 1.3rem;
font-size: 1.04rem;
line-height: 1.62;
}
.pascboule-answer .pascboule-replay {
display: block;
margin: .4rem auto 0;
}
.pascboule-cta {
margin-top: 1.5rem;
padding-top: 1.3rem;
border-top: 1px solid #e0d1ee;
text-align: center;
font-size: .95rem;
}
.pascboule-cta p {
margin: 0 0 .9rem;
}
.pascboule-cta .pascboule-lien-tchat {
display: inline-block;
border-radius: 999px;
padding: .72rem 1.7rem;
background: linear-gradient(135deg, var(--violet-clair), var(--violet));
color: #fff !important;
text-decoration: none;
font-size: .9rem;
letter-spacing: .08em;
text-transform: uppercase;
box-shadow: 0 6px 18px rgba(71, 3, 103, .22);
transition: transform .2s, box-shadow .2s;
}
.pascboule-cta .pascboule-lien-tchat:hover {
transform: translateY(-1px);
box-shadow: 0 9px 22px rgba(71, 3, 103, .28);
color: #fff !important;
}
@media (max-width: 540px) {
.pascboule { padding: 1.4rem .6rem 2rem; }
.pascboule-steps { gap: .35rem .8rem; }
.pascboule-steps li { font-size: .68rem; }
.pascboule-hint .txt { font-size: 1.02rem; }
.pascboule-answer { padding: 1.2rem 1.1rem 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
.pascboule * { animation: none !important; transition-duration: .01ms !important; }
}