/* Kalpineo — identité propre (2026) : carnet d'installateur. Papier clair pointillé, encre sarcelle, soleil jaune.
   Chargée après app.css et pv.css : redéfinit les jetons et l'habillage, garde les composants. */
:root {
  --ink: #102a2b;
  --ink-2: #1c3d3e;
  --teal: #0b6e68;
  --teal-dark: #08524e;
  --turq: #0f8f86;
  --sun: #f4b43a;
  --sun-soft: #fff4dc;
  --leaf: #7fb23a;
  --green: #9bc53d;
  --bg: #f5f4ef;
  --paper-dot: #e4e2d8;
  --card: #ffffff;
  --text: #13292a;
  --muted: #5f7171;
  --line: #e2e3dc;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(16, 42, 43, .04), 0 6px 22px -12px rgba(16, 42, 43, .22);
  --side-w: 236px;
}
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500; letter-spacing: -.005em;
}
h1, h2, h3 { letter-spacing: -.02em; }
h1 { font-size: 1.75rem; font-weight: 800; color: var(--ink); }
h2 { font-size: 1.02rem; font-weight: 800; color: var(--ink); }
a { color: var(--teal); }

/* ---------- habillage : menu latéral ---------- */
body.shell { display: flex; min-height: 100vh; background-color: var(--bg);
  background-image: radial-gradient(var(--paper-dot) 1px, transparent 1.2px); background-size: 22px 22px; }
.side { position: sticky; top: 0; height: 100vh; flex: none; width: var(--side-w); overflow-y: auto; background: var(--ink); color: #dfeeee; display: flex; flex-direction: column;
  padding: 18px 14px 14px; z-index: 900; }
