/* Configurateur — zone « votre véhicule » (ordre BIAL 30/10) : charte BS (Morganite / Michroma / Montserrat, jaune #ffe100, noir).
   Présentation seulement : aucune logique, aucun prix. Chargée après halloween.css pour primer dans les deux thèmes. */
#cfg{--bs-y:#ffe100;--bs-y2:#fff27a;--bs-k:#0a0a0a;--bs-k2:#141414;--bs-line:rgba(255,255,255,.14);max-width:1000px;margin-left:auto;margin-right:auto}
/* Accroche */
#cfg .wiz-hook{font-family:'Montserrat',sans-serif;font-size:15px;color:#fff;background:rgba(255,225,0,.08);border-color:rgba(255,225,0,.45);animation:none}
#cfg .wiz-hook b{background:none;-webkit-text-fill-color:var(--bs-y);color:var(--bs-y)}
/* Étapes */
#cfg .wiz-head{max-width:760px;margin:0 auto 26px}
#cfg .wiz-progress{height:8px;background:rgba(255,255,255,.1)}
#cfg .wiz-progress-fill{background:var(--bs-y);box-shadow:0 0 14px rgba(255,225,0,.55)}
#cfg .wiz-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}
#cfg .wiz-step{flex-direction:column;align-items:center;gap:8px;text-align:center;font-family:'Michroma',sans-serif;font-size:11px;letter-spacing:.06em;color:rgba(255,255,255,.55);min-width:0;white-space:normal}
#cfg .wiz-step i{width:32px;height:32px;font-size:14px;background:rgba(255,255,255,.1);color:rgba(255,255,255,.7)}
#cfg .wiz-step.on{color:#fff}
#cfg .wiz-step.on i{background:var(--bs-y);color:var(--bs-k);box-shadow:0 0 0 4px rgba(255,225,0,.18)}
#cfg .wiz-step.done{color:rgba(255,255,255,.8)}
#cfg .wiz-step.done i{background:rgba(255,225,0,.2);color:var(--bs-y)}
/* Zone de saisie : pleine largeur du conteneur, plus de cadre dans le cadre */
#cfg .selectbar{max-width:760px;margin:0 auto 10px;padding:28px 32px 32px;background:var(--bs-k2);border:1px solid var(--bs-line);border-radius:14px;backdrop-filter:none}
#cfg .wiz-panel.on{gap:12px}
#cfg .wiz-panel label,#cfg .wiz-panel .motohead label{display:block;font-family:'Morganite',sans-serif;font-weight:700;font-size:44px;line-height:1;letter-spacing:.01em;text-transform:uppercase;color:#fff;text-shadow:none;margin:0 0 4px;animation:none}
#cfg .motohead{flex-direction:column;align-items:stretch;gap:12px;margin-bottom:4px}
#cfg .combo{width:100%}
#cfg .cinput,#cfg .wiz-panel .cinput,#cfg .combo.touchmode .cinput{min-height:60px;font-family:'Montserrat',sans-serif;font-size:18px;font-weight:500;padding:16px 62px 16px 18px;background:var(--bs-k);color:#fff;border:2px solid rgba(255,255,255,.22);border-radius:10px}
#cfg .combo.hasbadge .cinput{padding-left:52px}
#cfg .cinput::placeholder{color:rgba(255,255,255,.55);opacity:1}
#cfg .cinput:hover{border-color:rgba(255,255,255,.4)}
#cfg .cinput:focus{border-color:var(--bs-y);box-shadow:0 0 0 4px rgba(255,225,0,.2)}
/* Un seul bouton dans le champ : « effacer », 44 px, le texte s'arrête avant lui */
#cfg .ckbd{display:none!important}
#cfg .cclear{right:8px;width:44px;height:44px;font-size:22px;background:rgba(255,255,255,.1);color:#fff}
#cfg .cclear:hover{background:var(--bs-y);color:var(--bs-k)}
#cfg .cbadge{left:12px}
/* Liste déroulante avec recherche */
#cfg .cpanel{background:#111;border:2px solid var(--bs-y);border-radius:10px}
#cfg .copt{min-height:52px;font-family:'Montserrat',sans-serif;font-size:16px;padding:12px 18px}
#cfg .copt:hover,#cfg .copt.hl{background:rgba(255,225,0,.14)}
#cfg .copt:active,#cfg .copt.touchdown{background:rgba(255,225,0,.24)}
#cfg .copt .ftag{font-size:10px}
#cfg .copt span.lg.lg.lg{flex:0 0 36px;width:36px;height:26px}
#cfg .copt .lg img{max-width:30px;max-height:21px}
#cfg .cscroll-thumb{background:var(--bs-y)}
#cfg .cempty{font-size:15px}
/* Carburants */
#cfg .fuelchips{gap:8px}
#cfg .fchip{min-height:44px;display:inline-flex;align-items:center;font-size:11px;padding:0 18px;background:var(--bs-k);border-color:rgba(255,255,255,.22);color:#fff}
#cfg .fchip.on{background:var(--bs-y);border-color:var(--bs-y);color:var(--bs-k)}
/* Retour / modifier */
#cfg .wiz-back,#cfg .wiz-edit{min-height:44px;font-family:'Montserrat',sans-serif;font-size:15px}
#cfg .wiz-back{color:rgba(255,255,255,.75);margin-bottom:10px}
#cfg .wiz-back:hover,#cfg .wiz-edit:hover{color:var(--bs-y);border-color:var(--bs-y)}
#cfg .wiz-loading{font-size:15px}
/* Bouton principal */
#cfg .cfgbtn{min-height:56px;font-family:'Montserrat',sans-serif;font-size:16px;border-radius:10px}
#cfg .cfgbtn-wa{background:var(--bs-y);color:var(--bs-k);box-shadow:0 12px 30px -10px rgba(255,225,0,.55)}
/* Champ vide : pas de bouton « effacer », le texte d'aide garde toute la place */
#cfg .cinput:placeholder-shown~.cclear{display:none}
#cfg .cinput:placeholder-shown,#cfg .wiz-panel .cinput:placeholder-shown,#cfg .combo.touchmode .cinput:placeholder-shown{padding-right:18px}
@media(max-width:600px){
 #cfg{padding:20px 10px}
 #cfg .wiz-hook{font-size:14px;padding:10px 16px}
 #cfg .wiz-steps{gap:2px}
 #cfg .wiz-step{font-family:'Montserrat',sans-serif;font-weight:600;font-size:11.5px;letter-spacing:0}
 #cfg .selectbar{padding:18px 12px 20px}
 #cfg .wiz-panel label,#cfg .wiz-panel .motohead label{font-size:34px}
 #cfg .cinput,#cfg .wiz-panel .cinput,#cfg .combo.touchmode .cinput{font-size:16px;padding-left:14px;padding-right:58px}
 #cfg .cclear{right:6px}
 #cfg .cinput:placeholder-shown,#cfg .wiz-panel .cinput:placeholder-shown,#cfg .combo.touchmode .cinput:placeholder-shown{padding-right:14px}
}
/* Gains : 2 gros chiffres + courbes indicatives (remplacent la jauge) */
#cfg .gaugewrap,#cfg .torque{display:none}
#cfg .bsg{max-width:760px;margin:10px auto 0}
#cfg .bsg[hidden],#cfg .bsg [hidden]{display:none}
#cfg .bsg-nums{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#cfg .bsg-num{background:var(--bs-k2);border:1px solid var(--bs-line);border-radius:14px;padding:16px 18px;text-align:center}
#cfg .bsg-num small{display:block;font-family:'Michroma',sans-serif;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.65)}
#cfg .bsg-num b{display:block;font-family:'Morganite',sans-serif;font-weight:700;font-size:64px;line-height:1;color:var(--bs-y);margin:6px 0 2px}
#cfg .bsg-num span{font-family:'Montserrat',sans-serif;font-size:16px;color:#fff}
#cfg .bsg-chart{margin-top:14px;background:var(--bs-k2);border:1px solid var(--bs-line);border-radius:14px;padding:14px 14px 12px}
#cfg .bsg-svg{display:block;width:100%;max-width:680px;margin:0 auto;height:auto;overflow:visible}
#cfg .bsg-grid{stroke:rgba(255,255,255,.08);stroke-width:1}
#cfg .bsg-axis{stroke:rgba(255,255,255,.3);stroke-width:2}
#cfg .bsg-zone{fill:rgba(255,225,0,.16)}
#cfg .bsg-po,#cfg .bsg-pa,#cfg .bsg-to,#cfg .bsg-ta{fill:none;stroke-linecap:round;stroke-linejoin:round}
#cfg .bsg-po{stroke:#9a9aa0;stroke-width:4}
#cfg .bsg-pa{stroke:var(--bs-y);stroke-width:5}
#cfg .bsg-to{stroke:#9a9aa0;stroke-width:4;stroke-dasharray:2 12}
#cfg .bsg-ta{stroke:var(--bs-y);stroke-width:5;stroke-dasharray:2 12}
#cfg circle.o{fill:#9a9aa0}#cfg circle.a{fill:var(--bs-y)}
#cfg .bsg-val{font-family:'Montserrat',sans-serif;font-weight:800;font-size:21px;paint-order:stroke;stroke:#141414;stroke-width:5px}
#cfg text.bsg-val.a{fill:var(--bs-y)}#cfg text.bsg-val.o{fill:#d0d0d4}
#cfg .bsg-lab{font-family:'Montserrat',sans-serif;font-weight:600;font-size:17px;fill:rgba(255,255,255,.7)}
#cfg .bsg-leg{display:flex;flex-direction:column;align-items:center;gap:6px;font-family:'Montserrat',sans-serif;font-size:14px;color:#fff;margin-top:6px}
#cfg .bsg-row{display:flex;gap:20px;justify-content:center;flex-wrap:nowrap}
#cfg .bsg-li{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
#cfg .bsg-k{display:inline-block;width:30px;height:0;border-top:4px solid #fff}
#cfg .bsg-k.tq{border-top-style:dotted;border-top-width:5px}
#cfg .bsg-dot{display:inline-block;width:14px;height:14px;border-radius:50%}
#cfg .bsg-dot.o{background:#9a9aa0}#cfg .bsg-dot.a{background:var(--bs-y)}
#cfg .bsg-note{font-family:'Montserrat',sans-serif;font-size:12.5px;line-height:1.45;color:rgba(255,255,255,.62);text-align:center;margin:10px auto 0;max-width:560px}
#cfg .bsg-anim .bsg-cr{transform-box:fill-box;transform-origin:0 0;transform:scaleX(0);animation:bsgReveal 1.2s ease-out forwards}
#cfg .bsg-anim circle,#cfg .bsg-anim .bsg-val{opacity:0;animation:bsgFade .5s 1.2s forwards}
@keyframes bsgReveal{to{transform:scaleX(1)}}
@keyframes bsgDraw{to{stroke-dashoffset:0}}@keyframes bsgFade{to{opacity:1}}
@media(max-width:600px){#cfg .bsg-num{padding:12px 8px}#cfg .bsg-num b{font-size:50px}#cfg .bsg-num span{font-size:15px}#cfg .bsg-chart{padding:12px 4px 10px}#cfg .bsg-val{font-size:27px;stroke-width:6px}#cfg .bsg-lab{font-size:22px}#cfg .bsg-po,#cfg .bsg-to{stroke-width:5}#cfg .bsg-pa,#cfg .bsg-ta{stroke-width:6}#cfg .bsg-leg{font-size:13px}#cfg .bsg-row{gap:14px}#cfg .bsg-k{width:22px}}
@media(prefers-reduced-motion:reduce){#cfg .bsg-anim *{animation:none!important;opacity:1!important;transform:none!important}#cfg .wiz-panel.on,#wizResult{animation:none}}
