/* ══════════════════════════════════════════════════════════════
   VT Suivi — Design System OLED / Neon
   Space Grotesk (headlines) + Inter (body/labels)
   Cyan #99F7FF / #00F1FE = électricité
   Orange #FE9400          = essence
   ══════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────── */
.vt-app {
    --c-bg:           #000000;
    --c-surface-lo:   #131313;
    --c-surface:      #191919;
    --c-surface-hi:   #1f1f1f;
    --c-surface-top:  #262626;
    --c-outline:      rgba(72,72,72,.2);
    --c-outline-soft: rgba(255,255,255,.05);

    --c-cyan:         #99F7FF;
    --c-cyan-bright:  #00F1FE;
    --c-cyan-dim:     rgba(0,241,254,.12);
    --c-cyan-glow:    rgba(153,247,255,.35);

    --c-orange:       #FE9400;
    --c-orange-dim:   rgba(254,148,0,.12);
    --c-orange-glow:  rgba(254,148,0,.35);

    --c-text:         #ffffff;
    --c-muted:        #ababab;
    --c-danger:       #ff716c;

    --font-head:      'Space Grotesk', sans-serif;
    --font-body:      'Inter', sans-serif;

    --r-card:         14px;
    --r-btn:          10px;
    --r-input:        0;
    --r-toggle:       10px;

    --sidebar-w:      240px;
    --header-h:       64px;
    --bottom-h:       64px;

    /* App shell */
    all: initial;
    display: block;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

*, .vt-app * { box-sizing: border-box; }

/* ── Écran de connexion ───────────────────────────────────────── */
.vt-login-screen {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 2rem; position: relative; overflow: hidden;
}
.vt-login-card {
    width: 100%; max-width: 420px;
    background: linear-gradient(135deg, rgba(25,25,25,.9), rgba(19,19,19,.9));
    backdrop-filter: blur(16px);
    border: 1px solid var(--c-outline);
    border-radius: var(--r-card); padding: 2.5rem;
    position: relative; z-index: 1;
}
.vt-login-logo {
    text-align: center; margin-bottom: 2.5rem;
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.vt-login-title {
    font-family: var(--font-head); font-size: 2rem; font-weight: 700;
    letter-spacing: -.04em; margin: 0; color: var(--c-text);
}
.vt-logout-btn {
    padding: .4rem !important; border-radius: 8px !important;
}

/* ── État non connecté (fallback) ────────────────────────────── */
.vt-login-required {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-height: 60vh; gap: 1.5rem;
    text-align: center; padding: 2rem; color: var(--c-muted);
}
.vt-login-required .material-symbols-outlined { font-size: 3rem; color: var(--c-cyan); }


/* ══════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════ */

/* ── Header ──────────────────────────────────────────────────── */
.vt-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.5rem; height: var(--header-h);
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--c-outline-soft);
}
.vt-header-left { display: flex; align-items: center; gap: 2.5rem; }
.vt-logo {
    font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
    letter-spacing: -.04em; color: var(--c-text);
}
.vt-nav-top { display: none; gap: 1.5rem; }
@media (min-width: 900px) { .vt-nav-top { display: flex; } }
.vt-nav-link {
    display: flex; align-items: center; gap: .4rem;
    font-family: var(--font-head); font-size: .85rem; font-weight: 500;
    color: var(--c-muted); text-decoration: none;
    padding-bottom: 2px; border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.vt-nav-link.active,
.vt-nav-link:hover { color: var(--c-cyan); border-bottom-color: var(--c-cyan); }
.vt-nav-link .material-symbols-outlined { font-size: 1.1rem; }

.vt-header-right { display: flex; align-items: center; gap: .75rem; }
.vt-header-vehicle-name { display: none; text-align: right; }
@media (min-width: 640px) { .vt-header-vehicle-name { display: block; } }
.vt-header-vehicle-label {
    font-family: var(--font-head); font-weight: 600; font-size: .9rem;
    display: block; color: var(--c-text);
}
.vt-header-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    overflow: hidden; border: 1px solid var(--c-outline);
    display: flex; align-items: center; justify-content: center;
    background: var(--c-surface);
    color: var(--c-muted);
}
.vt-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vt-header-avatar .material-symbols-outlined { font-size: 1.2rem; }

