/* OXXY — animated choices. Original artwork, inspired by 21st.dev interaction references.
   Keep these styles local to the profile, need and diagnostic screens. */
#scr-profil h2:focus,#scr-problemes h2:focus,#scr-q h2:focus{outline:none}
.visual-choice{position:relative;isolation:isolate;overflow:hidden;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.visual-choice::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 30% 0%,#fcd00012,transparent 75%);opacity:0;transition:opacity .25s}
.visual-choice:focus-visible,.visual-choice.is-touched,.visual-choice.is-chosen{border-color:#a08a32;background-color:#1d1b14}
.visual-choice:focus-visible::before,.visual-choice.is-touched::before,.visual-choice.is-chosen::before{opacity:1}
.visual-choice.is-chosen{box-shadow:inset 0 0 0 1px #fcd00042}
.choice-glyph{display:block;width:100%;height:100%;overflow:visible;color:var(--jaune)}
.choice-glyph .glyph-guide{stroke:#8f7d42;opacity:.4}
.choice-glyph .glyph-link{stroke:#a58d35;stroke-dasharray:4 6;opacity:.65}
.choice-glyph .glyph-core,.choice-glyph .glyph-node{fill:var(--jaune);stroke:var(--jaune)}
.choice-glyph .glyph-back{fill:#211f15;stroke:#71632e}
.choice-glyph .glyph-tile{fill:#171718;stroke:#bca347}
.choice-glyph .glyph-cursor{fill:var(--jaune);stroke:#111114;stroke-width:2.5}
.choice-glyph .glyph-star{fill:#fcd00012}
.choice-glyph .glyph-spark{opacity:.65}
.glyph-orbit,.glyph-spin,.glyph-star,.glyph-network,.glyph-play{transform-origin:50px 50px}
.glyph-badge{transform-origin:48px 52px}
.glyph-node,.glyph-bubbles circle{transform-box:fill-box;transform-origin:center}
.profile-wrap{width:min(1020px,100%);padding:0 32px}
.profile-wrap>.brief-kicker{margin-bottom:14px}
.profile-wrap>h2{font-size:clamp(44px,6.5vw,68px);letter-spacing:-.055em;line-height:1.05;margin-bottom:14px}
.profile-wrap>p:not(.brief-kicker){font-size:15px;margin-bottom:36px}
#profiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.profile-choice{display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:0;min-height:280px;padding:27px 25px 28px;border:1px solid #ffffff16;border-radius:24px;background:linear-gradient(145deg,#1b1b1e,#101012 78%);transition:border-color .25s,background-color .25s,box-shadow .25s,transform .3s var(--ease)}
.profile-choice:hover{transform:none;border-color:#ffffff16}
.profile-art{position:relative;display:block;width:106px;height:106px;margin-bottom:25px}
.profile-art .choice-glyph{position:relative;z-index:1;filter:drop-shadow(0 4px 14px #fcd00012)}
.art-halo{position:absolute;inset:3px;border-radius:50%;background:radial-gradient(circle,#fcd00013,transparent 67%);transform:scale(.9);transition:transform .4s,opacity .4s;opacity:.6}
.profile-copy{display:block;max-width:23ch;padding-right:9px}
.profile-choice strong{font-size:21px;line-height:1.23;letter-spacing:-.035em;font-weight:500}
.profile-choice small{font-size:12px;line-height:1.55;color:#a8a7ae;margin-top:12px;max-width:26ch}
.profile-arrow{display:grid;place-items:center;position:absolute;right:22px;top:24px;margin:0;width:30px;height:30px;border-radius:50%;border:1px solid #ffffff12;font-size:17px;color:#939098;transition:color .25s,border-color .25s,transform .25s}
.profile-choice:is(:focus-visible,.is-touched,.is-chosen) .profile-arrow{color:var(--jaune);border-color:#8c762a;transform:rotate(45deg)}
.profile-choice:is(:focus-visible,.is-touched,.is-chosen) .art-halo{opacity:1;transform:scale(1.25)}
/* The second choice screen: one illustration per actual need. */
.need-wrap{max-width:990px;padding:0 30px}
#scr-problemes h2.qt{max-width:24ch;text-align:left;font-size:clamp(32px,4.8vw,50px);letter-spacing:-.045em;margin:0 0 15px}
#scr-problemes .hint{text-align:left;text-transform:none;font:14px/1.6 var(--font);letter-spacing:0;margin-bottom:28px;color:#a7a4ad}
#plist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:none;gap:11px}
#plist .pbtn{gap:16px;min-height:94px;padding:14px 19px 14px 14px;border:1px solid #ffffff16;border-radius:19px;background:linear-gradient(130deg,#19191c,#111113);font-size:16px;line-height:1.35;font-weight:500;transition:transform .25s,border-color .25s,box-shadow .25s}
#plist .pbtn:hover{transform:none;border-color:#ffffff16}
.need-art{flex:0 0 54px;width:54px;height:54px;padding:5px;border:1px solid #ffffff09;border-radius:15px;background:#ffffff03}
.need-label{max-width:26ch}
#plist .path-arrow{font-size:19px;color:#76727b;transition:color .25s,transform .25s}
#plist .pbtn:last-child{grid-column:1/-1;min-height:80px}
#plist .pbtn:last-child .need-label{max-width:none}
#plist .pbtn:is(:focus-visible,.is-touched,.is-chosen){border-color:#a08a32}
#plist .pbtn:is(:focus-visible,.is-touched,.is-chosen) .path-arrow{color:var(--jaune);transform:translate(2px,-2px)}
/* Four compact landmarks; the chosen answer receives a check before advancing. */
.question-wrap{max-width:960px;padding:0 30px;text-align:center}
#scr-q #fil{margin:0 0 22px;color:#aba7a0;text-transform:none;letter-spacing:0;font:12px/1.5 var(--font)}
.question-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:490px;margin:0 auto 34px;padding:0;list-style:none;text-align:left}
.step-track{height:3px;background:#ffffff13;border-radius:10px;display:block;overflow:hidden;margin-bottom:9px}
.step-track i{display:block;height:100%;width:0;background:#78bddc}
.step-current .step-track i{width:100%;background:var(--jaune)}
.step-done .step-track i{width:100%}
.step-name{font:10px/1.4 var(--font);color:#949098}
.step-current .step-name{color:var(--jaune)}
.step-done .step-name{color:#b8c5cb}
#scr-q h2.qt{max-width:25ch;margin:0 auto 15px;font-size:clamp(28px,4.2vw,43px);line-height:1.13;letter-spacing:-.04em;min-height:2.26em;display:flex;align-items:center;justify-content:center}
#scr-q #q-hint{font:10px/1.5 var(--mono);letter-spacing:.09em;color:#9f9aa4;margin:0 0 27px}
#qlist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;max-width:none;text-align:left}
#qlist .qbtn{display:flex;flex-direction:column;align-items:flex-start;gap:17px;position:relative;min-height:220px;padding:24px;border:1px solid #ffffff17;border-radius:23px;background:linear-gradient(145deg,#1a1a1d,#111113);font-size:16px;line-height:1.45;font-weight:400;transition:transform .25s,border-color .25s,box-shadow .25s}
#qlist .qbtn:hover{transform:none;border-color:#ffffff17}
.answer-art{display:flex;align-items:center;gap:17px;padding-right:25px;width:100%;height:65px}
.answer-art .choice-glyph{width:62px;height:62px;flex:0 0 62px;color:#d3bc64}
.answer-level{display:flex;align-items:flex-end;gap:4px;height:26px}
.answer-level i{display:block;width:5px;height:9px;border-radius:2px;background:#ffffff12;transition:background .25s,transform .3s}
.answer-level i:nth-child(2){height:16px}.answer-level i:nth-child(3){height:23px}
.answer-level i.level-on{background:#a69243}
.answer-copy{max-width:26ch;color:#dcd9d4}
.answer-select{position:absolute;right:18px;top:18px;display:grid;place-items:center;width:25px;height:25px;border:1px solid #ffffff1c;border-radius:50%;font:10px/1 var(--mono);color:#a19ba8;transition:color .2s,border-color .2s,background .2s}
.answer-check{display:none}
#qlist .qbtn:is(:focus-visible,.is-touched,.is-chosen,[aria-pressed=true]){border-color:#9e8835}
#qlist .qbtn:is(.is-chosen,[aria-pressed=true]) .answer-select{background:var(--jaune);color:#151411;border-color:var(--jaune)}
#qlist .qbtn:is(.is-chosen,[aria-pressed=true]) .answer-check{display:block;font-size:14px}
#qlist .qbtn:is(.is-chosen,[aria-pressed=true]) .answer-letter{display:none}
#qlist .question-unknown{grid-column:1/-1;justify-self:center;min-height:44px;padding:13px 10px;margin-top:5px;font-size:12px;color:#aaa6af;border-radius:8px}
.question-unknown span{margin-left:7px;display:inline-block;transition:transform .2s}
.question-unknown:hover span{transform:translate(2px,-2px)}
.question-unknown.is-chosen{color:var(--jaune)}
/* Animate the icon, leaving all text and click targets stable. */
.visual-choice:is(:focus-visible,.is-touched,.is-chosen) .glyph-network{animation:choice-network .8s var(--ease) both}
.visual-choice:is(:focus-visible,.is-touched,.is-chosen) .glyph-orbit{animation:choice-orbit 1s var(--ease) both}
.visual-choice:is(:focus-visible,.is-touched,.is-chosen) .glyph-badge{animation:choice-badge .7s var(--ease) both}
.visual-choice:is(:focus-visible,.is-touched,.is-chosen) .glyph-spin{animation:choice-spin .8s var(--ease) both}
.visual-choice:is(:focus-visible,.is-touched,.is-chosen) :is(.glyph-stack,.glyph-window){animation:choice-lift .7s var(--ease) both}
.visual-choice:is(:focus-visible,.is-touched,.is-chosen) .glyph-look{animation:choice-look .8s var(--ease) both}
.visual-choice:is(:focus-visible,.is-touched,.is-chosen) :is(.glyph-play,.glyph-star){animation:choice-pop .75s var(--ease) both}
.visual-choice:is(:focus-visible,.is-touched,.is-chosen) :is(.glyph-rise,.glyph-cursor){animation:choice-lift .7s var(--ease) both}
.visual-choice:is(:focus-visible,.is-touched,.is-chosen) .glyph-tick{animation:choice-tick .6s var(--ease) both;stroke-dasharray:55}
.visual-choice:is(:focus-visible,.is-touched,.is-chosen) :is(.glyph-spark,.glyph-bubbles){animation:choice-glow .8s var(--ease) both}
@media(hover:hover) and (pointer:fine){
  .visual-choice:hover::before{opacity:1}
  #profiles .profile-choice:hover,#plist .pbtn:hover,#qlist .qbtn:hover{border-color:#8e7931;transform:translateY(-3px);box-shadow:0 15px 36px -22px #fcd00025}
  .profile-choice:hover .profile-arrow{color:var(--jaune);border-color:#8c762a;transform:rotate(45deg)}
  .profile-choice:hover .art-halo{opacity:1;transform:scale(1.25)}
  #plist .pbtn:hover .path-arrow{color:var(--jaune);transform:translate(2px,-2px)}
  .visual-choice:hover .glyph-network{animation:choice-network .8s var(--ease) both}
  .visual-choice:hover .glyph-orbit{animation:choice-orbit 1s var(--ease) both}
  .visual-choice:hover .glyph-badge{animation:choice-badge .7s var(--ease) both}
  .visual-choice:hover .glyph-spin{animation:choice-spin .8s var(--ease) both}
  .visual-choice:hover :is(.glyph-stack,.glyph-window,.glyph-rise,.glyph-cursor){animation:choice-lift .7s var(--ease) both}
  .visual-choice:hover .glyph-look{animation:choice-look .8s var(--ease) both}
  .visual-choice:hover :is(.glyph-play,.glyph-star){animation:choice-pop .75s var(--ease) both}
  .visual-choice:hover .glyph-tick{animation:choice-tick .6s var(--ease) both;stroke-dasharray:55}
  .visual-choice:hover :is(.glyph-spark,.glyph-bubbles){animation:choice-glow .8s var(--ease) both}
}
@keyframes choice-network{0%{transform:rotate(0) scale(1)}45%{transform:rotate(10deg) scale(.9)}100%{transform:rotate(0) scale(1.06)}}
@keyframes choice-orbit{to{transform:rotate(180deg)}}
@keyframes choice-badge{0%{transform:rotate(0)}45%{transform:rotate(-9deg) translateY(-4px)}100%{transform:rotate(-3deg) translateY(-2px)}}
@keyframes choice-spin{to{transform:rotate(180deg)}}
@keyframes choice-lift{0%{transform:translateY(0)}50%{transform:translateY(-5px)}100%{transform:translateY(-2px)}}
@keyframes choice-look{0%,100%{transform:translateX(0)}40%{transform:translateX(8px)}70%{transform:translateX(-5px)}}
@keyframes choice-pop{0%{transform:scale(1)}50%{transform:scale(1.15) rotate(8deg)}100%{transform:scale(1.06)}}
@keyframes choice-tick{from{stroke-dashoffset:55}to{stroke-dashoffset:0}}
@keyframes choice-glow{0%{opacity:.4}50%{opacity:1}100%{opacity:.85}}
@media(max-width:760px){
  .profile-wrap{max-width:580px;padding:0 24px}
  .profile-wrap>h2{font-size:49px}.profile-wrap>p:not(.brief-kicker){margin-bottom:26px;font-size:14px}
  #profiles{grid-template-columns:1fr;gap:11px}
  .profile-choice{flex-direction:row;align-items:center;gap:18px;min-height:128px;padding:21px 46px 21px 19px;border-radius:22px}
  .profile-art{flex:0 0 69px;width:69px;height:69px;margin:0}
  .profile-copy{max-width:none;padding-right:0}.profile-choice strong{font-size:18px}.profile-choice small{margin-top:7px;font-size:11px;max-width:26ch}
  .profile-arrow{right:15px;top:calc(50% - 13px);width:26px;height:26px;font-size:15px}
  .question-wrap{padding:0 24px}.answer-art{gap:7px;padding-right:15px}.answer-art .choice-glyph{width:49px;height:49px;flex-basis:49px}
  #qlist .qbtn{padding:19px 16px;font-size:14px;min-height:213px}.answer-select{right:11px;top:11px;width:22px;height:22px}
}
@media(max-width:640px){
  .need-wrap{padding:0 20px}#scr-problemes h2.qt{font-size:34px;max-width:17ch;margin-bottom:12px}
  #scr-problemes .hint{font-size:13px;line-height:1.5;margin-bottom:22px}
  #plist{grid-template-columns:1fr;gap:8px}#plist .pbtn,#plist .pbtn:last-child{min-height:72px;gap:13px;padding:12px 15px 12px 11px;border-radius:17px;font-size:14px}
  .need-art{width:43px;height:43px;flex-basis:43px;padding:3px;border-radius:12px}.need-label{max-width:26ch}
  .question-wrap{padding:0 20px}#scr-q #fil{font-size:11px;margin-bottom:20px;max-width:34ch;margin-left:auto;margin-right:auto}
  .question-steps{gap:8px;margin-bottom:24px}.step-name{font-size:9px}.step-track{margin-bottom:7px}
  #scr-q h2.qt{font-size:29px;line-height:1.15;min-height:3.45em;max-width:21ch;margin-bottom:12px}
  #scr-q #q-hint{margin-bottom:21px;font-size:9px}
  #qlist{grid-template-columns:1fr;gap:10px}
  #qlist .qbtn{flex-direction:row;align-items:center;gap:15px;min-height:99px;padding:16px 43px 16px 15px;border-radius:19px;font-size:14px;line-height:1.45}
  .answer-art{flex-direction:column;justify-content:center;gap:4px;width:45px;height:63px;flex:0 0 45px;padding:0}
  .answer-art .choice-glyph{width:43px;height:43px;flex:0 0 43px}.answer-level{height:7px;gap:3px;align-items:center}
  .answer-level i,.answer-level i:nth-child(2),.answer-level i:nth-child(3){height:3px;width:9px;border-radius:3px}
  .answer-copy{max-width:none}.answer-select{right:13px;top:calc(50% - 11px)}
  #qlist .question-unknown{margin:2px 0 0;font-size:11px;padding:13px 5px}
}
@media(max-width:380px){
  .profile-wrap{padding:0 18px}.profile-wrap>h2{font-size:43px}.profile-choice{gap:12px;padding:18px 39px 18px 14px;min-height:120px}
  .profile-art{width:58px;height:58px;flex-basis:58px}.profile-choice strong{font-size:16px}.profile-choice small{font-size:10px}
  .profile-arrow{right:11px;width:23px;height:23px}.question-wrap{padding:0 17px}
  #scr-q h2.qt{font-size:27px}.step-name{font-size:8px}
  #qlist .qbtn{padding-left:12px;gap:12px;font-size:13px}
}
@media(prefers-reduced-motion:reduce){
  #scr-profil,#scr-problemes,#scr-q{transition:none;transform:none}
  .visual-choice,.visual-choice *,.visual-choice::before{animation:none!important;transition:none!important}
  #profiles .profile-choice,#plist .pbtn,#qlist .qbtn{transform:none!important}
}
