/* Soleillon – le parcours express (express.js) : une interface à part, épurée ; ses couleurs propres, claires et sombres. */
#xp {
  /* les valeurs du système commun (tokens.css) */
  --x-bg: var(--c-bg); --x-solid: var(--c-surface); --x-fill: var(--c-fill); --x-fill2: var(--c-fill-2); --x-sep: var(--c-line);
  --x-label: var(--c-text); --x-label2: var(--c-text-2); --x-label3: var(--c-text-3); --x-accent: var(--u-accent, var(--c-accent)); --x-warn: var(--c-warn);
  --x-good: var(--c-good); --x-prod: var(--c-sun); --x-cons: var(--c-home); --x-font: var(--f-text); --x-display: var(--f-display);
  position: fixed; inset: 0; z-index: 72; display: flex; flex-direction: column; background: var(--x-bg); color: var(--x-label); font: 400 15px/1.45 var(--x-font);
  -webkit-font-smoothing: antialiased;
}
#xp *, #xp *::before, #xp *::after { box-sizing: border-box; }
#xp [hidden] { display: none !important; }

/* l'en-tête : la marque à gauche, l'accueil à droite */
#xp .xp-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 20px 10px;
  background: color-mix(in srgb, var(--x-bg) 80%, transparent); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid var(--x-sep); }
#xp .xp-brand { display: flex; align-items: center; gap: 8px; font: 600 17px/1 var(--x-display); letter-spacing: -.01em; }
#xp .xp-top nav { display: flex; align-items: center; gap: 6px; }
#xp .xp-ghost, #xp .xq-link { padding: 8px 12px; border: 0; background: none; color: var(--x-accent); font: 500 15px/1 var(--x-font); cursor: pointer; }
#xp .xp-pill { padding: 8px 16px; border: 0; border-radius: 999px; background: var(--x-fill); color: var(--x-label); font: 500 15px/1 var(--x-font); cursor: pointer; }
#xp .xp-pill:hover { background: var(--x-fill2); }
#xp .xp-main { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom); }
#xp button:focus-visible, #xp input:focus-visible { outline: 3px solid color-mix(in srgb, var(--x-accent) 45%, transparent); outline-offset: 2px; }

