  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    /* Wavestone brand palette */
    --ev: #007A35;        /* Vert Wavestone (accessible sur fond blanc : ratio 7.8:1) */
    --ev-light: #CAFEE0;  /* Vert clair Wavestone officiel */
    --gas: #451DC7;       /* Bleu Wavestone principal */
    --gas-light: #EEEAFA; /* Bleu Wavestone ~8 % d'opacité */
    --bg: #F6F6F6;        /* Gris très clair Wavestone */
    --surface: #FFFFFF;
    --text: #000000;      /* Noir Wavestone */
    --text-2: #4A4A4A;
    --text-3: #9A9A9A;
    --border: #E0E0E0;
    --radius: 12px;
  }

  /* ── DARK MODE ── */
  [data-theme="dark"] {
    --ev: #04F06A;        /* Vert neon Wavestone — lisible sur fond sombre */
    --ev-light: #0A2B1B;
    --gas: #8B72EF;       /* Bleu Wavestone éclairci pour fond sombre */
    --gas-light: #1C1050;
    --bg: #0C0824;        /* Bleu très sombre (dérivé de #250F6B) */
    --surface: #150E38;
    --text: #FFFFFF;
    --text-2: #B0A0D5;
    --text-3: #706098;
    --border: #2C1E70;
  }

  body {
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding: 1.5rem 1rem 4rem;
  }

  .page { max-width: 740px; margin: 0 auto; }

  .reset-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 12px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); cursor: pointer;
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; font-size: 11px; font-weight: 500;
    color: var(--text-3); transition: all 0.15s; white-space: nowrap;
  }
  .reset-btn:hover { border-color: var(--text-2); color: var(--text); }
  .reset-btn svg { flex-shrink: 0; }

  /* ── TOP BAR ── */
  .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
  }

  /* Burger button */
  .burger-btn {
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 36px; height: 36px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; cursor: pointer; padding: 8px 7px;
    transition: border-color 0.15s;
    flex-shrink: 0;
  }
  .burger-btn:hover { border-color: var(--text-2); }
  .burger-btn span {
    display: block; height: 2px; background: var(--text);
    border-radius: 2px; transition: all 0.2s;
  }
  .burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger-btn.open span:nth-child(2) { opacity: 0; }
  .burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Dropdown menu */
  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    min-width: 220px;
    z-index: 100;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.12s;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
  }
  .nav-item:last-child { border-bottom: none; }
  .nav-item:hover { background: var(--bg); }
  .nav-item.active { background: var(--bg); }

  .nav-item .nav-icon {
    width: 28px; height: 28px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0;
    background: var(--border);
  }
  .nav-item.active .nav-icon { background: var(--text); }

  .nav-item .nav-text { flex: 1; }
  .nav-item .nav-title { font-size: 13px; font-weight: 500; color: var(--text); display: block; }
  .nav-item .nav-sub   { font-size: 11px; color: var(--text-3); margin-top: 1px; display: block; }
  .nav-item.active .nav-title { color: var(--text); }

  .nav-item .nav-check {
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--text); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; opacity: 0;
    transition: opacity 0.15s;
  }
  .nav-item.active .nav-check { opacity: 1; }
  .nav-item .nav-check::after {
    content: ''; display: block; width: 5px; height: 3px;
    border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
  }

  /* Soon badge */
  .nav-soon {
    font-size: 9px; font-weight: 500; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--text-3);
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 4px; padding: 2px 5px;
    flex-shrink: 0;
  }
  .nav-item.disabled { cursor: default; opacity: 0.55; pointer-events: none; }

  /* Lang toggle */
  .lang-toggle {
    display: flex; background: var(--surface);
    border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  }
  .lang-toggle button {
    padding: 6px 14px; border: none; background: transparent;
    color: var(--text-3); cursor: pointer;
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.05em;
    transition: background 0.15s, color 0.15s;
  }
  .lang-toggle button.active { background: var(--gas); color: #fff; border-radius: 8px; }
  .lang-toggle button:hover:not(.active) { color: var(--text-2); }

  /* Overlay to close menu */
  .menu-overlay {
    display: none; position: fixed; inset: 0; z-index: 90;
  }
  .menu-overlay.open { display: block; }

  /* ── PAGES ── */
  .page-section { display: none; }
  .page-section.active { display: block; }

  /* ── SHARED COMPONENTS ── */
  header { text-align: center; margin-bottom: 2.5rem; }
  header .eyebrow {
    font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--text-3); margin-bottom: 0.75rem;
  }
  header h1 {
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif;
    font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 600; line-height: 1.1; color: var(--text); margin-bottom: 0.75rem;
  }
  header h1 em { font-style: italic; color: var(--ev); }
  header p { font-size: 15px; color: var(--text-2); font-weight: 300; line-height: 1.6; }

  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

  .card {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 1.5rem;
  }
  .card-mb { margin-bottom: 1rem; }

  .card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 1.25rem; }
  .card-header-lg { margin-bottom: 1.5rem; }

  .badge {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
  }
  .badge-ev   { background: var(--ev-light); }
  .badge-gas  { background: var(--gas-light); }
  .badge-dist { background: var(--border); }
  .badge-neutral { background: var(--border); }

  .card-header h2 {
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif;
    font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.2;
  }
  .card-header .subtitle { font-size: 11px; color: var(--text-3); margin-top: 2px; }

  /* Card label — small uppercase section title (used in heavy-duty.html) */
  .card-label {
    font-size: 11px; font-weight: 500; letter-spacing: .05em;
    text-transform: uppercase; color: var(--text-3); margin-bottom: 0.75rem;
  }

  /* Card label color variants */
  .card-label.label-gas { color: var(--gas); }
  .card-label.label-ev  { color: var(--ev);  }

  /* Card accent borders — A/B vehicle or fuel comparison blocks */
  .card--gas-top     { border-top:  3px solid var(--gas); }
  .card--ev-top      { border-top:  3px solid var(--ev);  }
  .card--gas-accent  { border-left: 3px solid var(--gas); }
  .card--ev-accent   { border-left: 3px solid var(--ev);  }

  /* KPI display — large metric + small label (heavy-duty.html, buses-coaches.html) */
  .kpi-val {
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; font-size: 1.75rem; font-weight: 600;
    color: var(--text); line-height: 1.1;
  }
  .kpi-val.kpi-val--gas { color: var(--gas); }
  .kpi-val.kpi-val--ev  { color: var(--ev);  }
  .kpi-label {
    font-size: 11px; color: var(--text-3); margin-top: 2px;
  }
  /* CO2 bar value coloring */
  .co2-val--gas { color: var(--gas); }
  .co2-val--ev  { color: var(--ev);  }

  /* Model tile — clickable vehicle model row (buses-coaches.html) */
  .model-tile {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg); cursor: pointer; font-size: 12px; text-align: left;
    color: var(--text); transition: border-color .15s, background .15s;
    width: 100%;
  }
  .model-tile:hover { border-color: var(--text-3); background: var(--surface); }
  .model-tile.active { border-color: var(--ev); background: rgba(0,122,53,.07); }
  .model-tile-name { flex: 1; margin-right: 8px; line-height: 1.3; }
  .model-tile-price { font-weight: 500; white-space: nowrap; color: var(--text-2); }
  .model-tile.active .model-tile-price { color: var(--ev); }

  /* ── SHARED LAYOUT & COMPONENT UTILITIES ───────────────────── */
  /* These classes replace repeated inline styles so that a single
     CSS edit (e.g. Wavestone rebrand) cascades to every page.      */

  /* Nav: "back to home" link at top of sidebar */
  .nav-home-link {
    text-decoration: none; border-bottom: 1px solid var(--border);
    margin-bottom: 4px; padding-bottom: 10px;
  }
  .nav-home-icon { font-size: 12px; }

  /* Top bar right-side actions container */
  .top-bar-actions { display: flex; align-items: center; gap: 8px; }

  /* Tile/button grids (fuel tiles, segment tiles, financing tabs) */
  .tile-grid   { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
  .btn-row     { display: flex; gap: 0.5rem; flex-wrap: wrap; }

  /* Stat box — centered KPI on tinted background (price diff, TCO delta…) */
  .stat-box       { text-align: center; padding: 0.75rem; background: var(--bg); border-radius: 10px; }
  .stat-box-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-bottom: 0.25rem; }
  .stat-box-sub   { font-size: 11px; color: var(--text-3); margin-top: 0.25rem; }

  /* SVG chart: responsive wrapper */
  .chart-svg { width: 100%; height: auto; overflow: visible; }

  /* Chart legend (gas / ev lines) */
  .chart-legend        { display: flex; gap: 1rem; justify-content: center; margin-top: 0.5rem; font-size: 11px; color: var(--text-3); }
  .chart-legend-item   { display: flex; align-items: center; gap: 4px; }
  .chart-legend-swatch { width: 20px; height: 3px; border-radius: 2px; display: inline-block; }
  .chart-legend-swatch--gas { background: var(--gas); }
  .chart-legend-swatch--ev  { background: var(--ev); }

  /* Source / footnote bar above footer */
  .source-bar  { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 0.75rem; }
  .source-note { margin: 0; flex: 1; }

  /* Background color helpers (legend dots, bar fills…) */
  .bg-gas { background: var(--gas); }
  .bg-ev  { background: var(--ev); }

  /* Section sub-title with fuel color (fiscal blocks, infra labels) */
  .section-title-gas {
    font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
    color: var(--gas); margin-bottom: 0.75rem;
  }
  .section-title-ev {
    font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
    color: var(--ev); margin-bottom: 0.75rem;
  }

  /* Toll network line — dynamic grid row (heavy-duty.html) */
  .toll-line {
    display: grid; grid-template-columns: 1fr auto auto auto;
    gap: 8px; align-items: center; margin-bottom: 0.5rem;
  }

  /* Inline info note — contextual helper text inside a card */
  .input-note {
    font-size: 12px; color: var(--text-3);
    padding: 8px 10px; background: var(--bg);
    border-radius: 8px; border: 1px solid var(--border);
    margin-top: 0.5rem;
  }

  /* Secondary variant of wavestone CTA link — used on same blue background */
  .wavestone-cta-link--secondary {
    background: rgba(255,255,255,0.06); opacity: 0.8;
  }
  .wavestone-cta-link--secondary:hover { background: rgba(255,255,255,0.14); opacity: 1; }

  /* Sliders */
  .slider-field { margin-bottom: 1.25rem; }
  .slider-field:last-child { margin-bottom: 0; }
  .slider-field-nb { margin-bottom: 0; }

  /* Slider row — compact horizontal layout (used in heavy-duty.html) */
  .slider-row {
    display: grid;
    grid-template-columns: minmax(100px, auto) 1fr auto;
    align-items: center;
    column-gap: 12px;
    margin-bottom: 0.875rem;
  }
  .slider-row:last-child { margin-bottom: 0; }
  .slider-row label { font-size: 12px; color: var(--text-2); white-space: nowrap; }
  .slider-row input[type="range"] { min-width: 0; }
  .slider-out {
    font-size: 13px; font-weight: 500; color: var(--text);
    text-align: right; white-space: nowrap; min-width: 72px;
  }

  .slider-top {
    display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px;
  }
  .slider-top label { font-size: 12px; color: var(--text-2); }
  .slider-top .cur-val { font-size: 14px; font-weight: 500; color: var(--text); }

  input[type="range"] {
    -webkit-appearance: none; width: 100%; height: 4px;
    border-radius: 2px; outline: none; cursor: pointer; background: var(--border);
  }
  input[type="range"].ev-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
    background: var(--ev); cursor: pointer; transition: transform 0.1s;
  }
  input[type="range"].ev-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
  input[type="range"].ev-range::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%; background: var(--ev); border: none;
  }
  input[type="range"].gas-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
    background: var(--gas); cursor: pointer; transition: transform 0.1s;
  }
  input[type="range"].gas-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
  input[type="range"].gas-range::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%; background: var(--gas); border: none;
  }
  input[type="range"].neutral-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
    background: var(--text); cursor: pointer; transition: transform 0.1s;
  }
  input[type="range"].neutral-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
  input[type="range"].neutral-range::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%; background: var(--text); border: none;
  }
  .slider-limits { display: flex; justify-content: space-between; margin-top: 4px; }
  .slider-limits span { font-size: 10px; color: var(--text-3); }

  /* ── PAGE ÉNERGIE specific ── */
  .results-card {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 1.75rem; margin-bottom: 1rem;
  }
  .results-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem;
  }
  .result-cell { border-radius: 12px; padding: 1rem 1.25rem; }
  .result-cell.ev  { background: var(--ev-light); }
  .result-cell.gas { background: var(--gas-light); }
  .result-cell .r-label {
    font-size: 11px; letter-spacing: 0.04em;
    text-transform: uppercase; margin-bottom: 0.5rem; color: var(--text-2);
  }
  .result-cell .r-model  { font-size: 12px; color: var(--text-2); margin-bottom: 0.4rem; }
  .result-cell .r-value  {
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; font-size: 1.8rem; font-weight: 600; line-height: 1;
  }
  .result-cell.ev  .r-value { color: var(--ev); }
  .result-cell.gas .r-value { color: var(--gas); }
  .result-cell .r-sub { font-size: 11px; color: var(--text-3); margin-top: 5px; }

  .savings-block {
    border-top: 1px solid var(--border); padding-top: 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  }
  .savings-label { font-size: 13px; color: var(--text-2); line-height: 1.6; }
  .savings-amount {
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif;
    font-size: 2.4rem; font-weight: 600; white-space: nowrap;
  }
  .savings-amount.positive { color: var(--ev); }
  .savings-amount.negative { color: var(--gas); }

  .comparison {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 1.5rem 1.75rem; margin-bottom: 1rem;
  }
  .comp-title {
    font-size: 11px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-3); margin-bottom: 1.25rem;
  }
  .comp-bars { display: flex; flex-direction: column; gap: 14px; }
  .bar-row { display: flex; align-items: center; gap: 12px; }
  .bar-label { font-size: 12px; color: var(--text-2); width: 66px; flex-shrink: 0; }
  .bar-track { flex: 1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
  .bar-fill { height: 100%; border-radius: 4px; transition: width 0.35s cubic-bezier(0.4,0,0.2,1); min-width: 2px; }
  .bar-fill.ev  { background: var(--ev); }
  .bar-fill.gas { background: var(--gas); }
  .bar-val { font-size: 13px; font-weight: 500; min-width: 72px; text-align: right; color: var(--text); }

  /* ── PAGE VOITURE specific ── */
  .segment-grid { display: flex; gap: 8px; flex-wrap: wrap; }
  .seg-btn {
    flex: 1; min-width: 48px; padding: 10px 6px;
    border: 1px solid var(--border); border-radius: 10px;
    background: transparent; cursor: pointer;
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; text-align: center; transition: all 0.15s;
  }
  .seg-btn .seg-letter { font-size: 18px; font-weight: 500; display: block; color: var(--text); }
  .seg-btn .seg-label  { font-size: 10px; color: var(--text-3); margin-top: 2px; display: block; }
  .seg-btn:hover { border-color: var(--text-2); }
  .seg-btn.active { background: var(--gas); border-color: var(--gas); color: #fff; }
  .seg-btn.active .seg-letter { color: #fff; }
  .seg-btn.active .seg-label  { color: rgba(255,255,255,0.6); }

  .model-select-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .model-col label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
  .model-cards { display: flex; flex-direction: column; gap: 6px; }
  .model-btn {
    width: 100%; text-align: left; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: 10px;
    background: transparent; cursor: pointer; font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; transition: all 0.15s;
  }
  .model-btn .m-name  { font-size: 13px; font-weight: 500; color: var(--text); display: block; }
  .model-btn .m-price { font-size: 11px; color: var(--text-3); margin-top: 2px; display: block; }
  .model-btn:hover { border-color: var(--text-2); }
  .model-btn.gas-active { background: var(--gas-light); border-color: var(--gas); }
  .model-btn.ev-active  { background: var(--ev-light);  border-color: var(--ev);  }

  .price-adj-top {
    display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px;
  }
  .price-adj-top label { font-size: 11px; color: var(--text-3); }
  .price-adj-top .adj-val { font-size: 13px; font-weight: 500; color: var(--text); }

  .tax-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .tax-label { font-size: 12px; color: var(--text-2); }
  .tax-input-wrap { display: flex; align-items: center; gap: 6px; }
  .tax-input {
    width: 90px; padding: 5px 8px;
    border: 1px solid var(--border); border-radius: 8px;
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; font-size: 13px; font-weight: 500;
    color: var(--text); background: var(--bg); text-align: right; outline: none; transition: border-color 0.15s;
  }
  .tax-input:focus { border-color: var(--text-2); }
  .tax-input.gas-input:focus { border-color: var(--gas); }
  .tax-input.ev-input:focus  { border-color: var(--ev); }
  .tax-unit { font-size: 12px; color: var(--text-3); }

  .final-price-block {
    margin-top: 10px; background: var(--bg); border-radius: 10px;
    padding: 10px 14px; display: flex; justify-content: space-between; align-items: baseline;
  }
  .final-price-label { font-size: 11px; color: var(--text-3); }
  .final-price-value {
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; font-size: 1.5rem; font-weight: 600; line-height: 1;
  }
  .final-price-value.gas-color { color: var(--gas); }
  .final-price-value.ev-color  { color: var(--ev); }

  .dual-value { display: flex; gap: 8px; align-items: baseline; }
  .dual-value .pct { font-size: 14px; font-weight: 500; color: var(--text); }
  .dual-value .eur { font-size: 12px; color: var(--text-3); }

  .benchmark {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
    padding: 3px 7px; font-size: 10px; color: var(--text-3); margin-top: 5px;
  }
  .benchmark .bm-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }

  .fin-tabs { display: flex; gap: 6px; margin-bottom: 1.25rem; flex-wrap: wrap; }
  .fin-tab {
    padding: 7px 14px; border: 1px solid var(--border); border-radius: 8px;
    background: transparent; cursor: pointer;
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; font-size: 12px; font-weight: 500;
    color: var(--text-2); transition: all 0.15s;
  }
  .fin-tab:hover { color: var(--text); border-color: var(--text-2); }
  .fin-tab.active { background: var(--gas); border-color: var(--gas); color: #fff; }

  .fin-params { display: flex; flex-direction: column; gap: 1.1rem; }
  .fin-param-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .fin-desc { font-size: 13px; color: var(--text-2); line-height: 1.55; }

  .diff-block {
    border-top: 1px solid var(--border); padding-top: 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  }
  .diff-label { font-size: 13px; color: var(--text-2); line-height: 1.6; }
  .diff-amount {
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; font-size: 2.2rem; font-weight: 600; white-space: nowrap;
  }
  .diff-amount.ev-cheaper  { color: var(--ev); }
  .diff-amount.gas-cheaper { color: var(--gas); }

  .breakdown {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 1.5rem 1.75rem; margin-bottom: 1rem;
  }
  .breakdown-title {
    font-size: 11px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-3); margin-bottom: 1.25rem;
  }
  .breakdown-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 8px;
    padding: 9px 0; border-bottom: 1px solid var(--border);
  }
  .breakdown-row:last-child { border-bottom: none; }
  .br-label { font-size: 12px; color: var(--text-2); }
  .br-gas { font-size: 13px; font-weight: 500; color: var(--gas); text-align: center; }
  .br-ev  { font-size: 13px; font-weight: 500; color: var(--ev);  text-align: right; }
  .bd-separator {
    grid-column: 1/-1; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-3); padding: 10px 0 4px; border-bottom: none !important;
  }
  .breakdown-row.bd-annual-total .br-label { font-weight: 600; color: var(--text); }
  .breakdown-row.bd-annual-total .br-gas   { font-size: 14px; color: var(--gas); }
  .breakdown-row.bd-annual-total .br-ev    { font-size: 14px; color: var(--ev); }
  .adj-val.gas-color { color: var(--gas); }
  .adj-val.ev-color  { color: var(--ev); }

  /* ── PAGE TCO specific ── */
  .tco-tabs { display: flex; gap: 6px; margin-bottom: 1.25rem; flex-wrap: wrap; }
  .tco-tab {
    padding: 7px 14px; border: 1px solid var(--border); border-radius: 8px;
    background: transparent; cursor: pointer;
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; font-size: 12px; font-weight: 500;
    color: var(--text-2); transition: all 0.15s;
  }
  .tco-tab:hover { color: var(--text); border-color: var(--text-2); }
  .tco-tab.active { background: var(--gas); border-color: var(--gas); color: #fff; }
  .tco-panel { display: none; }
  .tco-panel.active { display: block; }
  .tco-summary-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px;
  }
  .tco-summary-row:last-child { border-bottom: none; }
  .tco-summary-label { color: var(--text-2); font-size: 12px; }
  .tco-summary-val { font-weight: 500; color: var(--text); }
  .tco-summary-val.gas-col { color: var(--gas); }
  .tco-summary-val.ev-col  { color: var(--ev); }
  .tco-edit-btn {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 1rem; padding: 7px 14px;
    border: 1px solid var(--border); border-radius: 8px;
    background: transparent; cursor: pointer; font-size: 12px; font-weight: 500;
    color: var(--text-2); font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; transition: all 0.15s;
  }
  .tco-edit-btn:hover { border-color: var(--text-2); color: var(--text); }
  .tco-unconfigured {
    font-size: 13px; color: var(--text-3); text-align: center; padding: 1rem 0;
  }
  .tco-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
  .tco-table th {
    font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--text-3); font-weight: 500; padding: 0 0 10px 0;
    border-bottom: 1px solid var(--border); text-align: right;
  }
  .tco-table th:first-child { text-align: left; }
  .tco-table td {
    font-size: 12px; padding: 9px 0; border-bottom: 1px solid var(--border);
    text-align: right; color: var(--text-2);
  }
  .tco-table td:first-child { text-align: left; font-size: 11px; }
  .tco-table tr:last-child td { border-bottom: none; }
  .tco-table .col-gas { color: var(--gas); font-weight: 500; }
  .tco-table .col-ev  { color: var(--ev);  font-weight: 500; }
  .tco-table .row-total td { font-size: 13px; font-weight: 600; padding-top: 12px; border-top: 2px solid var(--border); border-bottom: 1px solid var(--border); }
  .tco-table .row-monthly td { font-size: 12px; color: var(--text-3); border-bottom: none; }
  .tco-table .row-monthly .col-gas,.tco-table .row-monthly .col-ev { color: var(--text-3); font-weight: 400; }
  .tco-crossover {
    margin-top: 1rem; padding: 10px 14px;
    background: var(--bg); border-radius: 10px;
    font-size: 12px; color: var(--text-2); text-align: center;
  }
  .tco-crossover strong { color: var(--ev); }
  .tco-crossover.gas-wins strong { color: var(--gas); }
  .co2-context-band {
    display: flex; align-items: center; gap: 10px;
    background: color-mix(in srgb, var(--ev) 8%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--ev) 20%, var(--border));
    border-radius: 10px; padding: 10px 14px; margin-bottom: 1.25rem;
    font-size: 12px; color: var(--text-2); line-height: 1.5;
  }
  .co2-context-band .co2-icon { font-size: 18px; flex-shrink: 0; }
  .co2-bar-row { margin-bottom: 1.25rem; }
  .co2-bar-label {
    display: flex; justify-content: space-between; margin-bottom: 4px;
    font-size: 12px; color: var(--text-2);
  }
  .co2-bar-label .co2-val { font-weight: 600; font-size: 13px; }
  .co2-bar-track {
    height: 10px; background: var(--border); border-radius: 6px; overflow: hidden;
  }
  .co2-bar-fill { height: 100%; border-radius: 6px; transition: width 0.4s; }
  .co2-bar-fill.gas-fill { background: var(--gas); }
  .co2-bar-fill.ev-fill  { background: var(--ev); }
  .co2-savings-block {
    text-align: center; padding: 1rem 0 0.5rem;
    border-top: 1px solid var(--border); margin-top: 1rem;
  }
  .co2-savings-amount {
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; font-size: 2rem; font-weight: 600; color: var(--ev);
  }
  .co2-savings-label { font-size: 12px; color: var(--text-3); margin-top: 4px; }
  .co2-timeline {
    position: relative; height: 6px;
    background: var(--border); border-radius: 4px;
    margin: 1.5rem 0 0.5rem;
  }
  .co2-timeline-fill { height: 100%; background: var(--ev); border-radius: 4px; }
  .co2-timeline-dot {
    position: absolute; top: 50%; transform: translate(-50%, -50%);
    width: 14px; height: 14px; border-radius: 50%;
    border: 3px solid var(--ev); background: var(--surface);
  }
  .co2-timeline-labels {
    display: flex; justify-content: space-between;
    font-size: 10px; color: var(--text-3); margin-top: 6px;
  }
  .co2-breakeven-label {
    font-size: 12px; color: var(--text-2); text-align: center; margin-top: 0.75rem;
  }
  .co2-breakeven-label strong { color: var(--ev); }
  .co2-manuf-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
    padding: 8px 0; border-bottom: 1px solid var(--border);
    font-size: 12px;
  }
  .co2-manuf-row:last-child { border-bottom: none; }
  .co2-manuf-label { color: var(--text-2); }
  .co2-manuf-gas { color: var(--gas); font-weight: 500; text-align: center; }
  .co2-manuf-ev  { color: var(--ev);  font-weight: 500; text-align: right; }

  /* ── FOOTER ── */
  .note {
    font-size: 12px; color: var(--text-3);
    text-align: center; line-height: 1.7; padding: 0 1rem; margin-bottom: 0.5rem;
  }
  .footer-credit {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-top: 0.6rem; font-size: 12px; color: var(--text-3);
  }
  .linkedin-link {
    display: flex; align-items: center; gap: 5px;
    color: var(--text-3); text-decoration: none; transition: color 0.15s;
  }
  .linkedin-link:hover { color: var(--text-2); }
  .footer-sep { color: var(--text-3); }

  /* ── PAGE RECHARGE specific ── */
  .section-title-block {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 1rem;
  }
  .section-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--text); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 500; flex-shrink: 0;
  }
  .section-lbl { font-size: 13px; font-weight: 500; color: var(--text-2); }

  .install-card { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; position: relative; }
  .install-card:hover { border-color: var(--text-2); }
  .install-card.active { border-color: var(--ev); box-shadow: 0 0 0 3px var(--ev-light); }

  .install-check {
    width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border);
    margin-left: auto; flex-shrink: 0; transition: all 0.15s;
    display: flex; align-items: center; justify-content: center;
  }
  .install-check.active {
    background: var(--ev); border-color: var(--ev);
  }
  .install-check.active::after {
    content: ''; width: 6px; height: 4px;
    border-left: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px,-1px);
  }

  .install-pros { list-style: none; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 5px; }
  .install-pros li {
    font-size: 12px; color: var(--text-2); padding-left: 14px; position: relative;
  }
  .install-pros li::before {
    content: '·'; position: absolute; left: 4px; color: var(--text-3);
  }

  .install-price-row {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 10px;
  }
  .install-price-label { font-size: 11px; color: var(--text-3); }
  .install-price-val {
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif;
    font-size: 1.4rem; color: var(--ev); font-weight: 600;
  }

  .import-btn {
    margin-left: auto; padding: 6px 12px; flex-shrink: 0;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); cursor: pointer;
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; font-size: 11px; font-weight: 500;
    color: var(--text-2); transition: all 0.15s; white-space: nowrap;
  }
  .import-btn:hover { border-color: var(--ev); color: var(--ev); }

  .import-feedback {
    margin-top: 10px; padding: 8px 12px;
    background: var(--ev-light); border: 1px solid var(--ev);
    border-radius: 8px; font-size: 12px; color: var(--ev);
  }

  /* Split donut */
  .split-total-badge {
    margin-left: auto; width: 44px; height: 44px;
    position: relative; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .split-total-badge #split-total-pct {
    position: absolute; font-size: 10px; font-weight: 500; color: var(--text);
  }
  .donut-svg { width: 44px; height: 44px; }
  .donut-bg   { stroke: var(--border); }
  .donut-fill { stroke: var(--ev); transition: stroke-dasharray 0.3s, stroke 0.3s; }
  .donut-fill.over { stroke: var(--gas); }

  .recharge-row { padding: 1rem 0; }
  .recharge-row:first-child { padding-top: 0; }
  .recharge-divider { height: 1px; background: var(--border); margin: 0 0; }

  .rc-row-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  }
  .rc-icon {
    width: 28px; height: 28px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
  }
  .rc-row-info { flex: 1; }
  .rc-row-title { font-size: 13px; font-weight: 500; color: var(--text); display: block; }
  .rc-row-sub   { font-size: 11px; color: var(--text-3); display: block; margin-top: 1px; }

  .rc-pct-big {
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif;
    font-size: 1.5rem; color: var(--ev); font-weight: 600; flex-shrink: 0;
  }
  .rc-pct-big.calculated { color: var(--gas); }

  .rc-slider-line  { margin-bottom: 1rem; }
  .effective-price-tag {
    display: flex; align-items: center; gap: 6px;
    margin-top: 6px; padding: 6px 10px;
    background: var(--ev-light); border: 1px solid var(--ev);
    border-radius: 7px; flex-wrap: wrap;
  }
  .eff-arrow { font-size: 12px; color: var(--ev); flex-shrink: 0; }
  .eff-label { font-size: 11px; color: var(--ev); }
  .eff-value { font-size: 13px; font-weight: 500; color: var(--ev); margin-left: auto; }

  .rc-price-line   { margin-bottom: 0.75rem; }

  .rc-auto-calc-note {
    font-size: 11px; color: var(--text-3); font-style: italic;
    margin-bottom: 10px;
  }

  .abo-sliders-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
    padding-top: 0.25rem;
  }
  @media (max-width: 520px) { .abo-sliders-grid { grid-template-columns: 1fr; } }

  .abo-row {
    display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap;
  }
  .abo-label { font-size: 12px; color: var(--text-2); flex-shrink: 0; }
  .abo-tabs { display: flex; gap: 5px; }
  .abo-tab {
    padding: 5px 12px; border: 1px solid var(--border); border-radius: 6px;
    background: transparent; cursor: pointer;
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; font-size: 11px; font-weight: 500;
    color: var(--text-2); transition: all 0.12s;
  }
  .abo-tab:hover { border-color: var(--text-2); color: var(--text); }
  .abo-tab.active { background: var(--gas); border-color: var(--gas); color: #fff; }

  .abo-detail {
    margin-top: 6px; padding: 7px 10px;
    background: var(--bg); border-radius: 7px;
    font-size: 11px; color: var(--text-2);
  }

  /* Results */
  .rc-results-card {
    background: var(--surface); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 1.75rem; margin-bottom: 1rem;
  }
  .rc-results-header {
    font-size: 11px; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-3); margin-bottom: 1.25rem;
  }
  .rc-bars-block { display: flex; flex-direction: column; gap: 12px; margin-bottom: 1.5rem; }
  .rc-bar-row { display: flex; align-items: center; gap: 10px; }
  .rc-bar-label { font-size: 12px; color: var(--text-2); width: 120px; flex-shrink: 0; }
  .rc-bar-val   { font-size: 13px; font-weight: 500; min-width: 72px; text-align: right; color: var(--text); }
  .rc-bar-install { opacity: 0.65; }

  .rc-total-block {
    border-top: 1px solid var(--border); padding-top: 1.25rem;
    display: flex; justify-content: space-between; align-items: baseline;
  }
  .rc-total-label { font-size: 13px; color: var(--text-2); }
  .rc-total-value {
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif;
    font-size: 2.2rem; color: var(--ev); font-weight: 600;
  }

  .rc-per100-block {
    margin-top: 8px; text-align: right;
    display: flex; justify-content: flex-end; align-items: baseline; gap: 4px;
  }
  .rc-per100-label { font-size: 12px; color: var(--text-3); }
  .rc-per100-val   { font-size: 15px; font-weight: 500; color: var(--text-2); }
  .rc-per100-unit  { font-size: 12px; color: var(--text-3); }

  /* ── RESPONSIVE (recharge additions) ── */
  @media (max-width: 520px) {
    .rc-bar-label { width: 80px; font-size: 11px; }
    .import-btn span { display: none; }
    .import-btn::after { content: '↩'; }
  }

  /* ── PAGE ACCUEIL ── */
  .home-hero {
    text-align: center;
    padding: 1rem 0 2.5rem;
  }
  .home-hero .eyebrow {
    font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--text-3); margin-bottom: 0.75rem;
  }
  .home-hero h1 {
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif;
    font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 600; line-height: 1.1;
    color: var(--text); margin-bottom: 1rem;
  }
  .home-hero h1 em { font-style: italic; color: var(--ev); }
  .home-hero .hero-sub {
    font-size: 16px; color: var(--text-2); font-weight: 300;
    line-height: 1.65; max-width: 520px; margin: 0 auto 1.75rem;
  }
  .home-pills {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    margin-bottom: 0;
  }
  .home-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 20px; padding: 5px 12px;
    font-size: 12px; color: var(--text-2);
  }
  .home-pill span:first-child { font-size: 13px; }

  .home-modules-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1rem; margin-bottom: 1rem;
  }
  .home-module-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
    cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s;
    text-decoration: none; display: block;
  }
  .home-module-card:hover {
    border-color: var(--ev);
    box-shadow: 0 4px 16px rgba(0,122,53,0.1);
  }
  .home-module-card.disabled {
    cursor: default; opacity: 0.55; pointer-events: none;
  }
  .home-module-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 1rem; background: var(--border);
  }
  .home-module-card:hover .home-module-icon { background: var(--ev-light); }
  .home-module-title {
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif;
    font-size: 1.15rem; font-weight: 600; color: var(--text);
    margin-bottom: 0.4rem; display: flex; align-items: center; gap: 8px;
  }
  .home-module-desc {
    font-size: 12px; color: var(--text-3); line-height: 1.55;
  }
  .home-module-arrow {
    display: flex; align-items: center; justify-content: flex-end;
    margin-top: 1.25rem;
  }
  .home-module-arrow svg { color: var(--text-3); transition: color 0.15s, transform 0.15s; }
  .home-module-card:hover .home-module-arrow svg { color: var(--ev); transform: translateX(3px); }

  @media (max-width: 520px) {
    .home-modules-grid { grid-template-columns: 1fr; }
  }

  /* ── COMPARISON BAND ── */
  .comparison-band {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 14px; border-radius: 10px; margin-bottom: 0.75rem;
    background: linear-gradient(to right, var(--gas-light) 0%, var(--bg) 50%, var(--ev-light) 100%);
    border: 1px solid var(--border);
  }
  .cb-side { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; }
  .cb-side.gas { color: var(--gas); }
  .cb-side.ev  { color: var(--ev); }
  .cb-badge-sm {
    width: 22px; height: 22px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; flex-shrink: 0;
  }
  .cb-sep {
    font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-3); text-align: center;
  }

  /* ── CHOICE BAND ── */
  .choice-band {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: 8px; margin-bottom: 1rem;
    background: var(--bg); border: 1px solid var(--border);
  }
  .choice-band-radio {
    width: 14px; height: 14px; border-radius: 50%;
    border: 1.5px solid var(--text-3); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .choice-band-radio::after {
    content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3);
  }
  .choice-band-text { font-size: 12px; color: var(--text-2); }

  /* ── RADIO DOT on single-choice buttons ── */
  .seg-btn { position: relative; }
  .seg-btn::before {
    content: '';
    position: absolute; top: 6px; right: 6px;
    width: 10px; height: 10px; border-radius: 50%;
    border: 1.5px solid var(--border); background: transparent;
    transition: all 0.15s;
  }
  .seg-btn.active::before { background: #fff; border-color: rgba(255,255,255,0.6); }

  .fin-tab { display: inline-flex; align-items: center; gap: 6px; }
  .fin-tab::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    border: 1.5px solid var(--text-3); background: transparent;
    flex-shrink: 0; transition: all 0.15s;
  }
  .fin-tab.active::before { background: #fff; border-color: rgba(255,255,255,0.5); }

  .abo-tab { display: inline-flex; align-items: center; gap: 6px; }
  .abo-tab::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    border: 1.5px solid var(--text-3); background: transparent;
    flex-shrink: 0; transition: all 0.15s;
  }
  .abo-tab.active::before { background: #fff; border-color: rgba(255,255,255,0.5); }

  /* ── RESPONSIVE ── */
  @media (max-width: 520px) {
    .two-col, .model-select-row, .results-grid { grid-template-columns: 1fr; }
    .savings-block, .diff-block { flex-direction: column; align-items: flex-start; }
    .fin-param-row { grid-template-columns: 1fr; }
  }

  /* ── T1 : DARK MODE TOGGLE BUTTON ── */
  .theme-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; cursor: pointer; transition: border-color 0.15s;
    flex-shrink: 0; color: var(--text-2);
  }
  .theme-btn:hover { border-color: var(--text-2); color: var(--text); }

  /* ── G5 : TRANSITIONS ENTRE PAGES ── */
  @keyframes pageIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .page-section.active { animation: pageIn 0.18s ease; }

  /* ── G3 : pastille uniquement sur la page active (gérée par .active) ── */

  /* ── T2 : BOUTON PARTAGER ── */
  .share-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 12px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); cursor: pointer;
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; font-size: 11px; font-weight: 500;
    color: var(--text-3); transition: all 0.15s; white-space: nowrap;
    text-decoration: none;
  }
  .share-btn:hover { border-color: var(--text-2); color: var(--text); }
  .share-toast {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    background: #1c1b18; color: #fff; font-size: 13px; padding: 10px 18px;
    border-radius: 10px; z-index: 9999; opacity: 0; pointer-events: none;
    transition: opacity 0.2s;
  }
  .share-toast.visible { opacity: 1; }

  /* ── Navigation prev / next ── */
  .page-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 0 0.5rem; gap: 0.5rem;
  }
  .page-nav-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 9px 18px; border: 1px solid var(--border); border-radius: 12px;
    background: var(--surface); cursor: pointer;
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; font-size: 13px; font-weight: 500;
    color: var(--text-2); transition: border-color 0.15s, color 0.15s, background 0.15s;
    text-decoration: none; white-space: nowrap;
  }
  .page-nav-btn:hover { border-color: var(--text-2); color: var(--text); background: var(--bg); }
  .page-nav-btn.next  {
    background: var(--ev); border-color: var(--ev); color: #fff; font-weight: 600;
  }
  .page-nav-btn.next:hover { filter: brightness(1.1); }

  /* ── GUIDE / MODAL HOW-TO ── */
  .howto-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.45);
    z-index: 5000; opacity: 0; pointer-events: none; transition: opacity 0.2s;
  }
  .howto-overlay.open { opacity: 1; pointer-events: all; }
  .howto-modal {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.97);
    z-index: 5001; width: min(560px, calc(100vw - 2rem));
    max-height: calc(100vh - 3rem); overflow-y: auto;
    background: var(--surface); border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 56px rgba(0,0,0,0.2);
    padding: 1.5rem; opacity: 0; pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .howto-modal.open { opacity: 1; pointer-events: all; transform: translate(-50%, -50%) scale(1); }
  .howto-modal-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 1.25rem; gap: 1rem;
  }
  .howto-modal-header h2 { font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; font-size: 20px; font-weight: 600; color: var(--text); }
  .howto-modal-header p  { font-size: 12px; color: var(--text-3); margin-top: 3px; }
  .howto-close {
    background: none; border: 1px solid var(--border); cursor: pointer;
    padding: 4px 8px; border-radius: 8px; color: var(--text-3); font-size: 13px;
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; transition: all 0.15s; flex-shrink: 0;
  }
  .howto-close:hover { border-color: var(--text-2); color: var(--text); }
  .howto-step {
    display: flex; gap: 1rem; padding: 1rem 0;
    border-bottom: 1px solid var(--border);
  }
  .howto-step:last-child { border-bottom: none; padding-bottom: 0; }
  .howto-step-badge {
    display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0;
  }
  .howto-step-num {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: var(--text-2);
  }
  .howto-step-icon { font-size: 20px; line-height: 1; }
  .howto-step-body { flex: 1; min-width: 0; }
  .howto-step-title { font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 8px; }
  .howto-step-list {
    list-style: none; display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px;
  }
  .howto-step-list li {
    font-size: 12px; color: var(--text-2); display: flex; gap: 7px; line-height: 1.5;
  }
  .howto-step-list li::before { content: '→'; color: var(--ev); font-weight: 700; flex-shrink: 0; }
  .howto-step-list li em { color: var(--text-3); font-style: normal; }
  .howto-step-cta {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 14px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg); cursor: pointer;
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; font-size: 12px; font-weight: 500;
    color: var(--text-2); transition: all 0.15s;
  }
  .howto-step-cta:hover { border-color: var(--ev); color: var(--ev); background: var(--ev-light); }

  /* ── T4 : ALERTES VALIDATION ── */
  .input-warning {
    display: none; align-items: center; gap: 6px;
    background: #fff8e1; border: 1px solid #f0c040; border-radius: 8px;
    padding: 8px 12px; font-size: 12px; color: #7a5c00; margin-top: 8px;
  }
  .input-warning.visible { display: flex; }
  .input-warning svg { flex-shrink: 0; }
  [data-theme="dark"] .input-warning {
    background: #2a1f00; border-color: #8a6800; color: #f0c040;
  }

  /* ── F4 : TOOLTIPS ── */
  .tip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; border-radius: 50%;
    background: var(--border); font-size: 9px; font-weight: 700;
    color: var(--text-2); cursor: help; position: relative;
    flex-shrink: 0; vertical-align: middle; margin-left: 4px;
  }
  .tip::after {
    content: attr(data-tip);
    position: absolute; bottom: calc(100% + 7px); left: 50%;
    transform: translateX(-50%);
    background: #1c1b18; color: #fff; font-size: 11px; line-height: 1.5;
    padding: 8px 12px; border-radius: 8px; width: 230px;
    opacity: 0; pointer-events: none; transition: opacity 0.15s; z-index: 500;
    white-space: normal; font-weight: 400;
  }
  .tip:hover::after { opacity: 1; }
  .tip:focus::after { opacity: 1; }

  /* ── F5 : SÉPARATEUR RECHARGE ── */
  .rc-bars-sep {
    font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-3); padding: 6px 0 2px; font-weight: 500;
  }

  /* ── G1 : GRAPHIQUE TCO ── */
  .tco-chart-wrap {
    margin: 1.5rem 0 0.5rem;
    background: var(--bg); border-radius: 12px; padding: 1rem 1rem 0.5rem;
  }
  .tco-chart-title {
    font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-3); margin-bottom: 0.75rem; font-weight: 500;
  }
  .tco-chart-svg { width: 100%; display: block; }
  .tco-chart-legend {
    display: flex; gap: 1.25rem; margin-top: 0.5rem; padding: 0 0.25rem;
  }
  .tco-chart-leg-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-2); }
  .tco-chart-leg-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

  /* ── G2 : HOME — SECTION PÉRIMÈTRE & WAVESTONE ── */
  .home-scope {
    margin-top: 2rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden;
  }
  .home-scope-header {
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 16px; font-size: 11px; font-weight: 600;
    letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-2);
  }
  .home-scope-body {
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--surface);
  }
  .home-scope-col { padding: 1rem 1.1rem; }
  .home-scope-col + .home-scope-col { border-left: 1px solid var(--border); }
  .home-scope-col-title { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.6rem; }
  .home-scope-col.ok .home-scope-col-title { color: var(--ev); }
  .home-scope-col.nok .home-scope-col-title { color: var(--text-2); }
  .home-scope-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
  .home-scope-list li { display: flex; gap: 7px; font-size: 12px; color: var(--text-2); line-height: 1.4; }
  .home-scope-list li::before { flex-shrink: 0; font-size: 12px; margin-top: 1px; }
  .home-scope-col.ok  .home-scope-list li::before { content: '✓'; color: var(--ev); font-weight: 700; }
  .home-scope-col.nok .home-scope-list li::before { content: '○'; color: var(--text-3); }
  @media (max-width: 520px) { .home-scope-body { grid-template-columns: 1fr; } .home-scope-col + .home-scope-col { border-left: none; border-top: 1px solid var(--border); } }

  .wavestone-cta {
    margin-top: 1.25rem;
    background: linear-gradient(135deg, #250F6B 0%, #451DC7 100%);
    border-radius: var(--radius); padding: 1.25rem 1.5rem;
    display: flex; flex-direction: column; gap: 0.75rem;
  }
  .wavestone-cta-top { display: flex; align-items: flex-start; gap: 0.75rem; }
  .wavestone-logo-badge {
    width: 36px; height: 36px; border-radius: 8px; background: #fff;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    font-size: 18px;
  }
  .wavestone-cta-text h3 { font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 4px; }
  .wavestone-cta-text p  { font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.55; }
  .wavestone-cta-points { display: flex; flex-direction: column; gap: 4px; }
  .wavestone-cta-point { display: flex; gap: 7px; font-size: 12px; color: rgba(255,255,255,0.8); }
  .wavestone-cta-point::before { content: '→'; color: #04F06A; font-weight: 700; flex-shrink: 0; }
  .wavestone-cta-link {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.12); color: #fff; font-size: 12px; font-weight: 500;
    padding: 8px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
    text-decoration: none; transition: background 0.15s; align-self: flex-start;
  }
  .wavestone-cta-link:hover { background: rgba(255,255,255,0.2); }

  /* ── ENTREPRISE / LOGEMENT TOGGLES ── */
  .enterprise-toggle-row { display: flex; align-items: center; gap: 0.75rem; margin: 0.75rem 0; }
  .enterprise-toggle {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px; border-radius: 20px; border: 1.5px solid var(--border);
    background: var(--card); color: var(--text-2); font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all 0.15s;
  }
  .enterprise-toggle:hover { color: var(--text); border-color: var(--text-2); }
  .enterprise-toggle.active { background: var(--gas); border-color: var(--gas); color: #fff; }
  .enterprise-toggle-check {
    width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px;
  }
  .enterprise-toggle.active .enterprise-toggle-check::after { content: '✓'; }
  .enterprise-toggle-hint { font-size: 12px; color: var(--text-3); }

  .rc-subsection-title {
    font-size: 13px; font-weight: 600; color: var(--text-2);
    margin: 1rem 0 0.5rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border);
  }

  .logement-tabs { display: flex; gap: 6px; margin-bottom: 0.75rem; flex-wrap: wrap; }
  .logement-tab {
    padding: 6px 14px; border-radius: 8px; border: 1.5px solid var(--border);
    background: var(--card); color: var(--text-2); font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all 0.15s;
  }
  .logement-tab:hover { color: var(--text); border-color: var(--text-2); }
  .logement-tab.active { background: var(--gas); border-color: var(--gas); color: #fff; }

  .copro-note {
    background: var(--ev-light); border: 1px solid rgba(0,122,53,0.2);
    border-radius: 8px; padding: 0.6rem 0.85rem; font-size: 12px;
    color: var(--text-2); line-height: 1.5; margin-bottom: 0.75rem;
  }

  .souterrain-check-row {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    font-size: 13px; color: var(--text-2);
  }
  .souterrain-check-row input[type=checkbox] { width: 15px; height: 15px; cursor: pointer; }

  /* ── FISCALITÉ ENTREPRISE VOITURE ── */
  .ent-col-label { font-size: 13px; font-weight: 600; margin-bottom: 0.6rem; }
  .ent-auto-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 4px 0; border-top: 1px dashed var(--border); margin-top: 4px;
  }
  .ent-auto-label { font-size: 12px; color: var(--text-3); }
  .ent-auto-val   { font-size: 13px; font-weight: 600; }
  .ent-pol-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
  .ent-pol-tab {
    padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border);
    background: var(--card); color: var(--text-2); font-size: 11px; font-weight: 500;
    cursor: pointer; transition: all 0.15s;
  }
  .ent-pol-tab:hover { border-color: var(--text-2); color: var(--text); }
  .ent-pol-tab.active { background: var(--gas); border-color: var(--gas); color: #fff; }
  .ent-exempt-block {
    display: flex; align-items: center; gap: 7px;
    padding: 5px 0; font-size: 12px; color: var(--ev); border-top: 1px dashed var(--border);
  }
  .ent-exempt-block:first-of-type { border-top: none; }

  /* ── F6 : EXPORT / IMPRESSION ── */
  .print-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--surface); cursor: pointer;
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif; font-size: 12px; font-weight: 500;
    color: var(--text-2); transition: all 0.15s;
  }
  .print-btn:hover { border-color: var(--text-2); color: var(--text); }

  /* ── TCO : INTRO & WAVESTONE ── */
  .tco-intro-block {
    background: var(--ev-light); border: 1px solid rgba(0,122,53,0.15);
    border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 1.25rem;
  }
  .tco-intro-block p { font-size: 13px; color: var(--text-2); line-height: 1.6; }
  .tco-intro-block p + p { margin-top: 0.5rem; }
  .tco-intro-block strong { color: var(--text); }

  /* ── F2 : SÉLECTEUR PAYS ── */
  .country-selector {
    display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.75rem;
  }
  .country-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--surface); cursor: pointer; font-size: 11px; font-weight: 500;
    color: var(--text-2); transition: all 0.12s; white-space: nowrap;
    font-family: 'Aptos', 'Segoe UI', 'DM Sans', -apple-system, system-ui, sans-serif;
  }
  .country-btn:hover { border-color: var(--text-2); color: var(--text); }
  .country-btn.active {
    background: var(--gas); border-color: var(--gas); color: #fff;
  }
  .country-btn .country-flag { font-size: 13px; }
  .country-intensity {
    font-size: 10px; opacity: 0.75;
  }
  .co2-country-context {
    display: flex; align-items: flex-start; gap: 8px;
    background: var(--bg); border-radius: 10px; padding: 10px 12px;
    margin-bottom: 0.75rem; font-size: 12px; color: var(--text-2); line-height: 1.5;
  }
  .co2-country-context .co2-icon { font-size: 16px; flex-shrink: 0; }
  .co2-country-context strong { color: var(--text); }

  /* ── @MEDIA PRINT ── */
  @media print {
    [data-theme="dark"] {
      --ev: #007A35; --ev-light: #CAFEE0; --gas: #451DC7; --gas-light: #EEEAFA;
      --bg: #F6F6F6; --surface: #fff; --text: #000000; --text-2: #4A4A4A;
      --text-3: #9A9A9A; --border: #E0E0E0;
    }
    [data-theme="dark"] .input-warning { background: #fff8e1; border-color: #f0c040; color: #7a5c00; }
    body { background: #fff; padding: 0; }
    .top-bar, .footer-credit, .footer-voiture .note, .print-btn,
    .tco-edit-btn, .slider-field, .slider-field-nb, .card-header .import-btn,
    .tco-tabs, .tco-panel:not(.active) { display: none !important; }
    .page-section { display: none !important; }
    .page-section#page-tco { display: block !important; animation: none !important; }
    .card { box-shadow: none; border: 1px solid #ddd; }
    .tco-chart-wrap { background: #f5f5f5; }
    .wavestone-cta { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  }