/* ── Sidebar ─────────────────────────────────────────────────── */
.vt-sidebar {
    display: none;
}
@media (min-width: 1024px) {
    .vt-sidebar {
        display: flex; flex-direction: column;
        position: fixed; left: 0; top: 0; bottom: 0;
        width: var(--sidebar-w); z-index: 90;
        padding: calc(var(--header-h) + 1.5rem) 1rem 1.5rem;
        background: #000;
        border-right: 1px solid var(--c-outline-soft);
    }
}
.vt-sidebar-nav { display: flex; flex-direction: column; gap: .25rem; }
.vt-sidebar-link {
    display: flex; align-items: center; gap: .75rem;
    padding: .7rem 1rem; border-radius: 8px;
    font-family: var(--font-head); font-weight: 500; font-size: .9rem;
    color: var(--c-muted); text-decoration: none;
    transition: background .2s, color .2s;
    border-right: 3px solid transparent;
}
.vt-sidebar-link:hover { color: var(--c-text); background: var(--c-surface-lo); }
.vt-sidebar-link.active {
    color: var(--c-cyan); background: var(--c-cyan-dim);
    border-right-color: var(--c-cyan);
}
.vt-sidebar-link .material-symbols-outlined { font-size: 1.3rem; }

.vt-sidebar-status {
    margin-top: auto; display: flex; align-items: center; gap: .5rem;
    font-size: .75rem; color: var(--c-muted); padding: .75rem 1rem;
    background: var(--c-surface); border-radius: 8px;
}
.vt-status-pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--c-cyan);
    animation: vtPulse 2s infinite;
}
@keyframes vtPulse {
    0%,100% { opacity: 1; box-shadow: 0 0 0 0 var(--c-cyan-glow); }
    50%      { opacity: .7; box-shadow: 0 0 0 6px transparent; }
}

/* ── Main ────────────────────────────────────────────────────── */
.vt-main {
    padding-top: var(--header-h);
    padding-bottom: calc(var(--bottom-h) + 1rem);
    min-height: 100vh;
}
@media (min-width: 1024px) {
    .vt-main { padding-left: var(--sidebar-w); padding-bottom: 2rem; }
}

/* ── Bottom nav (mobile) ─────────────────────────────────────── */
.vt-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    display: flex; justify-content: space-around; align-items: center;
    height: var(--bottom-h);
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--c-outline-soft);
}
@media (min-width: 1024px) { .vt-bottom-nav { display: none; } }
.vt-bottom-link {
    display: flex; flex-direction: column; align-items: center;
    gap: .15rem; font-size: .6rem; font-family: var(--font-body);
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--c-muted); text-decoration: none;
    transition: color .2s;
}
.vt-bottom-link .material-symbols-outlined { font-size: 1.4rem; }
.vt-bottom-link.active {
    color: var(--c-cyan);
    filter: drop-shadow(0 0 6px var(--c-cyan-glow));
}

/* ══════════════════════════════════════════════════════════════
   ÉLÉMENTS RÉUTILISABLES
   ══════════════════════════════════════════════════════════════ */

/* ── Glows ───────────────────────────────────────────────────── */
.vt-glow {
    position: absolute; border-radius: 50%; pointer-events: none;
    width: 20rem; height: 20rem; filter: blur(80px);
}
.vt-glow-cyan  { background: var(--c-cyan-dim); }
.vt-glow-orange{ background: var(--c-orange-dim); }

/* ── Card ────────────────────────────────────────────────────── */
.vt-card {
    background: linear-gradient(135deg, rgba(25,25,25,.85), rgba(19,19,19,.85));
    backdrop-filter: blur(12px);
    border-radius: var(--r-card);
    border: 1px solid var(--c-outline);
    padding: 2rem;
    position: relative; overflow: hidden;
}
.vt-card-title {
    display: flex; align-items: center; gap: .5rem;
    font-family: var(--font-head); font-size: 1.05rem; font-weight: 600;
    margin: 0 0 .5rem;
}
.vt-card-desc { color: var(--c-muted); font-size: .85rem; margin: 0; }

/* ── Typography helpers ──────────────────────────────────────── */
.vt-label-micro {
    display: block; font-family: var(--font-body); font-weight: 500;
    font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--c-muted);
}
.vt-label {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-body); font-weight: 500;
    font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--c-muted); margin-bottom: .4rem;
}
.vt-label-unit { color: var(--c-orange); font-weight: 600; }
.vt-label-unit.is-elec { color: var(--c-cyan); }

.vt-cyan   { color: var(--c-cyan); }
.vt-orange { color: var(--c-orange); }

/* ── Inputs ──────────────────────────────────────────────────── */
.vt-input-line-wrap { position: relative; }
.vt-input, .vt-input-big, .vt-input-date {
    width: 100%; background: transparent; border: none; outline: none;
    font-family: var(--font-head); color: var(--c-text);
    padding: .6rem 0;
    border-bottom: 2px solid var(--c-outline);
    transition: border-color .25s;
}
.vt-input      { font-size: 1rem; font-weight: 400; }
.vt-input-big  { font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; }
.vt-input-date { font-size: 1.05rem; font-weight: 500; }
.vt-input::placeholder, .vt-input-big::placeholder { color: #333; }
.vt-input:focus, .vt-input-big:focus, .vt-input-date:focus {
    border-bottom-color: var(--c-orange);
}
.vt-input:focus.is-elec, .vt-input-big.is-elec:focus { border-bottom-color: var(--c-cyan); }

.vt-input-bar {
    position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--c-orange);
    transition: width .4s ease;
    box-shadow: 0 0 8px var(--c-orange-glow);
    border-radius: 2px;
}
.vt-input-bar.is-elec { background: var(--c-cyan); box-shadow: 0 0 8px var(--c-cyan-glow); }