/* les questions : une par écran, au centre */
#xp .xq { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px 56px; text-align: center; }
#xp .xq.in > * { animation: xq-in .45s cubic-bezier(.2,.8,.2,1) both; }
#xp .xq.in > .xq-b { animation-delay: .06s; } #xp .xq.in > .xq-f { animation-delay: .1s; }
@keyframes xq-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#xp .xq.shake .xq-num { animation: xq-shake .35s; }
@keyframes xq-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
/* « ‹ Revenir » : l'écran d'avant, en haut à gauche de chaque question */
#xp .xq { position: relative; }
#xp .xq-back { position: absolute; top: 14px; left: 14px; padding: 8px 12px; border: 0; border-radius: 999px; background: none; color: var(--x-accent); font: 500 15px/1 var(--x-font); cursor: pointer; }
#xp .xq-back:hover { background: var(--x-fill2); }
#xp .xq-back[hidden] { display: none; }
#xp .xq-num-of { margin: 0 0 8px; font: 500 14px/1.2 var(--x-font); color: var(--x-label2); }
#xp .xq-bar { display: flex; gap: 4px; width: min(220px, 60%); margin-bottom: 36px; }
#xp .xq-bar i { flex: 1; height: 4px; border-radius: 2px; background: var(--x-fill2); transition: background .3s; }
#xp .xq-bar i.on { background: var(--x-accent); }
#xp .xq-t { margin: 0; max-width: 640px; font: 700 clamp(30px, 4.4vw, 44px)/1.08 var(--x-display); letter-spacing: -.025em; }
#xp .xq-s { margin: 12px 0 0; max-width: 540px; font: 400 19px/1.4 var(--x-font); color: var(--x-label2); }
#xp .xq-b { display: grid; gap: 10px; width: 100%; max-width: 540px; margin-top: 36px; }
#xp .xq-f { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; max-width: 360px; margin-top: 22px; }
#xp .xq-f:empty { display: none; }
#xp .xq-tile { display: grid; gap: 2px; padding: 18px 20px; border: 0; border-radius: 16px; background: var(--x-solid); box-shadow: 0 0 0 1px var(--x-sep); color: var(--x-label); text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
#xp .xq-tile .l { font: 600 18px/1.2 var(--x-font); }
#xp .xq-tile .d { font: 400 14px/1.3 var(--x-font); color: var(--x-label2); }
#xp .xq-tile:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--x-accent) 45%, transparent), 0 6px 18px rgba(0,0,0,.08); }
#xp .xq-tile.on { box-shadow: 0 0 0 2px var(--x-accent); }
#xp .xq-grid { display: flex; flex-wrap: wrap; justify-content: center; }
#xp .xq-grid .xq-tile { flex: 0 1 160px; min-height: 124px; align-content: center; justify-items: center; gap: 4px; padding: 18px 12px; text-align: center; }
#xp .xq-grid .xq-tile .ic { width: 28px; height: 28px; margin-bottom: 6px; color: var(--x-accent); }
#xp .xq-list .xq-tile { position: relative; padding: 18px 46px 18px 22px; }
#xp .xq-list .xq-tile::after { content: "›"; position: absolute; right: 20px; top: 50%; transform: translateY(-52%); font: 400 26px/1 var(--x-font); color: var(--x-label3); }
/* la consommation : un grand nombre */
#xp .xq-kwh { justify-items: center; }
#xp .xq-num { display: flex; align-items: baseline; justify-content: center; gap: 10px; width: 100%; padding: 6px 0 12px; border-bottom: 2px solid var(--x-sep); }
#xp .xq-num:focus-within { border-color: var(--x-accent); }
#xp .xq-num input { width: 6.5ch; border: 0; background: none; color: var(--x-label); font: 700 clamp(46px, 7vw, 68px)/1 var(--x-display); letter-spacing: -.02em; text-align: right; outline: none; -moz-appearance: textfield; }
#xp .xq-num input::-webkit-outer-spin-button, #xp .xq-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#xp .xq-num input::placeholder { color: var(--x-label3); }
#xp .xq-num span { font: 500 18px/1 var(--x-font); color: var(--x-label2); }
#xp .xq-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
#xp .xq-chip { padding: 8px 14px; border: 0; border-radius: 999px; background: var(--x-fill); color: var(--x-label); font: 500 14px/1 var(--x-font); cursor: pointer; }
#xp .xq-chip:hover { background: var(--x-fill2); }
/* la silhouette relevée (la question du plan) */
#xp .xq-plan { justify-items: center; }
#xp .xq-silbox { display: grid; justify-items: center; gap: 10px; }
#xp .xq-sil { width: min(300px, 70vw); height: 220px; overflow: visible; }
#xp .xq-sil polygon { fill: color-mix(in srgb, var(--x-accent) 14%, transparent); stroke: var(--x-accent); stroke-width: 2; stroke-linejoin: round; }
#xp .xq-silbox span { font: 400 13px/1.3 var(--x-font); color: var(--x-label2); }
#xp .xq-spin { justify-self: center; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--x-fill2); border-top-color: var(--x-accent); animation: xq-turn .9s linear infinite; }
@keyframes xq-turn { to { transform: rotate(360deg); } }
#xp .xp-cta { width: 100%; max-width: 360px; padding: 15px 22px; border: 0; border-radius: 999px; background: var(--x-accent); color: #fff; font: 600 17px/1 var(--x-font); cursor: pointer; transition: filter .15s, opacity .15s; }
#xp .xp-cta:hover { filter: brightness(1.08); }
#xp .xp-cta:disabled { opacity: .35; cursor: default; filter: none; }

