[hidden] { display: none !important; }
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --border: #d9dde3;
  --text: #1b1f24;
  --text-muted: #5b6573;
  --accent: #d6331f;
  --accent-2: #0f7bd8;
  --accent-3: #1f9d55;
  --warn: #c77700;
  --grid: rgba(60, 70, 85, .14);
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.05);
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216;
    --surface: #171b21;
    --surface-2: #1f242c;
    --border: #2b323c;
    --text: #e6e9ee;
    --text-muted: #9aa4b2;
    --accent: #ff5a3c;
    --accent-2: #4aa8ff;
    --accent-3: #3ecf7a;
    --warn: #f0a531;
    --grid: rgba(200, 210, 225, .12);
    --shadow: 0 1px 2px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); }
h3 { margin: 0 0 10px; font-size: 15px; letter-spacing: .2px; }
h3 small { color: var(--text-muted); font-weight: 400; }
h4 { margin: 14px 0 6px; font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand strong { display: block; font-size: 17px; letter-spacing: .2px; }
.brand span { font-size: 12px; color: var(--text-muted); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
/* sous-menu Carburation KZ */
.subtabs { position: sticky; top: 57px; z-index: 9; display: flex; gap: 4px; flex-wrap: wrap; padding: 6px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.subtabs[hidden] { display: none; }
.subtabs button { border: 0; background: transparent; color: var(--text-muted); padding: 6px 10px; border-radius: 7px; font: inherit; font-size: 13px; cursor: pointer; }
.subtabs button:hover { color: var(--text); background: var(--surface); }
.subtabs button.active { background: var(--surface); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.subtabs2 { top: 101px; background: var(--surface); }
.subtabs2 button { font-size: 12px; }
@media (max-width: 760px) { .subtabs2 { top: 0; position: static; } }
.chassis-ratio { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chassis-ratio .val { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; }
.ratio-bar { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--accent-3), var(--warn), var(--accent)); position: relative; flex: 1; min-width: 120px; }
.ratio-bar .cursor { position: absolute; top: -3px; width: 3px; height: 14px; background: var(--text); border-radius: 2px; transform: translateX(-50%); }
/* page d'accueil */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 28px 24px; margin-bottom: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: repeating-linear-gradient(90deg, var(--accent) 0 26px, var(--surface) 26px 52px); }
.hero h1 { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.12; margin: 6px 0 12px; text-wrap: balance; }
.hero .lead { color: var(--text-muted); font-size: 16px; max-width: 62ch; margin: 0 0 16px; }
.eyebrow { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); font-weight: 600; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hero-facts li { border-left: 3px solid var(--accent-2); padding: 4px 0 4px 12px; }
.hero-facts b { display: block; }
.hero-facts span { color: var(--text-muted); font-size: 13px; }
.section-title { font-size: 20px; margin: 22px 0 12px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.feature p { margin: 0; color: var(--text-muted); font-size: 14px; flex: 1; }
.feature .btn { align-self: flex-start; }
.how { list-style: none; counter-reset: how; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.how li { counter-increment: how; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 14px 14px 52px; position: relative; }
.how li::before { content: counter(how); position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.how b { display: block; margin-bottom: 2px; }
.how span { color: var(--text-muted); font-size: 13.5px; }
.guide summary { cursor: pointer; list-style: none; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary h3 { display: inline; }
.guide summary::after { content: " ▾"; color: var(--text-muted); }
.guide[open] summary::after { content: " ▴"; }
.guide .how { margin-top: 12px; }
.foot a { color: inherit; }
/* administration */
main.admin { max-width: 1100px; }
.admin-login { max-width: 460px; margin: 40px auto; }
.kpis-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.small-input { width: 170px; padding: 5px 8px; }
.tabs a.btn { text-decoration: none; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding: 22px 16px; } .subtabs { top: 0; position: static; } }
.tabs button {
  border: 0; background: transparent; color: var(--text-muted); padding: 8px 12px; border-radius: 8px;
  font: inherit; cursor: pointer;
}
.tabs button:hover { background: var(--surface-2); color: var(--text); }
.tabs button.active { background: var(--accent); color: #fff; }

main { max-width: 1440px; margin: 0 auto; padding: 16px; }
.tab { display: none; }
.tab.active { display: block; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 16px; min-width: 0;
}
.card.highlight { border-color: var(--accent); }
.grid { display: grid; gap: 16px; }
.grid > .card { margin-bottom: 0; }
.grid { margin-bottom: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .g2, .g3 { grid-template-columns: 1fr; } }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); }
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 13px; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 7px; padding: 6px 8px; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-2); outline-offset: 0; border-color: transparent; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }

.btn {
  font: inherit; cursor: pointer; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  padding: 7px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; flex-direction: row;
}
.btn:hover { border-color: var(--text-muted); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.small { padding: 3px 8px; font-size: 12px; }
.btn.file input { display: none; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }

.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--surface-2); color: var(--text-muted); padding: 7px 12px; font: inherit; cursor: pointer; }
.seg button.active { background: var(--accent-2); color: #fff; }

.status { font-size: 12px; color: var(--text-muted); }
.hint { font-size: 12px; color: var(--text-muted); margin: 8px 0 0; }

.form-grid, .setup-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.form-grid .wide, .setup-form .wide { grid-column: 1 / -1; }
.setup-form fieldset { grid-column: 1 / -1; border: 1px dashed var(--border); border-radius: 8px; padding: 8px 10px 10px; margin: 0; }
.setup-form fieldset legend { color: var(--text-muted); font-size: 12px; padding: 0 4px; }
.setup-form fieldset .inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
details.adv summary { cursor: pointer; color: var(--text-muted); font-size: 12px; grid-column: 1 / -1; }
details.adv { grid-column: 1 / -1; }
details.adv .inner { margin-top: 8px; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin-top: 10px; font-size: 13px; }
.kv dt, .kv .k { color: var(--text-muted); }
.kv .v { font-variant-numeric: tabular-nums; font-weight: 600; }

.big { font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.reco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin: 10px 0; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 12px 0; }
.preset-card { background: var(--surface-2); border: 1px solid var(--border, rgba(128,128,128,.2)); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.preset-card.rain { border-color: color-mix(in srgb, var(--accent-2, #3b82f6) 55%, transparent); }
.preset-card.active { outline: 2px solid var(--accent-3); }
.preset-card h4 { margin: 0; font-size: 15px; }
.preset-card .cond { font-size: 12px; color: var(--text-muted); }
.preset-card .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.preset-card .chips span { font-size: 11px; padding: 2px 7px; border-radius: 99px; background: var(--surface); color: var(--text); font-variant-numeric: tabular-nums; }
.preset-card .verdict { font-size: 12px; }
.preset-card .row-btns { margin-top: auto; gap: 6px; }
.cmp-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }
.reco-item { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.reco-item .k { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.reco-item .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.reco-item .d { font-size: 12px; }
.up { color: var(--accent); }
.down { color: var(--accent-2); }
.same { color: var(--text-muted); }
.badge { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 99px; background: var(--surface-2); color: var(--text-muted); }
.badge.ok { background: color-mix(in srgb, var(--accent-3) 20%, transparent); color: var(--accent-3); }
.badge.warn { background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn); }
.badge.bad { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }
.alert { border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); padding: 8px 10px; border-radius: 6px; margin: 8px 0; font-size: 13px; }
.ref-status { margin-top: 10px; }
.reco-item .exact { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.calib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; margin: 8px 0; }
.calib-grid label { font-size: 11px; color: var(--text-muted); }
.calib-grid input { width: 100%; }
.qnh { margin-top: 10px; align-items: end; }
table.data.kv-table th { text-align: left; white-space: nowrap; vertical-align: top; color: var(--text-muted); font-weight: 600; padding-right: 12px; }
table.data.kv-table td { white-space: normal; text-align: left; }
.steps li { margin: 4px 0; }
.checks-col { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
@media (max-width: 600px) { table.data.kv-table th { white-space: normal; width: 34%; } }
.pl-drop { display: block; border: 1.5px dashed var(--border); border-radius: 10px; padding: 18px; text-align: center; color: var(--text-muted); cursor: pointer; margin: 10px 0; }
.pl-drop.over { border-color: var(--accent-2); color: var(--text); }
.pl-drop input { display: block; margin: 0 auto 6px; }
.pl-range { width: 100%; margin: 8px 0; }
/* courbes par distance : trait vertical de l'instant T */
.pl-cwrap { position: relative; }
.pl-cwrap canvas { cursor: crosshair; }
.pl-cursor { position: absolute; width: 0; border-left: 2px solid #6250d6; pointer-events: none; transform: translateX(-1px); }
.pl-cursor[hidden] { display: none; }
.pl-cursor span { position: absolute; top: -18px; left: 4px; font-size: 11px; font-weight: 600; color: #fff; background: #6250d6; padding: 0 4px; border-radius: 3px; white-space: nowrap; }
.pl-ggcard canvas { max-width: 440px; margin: 0 auto; display: block; }
.pl-corner span { display: flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: #111; color: #fff; font: 600 12px system-ui, sans-serif; border: 2px solid #fff; }
h4.pl-step { margin: 14px 0 4px; color: var(--accent-2); }
.pl-ratio { align-self: end; padding: 9px 0; font-weight: 600; }
.pl-press-row { display: grid; grid-template-columns: 150px repeat(4, minmax(0, 1fr)); gap: 8px 12px; align-items: end; margin: 6px 0; }
.pl-press-row > b { padding-bottom: 9px; }
@media (max-width: 700px) { .pl-press-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pl-press-row > b { grid-column: 1 / -1; padding: 0; } }
.pl-ideal-arrow span { display: block; width: 14px; height: 14px; line-height: 14px; text-align: center; color: #111; font-size: 12px; text-shadow: 0 0 2px #ffe100, 0 0 2px #ffe100; }
.pl-brake-ideal span { display: flex; width: 26px; height: 18px; align-items: center; justify-content: center; border-radius: 4px; background: #eda100; color: #111; font: 700 11px system-ui, sans-serif; border: 1.5px solid #111; }
.pl-ideal-table td.l { text-align: left; min-width: 180px; }
.pl-ideal-table tr.prio td:first-child { box-shadow: inset 3px 0 0 #e34948; }
.reco-item .v.small { font-size: 15px; }
table.data .best { color: #1baf7a; font-weight: 600; }
table.data .hot { color: var(--accent); font-weight: 600; }
table.data tr.dim td { opacity: .55; }
table.data tr.ideal-row td { font-weight: 600; border-top: 2px solid var(--border); }
table.data.pl-ctable th.grp { text-align: center; }
table.data.pl-ctable tr.first td { border-top: 2px solid var(--border); }
.lapdot[data-k="0"] { color: #2a78d6; font-weight: 600; } .lapdot[data-k="1"] { color: #eb6834; font-weight: 600; } .lapdot[data-k="2"] { color: #1baf7a; font-weight: 600; }
.map-toggles select { margin-left: 4px; }
.pl-findings { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.pl-findings li { border-left: 3px solid var(--border); padding: 6px 10px; border-radius: 0; font-size: 13px; }
.pl-findings li > b { display: block; margin-bottom: 2px; }
.pl-findings li > span b { display: inline; }
.pl-findings li.f-bad { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pl-findings li.f-warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.pl-findings li.f-ok { border-color: #1baf7a; }
.pl-findings li.f-info { border-color: var(--accent-2); }
.chart.drag { touch-action: none; cursor: ns-resize; margin-top: 8px; }
.ref-status p { margin: 6px 0; font-size: 13px; }
#ref-chart { margin-top: 8px; }

.days { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.day { background: var(--surface-2); border-radius: 8px; padding: 10px; cursor: pointer; border: 2px solid transparent; }
.day.sel { border-color: var(--accent-2); }
.day .ico { font-size: 28px; }
.day .t { font-size: 18px; font-weight: 700; }

.chart { width: 100%; height: 280px; display: block; }
.chart.small { height: 170px; margin-top: 8px; }

.table-wrap { overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { color: var(--text-muted); font-weight: 600; font-size: 12px; position: sticky; top: 0; background: var(--surface); }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tr.sel { background: color-mix(in srgb, var(--accent-2) 14%, transparent); }
table.data.dense { font-size: 12px; }
table.data.dense td, table.data.dense th { padding: 4px 6px; }
table.data td.l { text-align: left; }
table.data .sub { color: var(--text-muted); font-size: 11px; display: block; }

.weights { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
.weights label { align-items: center; text-align: center; font-size: 11px; }
.weights input[type="range"] { writing-mode: vertical-lr; direction: rtl; width: 22px; height: 90px; padding: 0; background: none; border: 0; accent-color: var(--accent-2); }
.weights output { font-size: 11px; color: var(--text); }
@media (max-width: 520px) { .weights input[type="range"] { height: 70px; } }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* Carte météo */
.map-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.map-head h3 { margin: 0; }
.map-toggles { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.map-when { flex-wrap: wrap; }
.map-when button { padding: 5px 10px; font-size: 13px; }
.radar-ctl { display: flex; align-items: center; gap: 10px; margin: 10px 0 8px; }
.radar-ctl input[type="range"] { flex: 1; max-width: 320px; padding: 0; background: none; border: 0; accent-color: var(--accent-2); }
.radar-ctl.disabled { opacity: .4; pointer-events: none; }
.wx-map { height: 460px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); z-index: 0; }
@media (max-width: 640px) { .wx-map { height: 340px; } }
.map-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 8px; font-size: 12px; color: var(--text-muted); }
.map-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 3px 0 6px; vertical-align: -1px; }
.lg.w1, .wind-arrow.w1 { --wc: #3ecf7a; }
.lg.w2, .wind-arrow.w2 { --wc: #a6d43a; }
.lg.w3, .wind-arrow.w3 { --wc: #f0c531; }
.lg.w4, .wind-arrow.w4 { --wc: #f08a31; }
.lg.w5, .wind-arrow.w5 { --wc: #e8452c; }
.lg.w1, .lg.w2, .lg.w3, .lg.w4, .lg.w5 { background: var(--wc); }
.lg.r1 { background: #5aa9ff; } .lg.r2 { background: #1f6fe0; } .lg.r3 { background: #7b2fd6; }
.wind-arrow { background: none; border: 0; }
.wind-arrow svg { display: block; overflow: visible; filter: drop-shadow(0 0 1.5px rgba(0,0,0,.7)); }
.wind-arrow .wa-shaft { stroke: var(--wc); stroke-width: 3; stroke-linecap: round; }
.wind-arrow .wa-head { fill: var(--wc); }
.wind-arrow .wa-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font: 700 11px/1 system-ui, sans-serif; color: #fff; background: rgba(15,18,22,.78); border-radius: 8px; padding: 2px 4px;
}
.wind-arrow.big .wa-shaft { stroke-width: 4; }
.wind-arrow.big .wa-label { font-size: 13px; }
.circuit-pin { background: none; border: 0; font-size: 22px; line-height: 30px; text-align: center; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.leaflet-tooltip.circuit-label { font-weight: 700; }
.leaflet-container { font: inherit; }
.osm-dark { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.6); }

.prose { max-width: 900px; }
.prose p, .prose li { line-height: 1.6; }

.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--text); color: var(--bg); padding: 9px 16px; border-radius: 8px; transition: all .25s; pointer-events: none; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.foot { text-align: center; color: var(--text-muted); font-size: 12px; padding: 10px 16px 24px; }

@media (max-width: 640px) {
  main { padding: 10px; }
  .topbar { gap: 8px; }
  .tabs button { padding: 6px 8px; font-size: 13px; }
  .big { font-size: 24px; }
}
@media print {
  .topbar, .toolbar, .row-btns, .foot { display: none; }
  .tab { display: block !important; }
  .card { break-inside: avoid; box-shadow: none; }
}

.btn.danger { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- formules et tarifs ---------- */
#pricing { display: flex; flex-direction: column; gap: 14px; }
#pricing .seg { align-self: center; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.plan.best { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan.mine { outline: 2px solid var(--accent-3); outline-offset: 2px; }
.plan h3 { margin: 0; font-size: 1.15rem; }
.plan .price b { font-size: 1.9rem; }
.plan .price span { color: var(--text-muted); }
.plan ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.plan .cta { margin-top: 6px; }
.plan h3 .plan-who { font-size: .8em; font-weight: 600; color: var(--text-muted); }
.plan .team-n {font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.plan .team-n select { font-weight: 600; }
.tiers-table input { width: 100%; min-width: 70px; }
#plans-form input[readonly] { background: var(--surface-2); color: var(--text-muted); cursor: default; }
.plan .plan-sub { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); margin: 2px 0 4px; }
.plan .plan-incl ul.free-incl { color: var(--text-muted); font-size: 13px; flex: none; margin-bottom: 8px; }
.plan .cta .btn { width: 100%; text-align: center; justify-content: center; }
.ribbon { position: absolute; top: -11px; right: 14px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.badge-ok { display: inline-block; background: var(--accent-3); color: #fff; padding: 6px 12px; border-radius: 8px; font-weight: 600; }
.plan-status { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.locked { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; border: 1px dashed var(--accent); border-radius: 8px; padding: 12px 14px; background: var(--surface-2); }
.locked span { color: var(--text-muted); }
/* bloc réservé aux abonnés : seul l'encadré « réservé » reste visible */
.paid-locked > :not(.locked.gate) { display: none !important; }
.paid-locked > .locked.gate { margin: 0 0 12px; }
.note { background: var(--surface-2); border-left: 3px solid var(--accent-3); border-radius: 6px; padding: 8px 12px; margin: 0; }
.agree { display: flex; gap: 10px; align-items: flex-start; background: var(--surface-2); border-radius: 8px; padding: 10px 12px; font-size: 14px; cursor: pointer; }
.agree input { margin-top: 3px; flex: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.compare h4 { margin: 4px 0 8px; }
.compare td.win { color: var(--accent-3); font-weight: 700; }
.compare td, .compare th { white-space: nowrap; }

/* ---------- échappement par plage de régime ---------- */
.egt-bands tr.egt-hot td { color: var(--accent); font-weight: 600; }
.egt-bands tr.egt-cold td { color: var(--accent-2); font-weight: 600; }
.egt-bands tr.egt-ok td:nth-child(4) { color: var(--accent-3); }

/* ---------- captcha ---------- */
.captcha { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; max-width: 320px; }
.captcha img { border: 1px solid var(--border); border-radius: 8px; background: #f4f1ea; max-width: 100%; height: auto; }
.captcha-row { display: flex; gap: 8px; }
.captcha-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 3px; font-weight: 600; }
.captcha-row input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; }
.captcha-lbl { font-size: 13px; color: var(--text-muted); }
.admin-badge .admin-link { color: #fff; text-decoration: underline; }
.admin-badge {background: var(--accent-2); color: #fff; border-radius: 8px; padding: 8px 12px; margin: 0 0 10px; }

/* ---------- comparaison de deux séances ---------- */
.cmp td.win { color: var(--accent-3); font-weight: 700; }
.cmp th.ca { color: #2a78d6; } .cmp th.cb { color: #eb6834; }
#cmp-card h4 { margin: 14px 0 6px; }
.cmp-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.cmp-chip { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border: 1px solid var(--border); border-left-width: 4px; border-radius: 8px; padding: 4px 4px 4px 10px; font-size: 14px; }
.cmp-chip button { margin-left: auto; padding: 2px 10px; }
.cmp-prints { margin: 6px 0 10px; }
.cmp-diff { color: var(--text-muted); font-size: 12px; font-weight: 400; }
.cmp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.cmp-coach-one { border-bottom: 1px solid var(--border); padding: 6px 0; }
.cmp-coach-one summary { cursor: pointer; padding: 4px 0; }
.cmp-col { margin: 0; }
.cmp-col h5 { margin: 12px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); }
.cmp-h { margin: 0 0 4px; font-size: 15px; }
.cmp-h.ca { color: #2a78d6; } .cmp-h.cb { color: #eb6834; }
.cmp-mini { margin: 4px 0; padding-left: 18px; font-size: 13px; }
#cmp-map { height: 380px; }
.cmp-coach {background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 8px; padding: 4px 14px 10px; margin: 10px 0; }
.cmp-coach:empty { display: none; }
.cmp-coach ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.cmp-coach ol ul { margin: 4px 0 0; padding-left: 18px; color: var(--text); }
#cmp-card .grid > div > .row-btns { margin-top: -4px; }

/* ---------- admin : accès des comptes ---------- */
.bulk { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; align-items: center; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-muted); white-space: nowrap; }
.tag.offered { background: var(--accent-3); color: #fff; }
.tag.paid { background: var(--accent-2); color: #fff; }
.who .row-btns { margin-top: 4px; }

/* ---------- pages légales ---------- */
.legal { max-width: 860px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.legal h2 { margin: 0 0 8px; font-size: 1.3rem; }
.legal h3 { margin: 18px 0 6px; font-size: 1.02rem; }
.legal p, .legal li { line-height: 1.55; }
.legal dl.kv { font-size: 14px; }
.legal dd { margin: 0; }
.legal blockquote { margin: 8px 0; font-size: 14px; }
.legal table.data td, .legal table.data th { white-space: normal; vertical-align: top; text-align: left; min-width: 90px; }
.todo { color: var(--warn); font-style: italic; }

/* ---------- bandeau cookies ---------- */
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2000; max-width: 720px; margin: 0 auto; display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 14px; font-size: 14px; }
.cookie-note p { margin: 0; flex: 1; }
@media (max-width: 560px) { .cookie-note { flex-direction: column; align-items: stretch; } }
@media print { .cookie-note { display: none; } }

/* onglet Connexion / Mon compte, résumé dans Pilotage */
.tabs .tab-account { margin-left: auto; }
.pl-account-mini p { margin: 0; }
/* onglet « Connecté » en vert, onglet administration (administrateur seulement) */
.tabs button.tab-account.connected { background: #1baf7a; color: #fff; border-color: #1baf7a; }
.tabs button.tab-account.connected.active { background: #158a60; }
.tabs a.tab-admin { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--accent-2); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
.tabs a.tab-admin[hidden] { display: none; }

/* --- Activation de licence (version locale) --- */
.lic-overlay{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(8,10,14,.97);overflow:auto}
.lic-box{width:100%;max-width:460px;box-sizing:border-box;background:#12151b;border:1px solid #262b33;border-radius:16px;padding:24px;color:#e8eaed}
.lic-box h2{margin:0 0 6px;font-size:20px;color:#fff}
.lic-box p{margin:8px 0;color:#aab0b8;font-size:14px;line-height:1.5}
.lic-code{margin:14px 0;padding:12px;border-radius:10px;background:#0b0d11;border:1px solid #2a2f37;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:18px;letter-spacing:1px;color:#ff8a33;text-align:center;word-break:break-all}
.lic-ta{width:100%;box-sizing:border-box;min-height:84px;margin-top:10px;padding:10px;border-radius:10px;background:#0b0d11;border:1px solid #2a2f37;color:#e8eaed;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;resize:vertical}
.lic-row{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.lic-btn{border:0;border-radius:10px;padding:11px 18px;font-size:15px;font-weight:600;cursor:pointer;background:#e8402c;color:#fff}
.lic-btn.sec{background:#262b33;color:#e8eaed}
.lic-btn:disabled{opacity:.6;cursor:default}
.lic-err{color:#ff6a5a;font-size:13px;margin-top:8px;min-height:16px}
body[data-lic-tier="1"] .lic-pro{display:none !important}

/* --- Animation de chargement (chicane ChicaneLabs) --- */
.cl-loader{position:fixed;inset:0;z-index:9000;display:flex;align-items:center;justify-content:center;background:rgba(8,10,14,.86)}
.cl-loader[hidden]{display:none}
.cl-loader-card{display:flex;flex-direction:column;align-items:center;gap:8px}
.cl-loader-svg{width:260px;height:auto}
.cl-racing{stroke-dasharray:14 10;animation:cl-flow 1.1s linear infinite}
@keyframes cl-flow{to{stroke-dashoffset:-24}}
.cl-loader-brand{font-size:26px;font-weight:800;letter-spacing:-.5px;color:#fff}
.cl-loader-brand span{color:#ff6a3d}
.cl-loader-txt{font-size:14px;color:#aab0b8}
.cl-dots::after{content:'';animation:cl-dots 1.4s steps(1,end) infinite}
@keyframes cl-dots{0%{content:''}25%{content:'.'}50%{content:'..'}75%{content:'...'}}
/* --- Ecran d'accueil anime --- */
.cl-splash{position:fixed;inset:0;z-index:9500;display:flex;align-items:center;justify-content:center;background:#0E1116;transition:opacity .45s ease}
.cl-splash.cl-gone{opacity:0;pointer-events:none}
.cl-fullbadge{position:fixed;right:10px;bottom:10px;z-index:8000;background:#1f7a4d;color:#fff;font-size:12px;font-weight:600;padding:5px 10px;border-radius:8px;opacity:.92;pointer-events:none}

/* outils de carburation masqués (version réglage châssis) : body.no-carb ; réactivables par CARBU_TOOLS=1 ou l'admin */
body.no-carb [data-carb]{display:none !important}
body:not(.no-carb) [data-nocarb]{display:none !important}
.lic-in{display:block;width:100%;margin:8px 0;padding:10px;border-radius:8px;border:1px solid #39404d;background:#151a22;color:#fff;font-size:15px}
.lic-adv{margin-top:16px;color:#cfd5de}.lic-adv summary{cursor:pointer}
.lic-banner{position:fixed;left:0;right:0;bottom:0;z-index:8500;background:#d79a12;color:#111;font-weight:600;text-align:center;padding:8px 12px;font-size:14px}
.dev-list{margin:6px 0 10px;padding-left:18px}.dev-list li{margin:4px 0}