.vt-input-line-wrap:focus-within .vt-input-bar { width: 100%; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.5); }

/* ── Select ──────────────────────────────────────────────────── */
.vt-select {
    background: var(--c-surface-lo); color: var(--c-text);
    border: 1px solid var(--c-outline);
    border-radius: 8px; padding: .5rem 1rem;
    font-family: var(--font-head); font-size: .85rem;
    cursor: pointer; outline: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23ababab'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .75rem center;
    padding-right: 2rem;
}
.vt-select:focus { border-color: var(--c-cyan); box-shadow: 0 0 0 2px var(--c-cyan-dim); }

/* ── Buttons ─────────────────────────────────────────────────── */
.vt-btn-primary, .vt-btn-ghost, .vt-btn-submit {
    display: inline-flex; align-items: center; gap: .4rem;
    font-family: var(--font-head); font-weight: 600; font-size: .9rem;
    border: none; cursor: pointer; border-radius: var(--r-btn);
    transition: all .2s; text-decoration: none;
}
.vt-btn-primary {
    background: var(--c-cyan-bright); color: #003e42;
    padding: .6rem 1.4rem;
    box-shadow: 0 0 16px rgba(0,241,254,.3);
}
.vt-btn-primary:hover {
    box-shadow: 0 0 28px rgba(0,241,254,.5);
    transform: translateY(-1px);
}
.vt-btn-primary:active { transform: scale(.97); }

.vt-btn-ghost {
    background: transparent; color: var(--c-muted);
    padding: .6rem 1.2rem;
    border: 1px solid var(--c-outline);
}
.vt-btn-ghost:hover { color: var(--c-text); border-color: var(--c-muted); }
.vt-btn-ghost.vt-btn-danger:hover { color: var(--c-danger); border-color: var(--c-danger); }

.vt-btn-sm { font-size: .78rem; padding: .4rem .9rem; }

.vt-btn-submit {
    width: 100%; justify-content: center;
    padding: 1.1rem; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase;
    background: var(--c-orange); color: #fff;
    box-shadow: 0 0 24px var(--c-orange-glow);
    border-radius: var(--r-btn); margin-top: 1.5rem;
}
.vt-btn-submit:hover { box-shadow: 0 0 36px var(--c-orange-glow); transform: translateY(-1px); }
.vt-btn-submit:active { transform: scale(.98); }
.vt-btn-submit.is-elec {
    background: var(--c-cyan-bright); color: #003e42;
    box-shadow: 0 0 24px var(--c-cyan-glow);
}
.vt-btn-submit.is-elec:hover { box-shadow: 0 0 36px var(--c-cyan-glow); }

.vt-link-btn {
    background: none; border: none; cursor: pointer;
    font-family: var(--font-body); font-size: .75rem;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--c-cyan); border-bottom: 1px solid rgba(153,247,255,.3);
    padding-bottom: 1px; transition: border-color .2s;
}
.vt-link-btn:hover { border-bottom-color: var(--c-cyan); }

/* ── Notices ─────────────────────────────────────────────────── */
.vt-notice {
    margin-top: 1rem; padding: .75rem 1rem;
    border-radius: 8px; font-size: .85rem;
    display: none;
}
.vt-notice.show { display: block; }
.vt-notice.ok   { background: rgba(0,241,254,.1); color: var(--c-cyan); border: 1px solid var(--c-cyan-dim); }
.vt-notice.err  { background: rgba(255,113,108,.1); color: var(--c-danger); border: 1px solid rgba(255,113,108,.3); }

/* ── Loading ─────────────────────────────────────────────────── */
.vt-loading-msg {
    color: var(--c-muted); font-size: .85rem; padding: 1.5rem;
    text-align: center; letter-spacing: .05em;
}

/* ── Field group ─────────────────────────────────────────────── */
.vt-field-group { display: flex; flex-direction: column; }

/* ══════════════════════════════════════════════════════════════
   VUE SAISIE
   ══════════════════════════════════════════════════════════════ */
.vt-view { padding: 1.5rem; position: relative; }
@media (min-width: 768px) { .vt-view { padding: 2rem 2.5rem; } }

.vt-entry-vehicle-bar {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.5rem;
}
.vt-entry-vehicle-bar .vt-label-micro { margin-bottom: 0; white-space: nowrap; }

.vt-entry-card { max-width: 600px; margin: 0 auto; }

