Garage : redesign CSS thème clair HouseHub
Deploy to Pacha Family / deploy (push) Failing after 3s

Remplace le thème sombre GarageManager par le thème clair de HouseHub
(variables --bg-panel, --border-light, --text-main, --primary, etc.)
Cohérent avec global.css et les autres modules.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
perco
2026-05-11 17:25:31 +02:00
co-authored by Claude Sonnet 4.6
parent eb34657473
commit 7cacf4bdf5
+202 -288
View File
@@ -1,384 +1,298 @@
/* Garage module — light theme matching HouseHub global.css */
/* Aliases pour les inline styles JS qui utilisent var(--muted) / var(--fg) */
:root {
--bg: #0d1117;
--card: #161b22;
--border: #30363d;
--text: #e6edf3;
--muted: #8b949e;
--primary: #2563eb;
--success: #22c55e;
--warning: #f59e0b;
--danger: #ef4444;
--info: #06b6d4;
--radius: 8px;
--radius-lg: 12px;
--muted: #64748b;
--fg: #0f172a;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; min-height: 100vh; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
/* ─── SOUS-NAVIGATION ──────────────────────────────────────────────────────── */
.garage-subnav {
display: flex;
gap: 4px;
padding: 10px 20px;
background: var(--bg-panel);
border-bottom: 1px solid var(--border-light);
}
.garage-subnav .nav-link {
background: none;
border: 1px solid transparent;
border-radius: 8px;
padding: 7px 16px;
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
color: var(--text-muted);
transition: all .15s;
}
.garage-subnav .nav-link:hover { background: #f1f5f9; color: var(--text-main); }
.garage-subnav .nav-link.active { background: #eff6ff; color: var(--primary); border-color: #bfdbfe; }
/* NAVBAR */
.navbar {
position: sticky; top: 0; z-index: 100;
background: var(--card);
border-bottom: 1px solid var(--border);
padding: 0 1.5rem;
display: flex; align-items: center; gap: 1.5rem;
height: 56px;
}
.navbar-brand {
font-size: 1.15rem; font-weight: 700; color: var(--text);
text-decoration: none; white-space: nowrap;
}
.navbar-brand:hover { text-decoration: none; color: var(--primary); }
.navbar-nav { display: flex; gap: 0.25rem; margin-left: auto; }
.navbar-nav a {
color: var(--muted); font-size: 0.9rem; font-weight: 500;
padding: 0.35rem 0.75rem; border-radius: var(--radius);
transition: background 0.15s, color 0.15s;
}
.navbar-nav a:hover, .navbar-nav a.active {
background: rgba(37,99,235,0.15); color: var(--primary); text-decoration: none;
}
/* CONTAINER */
/* ─── CONTAINER & PAGES ────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
/* PAGES */
.page { display: none; }
.page.active { display: block; }
/* CARD */
/* ─── CARD ──────────────────────────────────────────────────────────────────── */
.card {
background: var(--card); border: 1px solid var(--border);
border-radius: var(--radius-lg); padding: 1.25rem;
background: var(--bg-panel);
border: 1px solid var(--border-light);
border-radius: var(--radius);
padding: 1.25rem;
box-shadow: var(--shadow);
}
.card-title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--text); }
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: .75rem;
flex-wrap: wrap;
margin-bottom: .25rem;
}
.card-title { font-size: 1rem; font-weight: 600; color: var(--text-main); }
/* STATS GRID */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
/* ─── STATS GRID ────────────────────────────────────────────────────────────── */
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 1rem;
margin-bottom: 1.5rem;
}
.stat-pill {
background: var(--card); border: 1px solid var(--border);
border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
display: flex; flex-direction: column; gap: 0.4rem;
border-left: 4px solid var(--border);
background: var(--bg-panel);
border: 1px solid var(--border-light);
border-radius: var(--radius);
padding: 1.25rem 1.5rem;
border-left: 4px solid var(--border-light);
box-shadow: var(--shadow);
}
.stat-pill-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-pill-value { font-size: 1.75rem; font-weight: 700; line-height: 1; }
.stat-pill-sub { font-size: 0.8rem; color: var(--muted); }
.stat-pill .label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem; }
.stat-pill .value { font-size: 1.75rem; font-weight: 700; line-height: 1; color: var(--text-main); }
.stat-pill.blue { border-left-color: var(--primary); }
.stat-pill.blue .stat-pill-value { color: var(--primary); }
.stat-pill.blue .value { color: var(--primary); }
.stat-pill.green { border-left-color: var(--success); }
.stat-pill.green .stat-pill-value { color: var(--success); }
.stat-pill.green .value { color: var(--success); }
.stat-pill.amber { border-left-color: var(--warning); }
.stat-pill.amber .stat-pill-value { color: var(--warning); }
.stat-pill.amber .value { color: var(--warning); }
.stat-pill.red { border-left-color: var(--danger); }
.stat-pill.red .stat-pill-value { color: var(--danger); }
.stat-pill.cyan { border-left-color: var(--info); }
.stat-pill.cyan .stat-pill-value { color: var(--info); }
.stat-pill.red .value { color: var(--danger); }
/* VEHICLES GRID */
.vehicles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
/* ─── VEHICLES GRID ─────────────────────────────────────────────────────────── */
.vehicles-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1.25rem;
}
.vehicle-card {
background: var(--card); border: 1px solid var(--border);
border-radius: var(--radius-lg); overflow: hidden;
transition: border-color 0.2s, transform 0.15s;
background: var(--bg-panel);
border: 1px solid var(--border-light);
border-radius: var(--radius);
overflow: hidden;
cursor: pointer;
transition: border-color .2s, box-shadow .2s, transform .15s;
box-shadow: var(--shadow);
}
.vehicle-card:hover {
border-color: var(--primary);
box-shadow: var(--shadow-lg);
transform: translateY(-2px);
}
.vehicle-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.vehicle-card-img {
width: 100%; height: 180px; object-fit: cover;
background: #1c2128;
}
.vehicle-card-img-placeholder {
width: 100%; height: 180px; background: #1c2128;
display: flex; align-items: center; justify-content: center;
font-size: 3.5rem; color: var(--muted);
width: 100%; height: 180px; overflow: hidden; background: #f1f5f9;
position: relative; display: flex; align-items: center; justify-content: center;
}
.vehicle-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-photo { font-size: 3.5rem; color: #cbd5e1; }
.vehicle-card-body { padding: 1rem; }
.vehicle-card-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.vehicle-card-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.6rem; }
.vehicle-card-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.vehicle-card-title { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: .25rem; }
.vehicle-card-sub { font-size: .82rem; color: var(--text-muted); margin-bottom: .6rem; }
.vehicle-card-stats { display: flex; gap: .75rem; flex-wrap: wrap; }
.vc-stat { font-size: .82rem; color: var(--text-muted); }
.vehicle-card-footer {
padding: 0.75rem 1rem; border-top: 1px solid var(--border);
padding: .6rem 1rem;
border-top: 1px solid var(--border-light);
display: flex; justify-content: space-between; align-items: center;
font-size: 0.8rem; color: var(--muted);
font-size: .8rem; color: var(--text-muted);
background: #fafafa;
}
/* FUEL BADGE */
/* ─── FUEL BADGE ────────────────────────────────────────────────────────────── */
.fuel-badge {
display: inline-block; font-size: 0.72rem; font-weight: 600;
padding: 0.2rem 0.5rem; border-radius: 4px;
text-transform: uppercase; letter-spacing: 0.03em;
position: absolute; top: .5rem; right: .5rem;
font-size: .7rem; font-weight: 700;
padding: .18rem .5rem; border-radius: 6px;
text-transform: uppercase; letter-spacing: .03em;
}
.fuel-Essence { background: rgba(37,99,235,0.2); color: #60a5fa; }
.fuel-Diesel { background: rgba(139,92,246,0.2); color: #a78bfa; }
.fuel-Hybride { background: rgba(34,197,94,0.2); color: #4ade80; }
.fuel-Electrique { background: rgba(6,182,212,0.2); color: #22d3ee; }
.fuel-Essence { background: rgba(59,130,246,.15); color: #2563eb; }
.fuel-Diesel { background: rgba(139,92,246,.15); color: #7c3aed; }
.fuel-Hybride { background: rgba(16,185,129,.15); color: #059669; }
.fuel-Electrique { background: rgba(6,182,212,.15); color: #0891b2; }
.fuel-GPL { background: rgba(245,158,11,.15); color: #d97706; }
/* PLATE */
/* ─── PLATE ──────────────────────────────────────────────────────────────────── */
.plate {
display: inline-block; background: #fff; color: #111;
display: inline-block; background: #1d4ed8; color: #fff;
font-family: 'Courier New', monospace; font-weight: 700;
font-size: 0.82rem; padding: 0.2rem 0.5rem;
border-radius: 4px; letter-spacing: 0.08em;
font-size: .78rem; padding: .18rem .55rem;
border-radius: 5px; letter-spacing: .1em;
}
/* TABLE */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
/* ─── TABLE ──────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--border-light); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table-wrap table th {
background: #1c2128; color: var(--muted); font-weight: 600;
text-align: left; padding: 0.65rem 0.9rem;
border-bottom: 1px solid var(--border); white-space: nowrap;
background: #f8fafc; color: var(--text-muted);
font-weight: 600; text-align: left;
padding: .65rem .9rem; border-bottom: 1px solid var(--border-light); white-space: nowrap;
}
.table-wrap table td {
padding: .65rem .9rem; border-bottom: 1px solid #f1f5f9;
vertical-align: middle; color: var(--text-main);
}
.table-wrap table td { padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table-wrap table tr:last-child td { border-bottom: none; }
.table-wrap table tr:hover td { background: rgba(255,255,255,0.03); }
.table-wrap table tr:hover td { background: #fafbff; }
/* BADGES */
/* ─── BADGES ─────────────────────────────────────────────────────────────────── */
.badge {
display: inline-block; font-size: 0.72rem; font-weight: 600;
padding: 0.22rem 0.55rem; border-radius: 999px;
display: inline-block; font-size: .72rem; font-weight: 600;
padding: .22rem .55rem; border-radius: 999px;
}
.badge-green { background: rgba(34,197,94,0.15); color: #4ade80; }
.badge-blue { background: rgba(37,99,235,0.15); color: #60a5fa; }
.badge-amber { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-red { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-gray { background: rgba(139,148,158,0.15); color: var(--muted); }
.badge-purple { background: rgba(139,92,246,0.15); color: #a78bfa; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-red { background: #fee2e2; color: #dc2626; }
.badge-gray { background: #f1f5f9; color: var(--text-muted); }
.badge-purple { background: #ede9fe; color: #6d28d9; }
/* BUTTONS */
/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn {
display: inline-flex; align-items: center; gap: 0.4rem;
padding: 0.5rem 1rem; border-radius: var(--radius);
font-size: 0.875rem; font-weight: 500; cursor: pointer;
border: 1px solid transparent; transition: all 0.15s;
white-space: nowrap; text-decoration: none;
display: inline-flex; align-items: center; gap: .4rem;
padding: .5rem 1rem; border-radius: 8px;
font-size: .875rem; font-weight: 500; cursor: pointer;
border: 1px solid transparent; transition: all .15s;
white-space: nowrap; text-decoration: none; line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,0.05); border-color: var(--muted); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: rgba(239,68,68,0.1); }
.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.8rem; }
.btn-icon { padding: 0.35rem; min-width: 32px; justify-content: center; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary { background: var(--bg-panel); color: var(--text-main); border-color: var(--border-light); }
.btn-secondary:hover { background: #f1f5f9; }
.btn-danger { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-sm { padding: .3rem .65rem; font-size: .8rem; }
.btn-icon { padding: .3rem; min-width: 30px; justify-content: center; }
/* FORMS */
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label { font-size: 0.82rem; font-weight: 500; color: var(--muted); }
/* ─── FORMS ──────────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-label { font-size: .82rem; font-weight: 600; color: var(--text-muted); }
.form-control {
background: #1c2128; border: 1px solid var(--border); color: var(--text);
border-radius: var(--radius); padding: 0.5rem 0.75rem; font-size: 0.875rem;
width: 100%; outline: none; transition: border-color 0.15s;
background: #fff; border: 1px solid var(--border-light); color: var(--text-main);
border-radius: 8px; padding: .5rem .75rem; font-size: .875rem;
width: 100%; outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { border-color: var(--primary); }
.form-control::placeholder { color: var(--muted); }
select.form-control option { background: #1c2128; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.form-control::placeholder { color: #cbd5e1; }
select.form-control option { background: #fff; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .9rem; }
/* MODALS */
/* ─── MODALS ─────────────────────────────────────────────────────────────────── */
.modal-backdrop {
display: none; position: fixed; inset: 0; z-index: 200;
background: rgba(0,0,0,0.7); backdrop-filter: blur(2px);
background: rgba(15,23,42,.5); backdrop-filter: blur(4px);
align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop.show { display: flex; }
.modal {
background: var(--card); border: 1px solid var(--border);
border-radius: var(--radius-lg); width: 100%; max-width: 640px;
background: var(--bg-panel);
border: 1px solid var(--border-light);
border-radius: var(--radius);
width: 100%; max-width: 640px;
max-height: 90vh; display: flex; flex-direction: column;
animation: modalIn 0.18s ease;
box-shadow: var(--shadow-lg);
animation: modalIn .18s ease;
}
.modal-lg { max-width: 780px; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: scale(.96) translateY(-8px); } to { opacity: 1; transform: none; } }
.modal-header {
display: flex; align-items: center; justify-content: space-between;
padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); flex-shrink: 0;
padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-light); flex-shrink: 0;
}
.modal-header h3 { font-size: 1rem; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.25rem; line-height: 1; padding: 0.2rem; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 1.25rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.9rem; }
.modal-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.5rem; flex-shrink: 0; }
.modal-title { font-size: 1rem; font-weight: 700; color: var(--text-main); }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.25rem; line-height: 1; padding: .2rem; border-radius: 6px; }
.modal-close:hover { background: #f1f5f9; color: var(--text-main); }
.modal-body { padding: 1.25rem; overflow-y: auto; display: flex; flex-direction: column; gap: .9rem; }
.modal-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border-light); display: flex; justify-content: flex-end; gap: .5rem; flex-shrink: 0; }
/* VEHICLE DETAIL */
/* ─── VEHICLE DETAIL HEADER ─────────────────────────────────────────────────── */
.vehicle-detail-header {
display: flex; gap: 1.5rem; align-items: flex-start;
background: var(--card); border: 1px solid var(--border);
border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.5rem;
background: var(--bg-panel); border: 1px solid var(--border-light);
border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem;
box-shadow: var(--shadow);
}
.vehicle-detail-img {
width: 180px; height: 130px; object-fit: cover;
border-radius: var(--radius); flex-shrink: 0; background: #1c2128;
width: 180px; height: 130px; border-radius: 8px; flex-shrink: 0;
background: #f1f5f9; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.vehicle-detail-img-placeholder {
width: 180px; height: 130px; background: #1c2128;
border-radius: var(--radius); display: flex; align-items: center;
justify-content: center; font-size: 3rem; flex-shrink: 0;
}
.vehicle-detail-info { flex: 1; min-width: 0; }
.vehicle-detail-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.35rem; }
.vehicle-detail-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.75rem; }
.vehicle-detail-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.vehicle-detail-stat { display: flex; flex-direction: column; gap: 0.1rem; }
.vehicle-detail-stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; }
.vehicle-detail-stat-value { font-size: 1rem; font-weight: 600; }
.vehicle-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-meta h2 { font-size: 1.4rem; font-weight: 800; color: var(--text-main); margin-bottom: .25rem; }
.vehicle-meta .sub { font-size: .9rem; color: var(--text-muted); margin-bottom: .75rem; }
.meta-grid { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: .5rem; }
.meta-item .k { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.meta-item .v { font-size: .95rem; font-weight: 600; color: var(--text-main); }
/* TABS */
.tabs { display: flex; gap: 0.25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0; }
/* ─── TABS ───────────────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: .25rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border-light); }
.tab-btn {
background: none; border: none; cursor: pointer;
color: var(--muted); font-size: 0.9rem; font-weight: 500;
padding: 0.6rem 1rem; border-bottom: 2px solid transparent;
margin-bottom: -1px; transition: color 0.15s, border-color 0.15s;
color: var(--text-muted); font-size: .9rem; font-weight: 500;
padding: .6rem 1rem; border-bottom: 2px solid transparent;
margin-bottom: -1px; transition: color .15s, border-color .15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
/* PARTS */
.part-thumb {
width: 40px; height: 40px; object-fit: cover;
border-radius: 4px; background: #1c2128;
}
.part-thumb-placeholder {
width: 40px; height: 40px; border-radius: 4px;
background: #1c2128; display: flex; align-items: center;
justify-content: center; font-size: 1rem; color: var(--muted);
}
/* ─── PARTS ──────────────────────────────────────────────────────────────────── */
.part-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-light); }
/* EMPTY STATE */
/* ─── EMPTY STATE ────────────────────────────────────────────────────────────── */
.empty-state {
display: flex; flex-direction: column; align-items: center;
gap: 0.75rem; padding: 3rem 1rem; color: var(--muted); text-align: center;
gap: .75rem; padding: 3rem 1rem; color: var(--text-muted); text-align: center;
}
.empty-state-icon { font-size: 2.5rem; opacity: 0.5; }
.empty-state p { font-size: 0.9rem; }
.empty-state .icon { font-size: 2.5rem; opacity: .4; }
.empty-state p { font-size: .9rem; }
/* TOASTS */
/* ─── TOASTS ─────────────────────────────────────────────────────────────────── */
.toast-container {
position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none;
position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
display: flex; flex-direction: column; gap: .5rem; pointer-events: none;
}
.toast {
background: var(--card); border: 1px solid var(--border);
border-radius: var(--radius); padding: 0.75rem 1rem;
font-size: 0.875rem; min-width: 220px; max-width: 360px;
box-shadow: 0 4px 20px rgba(0,0,0,0.4);
animation: slideIn 0.25s ease; pointer-events: auto;
border-left: 4px solid var(--border);
background: var(--bg-panel); border: 1px solid var(--border-light);
border-radius: 10px; padding: .75rem 1rem;
font-size: .875rem; min-width: 220px; max-width: 360px; color: var(--text-main);
box-shadow: var(--shadow-lg); animation: toastIn .2s ease; pointer-events: auto;
border-left: 4px solid var(--border-light);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--info); }
.toast.info { border-left-color: var(--primary); }
.toast.warning { border-left-color: var(--warning); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
/* UPLOAD ZONE */
.upload-zone {
border: 2px dashed var(--border); border-radius: var(--radius);
padding: 1.5rem; text-align: center; color: var(--muted);
cursor: pointer; transition: border-color 0.15s;
}
.upload-zone:hover { border-color: var(--primary); color: var(--text); }
.preview-img {
max-height: 120px; border-radius: var(--radius);
margin-top: 0.75rem; display: none;
}
/* SECTION HEADER */
.section-header {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 1.25rem;
}
.section-title { font-size: 1.1rem; font-weight: 600; }
/* PAGE HEADER */
.page-header {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 1.5rem; gap: 1rem;
}
.page-title { font-size: 1.4rem; font-weight: 700; }
/* REMINDERS */
.reminder-item {
display: flex; align-items: center; gap: 0.75rem;
padding: 0.75rem 0; border-bottom: 1px solid var(--border);
}
.reminder-item:last-child { border-bottom: none; }
.reminder-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.reminder-dot.overdue { background: var(--danger); }
.reminder-dot.soon { background: var(--warning); }
.reminder-dot.ok { background: var(--success); }
.reminder-info { flex: 1; min-width: 0; }
.reminder-title { font-size: 0.875rem; font-weight: 500; }
.reminder-sub { font-size: 0.78rem; color: var(--muted); }
.reminder-date { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
/* DASHBOARD LAYOUT */
.dashboard-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; }
/* MISC */
.text-muted { color: var(--muted); }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.back-btn {
display: inline-flex; align-items: center; gap: 0.4rem;
color: var(--muted); font-size: 0.875rem; cursor: pointer;
margin-bottom: 1rem; background: none; border: none; padding: 0;
transition: color 0.15s;
}
.back-btn:hover { color: var(--text); }
.actions-cell { display: flex; gap: 0.35rem; }
/* RESPONSIVE */
/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
.container { padding: 1rem; }
.dashboard-grid { grid-template-columns: 1fr; }
.vehicle-detail-header { flex-direction: column; }
.vehicle-detail-img, .vehicle-detail-img-placeholder { width: 100%; height: 200px; }
.vehicle-detail-img { width: 100%; height: 200px; }
.form-row, .form-row-3 { grid-template-columns: 1fr; }
.stats-grid { grid-template-columns: repeat(2, 1fr); }
.modal { max-height: 95vh; }
.navbar { padding: 0 1rem; gap: 1rem; }
.vehicles-grid { grid-template-columns: 1fr; }
.meta-grid { gap: .75rem; }
.garage-subnav { padding: 8px 12px; overflow-x: auto; flex-wrap: nowrap; }
.garage-subnav .nav-link { white-space: nowrap; }
}
/* ── Sous-nav Garage ── */
.garage-subnav {
display: flex;
gap: 4px;
padding: 12px 16px;
background: #fff;
border-bottom: 1px solid #e2e8f0;
margin-bottom: 0;
}
.garage-subnav .nav-link {
background: none;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 8px 16px;
font-size: 0.9rem;
font-weight: 500;
cursor: pointer;
color: #64748b;
transition: all .15s;
}
.garage-subnav .nav-link:hover { background: #f1f5f9; color: #1e293b; }
.garage-subnav .nav-link.active { background: #2563eb; color: #fff; border-color: #2563eb; }