.route-energy-shell { display: grid; gap: 24px; }
.route-energy-hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: center; padding: clamp(28px, 5vw, 52px); border: 1px solid var(--primary); border-radius: var(--radius-lg); background: var(--primary); color: #ffffff; }
.route-energy-hero .eyebrow { color: #d8e8f4; }
.route-energy-hero h1 { margin-bottom: 12px; color: #ffffff; }
.route-energy-hero p { max-width: 720px; margin-bottom: 22px; color: #e7f0f7; font-size: 1.05rem; }
.route-energy-hero-points { display: flex; flex-wrap: wrap; gap: 8px; }
.route-energy-hero-points span { padding: 7px 10px; border: 1px solid #87b8dc; border-radius: 8px; color: #ffffff; font-size: .9rem; font-weight: 780; }
.route-energy-data-status { display: grid; gap: 9px; padding: 19px; border: 1px solid #c6cfd6; border-radius: 15px; background: #ffffff; color: #252b30; }
.route-energy-data-status > strong { margin-bottom: 3px; color: #173f63; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.route-energy-data-status > div { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 8px; border-bottom: 1px solid #dce2e6; }
.route-energy-data-status > div span { color: #596975; font-size: .9rem; }
.route-energy-data-status > div b { color: #252b30; }
.route-energy-data-status small { color: #596975; font-size: .9rem; }

.route-energy-form { display: grid; gap: 16px; }
.route-form-section { overflow: hidden; }
.route-route-section { position: relative; z-index: 2; }
.route-form-heading h2 { margin: 0 0 3px; font-size: 1.25rem; }
.route-form-heading p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.route-step-number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 11px; background: var(--primary); color: var(--on-primary); font-size: .9rem; font-weight: 900; }
.route-form-body { display: grid; gap: 18px; padding: 22px; }
.route-form-body > .button { justify-self: start; margin-top: 2px; }
.route-saved-state { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--success); border-radius: 10px; background: var(--success-soft); color: var(--success-text); font-size: .9rem; font-weight: 780; }
.route-saved-state .button { flex: 0 0 auto; }
.route-address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.route-address-letter { display: inline-grid; width: 22px; height: 22px; margin-right: 5px; place-items: center; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: .9rem; font-weight: 900; vertical-align: middle; }
.route-repeat-options { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(190px, .65fr); gap: 12px 17px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.route-repeat-options .field { min-width: 0; }
.route-round-trip-count[hidden] { display: none !important; }
.route-count-field { display: grid; grid-template-columns: minmax(88px, 120px) auto; gap: 9px; align-items: center; }
.route-count-field input { min-width: 0; }
.route-count-field > span { color: var(--muted); font-size: .9rem; font-weight: 760; white-space: nowrap; }
.route-repeat-summary { grid-column: 1 / -1; margin: 0; padding-top: 2px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.route-address-field { position: relative; }
.route-address-suggestions { position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 35; display: grid; max-height: 310px; overflow-y: auto; padding: 6px; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--surface); }
.route-address-option { display: grid; gap: 2px; width: 100%; padding: 10px 11px; border: 0; border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; text-align: left; }
.route-address-option:hover, .route-address-option.is-active { background: var(--surface-2); color: var(--text); }
.route-address-option strong { font-size: .9rem; }
.route-address-option small { color: var(--muted); font-size: .9rem; }
.route-address-empty, .route-address-provider { display: block; padding: 9px 10px; color: var(--muted); font-size: .9rem; }
.route-address-provider { border-top: 1px solid var(--border); font-weight: 720; }
.route-steps { display: grid; gap: 10px; }
.route-step-row { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 8px; align-items: end; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.route-remove-step { width: 42px; height: 46px; border: 1px solid var(--danger); border-radius: 10px; background: var(--danger); color: var(--on-danger); cursor: pointer; font-size: 1.35rem; font-weight: 700; }
.route-remove-step:hover { background: var(--danger-strong); }

.route-choice-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-width: 620px; }
.route-choice-switch label, .route-energy-switch label { cursor: pointer; }
.route-choice-switch input, .route-energy-switch input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.route-choice-switch span { display: grid; place-items: center; min-height: 48px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); color: var(--muted); font-size: .9rem; font-weight: 820; }
.route-choice-switch input:checked + span { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.route-choice-switch label.is-disabled span, .route-energy-switch label.is-disabled span { border-color: var(--border-strong); background: var(--surface-3); color: var(--muted); cursor: not-allowed; }
.route-energy-switch label.is-disabled span::after { content: "Indisponible avec ce véhicule"; color: var(--muted); font-size: .9rem; font-weight: 800; }
.route-energy-switch label.is-disabled small { color: var(--muted); }
.route-garage-reading { margin-top: 11px; padding: 11px 13px; border: 1px solid var(--success); border-radius: 10px; background: var(--success-soft); color: var(--success-text); font-size: .9rem; font-weight: 760; }
.route-garage-reading.is-missing { border-color: var(--border); background: var(--surface-2); color: var(--muted); }
.route-empty-garage { display: grid; justify-items: start; gap: 8px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.route-empty-garage p { margin: 0; color: var(--muted); font-size: .9rem; }
.route-inline-alert { margin: 0; }

.route-energy-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.route-energy-switch span { display: grid; gap: 3px; min-height: 70px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); }
.route-energy-switch small { color: var(--muted); font-size: .9rem; }
.route-energy-switch input:checked + span { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.route-energy-switch input:checked + span small { color: #d8e8f4; }
.route-energy-fields { padding-top: 2px; }
.route-energy-fields .field.is-inactive > label,
.route-energy-fields .field.is-inactive .field-help { color: var(--muted); }
.route-energy-fields .field.is-inactive input,
.route-energy-fields .field.is-inactive select,
.route-energy-fields .field.is-inactive textarea { border-color: var(--border); background: var(--surface-3); color: var(--muted); cursor: not-allowed; }
.route-energy-fields .field.is-inactive .route-unit-field > span { background: var(--surface-3); color: var(--muted); }
.route-advanced .field.is-inactive { pointer-events: none; padding: 10px; border-radius: 10px; background: var(--surface-3); color: var(--muted); }
.route-advanced .field.is-inactive > label::after { content: " · non applicable"; color: var(--muted); font-size: .9rem; font-weight: 650; }
.route-unit-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.route-unit-field input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.route-unit-field > span { min-width: 86px; display: grid; place-items: center; margin-inline-start: -1px; padding: 0 12px; border: 1px solid var(--border); border-top-right-radius: 11px; border-bottom-right-radius: 11px; background: var(--surface-2); color: var(--muted); font-size: .9rem; font-weight: 800; }
.route-percent-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.route-percent-field input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.route-percent-field > span { min-width: 50px; display: grid; place-items: center; margin-inline-start: -1px; padding: 0 12px; border: 1px solid var(--border); border-top-right-radius: 11px; border-bottom-right-radius: 11px; background: var(--surface-2); color: var(--muted); font-size: .9rem; font-weight: 800; }
.route-quick-levels { display: flex; flex-wrap: wrap; gap: 5px; }
.route-quick-levels button { padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: .9rem; font-weight: 760; }
.route-quick-levels button:hover { border-color: var(--primary); color: var(--link); }
.route-advanced > div { padding: 16px; }
.route-remember { padding-top: 2px; }
.route-submit-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.route-submit-row > div { display: grid; }
.route-submit-row span { color: var(--muted); font-size: .9rem; }
.route-submit-actions, .route-results-actions, .route-plan-actions, .route-stop-actions, .route-station-actions, .route-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.route-submit-row > .route-submit-actions { display: flex; justify-content: flex-end; }
.route-reset, .route-reset:hover, .route-reset:focus { border-color: var(--danger); background: var(--surface); color: var(--danger-text); }
.route-reset:hover, .route-reset:focus-visible { border-color: var(--danger-strong); color: var(--danger-text); background: var(--danger-soft); }
.route-submit { min-width: 220px; }
.route-submit, .route-submit:hover, .route-submit:focus, .route-submit span { color: #ffffff; }
.route-submit span { font-size: .9rem; }
.route-submit:disabled { cursor: wait; background: var(--secondary); }
.route-live-status { padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-weight: 720; }
.route-live-status.is-loading { border-color: var(--primary); color: var(--link); }
.route-live-status.is-error { border-color: var(--danger); background: var(--danger-soft); color: var(--danger-text); }

.route-results { display: grid; gap: 20px; padding-top: 10px; }
.route-results-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.route-results-heading h2 { margin: 7px 0 6px; }
.route-results-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.route-simple-summary { display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 10px; }
.route-simple-item { display: grid; gap: 5px; padding: 18px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); }
.route-simple-item.is-plan { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.route-simple-item.is-arrival { border-color: var(--success); background: var(--success-soft); color: var(--success-text); }
.route-simple-item.is-danger { border-color: var(--danger); background: var(--danger-soft); color: var(--danger-text); }
.route-simple-item > span { color: var(--muted); font-size: .9rem; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
.route-simple-item strong { font-size: 1.28rem; }
.route-simple-item small { color: var(--muted); font-size: .9rem; }
.route-simple-item.is-plan > span, .route-simple-item.is-plan small { color: #d8e8f4; }
.route-simple-item.is-arrival > span, .route-simple-item.is-arrival small { color: var(--success-text); }
.route-simple-item.is-danger > span, .route-simple-item.is-danger small { color: var(--danger-text); }
.route-result-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.route-result-details .route-result-stats { padding: 14px; }
.route-result-stat { display: grid; gap: 7px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.route-result-stat > span { color: var(--muted); font-size: .9rem; font-weight: 820; letter-spacing: .05em; text-transform: uppercase; }
.route-result-stat strong { font-size: 1.35rem; line-height: 1.15; }
.route-result-stat small { color: var(--muted); font-size: .9rem; }

.route-map-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.route-map-toolbar { min-height: 64px; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.route-map-toolbar > div:first-child { display: grid; }
.route-map-toolbar span { color: var(--muted); font-size: .9rem; }
.route-map-toolbar > div:last-child { display: flex; gap: 6px; }
.route-map-toolbar button { min-width: 38px; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); cursor: pointer; font-weight: 840; }
.route-map-toolbar button:hover { border-color: var(--primary); color: var(--link); }
.route-map-legend { display: flex; flex-wrap: wrap; gap: 7px 15px; padding: 9px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.route-map-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; font-weight: 760; }
.route-map-legend span::before { content: ""; width: 11px; height: 11px; border: 2px solid #ffffff; border-radius: 50%; background: #30363d; }
.route-map-legend .is-route::before { background: #28784f; }
.route-map-legend .is-nearby::before { background: #2a5a8c; }
.route-map-legend .is-limit::before { background: #30363d; }
.route-map-legend .is-recommended::before { width: 15px; height: 15px; background: #c52f3d; }
.route-map-legend .is-favorite::before { background: #30363d; outline: 3px solid #d6a900; outline-offset: 1px; }
.route-map-waypoint-summary { display: grid; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--text); }
.route-map-waypoint-summary > strong { font-size: .9rem; letter-spacing: .03em; text-transform: uppercase; }
.route-map-waypoint-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.route-map-waypoint-chip { display: inline-flex; align-items: center; min-width: 0; gap: 7px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .9rem; }
.route-map-waypoint-chip b { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: .9rem; }
.route-map-waypoint-chip span { overflow: hidden; max-width: 420px; text-overflow: ellipsis; white-space: nowrap; }
.route-map-waypoint-chip-remove { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; margin: -2px -3px -2px 1px; padding: 0; border: 1px solid var(--danger); border-radius: 50%; background: var(--surface); color: var(--danger-text); cursor: pointer; font: inherit; font-size: .9rem; font-weight: 900; line-height: 1; }
.route-map-waypoint-chip-remove:hover, .route-map-waypoint-chip-remove:focus-visible { background: #b42318; color: #fff; }
.route-map-reroute-status { padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: .9rem; font-weight: 760; }
.route-map-reroute-status.is-loading { background: var(--primary-soft); color: var(--text); }
.route-map-reroute-status.is-success { background: #e8f5ec; color: #17683f; }
.route-map-reroute-status.is-error { background: #fff0f1; color: #9b1c2c; }
.route-map { position: relative; height: 480px; overflow: hidden; background: #dce2e6; cursor: grab; touch-action: none; overscroll-behavior: contain; user-select: none; -webkit-user-select: none; }
.route-map:active { cursor: grabbing; }
/* v0.9.68 : ancien écran « lancez le calcul » supprimé. Cette règle reste
   volontairement pour neutraliser un HTML/CSS mis en cache pendant la mise à jour. */
.route-map-empty, .route-map-empty[hidden], .route-energy-shell.has-simulation .route-map-empty { display: none !important; pointer-events: none !important; }
.route-map-tiles, .route-map-overlay, .route-map-markers { position: absolute; inset: 0; }
.route-map-tiles { pointer-events: none; }
.route-map-tiles img { position: absolute; width: 256px; height: 256px; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.route-map-overlay { z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.route-map-overlay polyline { fill: none; stroke: #173f63; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.route-map-markers { z-index: 3; pointer-events: none; }
.route-map-marker, .route-map-waypoint { position: absolute; translate: -50% -50%; display: grid; place-items: center; pointer-events: auto; }
.route-map-marker { width: var(--marker-size, 16px); height: var(--marker-size, 16px); padding: 0; border: 3px solid #ffffff; border-radius: 50%; background: #30363d; cursor: pointer; }
.route-map-marker.is-route { background: #28784f; }
.route-map-marker.is-nearby { background: #2a5a8c; }
.route-map-marker.is-limit { background: #30363d; }
.route-map-marker.is-recommended { z-index: 3; border-width: 4px; background: #c52f3d; }
.route-map-marker.is-favorite { z-index: 4; outline: 4px solid #d6a900; outline-offset: 2px; }
.route-map-marker.is-selected { z-index: 5; outline: 3px solid #173f63; outline-offset: 2px; }
.route-map-waypoint { width: 32px; height: 32px; padding: 0; border: 3px solid #ffffff; border-radius: 9px; background: #173f63; color: #ffffff; font-size: .9rem; font-weight: 900; }
.route-map-waypoint.is-removable { width: 38px; height: 38px; cursor: pointer; }
.route-map-waypoint-remove { position: absolute; top: -9px; right: -9px; display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid #ffffff; border-radius: 50%; background: #b42332; color: #ffffff; font-size: .9rem; line-height: 1; font-weight: 900; pointer-events: none; }
.route-map-gesture { position: absolute; top: 50%; left: 50%; z-index: 6; translate: -50% -50%; width: min(calc(100% - 32px), 420px); padding: 13px 16px; border: 2px solid #ffffff; border-radius: 11px; background: #173f63; color: #ffffff; pointer-events: none; text-align: center; font-size: .9rem; font-weight: 820; }
.route-map-gesture-mobile { display: none; }
.route-map-attribution { position: absolute; right: 5px; bottom: 5px; z-index: 4; padding: 3px 6px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--text); font-size: .9rem; }
.route-map-attribution a { color: var(--link); }

.route-plan-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.route-plan-card > header { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px; border-bottom: 1px solid var(--border); }
.route-plan-actions { justify-content: flex-end; }
.route-plan-card h2 { margin: 6px 0 0; font-size: 1.3rem; }
.route-plan-card.is-feasible { border-color: var(--success); }
.route-plan-card.is-impossible { border-color: var(--danger); }
.route-feasibility { flex: 0 0 auto; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: .9rem; font-weight: 850; }
.is-feasible .route-feasibility { background: var(--success); color: var(--on-success); }
.is-impossible .route-feasibility { background: var(--danger); color: var(--on-danger); }
.route-stop-list { display: grid; }
.route-stop-item { display: grid; grid-template-columns: 38px minmax(180px, 1.2fr) minmax(420px, 1.35fr) auto; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.route-stop-item.is-recommended { background: var(--danger-soft); }
.route-stop-order { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--danger); color: var(--on-danger); font-weight: 900; }
.route-stop-copy { display: grid; }
.route-stop-label { color: var(--danger-text); font-size: .9rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.route-stop-brand, .route-selected-brand { color: var(--link); font-size: .9rem; }
.route-stop-copy span { color: var(--muted); font-size: .9rem; }
.route-stop-details { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.route-stop-details > span { display: grid; gap: 2px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.route-stop-details small { color: var(--muted); font-size: .9rem; }
.route-stop-details b { font-size: .9rem; }
.route-stop-empty { padding: 24px; }
.route-stop-empty p { margin: 5px 0 0; color: var(--muted); }
.route-destination-summary { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.route-destination-summary span { font-size: .9rem; }
.route-destination-summary.is-reached { border-color: var(--success); background: var(--success-soft); color: var(--success-text); }
.route-destination-summary.is-missed { border-color: var(--danger); background: var(--danger-soft); color: var(--danger-text); }
.route-stop-list > .route-destination-summary:last-child { border-bottom: 0; }
.route-stop-total { display: flex; justify-content: flex-end; gap: 16px; padding: 14px 20px; background: var(--surface-2); font-size: .9rem; }

.route-stations-card { overflow: hidden; }
.route-stations-heading { display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: 20px; border-bottom: 1px solid var(--border); }
.route-stations-heading h2 { margin: 6px 0 3px; }
.route-stations-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.route-station-search { display: grid; gap: 5px; width: min(100%, 390px); }
.route-station-search > span { color: var(--label-text); font-size: .9rem; font-weight: 820; }
.route-station-search > small { min-height: 1em; color: var(--muted); font-size: .9rem; }
.route-station-verdict { display: grid; gap: 3px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.route-station-verdict span { color: var(--muted); font-size: .9rem; }
.route-station-verdict.is-reachable { border-color: var(--success); background: var(--success-soft); }
.route-station-verdict.is-reachable strong { color: var(--success-text); }
.route-station-verdict.is-later { border-color: var(--danger); background: var(--danger-soft); }
.route-station-verdict.is-later strong { color: var(--danger-text); }
.route-station-list { display: grid; }
.route-station-item { display: grid; grid-template-columns: 42px minmax(200px, 1.4fr) minmax(150px, .5fr) minmax(180px, .6fr) auto; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.route-station-item.is-favorite { background: var(--surface-2); }
.route-station-badges .is-favorite { border-color: #e0b51a; background: #fff7cc; color: #705600; }
.route-station-item.is-recommended { background: var(--success-soft); }
.route-station-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #30363d; color: #ffffff; font-size: .9rem; font-weight: 900; }
.route-station-icon-electric { background: #28784f; }
.route-station-copy { display: grid; gap: 2px; min-width: 0; }
.route-station-copy > span { overflow: hidden; color: var(--muted); font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.route-station-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.route-station-badges span { padding: 3px 6px; border-radius: 5px; background: var(--surface-2); color: var(--muted); font-size: .9rem; font-weight: 760; }
.route-station-badges .is-plan { background: var(--success); color: var(--on-success); }
.route-station-badges .is-brand { background: var(--primary); color: var(--on-primary); }
.route-station-badges .is-route { background: #28784f; color: #ffffff; }
.route-station-badges .is-nearby { background: #2a5a8c; color: #ffffff; }
.route-station-badges .is-limit { background: #30363d; color: #ffffff; }
.route-station-price { display: grid; }
.route-station-price strong { font-size: .9rem; }
.route-station-price small { color: var(--muted); font-size: .9rem; }
.route-reachability { padding: 7px 9px; border-radius: 7px; font-size: .9rem; font-weight: 760; }
.route-reachability.is-reachable { background: var(--success-soft); color: var(--success-text); }
.route-reachability.is-later { background: var(--surface-2); color: var(--muted); }
.route-station-empty { padding: 24px; color: var(--muted); }
.route-load-more-row { display: flex; justify-content: center; padding: 18px 20px; }
.route-load-more { margin: 0; }
.route-disclaimer { margin: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); color: var(--muted); font-size: .9rem; }

.route-station-dialog { width: min(760px, calc(100% - 28px)); max-height: min(860px, calc(100dvh - 40px)); padding: 0; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 16px; background: var(--surface); color: var(--text); }
.route-station-dialog::backdrop { background: #30363d; }
.route-dialog-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; max-height: min(858px, calc(100dvh - 42px)); overflow: hidden; }
.route-dialog-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 19px 21px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.route-dialog-header h2 { margin: 5px 0 0; font-size: 1.35rem; }
.route-dialog-close { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.3rem; font-weight: 800; }
.route-dialog-close:hover, .route-dialog-close:focus { border-color: var(--danger); color: var(--danger-text); }
.route-dialog-body { display: grid; min-height: 0; gap: 15px; padding: 20px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.route-dialog-summary { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 13px; align-items: center; }
.route-dialog-summary > div { display: grid; gap: 3px; }
.route-dialog-summary p { margin: 0; color: var(--muted); font-size: .9rem; }
.route-dialog-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.route-dialog-details > div { display: grid; gap: 4px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); }
.route-dialog-details span { color: var(--muted); font-size: .9rem; font-weight: 760; text-transform: uppercase; }
.route-dialog-details strong { font-size: .9rem; }
.route-dialog-offerings { display: grid; gap: 9px; }
.route-dialog-offerings h3 { margin: 0; font-size: .92rem; }
.route-offering-list { display: flex; flex-wrap: wrap; gap: 7px; }
.route-offering-list span { padding: 6px 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2); color: var(--text); font-size: .9rem; font-weight: 740; }
.route-offering-list .is-power { border-color: var(--success); background: var(--success-soft); color: var(--success-text); }
.route-dialog-message { margin: 0 20px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px; font-size: .9rem; font-weight: 760; }
.route-dialog-message.is-error { border-color: var(--danger); background: var(--danger-soft); color: var(--danger-text); }
.route-dialog-message.is-info { border-color: var(--primary); background: var(--surface-2); color: var(--link); }
.route-dialog-actions { justify-content: flex-end; padding: 16px 20px 20px; border-top: 1px solid var(--border); }

.route-admin-source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.route-admin-source { display: grid; gap: 16px; padding: 22px; }
.route-admin-source-head { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 13px; }
.route-admin-source h2 { margin: 0 0 4px; font-size: 1.25rem; }
.route-admin-source p { margin: 0; color: var(--muted); font-size: .9rem; }
.route-data-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 11px; background: #30363d; color: #ffffff; font-weight: 900; }
.route-data-mark-irve { background: #28784f; }
.route-admin-source-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.route-admin-source-stats > div { display: grid; gap: 3px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.route-admin-source-stats span { color: var(--muted); font-size: .9rem; }
.route-admin-source-stats strong { font-size: 1rem; }
.route-source-message { padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); }
.route-admin-source form { margin-top: auto; }
.route-admin-settings { margin-top: 22px; }
.route-price-group { margin-top: 18px; }
.route-fuel-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.route-admin-note { margin-top: 18px; padding: 17px 19px; border: 1px solid var(--danger); border-radius: 12px; background: var(--danger-soft); }
.route-admin-note strong { color: var(--danger-text); }
.route-admin-note p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }

@media (max-width: 1050px) {
    .route-simple-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .route-simple-item.is-plan { grid-column: span 2; grid-row: 1; }
    .route-result-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .route-stop-item { grid-template-columns: 38px minmax(0, 1fr) auto; }
    .route-stop-details { grid-column: 2 / -1; }
    .route-station-item { grid-template-columns: 42px minmax(0, 1fr) auto; }
    .route-station-price, .route-reachability { grid-column: 2; }
    .route-station-actions { grid-column: 3; grid-row: 1 / span 3; }
}

@media (max-width: 760px) {
    .route-energy-hero { grid-template-columns: 1fr; padding: 27px 20px; }
    .route-energy-data-status { max-width: none; }
    .route-address-grid, .route-energy-switch, .route-choice-switch, .route-admin-source-grid, .route-fuel-price-grid { grid-template-columns: 1fr; }
    .route-repeat-options { grid-template-columns: 1fr; padding: 12px; }
    .route-repeat-summary { grid-column: 1; }
    .route-count-field { grid-template-columns: minmax(84px, 120px) auto; }
    .route-step-number { width: 38px; height: 38px; }
    .route-form-body { padding: 17px; }
    .route-submit-row, .route-results-heading, .route-map-toolbar, .route-plan-card > header, .route-stations-heading { align-items: stretch; flex-direction: column; }
    .route-submit-actions, .route-results-actions, .route-plan-actions { width: 100%; justify-content: flex-start; }
    .route-submit-actions .button, .route-results-actions .button { flex: 1 1 210px; }
    .route-submit { min-width: 0; }
    .route-simple-summary, .route-result-stats { grid-template-columns: 1fr 1fr; }
    .route-map { height: 390px; }
    .route-map-gesture-desktop { display: none; }
    .route-map-gesture-mobile { display: inline; }
    .route-map-toolbar > div:last-child { justify-content: flex-start; }
    .route-feasibility { align-self: flex-start; }
    .route-stop-item { grid-template-columns: 34px minmax(0, 1fr); padding: 15px; }
    .route-stop-actions { grid-column: 2; justify-self: start; }
    .route-stop-details { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .route-stop-total { justify-content: space-between; }
    .route-station-search { width: 100%; }
    .route-station-item { grid-template-columns: 38px minmax(0, 1fr); padding: 14px; }
    .route-station-icon { width: 36px; height: 36px; }
    .route-station-price, .route-reachability, .route-station-actions { grid-column: 2; grid-row: auto; justify-self: start; }
    .route-destination-summary { align-items: flex-start; flex-direction: column; }
    .route-dialog-actions { position: sticky; bottom: 0; z-index: 2; justify-content: flex-start; padding: 12px 14px; background: var(--surface); }
    .route-station-dialog { width: auto; max-width: none; max-height: 82dvh; inset: auto 8px 8px; margin: 0; border-radius: 16px 16px 10px 10px; }
    .route-dialog-shell { height: min(82dvh, 680px); max-height: 82dvh; }
    .route-dialog-header { padding: 11px 13px; }
    .route-dialog-header h2 { font-size: 1.08rem; line-height: 1.25; }
    .route-dialog-body { padding: 12px 13px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    .route-dialog-message { margin: 0 13px; }
    .route-saved-state { align-items: stretch; flex-direction: column; }
}

@media (max-width: 460px) {
    .route-simple-summary, .route-result-stats { grid-template-columns: 1fr; }
    .route-simple-item.is-plan { grid-column: auto; grid-row: auto; }
    .route-map { height: 330px; }
    .route-stop-details { grid-template-columns: 1fr 1fr; }
    .route-step-row { grid-template-columns: minmax(0, 1fr) 38px; }
    .route-remove-step { width: 38px; }
    .route-dialog-details { grid-template-columns: 1fr; }
    .route-dialog-actions .button { width: 100%; }
}


/* v0.7 - choix du tracé et stations principales */
.route-road-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; padding: 18px; border-radius: 12px; background: var(--surface-2); }
.route-road-options > p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .9rem; }
.route-option-label { display: block; margin-bottom: 7px; color: var(--label-text); font-size: .9rem; font-weight: 820; }
.route-choice-switch-compact { width: 100%; }
.route-alternatives-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.route-alternatives-card > header { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.route-alternatives-card > header h2 { margin: 5px 0 0; }
.route-alternatives-card > header small { max-width: 470px; color: var(--muted); text-align: right; }
.route-alternative-status { min-height: 20px; line-height: 1.45; }
.route-alternative-status.is-loading { color: var(--link); font-weight: 760; }
.route-alternative-status.is-success { color: var(--success-text); font-weight: 780; }
.route-alternative-status.is-error { color: var(--danger-text); font-weight: 780; }
.route-alternatives { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.route-alternative { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); }
.route-alternative.is-selected { border: 2px solid var(--primary); padding: 13px; background: var(--surface); }
.route-alternative-copy { display: grid; gap: 7px; min-width: 0; }
.route-alternative-description { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.route-alternative-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.route-alternative-badges span { padding: 3px 6px; border-radius: 5px; background: var(--surface-3); color: var(--muted); font-size: .9rem; font-weight: 760; }
.route-alternative-badges .is-no-motorway, .route-alternative-badges .is-no-toll { background: var(--success-soft); color: var(--success-text); }
.route-brand-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.route-brand-chip { padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; font-size: .9rem; font-weight: 760; }
.route-brand-chip:hover { border-color: var(--primary); color: var(--link); }
@media (max-width: 900px) {
    .route-road-options { grid-template-columns: 1fr; }
    .route-road-options > p { grid-column: auto; }
    .route-alternatives-card > header { align-items: flex-start; flex-direction: column; }
    .route-alternatives-card > header small { text-align: left; }
}

/* Blocs repliables et option hiver. Les arrondis appartiennent au conteneur, pas au summary. */
.route-winter-option { margin-top: 2px; }
.route-winter-check { align-items: flex-start; padding: 13px 15px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); }
.route-winter-check > span { display: grid; gap: 3px; }
.route-winter-check small { color: var(--muted); font-size: .9rem; font-weight: 600; }

.route-collapsible-summary { grid-template-columns: 38px minmax(0, 1fr) 36px !important; font-weight: 850; }
.route-result-details > .rc-disclosure-summary { grid-template-columns: 34px minmax(0, 1fr) 36px !important; font-weight: 850; }
.route-collapsible-summary-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 10px; background: var(--primary); color: var(--on-primary); font-size: .9rem; font-weight: 950; }
.route-collapsible-summary-copy { display: grid; min-width: 0; gap: 2px; }
.route-collapsible-summary-copy strong { font-size: .94rem; }
.route-collapsible-summary-copy small { color: var(--muted); font-weight: 500; line-height: 1.5; }
.route-stations-content { border-top: 0; }
.route-result-details > summary::before { content: "B"; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--primary); color: var(--on-primary); font-size: .9rem; font-weight: 950; }
.route-result-details[open] > summary::before { border: 1px solid #fff; background: #fff; color: var(--primary); }

@media (max-width: 620px) {
    .route-collapsible-summary-copy small { white-space: normal; }
}

/* v0.9.28 — consultation, favoris, GPS et tracé personnalisable */
.route-readonly-notice {
    margin: 16px 0 0;
    border-color: #d9822b;
    background: #fff3e5;
    color: #6a3b0a;
    font-weight: 720;
}
.route-readonly-notice .alert-icon { border-color: #ffe0bd; background: #d9822b; }
[data-theme="dark"] .route-readonly-notice { border-color: #d9822b; background: #3a2a19; color: #ffd5a3; }
[data-theme="dark"] .route-readonly-notice .alert-icon { border-color: #5b4024; background: #f2a14e; }
.route-energy-shell.is-readonly .route-energy-form { position: relative; }
.route-energy-shell.is-readonly .route-energy-form::after { content: "Consultation uniquement"; position: sticky; bottom: 14px; z-index: 8; display: block; width: max-content; max-width: calc(100% - 28px); margin: -58px 14px 14px auto; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); font-size: .9rem; font-weight: 850; }
.route-energy-shell.is-readonly .route-energy-form button,
.route-energy-shell.is-readonly .route-energy-form input,
.route-energy-shell.is-readonly .route-energy-form select,
.route-energy-shell.is-readonly .route-energy-form textarea { cursor: not-allowed; }

.route-favorites-card > .route-collapsible-summary { grid-template-columns: 38px minmax(0, 1fr) auto 36px !important; }
.route-favorites-body { min-width: 0; }
.route-favorites-summary-icon { background: #a9611d; color: #ffffff; }
.route-favorites-summary-meta { display: inline-flex; align-items: center; gap: 10px; justify-self: end; }
.route-favorite-count-pill { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .9rem; font-weight: 800; white-space: nowrap; }
.route-favorite-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.route-favorite-item { display: grid; min-width: 0; gap: 7px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.route-favorite-item > header { display: flex; align-items: flex-start; justify-content: space-between; min-width: 0; gap: 10px; }
.route-favorite-item > header > span { display: grid; min-width: 0; gap: 2px; }
.route-favorite-item strong, .route-favorite-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-favorite-item small { color: var(--muted); font-size: .9rem; }
.route-favorite-public-note { margin: 0; color: var(--text); font-size: .9rem; line-height: 1.45; white-space: pre-wrap; }
.route-favorite-empty { display: grid; gap: 3px; padding: 22px 18px; color: var(--muted); }
.route-favorite-empty strong { color: var(--text); }

.route-dialog-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.route-edited-badge { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 4px 8px; border: 1px solid var(--warning); border-radius: 999px; background: var(--warning-soft); color: var(--warning-text); font-size: .9rem; font-weight: 850; line-height: 1; white-space: nowrap; }
.route-edited-badge-inline { margin-right: 2px; }
.route-shared-station-details { display: grid; gap: 10px; }
.route-station-public-note { display: grid; gap: 4px; padding: 11px 12px; border-radius: 9px; background: var(--surface-2); }
.route-station-public-note strong { font-size: .9rem; }
.route-station-public-note p { margin: 0; color: var(--text); font-size: .9rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.route-community-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.route-community-label { color: var(--success-text); font-size: .9rem; font-weight: 750; }
.route-community-history-link { padding: 0; border: 0; background: transparent; color: var(--link); cursor: pointer; font-size: .9rem; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.route-community-history-link:hover, .route-community-history-link:focus-visible { color: var(--link-strong); }
.route-favorite-control { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.route-favorite-control > div { display: grid; min-width: 0; gap: 2px; }
.route-favorite-control > div strong { font-size: .9rem; }
.route-favorite-control > div small { color: var(--muted); font-size: .9rem; }

.route-gps-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.route-gps-card h2 { margin: 3px 0 6px; font-size: 1.2rem; }
.route-gps-card p, .route-gps-card > small { margin: 0; color: var(--muted); font-size: .9rem; }
.route-gps-card > small { grid-column: 1 / -1; }
.route-gps-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.route-waze-step-list { display: grid; gap: 8px; }
.route-waze-step-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); text-decoration: none; }
.route-waze-step-list a:hover { border-color: var(--primary); }
.route-waze-step-list a span { display: grid; gap: 2px; }
.route-waze-step-list a small { color: var(--muted); }

.route-map-route-help { display: block; margin-top: 3px; color: var(--muted); font-size: .9rem; }
.route-map-overlay .route-map-route-line { fill: none; stroke: #173f63; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

@media (max-width: 900px) {
    .route-favorite-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .route-gps-card { grid-template-columns: 1fr; }
    .route-gps-actions { justify-content: flex-start; }
}
@media (max-width: 620px) {
    .route-favorites-summary-meta { width: 100%; margin-left: 0; justify-content: space-between; }
    .route-favorite-list { grid-template-columns: 1fr; }
    .route-gps-actions .button { width: 100%; }
    .route-map-route-help { max-width: 240px; }
}

@media (max-width: 620px) { .route-map-waypoint-chip span { max-width: 240px; } }

/* v1.4.1 — fiche station partagée avec Prix Carburants */
.route-edit-history-dialog { width: min(780px, calc(100% - 28px)); max-height: min(860px, calc(100dvh - 40px)); padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: var(--surface); color: var(--text); }
.route-edit-history-dialog::backdrop { background: rgba(48, 54, 61, .82); }
.route-edit-history-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: min(858px, calc(100dvh - 42px)); overflow: hidden; }
.route-edit-history-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 21px; border: 0; background: var(--surface-2); }
.route-edit-history-header > div { min-width: 0; }
.route-edit-history-header h2 { margin: 5px 0 0; font-size: 1.35rem; overflow-wrap: anywhere; }
.route-edit-history-close { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border: 0; border-radius: 9px; background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.3rem; font-weight: 800; }
.route-edit-history-close:hover, .route-edit-history-close:focus-visible { background: var(--surface-3); color: var(--danger-text); }
.route-edit-history-body { display: grid; min-height: 0; gap: 18px; padding: 20px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.route-edit-history-actions { display: flex; justify-content: flex-end; padding: 16px 20px 20px; border: 0; background: var(--surface); }
.route-edit-history-actions .button { border: 0; background: var(--surface-2); }
.route-edit-history-actions .button:hover, .route-edit-history-actions .button:focus-visible { border: 0; background: var(--surface-3); }
.route-edit-history-overview { display: grid; gap: 7px; padding: 14px 15px; border: 0; border-radius: 11px; background: var(--surface-2); }
.route-edit-history-overview p, .route-edit-history-overview small { margin: 0; }
.route-edit-history-overview p { font-size: .9rem; }
.route-edit-history-overview small { color: var(--muted); line-height: 1.45; }
.route-edit-history-badge { justify-self: start; padding: 5px 8px; border-radius: 999px; background: var(--success-soft); color: var(--success-text); font-size: .9rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.route-edit-history-section { display: grid; gap: 11px; }
.route-edit-history-section h3 { margin: 0; font-size: .98rem; }
.route-edit-change-list { display: grid; gap: 9px; }
.route-edit-change-row { display: grid; gap: 8px; padding: 12px 13px; border: 0; border-radius: 10px; background: var(--surface-2); }
.route-edit-change-row > strong { font-size: .9rem; }
.route-edit-change-values { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 10px; }
.route-edit-change-values > div { min-width: 0; padding: 9px 10px; border-radius: 8px; background: var(--surface-2); }
.route-edit-change-values > div > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .9rem; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
.route-edit-change-values p { margin: 0; color: var(--text); font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.route-edit-change-values > i { display: grid; place-items: center; color: var(--muted); font-style: normal; font-weight: 900; }
.route-edit-empty { color: var(--muted) !important; font-style: italic; }
.route-edit-history-timeline { display: grid; gap: 11px; }
.route-edit-history-entry { display: grid; gap: 12px; padding: 14px; border: 0; border-radius: 11px; background: var(--surface-2); }
.route-edit-history-entry-head { display: grid; gap: 3px; }
.route-edit-history-entry-head > strong { font-size: .9rem; }
.route-edit-history-attribution { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.route-edit-history-empty { display: grid; gap: 6px; padding: 18px; border: 0; border-radius: 11px; background: var(--surface-2); }
.route-edit-history-empty p { margin: 0; color: var(--muted); }
@media (max-width: 680px) {
    .route-favorite-control { align-items: stretch; flex-direction: column; }
    .route-favorite-control .button { width: 100%; }
    .route-edit-history-dialog { width: auto; max-width: none; max-height: 84dvh; inset: auto 8px 8px; margin: 0; border-radius: 16px 16px 10px 10px; }
    .route-edit-history-shell { height: min(84dvh, 700px); max-height: 84dvh; }
    .route-edit-history-header { padding: 12px 13px; }
    .route-edit-history-header h2 { font-size: 1.08rem; line-height: 1.25; }
    .route-edit-history-body { padding: 13px; }
    .route-edit-history-actions { padding: 12px 13px; }
    .route-edit-history-actions .button { width: 100%; }
    .route-edit-change-values { grid-template-columns: 1fr; gap: 6px; }
    .route-edit-change-values > i { min-height: 18px; transform: rotate(90deg); }
}

/* v0.9.32 — lecture seule propre, actions espacées et passage cartographique temporaire */
.route-energy-shell.is-readonly .route-energy-form::after { content: none; display: none; }
.route-submit-actions { column-gap: 14px; row-gap: 12px; margin-left: auto; padding-block: 2px; }
.route-energy-shell.is-readonly .route-submit-actions [data-reset-route] { cursor: pointer; }
.route-energy-shell.is-readonly .route-submit-actions [data-reset-route]:disabled { cursor: not-allowed; }
.route-map-pending-waypoint {
    position: absolute;
    z-index: 7;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    translate: -50% -50%;
    border: 3px solid #ffffff;
    border-radius: 50%;
    outline: 4px solid #d6a900;
    outline-offset: 2px;
    background: #173f63;
    color: #ffffff;
    pointer-events: auto;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    font-weight: 950;
}
.route-map-pending-waypoint-plus { display: grid; place-items: center; width: 100%; height: 100%; }
.route-map-pending-waypoint-remove { position: absolute; top: -11px; right: -11px; width: 20px; height: 20px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #b42318; color: #fff; font-size: .9rem; line-height: 1; }
.route-map-waypoint-chip.is-pending { border-color: var(--warning); background: var(--warning-soft); color: var(--warning-text); }
@media (max-width: 760px) {
    .route-submit-actions { margin-left: 0; }
}

/* v0.9.33 — choix direct d'un passage depuis la carte */
.route-map-point-picker {
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 9;
    width: min(calc(100% - 28px), 620px);
    translate: -50% 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 2px solid var(--warning);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
}
.route-map-point-picker[hidden] { display: none; }
.route-map-point-picker-copy { min-width: 0; display: grid; gap: 3px; }
.route-map-point-picker-copy strong { font-size: .9rem; }
.route-map-point-picker-copy span { overflow: hidden; color: var(--muted); font-size: .9rem; text-overflow: ellipsis; white-space: nowrap; }
.route-map-point-picker-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.route-map-point-picker-actions .button { margin: 0; white-space: nowrap; }
@media (max-width: 720px) {
    .route-map-point-picker { top: 10px; width: calc(100% - 20px); align-items: stretch; flex-direction: column; }
    .route-map-point-picker-copy span { white-space: normal; }
    .route-map-point-picker-actions { display: grid; grid-template-columns: 1fr; }
    .route-map-point-picker-actions .button { width: 100%; }
}


/* v0.11.91 — états des blocs repliables centralisés dans app.css. */
.route-favorites-card > .route-collapsible-summary { min-height: 76px; }
@media (max-width: 620px) {
    .route-favorites-card > .route-collapsible-summary { min-height: 68px; }
    .route-favorites-card .route-collapsible-summary-copy small { display: none; }
}

/* v0.9.38 — liaison Planificateur → LogBook */
.route-logbook-option {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
}
.route-logbook-option > span {
    display: grid;
    gap: 3px;
}
.route-logbook-option small {
    color: var(--muted);
    line-height: 1.45;
}
@media (max-width: 620px) {
    .route-logbook-option { padding: 12px 13px; }
}


/* v0.9.39 — actions rapides et chargement progressif */
.route-quick-actions {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
}
.route-quick-actions[hidden] { display: none; }
.route-quick-actions-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 210px;
    padding: 8px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: var(--surface);
}
.route-quick-actions-panel .button {
    width: 100%;
    min-height: 40px;
    justify-content: center;
}
.route-quick-actions-toggle { display: none; }

@media (max-width: 700px) {
    .route-quick-actions {
        right: 12px;
        bottom: 12px;
        display: grid;
        justify-items: end;
    }
    .route-quick-actions-toggle {
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 1px solid var(--primary);
        border-radius: 50%;
        background: var(--primary);
        color: var(--on-primary);
        font-size: 1.55rem;
        font-weight: 800;
        line-height: 1;
        cursor: pointer;
    }
    .route-quick-actions-panel {
        position: absolute;
        right: 0;
        bottom: 58px;
        width: min(220px, calc(100vw - 24px));
        display: none;
    }
    .route-quick-actions.is-open .route-quick-actions-panel { display: grid; }
    .route-quick-actions.is-open .route-quick-actions-toggle {
        background: var(--surface);
        color: var(--link);
    }
}

/* v0.9.42 — distinguer immédiatement les vrais lieux / POI des adresses. */
.route-address-option.has-type-badge {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
}
.route-address-option.has-type-badge small {
    grid-column: 1 / -1;
}
.route-address-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-size: .9rem;
    font-weight: 900;
    letter-spacing: .04em;
}
.route-address-city-badge {
    border-color: var(--success);
    background: var(--success-soft);
    color: var(--success-text);
}
.route-address-poi-badge {
    border-color: var(--warning);
    background: var(--warning);
    color: var(--on-warning);
}
.route-address-deep-search {
    width: 100%;
    margin-top: 4px;
    padding: 9px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--link);
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    text-align: left;
}
.route-address-deep-search:hover {
    background: var(--surface-3);
    color: var(--link-strong);
}

/* v0.9.49 — carte réellement tactile sur toute sa surface.
   1 doigt = déplacement, pincement = zoom, appui bref = passage. */
@media (pointer: coarse) {
    .route-map {
        cursor: default;
        touch-action: none;
        overscroll-behavior: contain;
    }
    .route-map:active { cursor: default; }
}

/* v0.9.46 — progression réelle et recherche d’enseignes pilotée par la carte */
.route-search-progress {
    display: grid;
    gap: 9px;
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border));
    border-radius: 12px;
    background: var(--primary-soft);
}
.route-search-progress[hidden] { display: none !important; }
.route-search-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.route-search-progress-head strong { color: var(--text); font-size: .9rem; }
.route-search-progress-head span { flex: 0 0 auto; color: var(--link); font-size: .9rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.route-search-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--border) 76%, var(--surface)); }
.route-search-progress-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--primary); }
.route-search-progress small { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.route-search-progress.is-complete { border-color: var(--success); background: var(--success-soft); }
.route-search-progress.is-complete .route-search-progress-track > span { background: var(--success); }
.route-search-progress.is-error { border-color: var(--danger); background: var(--danger-soft); }
.route-search-progress.is-error .route-search-progress-track > span { background: var(--danger); }

@media (max-width: 620px) {
    .route-search-progress { margin-top: 9px; padding: 12px; }
    .route-search-progress-head { align-items: flex-start; }
    .route-search-progress-head strong { font-size: .9rem; }
    .route-search-progress small { font-size: .9rem; }
}



.route-inline-check { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .9rem; }
.route-inline-check input { width: auto; }


/* =========================================================
   v1.3.9 — navigation, repères A/B et allers-retours
   ========================================================= */
.route-energy-shell {
    width: 100%;
    max-width: none;
    gap: 18px;
}

.route-energy-hero {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
    padding: 24px 28px;
}
.route-energy-hero h1 { margin-bottom: 7px; font-size: clamp(1.6rem, 2.3vw, 2.25rem); }
.route-energy-hero p { max-width: 900px; margin-bottom: 10px; font-size: .94rem; line-height: 1.5; }
.route-energy-data-status { min-width: 260px; padding: 14px 16px; }

/* Progression générale : indépendante de la barre de recherche technique. */
.route-planner-progress {
    position: relative;
    padding: 14px 24px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}
.route-planner-progress-track {
    position: absolute;
    z-index: 0;
    top: 30px;
    left: 12.5%;
    right: 12.5%;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-3);
}
.route-planner-progress-track > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}
.route-planner-progress-steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.route-planner-progress-steps > button {
    display: grid;
    justify-items: center;
    gap: 5px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    appearance: none;
    background: transparent;
    color: var(--muted);
    font: inherit;
    text-align: center;
    cursor: pointer;
}
.route-planner-progress-steps > button:hover,
.route-planner-progress-steps > button:focus-visible { color: var(--text); }
.route-planner-progress-steps > button:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 8px; }
.route-planner-progress-steps b {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--muted);
    outline: 1px solid var(--border);
    font-size: .9rem;
    font-weight: 900;
}
.route-planner-progress-steps small { font-size: .9rem; font-weight: 800; }
.route-planner-progress-steps > button.is-done b {
    background: var(--primary);
    color: var(--on-primary);
    outline: 1px solid var(--primary);
}
.route-planner-progress-steps > button.is-active { color: var(--text); }
.route-planner-progress-steps > button.is-active b {
    background: var(--primary);
    color: var(--on-primary);
    outline: 2px solid var(--primary);
}
.route-planner-progress.is-complete .route-planner-progress-track > span { background: var(--success); }
.route-planner-progress.is-complete .route-planner-progress-steps > button b {
    background: var(--success);
    color: var(--on-success);
    outline: 1px solid var(--success);
}
.route-planner-progress.is-error .route-planner-progress-track > span { background: var(--danger); }

/* Les étapes utilisent le composant repliable commun ; ce fichier ne garde
   que la mise en page propre au contenu du Planificateur. */
.route-energy-form { gap: 11px; }
.route-form-disclosure { scroll-margin-top: 100px; }
.route-form-disclosure > .route-form-heading { grid-template-columns: 46px minmax(0, 1fr) 36px; }
.route-form-disclosure[open] .route-step-number {
    border: 1px solid #ffffff;
    background: #ffffff;
    color: var(--primary);
}
.route-form-disclosure[open] > .route-form-body { background: var(--surface); }
.route-form-disclosure .route-step-number { width: 44px; height: 44px; font-size: .9rem; }
.route-form-disclosure .route-form-heading h2 { font-size: 1.16rem; }
.route-form-disclosure .route-form-heading p { margin-top: 5px; font-size: .9rem; line-height: 1.5; }
.route-form-disclosure .route-form-body { gap: 18px; padding: 20px 22px 22px; }

.route-submit-row { margin-top: 3px; }
.route-submit-actions .button { margin: 0; }

/* La carte retrouve une place naturelle dans les résultats, avec un peu plus de hauteur qu'avant. */
.route-results { gap: 18px; }
.route-map-card {
    border-radius: var(--radius-lg);
}
.route-map { height: 560px; }
.route-map-toolbar { padding: 13px 17px; }
.route-map-toolbar > div:first-child { min-width: 0; }
.route-map-route-help { max-width: 760px; }
.route-map-legend { padding: 9px 16px; }

/* Les variantes disposent de toute la largeur : pas de mots cassés ni de boutons tassés. */
.route-alternatives { gap: 14px; padding: 16px; }
.route-alternative { align-items: stretch; padding: 16px; }
.route-alternative > .button { align-self: center; flex: 0 0 auto; white-space: nowrap; }
.route-alternative-copy > strong { font-size: .9rem; }

/* Une simulation terminée replie les réglages, mais ne les compacte pas artificiellement. */
.route-energy-shell.has-simulation .route-energy-form { gap: 9px; }
.route-energy-shell.has-simulation .route-form-disclosure:not([open]) > .route-form-heading {
    min-height: 64px;
    padding-block: 10px;
}
.route-energy-shell.has-simulation .route-form-disclosure:not([open]) > .route-form-heading p { display: none; }

@media (min-width: 1500px) {
    .route-map { height: 600px; }
}

@media (max-width: 900px) {
    .route-energy-hero { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
    .route-energy-data-status { min-width: 0; }
    .route-form-disclosure .route-form-body { padding: 17px; }
    .route-map { height: 500px; }
    .route-alternatives { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .route-energy-shell { gap: 12px; }
    .route-energy-hero { padding: 16px; }
    .route-energy-hero h1 { font-size: 1.45rem; }
    .route-energy-hero p { font-size: .9rem; }
    .route-planner-progress { padding: 12px 8px 10px; }
    .route-planner-progress-track { top: 27px; left: 12.5%; right: 12.5%; }
    .route-planner-progress-steps b { width: 30px; height: 30px; font-size: .9rem; }
    .route-planner-progress-steps small { font-size: .9rem; }
    .route-planner-progress-steps > button { min-height: 48px; gap: 3px; }
    .route-form-disclosure > .route-form-heading { grid-template-columns: 38px minmax(0, 1fr) 30px; }
    .route-form-disclosure .route-step-number { width: 36px; height: 36px; font-size: .9rem; }
    .route-form-disclosure .route-form-heading h2 { font-size: 1.04rem; }
    .route-form-disclosure .route-form-heading p { font-size: .9rem; }
    .route-form-disclosure .route-form-body { padding: 13px; gap: 14px; }
    .route-address-grid, .form-grid, .route-road-options { grid-template-columns: 1fr; }
    .route-submit-row { display: grid; grid-template-columns: 1fr; align-items: stretch; }
    .route-submit-actions { display: grid; grid-template-columns: 1fr; }
    .route-submit-actions .button { width: 100%; justify-content: center; }
    .route-map { height: max(420px, 58dvh); }
    .route-map-toolbar { align-items: flex-start; }
    .route-map-toolbar > div:last-child { flex-wrap: nowrap; }
    .route-map-toolbar button { min-width: 36px; }
    .route-results-heading { align-items: flex-start; flex-direction: column; }
    .route-simple-summary { grid-template-columns: 1fr 1fr; }
    .route-gps-card { grid-template-columns: 1fr; }
    .route-gps-card > small { grid-column: 1; }
}

/* Road Community 0.11.0 — pages publiques du planificateur */
.route-seo-shortcuts { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.8rem; }
.route-seo-shortcuts a { display:inline-flex; align-items:center; min-height:34px; padding:.35rem .65rem; border:1px solid #ffffff; border-radius:999px; color:#ffffff; background:var(--primary-strong); font-size:.9rem; font-weight:700; text-decoration:none; }
.route-seo-shortcuts a:hover { border-color:var(--border-strong); background:var(--surface); color:var(--link); }
.route-seo-hero { margin:0 0 1.25rem; padding:clamp(1.15rem,2.5vw,2rem); border:1px solid var(--border); border-radius:var(--radius-lg); background:var(--surface); }
.route-seo-hero h1 { margin:.25rem 0 .65rem; max-width:980px; }
.route-seo-hero .lead { max-width:920px; margin-bottom:0; }
.route-seo-actions { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:1rem; }
.route-seo-grid, .route-seo-explain, .route-seo-related { margin-top:1.25rem; }
.route-seo-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; }
.route-seo-steps > div { display:grid; grid-template-columns:auto 1fr; gap:.65rem; padding:.85rem; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); }
.route-seo-steps > div > strong { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--primary); color:#fff; }
.route-seo-steps b, .route-seo-steps small { display:block; }
.route-seo-steps small { margin-top:.15rem; color:var(--muted); line-height:1.45; }
@media (max-width:900px) { .route-seo-steps { grid-template-columns:1fr 1fr; } }
@media (max-width:620px) { .route-seo-shortcuts { gap:.35rem; } .route-seo-shortcuts a { flex:1 1 auto; justify-content:center; } .route-seo-actions { display:grid; grid-template-columns:1fr; } .route-seo-actions .button { width:100%; justify-content:center; } .route-seo-steps { grid-template-columns:1fr; } }


/* Road Community 0.11.4 — respiration des pages publiques du planificateur */
.route-seo-grid { gap: 18px; }
.route-seo-explain { overflow: hidden; }
.route-seo-explain .card-header { padding: 22px 24px 16px; }
.route-seo-steps { gap: 14px; padding: 18px 24px 24px; }
.route-seo-steps > div { min-width: 0; gap: 12px; padding: 15px 16px; }
.route-seo-steps > div > strong { flex: 0 0 auto; }
.route-seo-steps b { margin-bottom: 3px; }
.route-seo-related { gap: 18px; margin-top: 22px; }
.route-seo-fuel-areas .section-heading { margin-bottom: 16px; }
@media (max-width: 900px) {
    .route-seo-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .route-seo-explain .card-header { padding: 18px 18px 12px; }
    .route-seo-steps { grid-template-columns: 1fr; gap: 10px; padding: 12px 18px 18px; }
    .route-seo-steps > div { padding: 14px; }
}

/* v1.5.0 — favoris uniquement sur carte, fiche station partagée avec Prix Carburants */
.route-map .route-shared-fuel-panel { top: 14px; right: 66px; }
@media (max-width: 720px) { .route-map .route-shared-fuel-panel { right: 12px; width: min(390px, calc(100% - 24px)); } }

.route-search-progress.is-error{border-color:var(--danger-text);background:var(--danger-soft);color:var(--danger-text)}

@media(max-width:520px){
    .route-planner-progress{padding:12px}
    .route-planner-progress-track{position:relative;inset:auto;height:4px;margin-bottom:12px}
    .route-planner-progress-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
    .route-planner-progress-steps>button{display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:6px;border:1px solid var(--border);border-radius:9px;text-align:left}
    .route-planner-progress-steps>button.is-active{border-color:var(--primary)}
    .route-planner-progress-steps small{overflow-wrap:anywhere}
}