.vt-entry-header { text-align: center; margin-bottom: 2rem; }
.vt-entry-header h1 {
    font-family: var(--font-head); font-size: 2.5rem; font-weight: 700;
    letter-spacing: -.03em; margin: .25rem 0 0;
}

/* Toggle Essence / Élec */
.vt-toggle {
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--c-surface-lo); border-radius: var(--r-toggle);
    padding: 4px; margin-bottom: 2rem;
    border: 1px solid var(--c-outline-soft);
}
.vt-toggle-btn {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .9rem; border: none; border-radius: 8px; cursor: pointer;
    font-family: var(--font-head); font-weight: 700; font-size: .95rem;
    transition: all .3s; background: transparent; color: var(--c-muted);
}
.vt-toggle-essence.active {
    background: var(--c-orange-dim); color: var(--c-orange);
    border: 1px solid rgba(254,148,0,.3);
    box-shadow: 0 0 16px rgba(254,148,0,.15);
}
.vt-toggle-elec.active {
    background: var(--c-cyan-dim); color: var(--c-cyan);
    border: 1px solid rgba(153,247,255,.3);
    box-shadow: 0 0 16px rgba(153,247,255,.15);
}

.vt-entry-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 480px) {
    .vt-entry-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.vt-entry-row {
    display: flex; gap: 2rem; align-items: flex-end; margin-bottom: 2rem;
}
@media (max-width: 480px) { .vt-entry-row { flex-direction: column; } }

.vt-field-date { flex: 1; }

.vt-prix-unitaire-card {
    flex: 1; display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,.03); border: 1px solid var(--c-outline-soft);
    border-radius: 10px; padding: .85rem 1rem;
}
.vt-prix-unitaire-val {
    font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
    color: var(--c-text); margin: .2rem 0 0;
}
.vt-prix-unit { font-size: .8rem; font-weight: 400; color: var(--c-muted); margin-left: .2rem; }
.vt-trending-icon { color: var(--c-orange); font-size: 1.5rem; }
.vt-trending-icon.is-elec { color: var(--c-cyan); }

/* Km grid */
.vt-km-grid {
    display: grid; gap: 1rem; margin-bottom: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.vt-km-card { }
.vt-km-bar-wrap { margin-top: 1rem; }
.vt-km-bar {
    height: 6px; background: var(--c-surface-top);
    border-radius: 3px; overflow: hidden;
}
.vt-km-bar-elec {
    height: 100%; background: var(--c-cyan);
    box-shadow: 0 0 8px var(--c-cyan-glow);
    border-radius: 3px; transition: width .6s ease;
    width: 0%;
}

/* ══════════════════════════════════════════════════════════════
   VUE DASHBOARD
   ══════════════════════════════════════════════════════════════ */
.vt-dashboard-topbar {
    display: flex; flex-wrap: wrap; gap: 1rem;
    justify-content: space-between; align-items: flex-start;
    margin-bottom: 1.5rem;
}
.vt-dash-title {
    font-family: var(--font-head); font-size: 2rem; font-weight: 700;
    letter-spacing: -.03em; margin: 0 0 .2rem;
}
.vt-period-label {
    font-family: var(--font-body); font-size: .8rem;
    color: var(--c-muted); display: block;
}
.vt-dash-right {
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}

/* Navigation temporelle */
.vt-time-nav {
    display: flex; align-items: center;
    background: var(--c-surface-lo); border: 1px solid var(--c-outline-soft);
    border-radius: 10px; padding: 3px;
}
.vt-time-arrow {
    background: none; border: none; cursor: pointer; color: var(--c-muted);
    padding: .25rem; display: flex; align-items: center; border-radius: 6px;
    transition: color .2s, background .2s;
}
.vt-time-arrow:hover { color: var(--c-text); background: var(--c-outline-soft); }
.vt-time-modes { display: flex; }
.vt-time-mode {
    font-family: var(--font-body); font-size: .68rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--c-muted); cursor: pointer;
    padding: .28rem .55rem; border-radius: 6px;
    transition: color .2s, background .2s;
}
.vt-time-mode:hover { color: var(--c-text); }
.vt-time-mode.active { color: var(--c-cyan); background: var(--c-cyan-dim); }

