:root {
  --bg: #f3f1ec;
  --paper: #ffffff;
  --ink: #1a1a1c;
  --ink-soft: #3a3a3f;
  --muted: #8a8a90;
  --line: #e6e3dc;
  --line-strong: #c8c4ba;
  --green: #5b8a66;
  --orange: #c8773d;
  --rose: #b85d5d;
  --steel: #4a5563;
  --gold: #b89855;
  --soft-orange: #f5e6d4;
  --soft-green: #e0eae0;
  --soft-pink: #f0dada;
  --soft-blue: #dfe5ee;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  padding: 32px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.app { max-width: 1400px; margin: 0 auto; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }

/* Bandeau d'alerte (véhicule non-initialisé) */
.alert-banner {
  padding: 14px 20px;
  background: var(--soft-orange);
  color: #8b5a2a;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid #e6c9a8;
}
.alert-banner button {
  background: #8b5a2a;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  margin-left: 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 0 4px;
}
.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 28px; height: 28px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.station-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-align: right;
  padding: 8px 14px;
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.station-id strong { display: block; color: var(--ink); font-size: 13px; }
.settings-btn {
  width: 42px; height: 42px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}

/* VEHICLE TABS */
.vehicle-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.vehicle-tab {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 18px 10px 12px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  min-width: 200px;
}
.vehicle-tab-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.vehicle-tab-logo svg {
  width: 30px;
  height: 30px;
}
.vehicle-tab-body { text-align: left; flex: 1; }
.vehicle-tab-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.vehicle-tab-meta {
  font-size: 11px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 1px;
}
.vehicle-tab.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.vehicle-tab.active .vehicle-tab-logo {
  background: white;
  border-color: var(--ink);
}
.vehicle-tab.uninit::after {
  content: 'NON INITIALISÉ';
  position: absolute;
  top: -8px;
  right: 10px;
  background: var(--orange);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}
.vehicle-tab.add {
  background: transparent;
  border-style: dashed;
  color: var(--muted);
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 500;
  min-width: auto;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.hero-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  position: relative;
}
.hero-block.primary {
  background: linear-gradient(160deg, #2a3038 0%, #1a1a1c 100%);
  color: white;
  border-color: transparent;
  display: flex;
  align-items: center;
  gap: 22px;
}
.hero-brand-watermark {
  position: absolute;
  right: -10px;
  top: -10px;
  opacity: 0.06;
  pointer-events: none;
}
.hero-brand-watermark svg {
  width: 180px;
  height: 180px;
  fill: white;
}

.gauge {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
}
.gauge svg { transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 12; stroke-linecap: round; }
.gauge-fill {
  fill: none; stroke: var(--orange);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 339.3;
  transition: stroke-dashoffset 0.6s ease;
}
.gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gauge-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.gauge-unit {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  font-weight: 600;
}
.primary-info { flex: 1; z-index: 1; }
.primary-info .hero-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: 8px;
}
.primary-info .title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.primary-info .sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-family: 'JetBrains Mono', monospace;
}

.hero-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.hero-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
}
.hero-value .unit {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}
.hero-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.hero-sub-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.delta {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}
.delta.down { background: var(--soft-green); color: var(--green); }
.delta.up { background: var(--soft-pink); color: var(--rose); }
.delta.flat { background: var(--bg); color: var(--muted); }

/* GRID */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* DASHBOARD (onglet) */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.dashboard-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.widget {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  min-height: 110px;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.widget-wide { grid-column: span 2; }

.dashboard-grid.editing .widget {
  border-style: dashed;
  border-color: var(--line-strong);
  cursor: grab;
}
.dashboard-grid.editing .widget:hover {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(200, 119, 61, 0.15);
}
.dashboard-grid.editing .widget:active { cursor: grabbing; }
.widget-ghost {
  opacity: 0.4;
  background: var(--bg);
  border: 2px dashed var(--orange) !important;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.widget-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}
.widget-remove {
  background: var(--rose);
  color: white;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  font-family: 'DM Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.widget-kpi-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.1;
}
.widget-kpi-unit {
  font-size: 12px;
  color: var(--muted);
  margin-left: 4px;
  font-weight: 500;
}
.widget-kpi-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
}

.palette {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
}
.palette-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.palette-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.palette-item {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.palette-item:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

@media (max-width: 900px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .widget-wide { grid-column: span 2; }
}

/* ONGLETS */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.tab {
  background: transparent;
  border: none;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--ink-soft); }
.tab.active {
  color: var(--ink);
  border-bottom-color: var(--orange);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 14px;
}
.card-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.card-title::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--orange);
}
.card-title .meta {
  margin-left: auto;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
}

