:root{--bg:#09080d;--panel:#111018;--panel2:#17141f;--line:#2a2436;--text:#f7f4fb;--muted:#a49cac;--pink:#e253d3;--purple:#8b5cf6;--violet:#6d4ce8;--green:#60d394;--orange:#ffb454;--red:#ff6b81;--shadow:0 28px 70px rgba(0,0,0,.38);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:dark}*{box-sizing:border-box}html{background:var(--bg);scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 15% -10%,rgba(139,92,246,.17),transparent 35%),radial-gradient(circle at 95% 10%,rgba(226,83,211,.11),transparent 30%),var(--bg);color:var(--text);min-height:100vh}.noise{position:fixed;inset:0;pointer-events:none;opacity:.02;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");z-index:1000}.topbar{height:78px;border-bottom:1px solid rgba(255,255,255,.07);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,4vw,72px);position:sticky;top:0;z-index:100;background:rgba(9,8,13,.82);backdrop-filter:blur(22px)}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none}.brand img{width:44px;height:44px;object-fit:contain}.brand div{display:flex;flex-direction:column;line-height:1}.brand strong{font-size:18px;letter-spacing:.12em}.brand span{font-size:10px;color:#d47bdd;letter-spacing:.24em;margin-top:6px}.top-actions{display:flex;gap:10px;align-items:center}.ghost-button,.small-button{border:1px solid var(--line);background:rgba(255,255,255,.025);color:var(--text);border-radius:12px;padding:10px 14px;font-weight:700;text-decoration:none;cursor:pointer;transition:.2s}.ghost-button:hover,.small-button:hover{border-color:#5e4a77;background:rgba(139,92,246,.09)}.file-button input{display:none}.page-shell{width:min(1540px,calc(100% - 40px));margin:0 auto;padding:68px 0 42px}.hero{max-width:900px;margin-bottom:40px}.eyebrow{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(139,92,246,.32);background:rgba(139,92,246,.08);border-radius:999px;padding:7px 11px;color:#cbbcf4;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.dot{width:7px;height:7px;border-radius:50%;background:var(--pink);box-shadow:0 0 16px var(--pink)}.hero h1{font-size:clamp(42px,6vw,82px);line-height:.95;margin:20px 0 22px;letter-spacing:-.06em}.hero h1 span{background:linear-gradient(90deg,#b982ff,#ec5bc9);-webkit-background-clip:text;background-clip:text;color:transparent}.hero p{font-size:clamp(17px,2vw,22px);line-height:1.6;color:#bbb3c3;max-width:800px}.hero p strong{color:#fff}.hero-badges{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}.hero-badges span{border:1px solid #30283d;background:#100e16;border-radius:999px;padding:8px 11px;font-size:12px;color:#c8bfce;font-weight:700}.workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(390px,.65fr);gap:24px;align-items:start}.left-column{display:grid;gap:24px}.panel{background:linear-gradient(180deg,rgba(21,18,29,.96),rgba(13,12,18,.96));border:1px solid rgba(255,255,255,.085);border-radius:24px;box-shadow:var(--shadow);overflow:visible}.vehicle-picker-panel,.setup-panel,.results-panel{padding:26px}.panel-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:24px}.panel-heading.compact{align-items:center}.panel-heading h2{margin:0;font-size:22px;letter-spacing:-.02em}.panel-heading p{margin:7px 0 0;color:var(--muted);line-height:1.5}.kicker{display:inline-flex;width:28px;height:28px;border-radius:9px;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(139,92,246,.26),rgba(226,83,211,.22));color:#d9c8ff;font-size:11px;font-weight:900;margin-bottom:10px}.status-pill{font-size:11px;border-radius:999px;padding:7px 10px;font-weight:900;white-space:nowrap}.status-pill.loading{color:#f6c975;background:rgba(255,180,84,.09);border:1px solid rgba(255,180,84,.25)}.status-pill.ok{color:#7ce2a8;background:rgba(96,211,148,.08);border:1px solid rgba(96,211,148,.25)}.status-pill.warning{color:#ffc77f;background:rgba(255,180,84,.08);border:1px solid rgba(255,180,84,.25)}.status-pill.muted{color:#aaa1b0;background:rgba(255,255,255,.035);border:1px solid var(--line)}label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:800;color:#d9d3de}.search-wrap{position:relative}.search-input-wrap{position:relative}.search-icon{position:absolute;left:15px;top:50%;transform:translateY(-50%);font-size:24px;color:#9d8bb3}.search-input-wrap input{padding-left:46px;padding-right:46px;height:54px;font-size:15px}.mini-spinner{position:absolute;right:16px;top:16px;width:20px;height:20px;border:2px solid #40374c;border-top-color:var(--pink);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}input,select{width:100%;border:1px solid #302a3b;background:#0c0b10;color:#f7f5fa;border-radius:12px;padding:12px 13px;outline:none;transition:.18s;min-height:45px}input:focus,select:focus{border-color:#795ddc;box-shadow:0 0 0 3px rgba(139,92,246,.12)}select:disabled{opacity:.45}.search-results{position:absolute;top:82px;left:0;right:0;background:#111019;border:1px solid #382e48;border-radius:14px;box-shadow:0 18px 60px rgba(0,0,0,.5);z-index:25;max-height:330px;overflow:auto}.search-result{width:100%;background:transparent;border:0;border-bottom:1px solid #25202e;color:#fff;text-align:left;padding:13px 15px;cursor:pointer;display:flex;justify-content:space-between;gap:12px}.search-result:hover{background:rgba(139,92,246,.09)}.search-result:last-child{border-bottom:0}.search-result strong{display:block}.search-result span{display:block;color:#988fa0;font-size:11px;margin-top:4px}.divider{display:flex;align-items:center;gap:12px;color:#716979;font-size:10px;font-weight:900;letter-spacing:.1em;margin:20px 0}.divider:before,.divider:after{content:"";height:1px;flex:1;background:#25202e}.guided-grid,.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.attribution{font-size:11px;color:#746c7c;margin:18px 0 0}.attribution a{color:#af92f7}.segmented{display:flex;border:1px solid #30293b;background:#0b0a0f;border-radius:12px;padding:3px}.segmented button{border:0;background:transparent;color:#8f8797;padding:8px 11px;border-radius:9px;font-weight:800;cursor:pointer}.segmented button.active{background:#292038;color:#fff}.selected-vehicle{display:flex;align-items:center;gap:13px;padding:14px;border:1px solid #2b2436;background:linear-gradient(90deg,rgba(139,92,246,.08),rgba(226,83,211,.03));border-radius:16px;margin-bottom:20px}.vehicle-glyph{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#8b5cf6,#df55c8);font-weight:1000;box-shadow:0 10px 30px rgba(139,92,246,.25)}.selected-vehicle div:nth-child(2){display:flex;flex-direction:column;gap:3px;flex:1}.selected-vehicle span{font-size:11px;color:#958b9d}.profile-badge{padding:7px 9px;border-radius:999px;border:1px solid #413451!important;color:#cbb9de!important;background:rgba(255,255,255,.02);white-space:nowrap}.wide{grid-column:1/-1}.unit-field{position:relative}.unit-field input{padding-right:58px}.unit-field span{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:11px;color:#736a7d}.specs-grid small{height:14px;color:#6d6574;font-weight:600}.specs-grid small.source-api{color:#67ca93}.specs-grid small.source-user{color:#c99bf5}.choice-block{margin-top:22px}.choice-title{font-size:12px;font-weight:900;color:#d9d2df}.choice-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.choice-card{border:1px solid #30293b;background:#0c0b10;color:#fff;border-radius:14px;padding:13px;text-align:left;cursor:pointer}.choice-card strong,.choice-card span{display:block}.choice-card strong{font-size:13px}.choice-card span{font-size:11px;line-height:1.45;color:#8f8796;margin-top:5px}.choice-card.active{border-color:#855eee;background:linear-gradient(135deg,rgba(139,92,246,.15),rgba(226,83,211,.06));box-shadow:inset 0 0 0 1px rgba(139,92,246,.18)}.chip-row{display:flex;gap:8px;margin-top:10px}.chip-row button{border:1px solid #30293b;background:#0c0b10;color:#9c94a3;border-radius:999px;padding:9px 13px;cursor:pointer;font-weight:800}.chip-row button.active{border-color:#8d61f1;color:#fff;background:#241a35}.advanced-section{border-top:1px solid #292331;margin-top:24px;padding-top:22px}.advanced-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.advanced-head h3{margin:0}.advanced-head p{color:#82798b;margin:4px 0 0;font-size:12px}.advanced-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:16px}.advanced-grid label{font-size:10px}.advanced-grid input{min-height:40px;padding:9px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.empty-state{grid-column:1/-1;color:#776e7f;font-size:12px}.main-actions{display:flex;gap:10px;margin-top:25px}.primary-button,.secondary-button,.download-button{border:0;border-radius:14px;cursor:pointer;font-weight:900;transition:.18s}.primary-button{flex:1;min-height:54px;color:#fff;background:linear-gradient(100deg,#7a55ee,#df55c7);box-shadow:0 14px 32px rgba(139,92,246,.24);font-size:15px}.primary-button:hover,.download-button:hover{filter:brightness(1.08);transform:translateY(-1px)}.primary-button:disabled{opacity:.6;cursor:wait}.secondary-button{padding:0 16px;border:1px solid #372e43;background:#0d0c11;color:#c8becf}.form-message{margin-top:12px;padding:11px 13px;border-radius:12px;font-size:12px}.form-message.error{background:rgba(255,107,129,.08);border:1px solid rgba(255,107,129,.22);color:#ff9caf}.form-message.success{background:rgba(96,211,148,.08);border:1px solid rgba(96,211,148,.22);color:#82dfaa}.sticky{position:sticky;top:100px}.performance-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.metric{border:1px solid #292331;background:#0d0c12;border-radius:16px;padding:14px}.metric span,.metric small{display:block}.metric span{font-size:11px;color:#8d8495}.metric strong{display:block;font-size:25px;margin:7px 0 3px;letter-spacing:-.03em}.metric small{font-size:10px;color:#655d6d}.meter-list{display:grid;gap:10px;margin:18px 0}.meter-list>div{display:grid;grid-template-columns:90px 1fr;align-items:center;gap:10px}.meter-list span{font-size:11px;color:#9d94a6}.meter{height:7px;background:#211c29;border-radius:999px;overflow:hidden}.meter i{display:block;height:100%;width:0;background:linear-gradient(90deg,#7c5ae9,#e154cc);border-radius:inherit;transition:.5s}.behavior-card,.comparison-card,.code-card,.validation-details{border:1px solid #2a2433;background:#0c0b10;border-radius:16px;padding:14px;margin-top:12px}.behavior-card>span,.subheading span{font-size:11px;font-weight:900;color:#bdb3c5;text-transform:uppercase;letter-spacing:.07em}.behavior-card ul{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:7px}.behavior-card li{font-size:12px;color:#a69dac;padding-left:18px;position:relative;line-height:1.4}.behavior-card li:before{content:"✓";position:absolute;left:0;color:#7bdfa6}.comparison-row{display:grid;grid-template-columns:1fr auto 20px auto;gap:7px;align-items:center;font-size:11px;padding-top:10px}.comparison-row span{color:#776e80}.comparison-row b{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.subheading{display:flex;justify-content:space-between;align-items:center}.small-button{padding:6px 9px;font-size:10px;border-radius:9px}.code-card pre{max-height:360px;overflow:auto;margin:12px 0 0;background:#07070a;border-radius:11px;padding:13px;border:1px solid #201b27;color:#c7baf9;font-size:10px;line-height:1.6;white-space:pre}.validation-details{font-size:11px;color:#a99fb0}.validation-details ul{margin:8px 0 0;padding-left:18px}.download-button{width:100%;min-height:56px;margin-top:16px;color:#fff;background:linear-gradient(100deg,#7653e7,#dd52c5);font-size:15px}.download-button:disabled{opacity:.34;cursor:not-allowed;transform:none}.download-note{text-align:center;color:#6e6675;font-size:10px;line-height:1.45;margin:9px 8px 0}.projects-dialog{width:min(700px,calc(100% - 32px));border:1px solid #3a3047;background:#111018;color:#fff;border-radius:20px;padding:22px;box-shadow:0 30px 90px #000}.projects-dialog::backdrop{background:rgba(4,3,7,.75);backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:center;justify-content:space-between}.dialog-head span{font-size:10px;color:#9a8da5;text-transform:uppercase}.dialog-head h2{margin:2px 0}.dialog-head button{font-size:28px;border:0;background:transparent;color:#fff;cursor:pointer}.projects-dialog>p{color:#8d8495;font-size:12px}.projects-list{display:grid;gap:10px}.project-item{display:flex;gap:10px;align-items:center;border:1px solid #2e2737;padding:12px;border-radius:14px}.project-item>div{flex:1}.project-item strong,.project-item span{display:block}.project-item span{color:#82798b;font-size:10px;margin-top:3px}.project-item button{border:1px solid #3a3047;background:#17131d;color:#fff;border-radius:9px;padding:8px;cursor:pointer}.footer{width:min(1540px,calc(100% - 40px));margin:0 auto;border-top:1px solid #211c28;padding:20px 0 34px;display:flex;justify-content:space-between;gap:20px;color:#716977;font-size:11px}.hidden{display:none!important}@media(max-width:1100px){.workspace{grid-template-columns:1fr}.sticky{position:static}.right-column{order:-1}.results-panel{display:grid;grid-template-columns:1fr 1fr;gap:12px}.results-panel>.panel-heading,.results-panel>.performance-grid,.results-panel>.meter-list,.results-panel>.download-button,.results-panel>.download-note{grid-column:1/-1}.behavior-card,.comparison-card,.code-card,.validation-details{margin-top:0}.code-card{grid-column:1/-1}}@media(max-width:760px){.topbar{height:auto;padding:12px 16px;align-items:flex-start;gap:12px}.top-actions{flex-wrap:wrap;justify-content:flex-end}.ghost-button{font-size:10px;padding:8px}.page-shell{width:min(100% - 24px,1540px);padding-top:40px}.hero h1{font-size:44px}.guided-grid,.form-grid,.choice-cards,.performance-grid,.advanced-grid{grid-template-columns:1fr}.wide{grid-column:auto}.main-actions{flex-direction:column}.secondary-button{min-height:46px}.results-panel{display:block}.panel{border-radius:18px}.vehicle-picker-panel,.setup-panel,.results-panel{padding:18px}.footer{width:calc(100% - 24px);flex-direction:column}.selected-vehicle{align-items:flex-start}.profile-badge{display:none}}

.specs-grid small.source-estimated{color:#ffbf69}.specs-grid small.source-missing{color:#8f8797}.source-summary{border:1px solid #2a2433;background:#0c0b10;border-radius:14px;padding:12px 14px;margin-top:12px}.source-summary strong{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#bdb3c5;margin-bottom:8px}.source-summary .source-summary-row{display:flex;flex-wrap:wrap;gap:7px}.source-summary .source-chip{border:1px solid #30293b;background:#121018;border-radius:999px;padding:6px 9px;font-size:10px;color:#a99fb0}.source-summary .source-chip.api{color:#74d89f;border-color:rgba(96,211,148,.28);background:rgba(96,211,148,.06)}.source-summary .source-chip.user{color:#d0a7fb;border-color:rgba(201,155,245,.28);background:rgba(201,155,245,.06)}.source-summary .source-chip.estimated{color:#ffc477;border-color:rgba(255,180,84,.28);background:rgba(255,180,84,.06)}.source-summary p{margin:9px 0 0;color:#857b8d;font-size:10px;line-height:1.45}
/* V1.8 — années paginées dans la recherche intelligente */
.search-result-main{min-width:0;flex:1}
.search-result-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.search-result-meta{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:5px;flex:0 0 auto}
.search-result .search-result-meta span{margin-top:0}
.search-year{display:inline-flex!important;align-items:center;justify-content:center;padding:4px 7px;border-radius:999px;border:1px solid rgba(139,92,246,.34);background:rgba(139,92,246,.10);color:#d1c2ff!important;font-size:10px!important;font-weight:800;white-space:nowrap}
.search-year.unknown{border-color:#302a3b;background:rgba(255,255,255,.025);color:#756d7e!important;font-weight:650}
.search-result-id{color:#746c7b!important;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px!important;white-space:nowrap}
@media(max-width:620px){.search-result{align-items:flex-start}.search-result-meta{max-width:116px}.search-year{font-size:9px!important;padding:3px 6px}}

/* V3.2 — Conversion Safety */
.choice-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.choice-help{margin:7px 0 0;color:#81788a;font-size:11px;line-height:1.5}.recommended-pill{font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;padding:5px 8px;border-radius:999px;border:1px solid rgba(108,211,153,.25);background:rgba(108,211,153,.06);color:#7fdda7;white-space:nowrap}.safety-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.safety-summary{border:1px solid #2e2738;background:linear-gradient(135deg,rgba(139,92,246,.07),rgba(96,211,148,.035));border-radius:14px;padding:13px 14px;margin-top:12px}.safety-summary-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.safety-summary-head>div{display:flex;flex-direction:column;gap:3px}.safety-summary-head span{font-size:10px;color:#8e8498}.safety-summary-head strong{font-size:15px}.safety-risk{padding:6px 8px;border-radius:999px;border:1px solid #3a3244;background:#121018;white-space:nowrap}.safety-risk.low{color:#7fdda7;border-color:rgba(96,211,148,.25);background:rgba(96,211,148,.06)}.safety-risk.medium{color:#ffc477;border-color:rgba(255,180,84,.28);background:rgba(255,180,84,.06)}.safety-risk.high{color:#ff9caf;border-color:rgba(255,107,129,.28);background:rgba(255,107,129,.06)}.safety-summary p{margin:9px 0 0;color:#8f8598;font-size:10px;line-height:1.45}.safety-summary .safety-auto{color:#d3b8ff;font-weight:800}.safety-choice-block{padding-top:2px}
@media(max-width:760px){.safety-cards{grid-template-columns:1fr}.choice-title-row{align-items:flex-start;flex-direction:column}.safety-summary-head{align-items:flex-start;flex-direction:column}}


/* V3.4 — statut de calibration par catégorie */
.calibration-summary{border:1px solid #2d2737;background:linear-gradient(135deg,rgba(94,129,255,.07),rgba(211,108,255,.035));border-radius:14px;padding:13px 14px;margin-top:12px}.calibration-summary-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.calibration-summary-head>div{display:flex;flex-direction:column;gap:3px}.calibration-summary-head span{font-size:10px;color:#8e8498}.calibration-summary-head strong{font-size:15px}.calibration-status{padding:6px 8px;border-radius:999px;border:1px solid #3a3244;background:#121018;font-size:9px;font-weight:900;letter-spacing:.05em}.calibration-status.calibrated{color:#7fdda7;border-color:rgba(96,211,148,.25);background:rgba(96,211,148,.06)}.calibration-status.precalibrated{color:#ffc477;border-color:rgba(255,180,84,.28);background:rgba(255,180,84,.06)}.calibration-status.generic{color:#aaa1b1;border-color:#3a3244;background:#121018}.calibration-summary p{margin:8px 0 0;color:#8f8598;font-size:10px;line-height:1.45}.calibration-summary p strong{color:#bdb3c5}.calibration-summary .calibration-note{color:#d3b8ff;font-weight:750}@media(max-width:760px){.calibration-summary-head{align-items:flex-start;flex-direction:column}}
.brake-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:760px){.brake-cards{grid-template-columns:1fr}}
/* Allow the existing generator columns to shrink with long imported values. */
.left-column,.right-column,.guided-grid>label,.spec-grid>label,.panel-heading>div{min-width:0}
@media(max-width:620px){.workspace{grid-template-columns:minmax(0,1fr)}.left-column input,.left-column select{min-width:0;max-width:100%}.panel-heading{flex-wrap:wrap}.calibration-panel{scroll-margin-top:155px}}