/* ── Hero grid km + budget ── */
.vt-dash-hero {
    display: grid; gap: 1rem; margin-bottom: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .vt-dash-hero { grid-template-columns: 1fr 1fr; }
}
.vt-hero-val-row {
    display: flex; align-items: baseline; gap: .4rem; margin: .4rem 0 1rem;
}
.vt-hero-val {
    font-family: var(--font-head); font-size: 3rem; font-weight: 700;
    letter-spacing: -.04em; color: var(--c-text);
}
@media (max-width: 480px) { .vt-hero-val { font-size: 2.4rem; } }
.vt-hero-unit {
    font-family: var(--font-head); font-size: 1.3rem;
    color: var(--c-muted); font-weight: 300;
}
.vt-hero-sub-grid {
    display: flex; gap: 1.25rem; flex-wrap: wrap;
    padding-top: .75rem; border-top: 1px solid var(--c-outline-soft);
    margin-top: .75rem;
}
.vt-hero-sub { display: flex; flex-direction: column; gap: .1rem; }
.vt-hero-sub-val {
    font-family: var(--font-head); font-size: 1.2rem; font-weight: 700;
    color: var(--c-text);
}
.vt-hero-sub-unit { font-size: .65rem; color: var(--c-muted); }

/* Barre élec/therm */
.vt-km-bar {
    height: 5px; background: var(--c-surface-top);
    border-radius: 3px; overflow: hidden; margin-bottom: .4rem;
}
.vt-km-bar-elec {
    height: 100%; background: var(--c-cyan);
    box-shadow: 0 0 8px var(--c-cyan-glow);
    border-radius: 3px; transition: width .6s ease; width: 0%;
}
.vt-km-bar-labels {
    display: flex; justify-content: space-between;
    font-size: .7rem; font-family: var(--font-body);
}

/* Budget breakdown */
.vt-budget-breakdown {
    display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.vt-breakdown-item { display: flex; flex-direction: column; gap: .15rem; }
.vt-breakdown-val {
    font-family: var(--font-head); font-size: 1.15rem; font-weight: 600;
    color: var(--c-text);
}

/* Chart */
.vt-chart-card { margin-bottom: 1.5rem; }
.vt-chart-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.vt-chart-header h3 {
    font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; margin: 0;
}
.vt-chart-legend { display: flex; gap: 1.25rem; }
.vt-legend-item {
    display: flex; align-items: center; gap: .4rem;
    font-size: .72rem; font-family: var(--font-body);
    letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted);
}
.vt-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.vt-bg-cyan   { background: var(--c-cyan); box-shadow: 0 0 6px var(--c-cyan-glow); }
.vt-bg-orange { background: var(--c-orange); box-shadow: 0 0 6px var(--c-orange-glow); }
.vt-chart-wrap { height: 260px; position: relative; }

/* Entrées récentes */
.vt-recent-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem;
}
.vt-recent-head h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; margin: 0; }

.vt-entry-row-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: .9rem 1rem; border-radius: 8px;
    transition: background .2s; gap: 1rem;
    border-bottom: 1px solid var(--c-outline-soft);
}
.vt-entry-row-item:last-child { border-bottom: none; }
.vt-entry-row-item:hover { background: var(--c-surface-lo); }