/* FORM */
.form-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.field { display: flex; flex-direction: column; position: relative; }
.field label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.field input, .field select {
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--ink); background: white; }
.field input[data-uppercase] { text-transform: uppercase; letter-spacing: 0.05em; }

.partial-toggle {
  font-size: 12px;
  color: var(--orange);
  cursor: pointer;
  margin-bottom: 14px;
  display: inline-block;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.partial-toggle.active { color: var(--ink); }

/* Checklist d'entretien */
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}
.checkbox-inline input { width: 16px; height: 16px; accent-color: var(--orange); cursor: pointer; }

.tasks-section {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.tasks-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.task-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.task-row:last-child { border-bottom: none; }
.task-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}
.task-check input { width: 16px; height: 16px; accent-color: var(--orange); cursor: pointer; }
.task-fields {
  margin-top: 8px;
  padding: 10px 0 6px 26px;
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 4px;
}
.task-fields .field label { font-size: 9px; }

.btn {
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-family: inherit;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.btn:disabled { background: var(--muted); cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 22px;
  font-family: inherit;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
}
.btn-danger {
  background: var(--rose);
  color: white;
}

/* FILLUP LIST */
.fillup-list { list-style: none; }
.fillup-item {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.fillup-item:last-child { border-bottom: none; }
.fillup-date {
  background: var(--bg);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.fillup-date strong {
  display: block;
  font-size: 17px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.fillup-info {
  font-size: 13px;
  font-weight: 600;
}
.fillup-info .meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  font-family: 'JetBrains Mono', monospace;
}
.fillup-conso {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green);
  padding: 5px 10px;
  border: 1px solid var(--green);
  border-radius: 6px;
}
.fillup-conso.high { color: var(--rose); border-color: var(--rose); }
.fillup-conso.partial { color: var(--muted); border-color: var(--line-strong); }
.fillup-conso.anomaly {
  color: var(--gold);
  border-color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: help;
}
.anomaly-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  font-size: 9px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
}
.fillup-price {
  font-size: 14.5px;
  font-weight: 700;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  min-width: 80px;
}
.fillup-price .liters {
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 500;
  display: block;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* CHART */
.chart { height: 200px; padding: 14px 0 0; }

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-pill {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px 16px;
}
.stat-pill-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.stat-pill-val {
  font-size: 22px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.03em;
}
.stat-pill-val .unit {
  font-size: 14px;
  color: var(--muted);
  margin-left: 3px;
}
.stat-pill-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
}

/* Empty state */
.empty-state {
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  padding: 60px 30px;
  text-align: center;
}
.empty-state h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.empty-state p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 14px;
}

/* SETTINGS view */
.settings-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.settings-header h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.back-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
}

.settings-vehicle-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.settings-vehicle-row:last-child { border-bottom: none; }
.settings-vehicle-row .vehicle-tab-logo { flex-shrink: 0; }
.settings-vehicle-row .body { flex: 1; }
.settings-vehicle-row .name { font-weight: 700; font-size: 15px; }
.settings-vehicle-row .meta { font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; margin-top: 2px; }
.settings-vehicle-row .actions { display: flex; gap: 8px; }
.settings-vehicle-row .actions button {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.settings-vehicle-row .actions button.danger { color: var(--rose); border-color: #e8c5c5; }
.settings-vehicle-row .actions button.primary { background: var(--ink); color: white; border-color: var(--ink); }

/* Auth overlay */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.auth-subtitle {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 28px;
}
.auth-info {
  background: var(--soft-orange);
  color: #8b5a2a;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-bottom: 16px;
}
.auth-error {
  background: var(--soft-pink);
  color: var(--rose);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-top: 12px;
}

/* Modal */
[hidden] { display: none !important; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 25, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  background: var(--paper);
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  width: 32px;
  height: 32px;
}
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}

/* Autocomplete dropdown */
.autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 10;
  margin-top: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.autocomplete-item:hover { background: var(--bg); }
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item .marque-modele { font-weight: 600; }
.autocomplete-item .version { font-size: 11.5px; color: var(--muted); font-family: 'JetBrains Mono', monospace; margin-top: 2px; }

/* Séparateur "ou" */
.hr-or {
  text-align: center;
  margin: 24px 0;
  position: relative;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.hr-or::before, .hr-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 60px);
  height: 1px;
  background: var(--line);
}
.hr-or::before { left: 0; }
.hr-or::after { right: 0; }

footer {
  margin-top: 28px;
  padding: 20px 0;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
}