/* Maison, par-dessus la page */
.xp-maison { position: fixed; inset: 0; z-index: 2600; background: var(--c-bg); }
.xp-auto { position: fixed; left: -10000px; top: 0; width: 1280px; height: 800px; border: 0; visibility: hidden; pointer-events: none; }
.xp-maison iframe { width: 100%; height: 100%; border: 0; display: block; }
#xp .xp-lead { margin: 8px 0 18px; max-width: 680px; font: 400 17px/1.45 var(--x-font); color: var(--x-label2); }
#xp .xp-chart { padding: 18px 18px 8px; border-radius: 20px; background: var(--x-solid); box-shadow: 0 0 0 1px var(--x-sep); }
#xp .xp-chart svg { display: block; width: 100%; height: auto; }
#xp .xp-chart .p { fill: var(--x-prod); } #xp .xp-chart .c { fill: var(--x-cons); }
#xp .xp-chart text { fill: var(--x-label2); font: 500 11px var(--x-font); }
#xp .xp-legend { display: flex; align-items: center; gap: 8px; margin: 12px 0 14px; font-size: 14px; color: var(--x-label2); }
#xp .xp-legend i { width: 10px; height: 10px; border-radius: 3px; } #xp .xp-legend i.p { background: var(--x-prod); } #xp .xp-legend i.c { margin-left: 12px; background: var(--x-cons); }
#xp .xp-table { overflow-x: auto; border-radius: 20px; background: var(--x-solid); box-shadow: 0 0 0 1px var(--x-sep); }
#xp .xp-table table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
#xp .xp-table th, #xp .xp-table td { padding: 11px 16px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--x-sep); }
#xp .xp-table th:first-child, #xp .xp-table tbody th { text-align: left; font-weight: 500; }
#xp .xp-table thead th { font: 600 12px/1 var(--x-font); text-transform: uppercase; letter-spacing: .05em; color: var(--x-label2); }
#xp .xp-table tfoot th, #xp .xp-table tfoot td { font-weight: 700; border-bottom: 0; }
#xp .xp-table tbody tr:last-child th, #xp .xp-table tbody tr:last-child td { border-bottom: 2px solid var(--x-sep); }
#xp .xp-mat th { text-align: left; font-weight: 500; white-space: normal; } #xp .xp-mat td.q { width: 1%; color: var(--x-label2); }
/* les images sur fond blanc (le diagramme des masques, dessiné en clair) ; les graphiques dessinés en SVG (.yc) suivent le thème */
#xp figure:not(.yc) { margin: 0; padding: 18px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--x-sep); }
#xp figure img { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 auto; }
#xp figure:not(.yc) figcaption { margin-top: 12px; font-size: 14px; line-height: 1.45; color: #555; }
/* semaine par semaine, jour par jour : le dessin est réduit dans la case, ses textes agrandis d'autant */
#xp .yc { color: var(--x-label); }
#xp .yc-svg .ax { font-size: 17px; }
#xp .yc figcaption { font-size: 13.5px; line-height: 1.45; color: var(--x-label2); }
#xp .yc-k { font-size: 13px; }
#xp .xp-svg { overflow-x: auto; padding: 16px; border-radius: 20px; background: var(--x-solid); box-shadow: 0 0 0 1px var(--x-sep); }
#xp .xp-svg svg { display: block; width: 100%; min-width: 560px; max-width: 780px; height: auto; margin: 0 auto; }
#xp .xp-verdict { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 15px; }
#xp .xp-verdict i { width: 10px; height: 10px; border-radius: 50%; background: var(--x-warn); } #xp .xp-verdict.ok i { background: var(--x-good); }
#xp .xp-checks { margin: var(--s-2) 0 0; padding-left: 20px; font-size: 14px; line-height: 1.45; color: var(--x-label2); }
#xp .xp-checks b { color: var(--x-label); font-weight: 600; }
@media (max-width: 680px) {
    #xp .pv-live-facts { grid-template-columns: 1fr 1fr; }
  #xp .xp-table th, #xp .xp-table td { padding: 9px 10px; font-size: 14px; }
  #xp .xp-top { padding-inline: 14px; }
}
/* la maison au soleil (vignette.js) : la maquette, dans son volet */
#xp .xp-scene { overflow: hidden; }
#xp .xp-scene-wait { display: grid; place-items: center; gap: 14px; height: 420px; color: var(--c-text-2); font: 400 var(--t-small)/1.4 var(--f-text); text-align: center; background: radial-gradient(ellipse at 50% 60%, var(--c-fill), transparent 70%); border-radius: var(--r-2); }
#xp .xp-scene-wait i, #xp .vg-busy i { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--c-fill-2); border-top-color: var(--c-sun); animation: vg-spin .9s linear infinite; }
@keyframes vg-spin { to { transform: rotate(360deg); } }
#xp .vg-stage { position: relative; }
#xp .vg-cv { display: block; width: 100%; height: 440px; cursor: grab; touch-action: none; }
#xp .vg-cv:active { cursor: grabbing; }
#xp .vg-busy { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--c-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--sh-1); font: 500 13px/1 var(--f-text); color: var(--c-text-2); }
#xp .vg-busy i { width: 14px; height: 14px; border-width: 2px; }
#xp .vg-n { position: absolute; right: 8px; top: 8px; display: grid; justify-items: center; gap: 2px; font: 700 11px/1 var(--f-text); color: var(--c-text-2); pointer-events: none; }
#xp .vg-n i { width: 0; height: 0; border: 6px solid transparent; border-bottom: 12px solid var(--c-bad); border-top: 0; }
#xp .vg-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: var(--s-2); }
#xp .vg-day { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; }
#xp .vg-play { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--c-fill); cursor: pointer; position: relative; }
#xp .vg-play svg { width: 18px; height: 18px; fill: var(--c-text); display: block; margin: auto; }
#xp .vg-range { flex: 1; accent-color: var(--c-sun); }
#xp .vg-clock { flex: none; min-width: 9.5em; font: 600 14px/1 var(--f-text); font-variant-numeric: tabular-nums; text-align: right; }
#xp .vg-legend { display: flex; align-items: center; gap: 10px; margin-top: var(--s-3); font: 400 12px/1.2 var(--f-text); color: var(--c-text-2); font-variant-numeric: tabular-nums; }
#xp .vg-legend > i { flex: 1; max-width: 280px; height: 8px; border-radius: 4px; }
#xp .vg-key { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; }
#xp .vg-key b { width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--c-line); }
#xp .vg-key b.sun { background: #f4f2ec; } #xp .vg-key b.shadow { background: #8e94a6; } #xp .vg-key b.pv { background: linear-gradient(135deg, #2d4f86, #16284a); }
#xp .vg-note { margin: 6px 0 0; font: 400 13px/1.4 var(--f-text); color: var(--c-text-2); }
@media (max-width: 680px) { #xp .vg-cv { height: 320px; } #xp .xp-scene-wait { height: 300px; } #xp .xp-scene { padding-inline: var(--s-2); } }
#xp .vg-seg button { white-space: nowrap; padding: 0 14px; }

/* le verre dépoli : la page sur un fond à peine teinté ; l'en-tête flotte au-dessus du contenu qui défile, les cases
   laissent deviner le fond */
#xp { background: var(--c-backdrop), var(--x-bg); }
#xp .xp-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; background: var(--c-glass); box-shadow: inset 0 -.5px 0 var(--c-line); border-bottom: 0; }
#xp .xp-main { padding-top: 57px; }
#xp .c-card, #xp .c-stat, #xp .c-fold { background: color-mix(in srgb, var(--c-surface) 80%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px); box-shadow: inset 0 .5px 0 var(--c-glass-edge), 0 0 0 .5px var(--c-line), 0 6px 24px rgba(20,30,50,.05); }
/* la réponse : un écran. L'installation en une ligne, ses icônes à droite ; dessous, deux colonnes et deux rangées */
#xp .xp-page { max-width: 1680px; margin: 0 auto; padding: var(--s-3) 20px var(--s-4); }
#xp .xp-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); padding: var(--s-1) var(--s-1) 0; }
#xp .xp-hero.in > * { animation: xq-in .5s cubic-bezier(.2,.8,.2,1) both; }
#xp .xp-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s-4); }
#xp .xp-hero h1 { margin: 0; font: 800 clamp(30px, 2.8vw, 40px)/1 var(--x-display); letter-spacing: -.03em; }
#xp .xp-sub { margin: 0; font: 500 17px/1.3 var(--x-font); color: var(--x-label2); }
/* votre souhait, rappelé sous l'installation, à changer d'un toucher */
#xp .xp-goal { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: -4px; }
#xp .xp-goal > span { font: 600 var(--t-label)/1 var(--f-text); text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-2); }
#xp .xp-goal .c-seg button { min-height: 30px; padding: 0 14px; font-size: 13.5px; }
/* les panneaux et les batteries, à la suite du souhait */
#xp .xp-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-left: 10px; }
#xp .xp-count { display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 12px; border-radius: 999px; background: var(--c-fill); font: 500 13.5px/1 var(--x-font); }
#xp .xp-count > span { margin-right: 6px; color: var(--x-label2); }
#xp .xp-count b { min-width: 2ch; text-align: center; font: 700 15px/1 var(--x-font); font-variant-numeric: tabular-nums; }
#xp .xp-count button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--c-surface); color: var(--x-accent); font: 500 18px/1 var(--x-font); cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
#xp .xp-count button:disabled { opacity: .35; cursor: default; }
/* « Régler l'installation » : les panneaux et les batteries sont en haut */
#xp .xp-pane-regler .pv-tune { display: none; }
#xp .xp-warn { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--x-warn) 12%, transparent); }
#xp .xp-warn p { margin: 0; flex: 1 1 320px; line-height: 1.4; }
#xp .xp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#xp .xp-tool { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 10px; border: 0; border-radius: var(--r-pill); color: var(--x-label); font: 500 14px/1 var(--x-font); cursor: pointer; transition: box-shadow .15s, background .15s;
  background: color-mix(in srgb, var(--c-surface) 80%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px); box-shadow: inset 0 .5px 0 var(--c-glass-edge), 0 0 0 .5px var(--c-line), 0 2px 10px rgba(20,30,50,.05); }