.side-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 2px 6px 14px; }
.side-brand b { display: block; font-size: 1.22rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.side-brand small { display: block; font-size: .68rem; color: #9fc0bf; font-weight: 600; margin-top: 3px; }
.side-company { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 8px 10px; margin-bottom: 16px; }
.side-logo { width: 30px; height: 30px; border-radius: 8px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.side-logo img { max-width: 26px; max-height: 26px; }
.side-initial { width: 30px; height: 30px; border-radius: 8px; background: var(--sun); color: var(--ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.side-company-name { font-size: .82rem; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-nav a { display: flex; align-items: center; gap: 11px; color: #c9dddd; text-decoration: none; padding: 9px 10px; border-radius: 10px; font-weight: 600; font-size: .93rem; position: relative; }
.side-nav a .ico { width: 18px; height: 18px; opacity: .85; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.side-nav a.active::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--sun); }
.side-nav a.active .ico { color: var(--sun); opacity: 1; }
.side-sep { margin: 16px 10px 4px; font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: #7fa3a2; font-weight: 700; }
.side-foot { display: flex; flex-direction: column; gap: 10px; }
.side-mega { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--sun); color: var(--ink); border: 0; border-radius: 12px;
  padding: 10px 12px; font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; }
.side-mega .ico { width: 18px; height: 18px; }
.side-mega:hover { filter: brightness(1.05); }
.side-user { display: flex; align-items: center; gap: 6px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
.side-user a { flex: 1; display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 600; font-size: .86rem; min-width: 0; padding: 4px; border-radius: 10px; }
.side-user a:hover, .side-user a.active { background: rgba(255,255,255,.06); }
.side-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .avatar { background: var(--sun); color: var(--ink); flex: none; }
.side-logout { background: none; border: 0; color: #9fc0bf; cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.side-logout:hover { color: #fff; background: rgba(255,255,255,.08); }
.shell-main { flex: 1; min-width: 0; }
.shell .container { max-width: 1240px; padding: 26px 28px 80px; }
.mtop { display: none; }
.side-backdrop { display: none; }
.hv-bar { background: var(--sun-soft); border-bottom: 1px solid #f1d79a; color: #5b4300; padding: 9px 28px; font-size: .86rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hv-bar .ico { width: 16px; height: 16px; }
.hv-bar a { font-weight: 800; color: #5b4300; }
@media (max-width: 900px) {
  .side { position: fixed; inset: 0 auto 0 0; height: auto; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  body.side-open .side { transform: none; }
  body.side-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(16,42,43,.4); z-index: 850; }
  .shell-main { margin-left: 0; }
  .mtop { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 800; background: var(--ink); color: #fff; padding: 10px 16px; }
  .mtop-menu { background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; }
  .mtop-brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; }
  .shell .container { padding: 18px 16px 80px; }
  .hv-bar { padding: 9px 16px; }
}

/* ---------- composants ---------- */
.card { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn { border-radius: 10px; font-weight: 700; border-color: var(--line); color: var(--ink-2); }
.btn:hover { border-color: var(--teal); color: var(--teal); }
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn-sun:hover { filter: brightness(1.04); color: var(--ink); border-color: var(--sun); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn .ico { width: 16px; height: 16px; }
input, select, textarea { border-radius: 10px; border-color: #d9dbd3; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(15,143,134,.18); border-color: var(--turq); }
.page-head h1 { font-size: 1.85rem; }
.subtitle { color: var(--muted); }
.badge-teal { background: #dcefed; color: var(--teal-dark); }
.badge-sun { background: var(--sun-soft); color: #7a5600; }
.subtabs { border-bottom-color: var(--line); }
.table thead th { color: #6b7b7a; }
.flash { border-radius: 12px; }
.kpi { border-radius: var(--radius); }
.eyebrow { color: var(--teal); }

/* ---------- mégaphone ---------- */
.mega-fab { position: fixed; right: 22px; bottom: 22px; z-index: 700; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--sun); color: var(--ink);
  box-shadow: 0 8px 24px -6px rgba(16,42,43,.45); cursor: pointer; display: grid; place-items: center; }
.mega-fab .ico { width: 24px; height: 24px; }
.mega-fab:hover { transform: translateY(-1px) rotate(-6deg); }
body.shell .mega-fab { display: none; }
@media (max-width: 900px) { body.shell .mega-fab { display: grid; } }
body.full .mega-fab { right: auto; left: 14px; bottom: 14px; width: 44px; height: 44px; }
.mega { width: min(560px, calc(100vw - 32px)); }
.mega h2 { display: flex; align-items: center; gap: 8px; }
.mega h2 .ico { width: 20px; height: 20px; color: var(--teal); }
.mega-kinds { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.mega-kinds label { cursor: pointer; }
.mega-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.mega-kinds span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: .85rem; background: #fff; }
.mega-kinds input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.mega-kinds input:focus-visible + span { outline: 3px solid rgba(15,143,134,.3); }
.mega-label, .mega-file { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 10px; }
.mega-label textarea, .mega-file input { margin-top: 4px; }
.mega-msg { min-height: 1.2em; color: var(--teal); font-weight: 600; }
.mega-done { text-align: center; padding: 24px; }
.mega-big { font-size: 1.6rem; font-weight: 800; margin: 0 0 6px; }

/* ---------- accueil ---------- */
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hello h1 { margin: 0; font-size: 2rem; }
.hello p { margin: 4px 0 0; color: var(--muted); }
.quick { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 18px; }
.quick-new { background: var(--ink); color: #e9f3f2; border-radius: 18px; padding: 22px 24px; position: relative; overflow: hidden; }
.quick-new h2 { color: #fff; font-size: 1.25rem; margin-bottom: 4px; }
.quick-new p { margin: 0 0 16px; color: #a9c6c5; max-width: 34ch; }
.quick-new::after { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--sun) 0 34%, rgba(244,180,58,.25) 35% 52%, transparent 53%); }
.quick-search { display: flex; gap: 8px; }
.quick-search input { background: rgba(255,255,255,.95); }
.quick-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qs { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.qs span { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); }
.qs b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; }
.qs small { color: var(--muted); font-weight: 600; }
.qs.sun { background: var(--sun-soft); border-color: #f3dfae; }
.home-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--text); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px; transition: transform .12s ease, border-color .12s ease; }
.pcard:hover { transform: translateY(-2px); border-color: #c5d8d6; }
.pcard-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.pcard-top strong { font-size: 1rem; color: var(--ink); line-height: 1.25; }
.pcard-city { font-size: .8rem; color: var(--muted); }
.pcard-kwc { font-size: 1.35rem; font-weight: 800; color: var(--teal); letter-spacing: -.02em; }
.pcard-kwc small { font-size: .75rem; color: var(--muted); font-weight: 700; }
.pcard-steps { display: flex; gap: 4px; }
.pcard-steps i { flex: 1; height: 5px; border-radius: 3px; background: #e8e9e2; }
.pcard-steps i.on { background: var(--turq); }
.pcard-steps i.sun { background: var(--sun); }
.pcard-foot { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); font-weight: 600; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.feed li:last-child { border-bottom: 0; }
.feed .dot { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #e3f1ef; color: var(--teal); display: grid; place-items: center; }
.feed .dot.sun { background: var(--sun-soft); color: #9a6a00; }
.feed .dot .ico { width: 15px; height: 15px; }
.feed time { display: block; color: var(--muted); font-size: .76rem; }
.empty-hint { color: var(--muted); font-size: .88rem; }
@media (max-width: 1000px) { .quick, .home-grid { grid-template-columns: 1fr; } }

/* ---------- projets (liste) ---------- */
.plist-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.plist-head form { flex: 1 1 320px; display: flex; gap: 8px; }
.step-dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.step-dots i { width: 18px; height: 5px; border-radius: 3px; background: #e5e6df; }
.step-dots i.on { background: var(--turq); }
.step-dots i.sun { background: var(--sun); }

/* ---------- projet : parcours ---------- */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.journey a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; text-decoration: none; color: var(--text); border-right: 1px solid var(--line); }
.journey a:last-child { border-right: 0; }
.journey a:hover { background: #fafaf6; }
.journey .n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: #eeefe8; color: var(--muted); }
.journey .done .n { background: var(--turq); color: #fff; }
.journey .sun .n { background: var(--sun); color: var(--ink); }
.journey b { display: block; font-size: .88rem; }
.journey small { display: block; font-size: .74rem; color: var(--muted); }
@media (max-width: 760px) { .journey { grid-template-columns: 1fr 1fr; } .journey a:nth-child(2) { border-right: 0; } .journey a:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- lien client ---------- */
.share-card { border: 1px solid #f0dca8; background: linear-gradient(180deg, #fffaf0, #fff); }
.share-card h2 { display: flex; align-items: center; gap: 8px; }
.share-card h2 .ico { color: #b07c00; }
.share-studies { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 10px; }
.share-studies label { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: .88rem; margin: 0; }
.share-studies input { width: auto; }
.share-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 10px; background: #fff; }
.share-row.off { opacity: .6; }
.share-url { display: flex; gap: 6px; margin: 6px 0; }
.share-url input { font-size: .8rem; background: #f7f7f2; }
.share-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); font-weight: 600; }
.share-meta .hot { color: #8a5d00; background: var(--sun-soft); padding: 1px 8px; border-radius: 999px; }

/* ---------- hypervision ---------- */
.adm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.adm-table td small { display: block; color: var(--muted); }
.adm-new { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.adm-new label { margin: 0 !important; }
.created-box { background: var(--sun-soft); border: 1px solid #f1d79a; border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.created-box code { font-size: 1rem; background: #fff; padding: 2px 8px; }
.fb-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.fb-item.done { opacity: .65; }
.fb-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.fb-msg { white-space: pre-wrap; margin: 0 0 8px; }
.fb-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fb-form select { width: auto; }
.fb-form input { flex: 1 1 240px; width: auto; }
.fb-note { background: #f2f7f6; border-radius: 10px; padding: 8px 10px; font-size: .86rem; margin-top: 6px; }
@media (max-width: 900px) { .adm-kpis { grid-template-columns: 1fr 1fr; } .adm-new { grid-template-columns: 1fr; } }

/* ---------- connexion ---------- */
body.auth-split { display: grid; grid-template-columns: minmax(320px, 0.9fr) 1.1fr; min-height: 100vh; background: var(--bg); }
.auth-side { background: var(--ink); color: #dcebea; display: flex; align-items: center; padding: 48px; position: relative; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; right: -90px; bottom: -90px; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0 30%, rgba(244,180,58,.22) 31% 50%, transparent 51%); }
.auth-side-in { position: relative; z-index: 1; max-width: 420px; }
.auth-side h2 { color: #fff; font-size: 2.2rem; margin: 14px 0 6px; }
.auth-side p { font-size: 1.05rem; color: #b9d3d2; }
.auth-side ul { padding-left: 18px; color: #dcebea; line-height: 1.9; }
.auth-side small { color: #8fb1b0; }
.auth-split .auth-wrap { min-height: 100vh; }
.auth-split .auth-card { border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 860px) { body.auth-split { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- paramètres : logo ---------- */
.logo-card { display: flex; gap: 18px; align-items: center; }
.logo-prev { width: 150px; height: 90px; flex: none; overflow: hidden; border: 1px dashed #cfd3c8; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #fff; padding: 8px; box-sizing: border-box; }
.logo-prev img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.logo-prev span { color: var(--muted); font-size: .85rem; }
.logo-card h2 { margin-bottom: 2px; }
.logo-card label.btn { cursor: pointer; }
body.auth-split { place-items: stretch; }
.auth-split .auth-wrap { display: grid; place-items: center; }
.auth-split .auth-card { width: 100%; }
.adm-new .check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.adm-new .check input { width: auto; margin: 0; }
.table-wrap > h2 { padding: 4px 4px 8px; }
.mt-6 { margin-top: 6px !important; }
.mb-10 { margin-bottom: 10px; }
.self-end { align-self: end; }
.adm-full { grid-column: 1 / -1; }

/* ---------- pré-étude express */
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.35); color: #e9f3f2; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.express .card { margin-bottom: 14px; }
.express h2 { display: flex; align-items: center; gap: 10px; }
.xp-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--sun); color: var(--ink); font-size: .85rem; font-weight: 800; }
.express .chips { gap: 8px; margin-bottom: 10px; }
.express .chip span { padding: 8px 14px; font-size: .88rem; border-radius: 999px; color: var(--text); }
.express .chip input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.seg-radio { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; align-self: flex-end; }
.seg-radio label { margin: 0 !important; cursor: pointer; }
.seg-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-radio span { display: block; padding: 9px 16px; font-weight: 700; color: var(--muted); }
.seg-radio input:checked + span { background: var(--teal); color: #fff; }
.seg-radio input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: -2px; }
.unit-in { display: flex; align-items: center; gap: 6px; }
.unit-in input { flex: 1; min-width: 0; }
.unit-in span { color: var(--muted); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.xp-auto { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.xp-scale span { padding: 9px 15px; }
.xp-map .geo-map { min-height: 300px; }
.xp-ev[hidden] { display: none; }
.xp-ev { max-width: 680px; }
.xp-go { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 40px; }

/* ---------- demandes du simulateur (accueil) */
.leads { margin-bottom: 18px; border-left: 4px solid var(--sun); }
.leads h2 { display: flex; align-items: center; gap: 8px; }
.lead-list { list-style: none; margin: 0; padding: 0; }
.lead-list li { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.lead-list li:first-child { border-top: 0; }
.lead-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* ---------- offres types (paramètres) */
.offer-grid { display: grid; gap: 6px; max-width: 460px; margin: 10px 0 16px; }
.offer-head, .offer-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.offer-head span { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.embed-box { background: var(--sun-soft); border-radius: 12px; padding: 12px 14px; margin: 10px 0 14px; }
.embed-box p { margin: 8px 0 0; }

/* ---------- pré-étude : déroulé dans le dimensionnement */
.xp-run { position: absolute; inset: 0; z-index: 900; background: rgba(16,42,43,.45); display: grid; place-items: center; padding: 16px; }
.xp-run[hidden] { display: none; }
.xp-box { background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.35); padding: 22px 24px; width: min(560px, 100%); max-height: calc(100% - 20px); overflow: auto; }
.xp-box h2 { margin: 0 0 12px; font-size: 1.2rem; }
.xp-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.xp-steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-weight: 600; }
.xp-steps li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; }
.xp-steps li.run { color: var(--ink); }
.xp-steps li.run::before { border-color: var(--sun); border-top-color: transparent; animation: xpspin .8s linear infinite; }
.xp-steps li.ok { color: var(--ink); }
.xp-steps li.ok::before { background: var(--teal); border-color: var(--teal); box-shadow: inset 0 0 0 3px #fff; }
.xp-steps li.ko::before { background: #c0392b; border-color: #c0392b; }
@keyframes xpspin { to { transform: rotate(360deg); } }
.xp-msg { font-size: .9rem; margin: 6px 0 12px; }
.xp-offers { display: grid; gap: 8px; margin: 10px 0 14px; }
.xp-offer { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.xp-offer.rec { border-color: var(--sun); background: var(--sun-soft); }
.xp-offer b { font-size: 1rem; }
.xp-offer small { color: var(--muted); grid-column: 1 / -1; }
.xp-link { display: flex; gap: 6px; margin-bottom: 12px; }
.xp-link input { flex: 1; min-width: 0; }
.sz-toast.xp-bar { top: 112px; bottom: auto; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: default; }
.xp-eq { display: grid; gap: 10px; }
.xp-eq-g { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: start; }
.xp-eq-t { font-size: .8rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-top: 9px; }
.xp-eq .chips { margin-bottom: 0; }
@media (max-width: 640px) { .xp-eq-g { grid-template-columns: 1fr; gap: 4px; } .xp-eq-t { padding-top: 0; } }
.xp-box.wide { width: min(980px, 100%); }
.xp-filt { margin: 4px 0 8px; display: inline-flex; }
.xp-table-wrap { overflow-x: auto; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; }
.xp-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.xp-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px; background: #f7f7f3; white-space: nowrap; }
.xp-table td { padding: 8px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
.xp-table tbody tr { cursor: pointer; }
.xp-table tbody tr:hover { background: #fafaf6; }
.xp-table tr.rec { background: var(--sun-soft); }
.xp-table tr[hidden] { display: none; }
.xp-table td small { color: var(--teal); font-weight: 700; }
.xp-table td small.d { display: block; color: var(--muted); font-weight: 500; }
.xp-table td.pb { font-weight: 800; color: var(--teal); }
.xp-table input { width: 18px; height: 18px; accent-color: var(--teal); }
.kit-wrap { overflow-x: auto; margin: 10px 0 6px; }
.kit-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.kit-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 4px 6px; }
.kit-table th small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.kit-table td { padding: 4px 6px; vertical-align: middle; }
.kit-table td input, .kit-table td select { width: 100%; }
.kit-table .set-input { display: flex; align-items: center; gap: 4px; }
.kit-table .kit-qty { width: 56px; }
.kit-table td.c { text-align: center; }
.kit-table td.c input { width: 18px; height: 18px; accent-color: var(--teal); }
.xp-box.wide .xp-steps { display: none; }
.kit-table select { min-width: 170px; } .kit-table td:nth-child(2) input { min-width: 150px; }
.kit-table td.kit-total { font-weight: 800; white-space: nowrap; } .kit-table select.kit-qty { min-width: 90px; width: 90px; }
.kit-table td:nth-child(5) input { min-width: 96px; } .kit-table select.kit-qty { min-width: 104px; width: 104px; } .kit-table td:nth-child(1) input { min-width: 56px; }
.xp-custom { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; background: #f7f7f3; border: 1px dashed #cfd6d2; border-radius: 12px; padding: 10px 12px; margin: 0 0 14px; }
.xp-custom > b { flex-basis: 100%; font-size: .85rem; }
.xp-custom label { font-size: .78rem; font-weight: 700; margin: 0; }
.xp-custom label input, .xp-custom label select { margin-top: 3px; }
.xp-custom label:nth-of-type(1) input { width: 70px; }
.xp-custom label:nth-of-type(3) input { width: 100px; }
.xp-custom .grow { flex: 1 1 140px; }
.xp-cact { display: flex; gap: 6px; }
.xp-cmsg { flex-basis: 100%; }
.xp-cmsg:empty { display: none; }
.xp-table tr.custom td:nth-child(2) b { color: var(--teal); }
.xp-custom select { width: auto; min-width: 90px; }
.xp-more { margin: -6px 0 14px; }

/* listes longues : recherche + défilement, en-têtes collés */
.list-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
.list-tools input[type=search] { flex: 1 1 260px; max-width: 420px; }
.list-tools .check { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.scroll-list { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.scroll-list.tall { max-height: min(620px, 70vh); }
.scroll-list table { margin: 0; }
.scroll-list thead th { position: sticky; top: 0; z-index: 2; background: #f7f7f3; }
.scroll-list tr[hidden] { display: none; }
.table-wrap > .list-tools { padding: 12px 14px 0; } .table-wrap > .scroll-list { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.tag-ref { background: #e6f3f2; color: var(--teal); }

/* ---------- version et notes de version */
.side-version { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #7fa3a2; text-decoration: none;
  font-size: .72rem; font-weight: 600; padding: 2px 4px; border-radius: 8px; }
.side-version:hover, .side-version.active { color: #fff; }
.side-version span { color: #9fc0bf; }
.side-version .side-new { background: var(--sun); color: var(--ink); border-radius: 999px; padding: 1px 8px; font-weight: 800; font-size: .66rem; }
.cl-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.cl-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-ver { font-weight: 800; color: var(--teal, #1f5e5b); font-size: .85rem; }
.cl-item h2 { margin: 6px 0 8px; font-size: 1.08rem; }
.cl-item ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.cl-item li { line-height: 1.45; }

/* ---------- logo Kalpineo */
.side-brand { flex-direction: column; align-items: flex-start; gap: 4px; }
.side-brand .side-wordmark { width: 170px; height: auto; display: block; }
.side-brand small { margin-top: 0; padding-left: 2px; }
.mtop-brand img { height: 24px; width: auto; display: block; }
.auth-wordmark { margin: 0 0 14px; }
.auth-wordmark img { width: 260px; max-width: 100%; height: auto; display: block; }
.auth-brand .auth-logo { width: 190px; height: auto; display: block; margin-bottom: 4px; }