.vt-entry-row-left { display: flex; align-items: center; gap: .75rem; }
.vt-entry-icon {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.vt-entry-icon.elec {
    background: var(--c-cyan-dim); color: var(--c-cyan);
    box-shadow: 0 0 10px rgba(153,247,255,.2);
}
.vt-entry-icon.essence {
    background: var(--c-orange-dim); color: var(--c-orange);
    box-shadow: 0 0 10px rgba(254,148,0,.2);
}
.vt-entry-icon .material-symbols-outlined { font-size: 1.1rem; }
.vt-entry-info {}
.vt-entry-info-main { font-size: .9rem; font-weight: 500; }
.vt-entry-info-sub {
    font-size: .7rem; letter-spacing: .07em; text-transform: uppercase;
    color: var(--c-muted); margin-top: .1rem;
}
.vt-entry-row-right { display: flex; align-items: center; gap: 1.5rem; }
.vt-entry-qty { text-align: right; display: none; }
@media (min-width: 640px) { .vt-entry-qty { display: block; } }
.vt-entry-qty-val { font-size: .88rem; font-weight: 500; }
.vt-entry-qty-lbl { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.vt-entry-price { text-align: right; min-width: 70px; }
.vt-entry-price-val { font-size: .95rem; font-weight: 700; }
.vt-entry-price-val.elec   { color: var(--c-cyan); }
.vt-entry-price-val.essence{ color: var(--c-orange); }
.vt-entry-delete {
    background: none; border: none; cursor: pointer;
    color: var(--c-muted); padding: .2rem; border-radius: 4px;
    transition: color .2s; display: none; align-items: center;
}
.vt-entry-row-item:hover .vt-entry-delete { display: flex; }
.vt-entry-delete:hover { color: var(--c-danger); }

/* ══════════════════════════════════════════════════════════════
   VUE PROFIL VÉHICULE
   ══════════════════════════════════════════════════════════════ */
.vt-section-topbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.vt-section-topbar h1 {
    font-family: var(--font-head); font-size: 2.2rem; font-weight: 700;
    letter-spacing: -.03em; margin: 0;
}

/* Grille des profils */
.vt-profiles-grid {
    display: grid; gap: 1rem; margin-bottom: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.vt-profile-card {
    background: var(--c-surface); border: 1px solid var(--c-outline);
    border-radius: var(--r-card); overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    cursor: pointer;
}
.vt-profile-card:hover {
    border-color: rgba(153,247,255,.3);
    box-shadow: 0 0 20px rgba(153,247,255,.07);
}
.vt-profile-card-img {
    width: 100%; height: 140px; object-fit: cover; display: block;
    background: var(--c-surface-hi);
}
.vt-profile-card-img-placeholder {
    width: 100%; height: 140px; background: var(--c-surface-hi);
    display: flex; align-items: center; justify-content: center;
    color: var(--c-muted);
}
.vt-profile-card-img-placeholder .material-symbols-outlined { font-size: 3rem; }
.vt-profile-card-body { padding: 1.25rem; }
.vt-profile-card-model {
    font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
    color: var(--c-text); margin: 0 0 .2rem;
}
.vt-profile-card-brand { font-size: .82rem; color: var(--c-muted); margin: 0 0 1rem; }
.vt-profile-card-meta { display: flex; gap: 1rem; font-size: .72rem; color: var(--c-muted); }
.vt-profile-card-badge {
    display: inline-flex; align-items: center; gap: .25rem;
    background: var(--c-cyan-dim); color: var(--c-cyan);
    border: 1px solid rgba(153,247,255,.2);
    border-radius: 20px; padding: .15rem .6rem;
    font-size: .65rem; letter-spacing: .08em; text-transform: uppercase;
}
.vt-profile-card-badge.owner { background: rgba(254,148,0,.1); color: var(--c-orange); border-color: rgba(254,148,0,.2); }
.vt-profile-card-actions { display: flex; gap: .5rem; margin-top: 1rem; }

/* Formulaire profil */
.vt-profile-form { margin-bottom: 2rem; }
.vt-profile-form h2 {
    font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
    margin: 0 0 1.5rem;
}
.vt-profile-layout {
    display: grid; gap: 2rem; margin-bottom: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .vt-profile-layout { grid-template-columns: 200px 1fr; }
}

.vt-photo-frame {
    width: 180px; height: 180px; border-radius: 50%;
    overflow: hidden; border: 3px solid var(--c-surface-top);
    position: relative; background: var(--c-surface-hi);
    box-shadow: 0 0 30px rgba(153,247,255,.07);
}
.vt-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.vt-photo-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--c-muted);
}
.vt-photo-placeholder .material-symbols-outlined { font-size: 3rem; }

.vt-profile-fields { display: flex; flex-direction: column; gap: 1.25rem; }
.vt-form-btns { display: flex; gap: .75rem; margin-top: .5rem; }

/* Membres */
.vt-members-section {
    border-top: 1px solid var(--c-outline-soft);
    padding-top: 1.5rem; margin-top: 1.5rem;
}
.vt-members-section h3 {
    font-family: var(--font-head); font-size: 1.1rem; font-weight: 600;
    margin: 0 0 1rem; display: flex; align-items: center; gap: .75rem;
}
.vt-member-count {
    font-size: .7rem; color: var(--c-muted); font-family: var(--font-body);
    letter-spacing: .08em; text-transform: uppercase;
}
.vt-members-table { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.vt-member-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: .75rem 1rem; background: var(--c-surface-lo);
    border-radius: 8px; gap: .75rem;
}
.vt-member-left { display: flex; align-items: center; gap: .75rem; }
.vt-member-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    overflow: hidden; border: 1px solid var(--c-outline);
    background: var(--c-surface-hi);
}
.vt-member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vt-member-name { font-weight: 500; font-size: .88rem; }
.vt-member-email { font-size: .72rem; color: var(--c-muted); }
.vt-member-badge {
    padding: .15rem .6rem; border-radius: 20px; font-size: .65rem;
    letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
    background: var(--c-cyan-dim); color: var(--c-cyan);
    border: 1px solid rgba(153,247,255,.2);
}
.vt-member-badge.owner { background: rgba(254,148,0,.1); color: var(--c-orange); border-color: rgba(254,148,0,.2); }

.vt-invite-wrap {
    background: var(--c-surface-lo); border-radius: 12px;
    padding: 1.5rem; margin-top: .5rem;
}
.vt-invite-wrap h4 {
    font-family: var(--font-head); font-size: .95rem; font-weight: 600;
    margin: 0 0 1rem;
}
.vt-invite-row { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.vt-autocomplete-wrap { flex: 1; min-width: 200px; position: relative; }
.vt-suggestions {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    background: var(--c-surface-hi); border: 1px solid var(--c-outline);
    border-radius: 8px; overflow: hidden; display: none;
}
.vt-suggestions.show { display: block; }
.vt-suggestion-item {
    display: flex; align-items: center; gap: .75rem;
    padding: .7rem 1rem; cursor: pointer; transition: background .15s;
}
.vt-suggestion-item:hover { background: var(--c-outline-soft); }
.vt-suggestion-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
}
.vt-suggestion-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vt-suggestion-name { font-size: .88rem; font-weight: 500; }
.vt-suggestion-email { font-size: .72rem; color: var(--c-muted); }