#xp .xp-tool .ic { width: 22px; height: 22px; flex: none; }
#xp .xp-tool:hover { background: var(--c-surface); }
#xp .xp-tool.on { box-shadow: 0 0 0 2px var(--x-accent); }
#xp .xp-again { margin-left: var(--s-2); font-size: 14px; }
#xp .xp-tool.sm { height: 32px; padding: 0 12px 0 8px; font-size: 13px; } #xp .xp-tool.sm .ic { width: 18px; height: 18px; }
#xp .xp-cardhead { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-2); }
#xp .xp-cardhead .xp-cap { margin-bottom: 0; }
/* le schéma unifilaire : un toucher l'agrandit */
#xp .xp-zoom { display: flex; flex: 1; min-height: 0; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
#xp .xp-zoom .xp-svg { flex: 1; }
#xp .xp-pane > header p.xp-verdict { display: block; position: relative; padding-left: 16px; margin-top: 4px; font-size: var(--t-small); }
#xp .xp-pane > header p.xp-verdict::before { content: ""; position: absolute; left: 0; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--x-warn); }
#xp .xp-pane > header p.xp-verdict.ok::before { background: var(--x-good); }
/* les réglages : leurs chiffres sont déjà sous les flux */
#xp .xp-pane-regler .pv-live-facts { display: none; }
/* la maquette, en grand dans son volet */
#xp .xp-d-soleil .vg-cv { height: max(360px, calc(100vh - 330px)); }
#xp .xp-cap { margin: 0 0 4px var(--s-1); font: 600 var(--t-label)/1 var(--f-text); text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-2); }
#xp .xp-grid { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
#xp .xp-grid > * { min-width: 0; }
#xp .xp-flow { padding: var(--s-4) var(--s-4) var(--s-3); }
#xp .xp-fig .sf { max-width: 620px; margin: 0 auto; }
#xp .xp-live { padding-top: var(--s-1); }
#xp .xp-pdf > * { margin: 0; }
/* les chiffres clés, en ligne sous les flux */
#xp .xp-bento { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: var(--s-2); margin-top: var(--s-2); }
#xp .xp-bento .c-stat { gap: 4px; align-content: center; padding: 12px 14px; border-radius: var(--r-2); background: var(--c-fill); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
#xp .xp-bento .c-stat strong { font-size: clamp(19px, 1.6vw, 24px); }
#xp .xp-bento .c-stat span { font-size: 12.5px; line-height: 1.25; }
#xp .xp-bento .c-stat.big { background: color-mix(in srgb, var(--c-sun) 16%, transparent); }
#xp .xp-bento .c-stat.big strong { font-size: clamp(24px, 2.2vw, 32px); color: var(--c-sun-text); }
/* les cartes : le schéma unifilaire (et le matériel), les réglages */
#xp .xp-pane { padding: var(--s-4) var(--s-5) var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
#xp .xp-pane > header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
#xp .xp-pane > header h3 { margin: 0; font: 650 var(--t-h3)/1.2 var(--f-display); letter-spacing: -.01em; }
#xp .xp-pane > header p { margin: 2px 0 0; font: 400 var(--t-small)/1.35 var(--f-text); color: var(--c-text-2); }
#xp .xp-pane .c-seg { flex: none; }
#xp .xp-pane .xp-lead { margin: 0 0 var(--s-2); font-size: 15px; }
/* la réponse en clair : ce que coûte l'électricité, ce qui reste en hiver, la suite */
#xp .xp-answer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-top: var(--s-2); padding: 12px 16px; border-radius: var(--r-2); background: color-mix(in srgb, var(--c-sun) 12%, transparent); }
#xp .xp-answer > div { flex: 1 1 420px; min-width: 0; }
#xp .xp-answer p { margin: 0; font: 400 15px/1.4 var(--f-text); }
#xp .xp-answer p + p { margin-top: 2px; color: var(--c-text-2); }
#xp .xp-answer strong { font-weight: 650; }
#xp .xp-answer .c-btn { flex: 0 1 auto; max-width: 100%; white-space: normal; }
#xp .xq-t:focus { outline: none; }
/* l'année, mois par mois : l'hiver se voit d'un coup d'œil */
#xp .xp-pane-mois .xp-pane-body { display: flex; flex-direction: column; gap: var(--s-2); }
#xp .xp-pane-mois .xp-chart { flex: 1; min-height: 0; }
#xp .xp-pane-mois .xp-chart svg { display: block; width: 100%; height: 100%; max-height: 300px; }
#xp .xp-pane-mois .xp-legend { margin: 0; }
#xp .xp-chart .win { fill: color-mix(in srgb, var(--c-cold) 10%, transparent); }
#xp .xp-answer { flex: none; }
/* le câblage et le matériel, dans leur volet */
#xp .xp-drawer .xp-pane-cablage { padding: 0; }
/* les volets : par-dessus la page, à droite */
#xp .xp-drawer { position: absolute; z-index: 6; top: 66px; right: 12px; bottom: 12px; width: min(760px, calc(100% - 24px)); display: flex; flex-direction: column; border-radius: var(--r-3);
  background: color-mix(in srgb, var(--c-surface) 88%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(28px); backdrop-filter: saturate(1.6) blur(28px);
  box-shadow: inset 0 .5px 0 var(--c-glass-edge), 0 0 0 .5px var(--c-line), 0 24px 60px rgba(20,30,50,.22); animation: xp-drawer .3s cubic-bezier(.2,.8,.2,1); }
@keyframes xp-drawer { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
#xp .xp-drawer > header { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-4) var(--s-3) var(--s-5); border-bottom: .5px solid var(--c-line); }
#xp .xp-drawer > header h3 { margin: 0; font: 650 var(--t-h3)/1.2 var(--f-display); }
#xp .xp-drawer > header p { margin: 2px 0 0; font: 400 var(--t-small)/1.35 var(--f-text); color: var(--c-text-2); }
#xp .xp-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--c-fill); color: var(--c-text-2); font: 400 22px/1 var(--f-text); cursor: pointer; }
#xp .xp-x:hover { background: var(--c-fill-2); color: var(--c-text); }
#xp .xp-drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: var(--s-4) var(--s-5) var(--s-5); }
@media (prefers-reduced-motion: reduce) { #xp .xp-drawer { animation: none; } }
@media (max-width: 680px) { #xp .xp-bento { grid-template-columns: 1fr 1fr; } #xp .xp-bento .c-stat.big { grid-column: 1 / -1; } #xp .xp-drawer { top: 60px; right: 0; bottom: 0; width: 100%; border-radius: var(--r-3) var(--r-3) 0 0; } }
/* sur un écran assez grand : tout tient, sans défiler ; chaque case garde sa hauteur, son contenu s'y ajuste (les
   schémas à l'échelle), ce qui dépasse défile dans la case */
@media (min-width: 1100px) and (min-height: 680px) {
  #xp .xp-main { overflow: hidden; }
  #xp .xp-page { height: 100%; display: flex; flex-direction: column; }
  #xp .xp-hero { flex: none; }
  #xp .xp-grid { flex: 1; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
  /* les flux de l'année sur toute la hauteur, à gauche */
  #xp .xp-flow { grid-row: 1 / span 2; }
  #xp .xp-grid > .c-card { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
  #xp .xp-fig { flex: 1; min-height: 0; display: flex; }
  #xp .xp-fig .sf { flex: 1; min-height: 0; height: 100%; max-width: none; }
  #xp .xp-bento { flex: none; }
  #xp .xp-pane-body { flex: 1; min-height: 0; overflow-y: auto; }
  #xp .xp-pane-cablage .xp-pane-body { display: flex; flex-direction: column; }
  #xp .xp-pane-mois .xp-pane-body { overflow: hidden; }
  /* le schéma à la largeur de la case, ses textes presque à leur taille ; il défile dans la case, un toucher l'agrandit */
  #xp .xp-pane-cablage .xp-zoom { overflow: hidden; }
  #xp .xp-pane-cablage .xp-svg { flex: 1; min-height: 0; display: block; overflow-y: auto; padding: 10px 14px; }
  #xp .xp-pane-cablage .xp-svg svg { min-width: 0; max-width: 620px; width: 100%; height: auto; margin: 0 auto; }
  #xp .xp-pane-cablage .xp-verdict { margin-top: var(--s-2); }
}
/* de quoi est faite la maison : une ligne par paroi, un toucher par réponse */
#xp .xq-parois { max-width: 980px; gap: 12px; text-align: left; }
#xp .xq-row { display: grid; grid-template-columns: 150px 1fr; align-items: start; gap: 12px; }
#xp .xq-rl { padding-top: 10px; font: 600 15px/1.2 var(--x-font); }
#xp .xq-opts { display: flex; flex-wrap: wrap; gap: 6px; }
#xp .xq-opt { display: grid; gap: 1px; padding: 7px 12px; border: 0; border-radius: 12px; background: var(--x-solid); box-shadow: 0 0 0 1px var(--x-sep); color: var(--x-label); text-align: left; cursor: pointer; font: 500 14px/1.2 var(--x-font); }
#xp .xq-opt small { font-size: 12px; color: var(--x-label2); }
#xp .xq-opt.nk { background: none; box-shadow: none; color: var(--x-label2); }
#xp .xq-opt:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--x-accent) 45%, transparent); }
#xp .xq-opt.on { box-shadow: 0 0 0 2px var(--x-accent); }
#xp .xq-opt.nk.on { color: var(--x-label); background: var(--x-fill); }
#xp .xq-note { margin: 4px 0 0 162px; font-size: 14px; line-height: 1.45; color: var(--x-label2); min-height: 1.4em; }
@media (max-width: 680px) { #xp .xq-row { grid-template-columns: 1fr; gap: 6px; } #xp .xq-rl { padding-top: 0; } #xp .xq-note { margin-left: 0; } }
/* le calcul, mis en scène (express.js calcScene) : la silhouette de la maison et ses quatre étapes */
#xp .xc .xq-t { margin-bottom: 26px; }
#xp .xc-box { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 300px); gap: 24px; align-items: center; width: min(840px, 100%); padding: 22px 26px; border-radius: 28px; text-align: left;
  background: color-mix(in srgb, var(--c-surface) 80%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px); box-shadow: inset 0 .5px 0 var(--c-glass-edge), 0 0 0 .5px var(--c-line), 0 18px 50px rgba(20,30,50,.10); }
#xp .xc-stage { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--c-sun) 10%, var(--c-surface)), var(--c-surface) 70%); box-shadow: inset 0 0 0 .5px var(--c-line); }
#xp .xc-svg { display: block; width: 100%; height: 100%; }
#xp .xc-ground line { stroke: var(--c-line); stroke-width: .6; opacity: .5; }
#xp .xc-roof { fill: color-mix(in srgb, var(--c-home) 14%, var(--c-surface)); transition: fill .8s; }
#xp .xc-edge { fill: none; stroke: var(--c-home); stroke-width: 2.2; stroke-linejoin: round; animation: xc-draw 1.6s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes xc-draw { to { stroke-dashoffset: 0; } }
/* 1. le relevé laser : une ligne qui balaie, des points qui s'allument */
#xp .xc-scan { fill: var(--c-accent); opacity: 0; filter: drop-shadow(0 0 6px var(--c-accent)); }
#xp .xc-dots circle { fill: var(--c-accent); opacity: 0; }
#xp .xc-box[data-phase="0"] .xc-scan { animation: xc-scan 1.6s ease-in-out infinite; }
#xp .xc-box[data-phase="0"] .xc-dots circle { animation: xc-dot 1.6s ease-out infinite; }
#xp .xc-box:not([data-phase="0"]) .xc-dots circle { opacity: .18; transition: opacity .6s; }
@keyframes xc-scan { 0% { opacity: 0; transform: translateY(0); } 10% { opacity: .9; } 90% { opacity: .9; } 100% { opacity: 0; transform: translateY(var(--xc-h, 140px)); } }
@keyframes xc-dot { 0% { opacity: 0; } 15% { opacity: .95; } 100% { opacity: .25; } }
/* 2. le soleil sur son arc, l'ombre qui tourne */
#xp .xc-sunarc, #xp .xc-shadow { opacity: 0; transition: opacity .6s; }
#xp .xc-arc { fill: none; stroke: var(--c-sun); stroke-width: 1; stroke-dasharray: 3 5; opacity: .5; }
#xp .xc-sun { offset-path: path("M40 230 Q200 -40 360 230"); offset-rotate: 0deg; offset-distance: 50%; }
#xp .xc-sun-c { fill: var(--c-sun); filter: drop-shadow(0 0 8px var(--c-sun)); }
#xp .xc-shadow { fill: color-mix(in srgb, var(--c-text) 22%, transparent); filter: blur(3px); }
#xp .xc-box:not([data-phase="0"]) .xc-sunarc { opacity: 1; }
#xp .xc-box:not([data-phase="0"]) .xc-shadow { opacity: 1; }
#xp .xc-box[data-phase="1"] .xc-sun { animation: xc-sun 3.2s ease-in-out infinite alternate; }
#xp .xc-box[data-phase="1"] .xc-shadow { animation: xc-shade 3.2s ease-in-out infinite alternate; }
#xp .xc-box:not([data-phase="0"]):not([data-phase="1"]) .xc-shadow { transform: translate(0, 16px); opacity: .7; }
@keyframes xc-sun { from { offset-distance: 8%; } to { offset-distance: 92%; } }
@keyframes xc-shade { from { transform: translate(34px, 14px) skewX(-18deg); } 50% { transform: translate(0, 18px); } to { transform: translate(-34px, 14px) skewX(18deg); } }
/* 3. l'année : les semaines qui montent */
#xp .xc-weeks rect { fill: var(--c-sun); opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
#xp .xc-box[data-phase="2"] .xc-weeks rect { animation: xc-week 1.4s cubic-bezier(.2,.8,.2,1) forwards; }
#xp .xc-box[data-phase="3"] .xc-weeks rect, #xp .xc-box.done .xc-weeks rect { opacity: .85; transform: none; }
@keyframes xc-week { to { opacity: .85; transform: scaleY(1); } }
/* 4. les panneaux posés */
#xp .xc-pv rect { fill: #2d4f86; stroke: color-mix(in srgb, #fff 45%, transparent); stroke-width: .6; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); }
#xp .xc-box[data-phase="3"] .xc-pv rect { animation: xc-pop .5s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes xc-pop { to { opacity: 1; transform: none; } }
#xp .xc-box.done .xc-roof { fill: color-mix(in srgb, var(--c-sun) 18%, var(--c-surface)); }
/* les étapes */
#xp .xc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
#xp .xc-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; opacity: .42; transition: opacity .4s; }
#xp .xc-steps li.now, #xp .xc-steps li.ok { opacity: 1; }
#xp .xc-steps b { display: block; font: 600 15.5px/1.25 var(--x-font); }
#xp .xc-steps small { display: block; margin-top: 2px; font: 400 13px/1.35 var(--x-font); color: var(--x-label2); }
#xp .xc-steps i { position: relative; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--x-sep); }
#xp .xc-steps li.now i { box-shadow: none; border: 2px solid var(--c-fill-2); border-top-color: var(--c-accent); animation: xq-turn .9s linear infinite; }
#xp .xc-steps li.ok i { background: var(--c-good); box-shadow: none; }
#xp .xc-steps li.ok i::after { content: ""; position: absolute; left: 7.5px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 760px) { #xp .xc-box { grid-template-columns: 1fr; padding: 16px; } }
/* sans animation : l'image de chaque étape, fixe */
@media (prefers-reduced-motion: reduce) {
  #xp .xc-edge { animation: none; stroke-dashoffset: 0 !important; }
  #xp .xc-box .xc-scan { animation: none !important; opacity: 0; }
  #xp .xc-box[data-phase="0"] .xc-dots circle { animation: none; opacity: .6; }
  #xp .xc-box .xc-sun, #xp .xc-box .xc-shadow { animation: none !important; }
  #xp .xc-box[data-phase="2"] .xc-weeks rect, #xp .xc-box[data-phase="3"] .xc-pv rect { animation: none; opacity: .9; transform: none; }
  #xp .xc-steps li.now i { animation: none; border-top-color: var(--c-fill-2); }
}
/* la maquette du relevé laser dans la mise en scène : elle remplace le dessin, sans ses commandes ; elle tourne seule */
#xp .xc-model { position: absolute; inset: 0; opacity: 0; animation: xc-in .8s ease forwards; }
@keyframes xc-in { to { opacity: 1; } }
#xp .xc-stage.model .xc-svg { opacity: 0; transition: opacity .6s; }
#xp .xc-model .vg-stage { position: absolute; inset: 0; }
#xp .xc-model .vg-cv { width: 100%; height: 100%; cursor: default; }
#xp .xc-model .vg-bar, #xp .xc-model .vg-legend, #xp .xc-model .vg-note, #xp .xc-model .vg-n { display: none; }
/* le relevé : une ligne de balayage sur la maquette */
#xp .xc-stage.model::after { content: ""; position: absolute; left: 6%; right: 6%; top: 0; height: 2px; border-radius: 2px; background: var(--c-accent); box-shadow: 0 0 14px 2px var(--c-accent); opacity: 0; pointer-events: none; }
#xp .xc-box[data-phase="0"] .xc-stage.model::after { animation: xc-sweep 1.8s ease-in-out infinite; }
@keyframes xc-sweep { 0% { top: 12%; opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { top: 88%; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #xp .xc-box .xc-stage.model::after { animation: none; } }
#xp .xc-model .vg { position: absolute; inset: 0; }
#xp .xc-model .vg-busy { display: none !important; }
/* le meilleur choix (simple.js optimum) */
#xp .xp-opt h4 { margin: var(--s-4) 0 var(--s-2); font: 650 18px/1.3 var(--x-font); }
#xp .xp-opt-best { padding: var(--s-3) var(--s-4); border-radius: 20px; background: color-mix(in srgb, var(--c-sun) 12%, var(--x-solid)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-sun) 30%, transparent); }
#xp .xp-opt-best h4 { margin: 6px 0 8px; font-size: 21px; }
#xp .xp-opt-best p { margin: 0 0 8px; font: 400 16px/1.45 var(--x-font); }
#xp .xp-opt-best .xp-opt-nums { color: var(--x-label2); font-size: 14.5px; }
#xp .xp-opt-best .c-btn { margin-top: 6px; }
#xp .xp-opt tr.on th, #xp .xp-opt tr.on td { background: color-mix(in srgb, var(--c-sun) 12%, transparent); font-weight: 650; }
#xp .xp-opt .xp-table th:first-child { white-space: normal; }
#xp .xp-opt-note { margin: var(--s-3) 0 0; font-size: 13px; line-height: 1.45; color: var(--x-label2); }
#xp .xp-opt-bar { height: 6px; border-radius: 3px; background: var(--x-sep); overflow: hidden; }
#xp .xp-opt-bar i { display: block; height: 100%; width: 0; background: var(--c-sun); transition: width .2s; }
#xp .xp-opt .xp-table table { font-size: 14px; }
#xp .xp-opt .xp-table th, #xp .xp-opt .xp-table td { padding: 9px 10px; }
#xp .xp-opt .xp-table thead th { font-size: 11px; white-space: normal; }
#xp .xp-opt-warn { margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; background: color-mix(in srgb, var(--x-warn) 14%, transparent); font-size: 14.5px; }