/* ══════════════════════════════════════════════════════════════
   VUE RÉGLAGES
   ══════════════════════════════════════════════════════════════ */
.vt-settings-grid {
    display: grid; gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .vt-settings-grid { grid-template-columns: repeat(2, 1fr); }
}
.vt-import-log-card {
    grid-column: 1 / -1;
}

.vt-apikey-row { display: flex; align-items: flex-end; }
.vt-mono { font-family: monospace !important; font-size: .82rem !important; color: var(--c-cyan) !important; letter-spacing: .04em; }
.vt-apikey-btns { display: flex; gap: .5rem; margin-top: .75rem; }

.vt-endpoint-block {
    margin-top: 1.5rem; padding: 1rem;
    background: var(--c-surface-lo); border-radius: 8px;
    border: 1px solid var(--c-outline-soft);
}
.vt-code {
    display: block; font-family: monospace; font-size: .78rem;
    color: var(--c-cyan); word-break: break-all; margin-top: .3rem;
}

.vt-setting-row {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.vt-setting-label { font-weight: 600; font-size: .9rem; margin: 0 0 .2rem; }
.vt-setting-desc  { font-size: .78rem; color: var(--c-muted); margin: 0; }

/* Switch toggle */
.vt-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.vt-switch input { opacity: 0; width: 0; height: 0; }
.vt-switch-slider {
    position: absolute; inset: 0; background: var(--c-surface-top);
    border-radius: 24px; cursor: pointer; transition: .3s;
}
.vt-switch-slider::before {
    content: ''; position: absolute; width: 18px; height: 18px;
    border-radius: 50%; background: var(--c-muted);
    left: 3px; top: 3px; transition: .3s;
}
.vt-switch input:checked + .vt-switch-slider { background: rgba(0,241,254,.25); }
.vt-switch input:checked + .vt-switch-slider::before {
    transform: translateX(20px); background: var(--c-cyan);
    box-shadow: 0 0 8px var(--c-cyan-glow);
}

/* Import log table */
.vt-import-log { display: flex; flex-direction: column; gap: .5rem; }
.vt-import-log-row {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: .75rem 1rem; background: var(--c-surface-lo);
    border-radius: 8px; flex-wrap: wrap;
}
.vt-import-log-status {
    padding: .15rem .6rem; border-radius: 20px; font-size: .65rem;
    font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    flex-shrink: 0; margin-top: .1rem;
}
.vt-import-log-status.success { background: rgba(0,241,254,.1); color: var(--c-cyan); }
.vt-import-log-status.error   { background: rgba(255,113,108,.1); color: var(--c-danger); }
.vt-import-log-body { flex: 1; min-width: 0; }
.vt-import-log-msg  { font-size: .84rem; }
.vt-import-log-meta { font-size: .72rem; color: var(--c-muted); margin-top: .15rem; }

/* ══════════════════════════════════════════════════════════════
   MATÉRIAUX SYMBOLS (force display)
   ══════════════════════════════════════════════════════════════ */
.vt-app .material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal; font-style: normal;
    font-size: 1.3rem; line-height: 1;
    letter-spacing: normal; text-transform: none;
    display: inline-block; white-space: nowrap;
    word-wrap: normal; direction: ltr;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    vertical-align: middle;
}

/* ══════════════════════════════════════════════════════════════
   ÉTAT DU VÉHICULE
   ══════════════════════════════════════════════════════════════ */
.vt-vehicle-state-card { margin-bottom: 1.5rem; }
.vt-vehicle-state-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem; flex-wrap: wrap; gap: .5rem;
}
.vt-vehicle-state-header h3 {
    font-family: var(--font-head); font-size: 1rem; font-weight: 600;
    margin: 0; display: flex; align-items: center; gap: .4rem;
}
.vt-vehicle-state-updated {
    font-size: .7rem; color: var(--c-muted); font-family: var(--font-body);
}
.vt-vehicle-state-grid {
    display: grid; gap: 1.5rem;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
    .vt-vehicle-state-grid { grid-template-columns: repeat(4, 1fr); }
}
.vt-state-item { display: flex; flex-direction: column; gap: .4rem; }
.vt-state-label {
    display: flex; align-items: center; gap: .3rem;
    font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
    color: var(--c-muted); font-family: var(--font-body);
}
.vt-state-val {
    font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
    color: var(--c-text);
}
.vt-state-bar-wrap {
    display: flex; align-items: center; gap: .5rem; margin-top: .2rem;
}
.vt-state-bar {
    flex: 1; height: 4px; background: var(--c-surface-top);
    border-radius: 2px; overflow: hidden;
}
.vt-state-bar-fill {
    height: 100%; border-radius: 2px;
    transition: width .6s ease; width: 0%;
}
.vt-state-bar-cyan  { background: var(--c-cyan);   box-shadow: 0 0 6px var(--c-cyan-glow); }
.vt-state-bar-orange{ background: var(--c-orange);  box-shadow: 0 0 6px var(--c-orange-glow); }
.vt-state-bar-pct {
    font-size: .68rem; color: var(--c-muted); font-family: var(--font-body);
    min-width: 28px; text-align: right;
}

/* ══════════════════════════════════════════════════════════════
   MODAL ÉDITION LOG
   ══════════════════════════════════════════════════════════════ */
.vt-modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.vt-modal {
    background: var(--c-surface); border: 1px solid var(--c-outline);
    border-radius: var(--r-card); padding: 2rem;
    width: 100%; max-width: 420px;
    animation: vtModalIn .2s ease;
}
@keyframes vtModalIn {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to   { opacity: 1; transform: none; }
}
.vt-modal h3 {
    font-family: var(--font-head); font-size: 1.1rem; font-weight: 600;
    margin: 0 0 1.5rem; display: flex; align-items: center; gap: .5rem;
}
.vt-modal-btns { display: flex; gap: .75rem; margin-top: 1.5rem; }
.vt-modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; cursor: pointer;
    color: var(--c-muted); padding: .25rem; border-radius: 6px;
    transition: color .2s;
}
.vt-modal-close:hover { color: var(--c-text); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE MOBILE — corrections complètes
   ══════════════════════════════════════════════════════════════ */

/* Header mobile */
@media (max-width: 640px) {
    .vt-header { padding: 0 1rem; }
    .vt-logo { font-size: 1.15rem; }
    .vt-header-vehicle-name { display: none; }
}

/* Main padding mobile */
@media (max-width: 640px) {
    .vt-view { padding: 1rem; }
    .vt-main { padding-bottom: calc(var(--bottom-h) + .5rem); }
}

/* Dashboard mobile */
@media (max-width: 640px) {
    .vt-dashboard-topbar { gap: .75rem; }
    .vt-dash-title { font-size: 1.6rem; }
    .vt-dash-right { width: 100%; justify-content: space-between; }
    .vt-hero-val { font-size: 2.2rem; }
    .vt-hero-sub-grid { gap: 1rem; }
    .vt-hero-sub-val { font-size: 1rem; }
}

/* Entry form mobile */
@media (max-width: 480px) {
    .vt-entry-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .vt-entry-row { flex-direction: column; }
    .vt-entry-card { padding: 1.5rem; }
    .vt-input-big { font-size: 1.8rem; }
    .vt-toggle-btn { font-size: .85rem; padding: .75rem .5rem; }
}

/* Bottom nav safe area iPhone */
.vt-bottom-nav {
    padding-bottom: max(.5rem, env(safe-area-inset-bottom));
    height: auto; min-height: var(--bottom-h);
}
.vt-bottom-link { padding: .5rem 0; }

/* Profile grid mobile */
@media (max-width: 480px) {
    .vt-profiles-grid { grid-template-columns: 1fr; }
    .vt-section-topbar h1 { font-size: 1.7rem; }
}

/* Profile form mobile */
@media (max-width: 480px) {
    .vt-photo-frame { width: 120px; height: 120px; }
    .vt-invite-row { flex-direction: column; }
    .vt-invite-row .vt-btn-primary { width: 100%; justify-content: center; }
}

/* Settings mobile */
@media (max-width: 640px) {
    .vt-settings-grid { grid-template-columns: 1fr; }
    .vt-import-log-card { grid-column: 1; }
}

/* Time nav mobile — plus compact */
@media (max-width: 380px) {
    .vt-time-mode { padding: .25rem .4rem; font-size: .6rem; }
    .vt-select { font-size: .8rem; padding: .4rem .75rem; }
}

/* Entries list mobile */
@media (max-width: 480px) {
    .vt-entry-row-item { padding: .75rem .5rem; gap: .5rem; }
    .vt-entry-row-right { gap: .75rem; }
    .vt-entry-info-main { font-size: .82rem; }
}

/* Bouton édition sur les entrées */
.vt-entry-edit {
    background: none; border: none; cursor: pointer;
    color: var(--c-muted); padding: .2rem; border-radius: 4px;
    transition: color .2s; display: none; align-items: center;
}
.vt-entry-row-item:hover .vt-entry-edit { display: flex; }
.vt-entry-edit:hover { color: var(--c-cyan); }
