Mise à jour

This commit is contained in:
2026-06-03 14:47:35 +02:00
parent 085cf33114
commit ad0d86e734
16 changed files with 669 additions and 889 deletions

View File

@@ -1,45 +1,40 @@
/* ============================================
SMART PARKING - STYLES GLOBAUX
============================================ */
:root {
/* Couleurs principales */
--primary: #6366f1;
--primary-dark: #4f46e5;
--primary-light: #818cf8;
/* Couleurs états */
--success: #10b981;
--danger: #ef4444;
--warning: #f59e0b;
--info: #06b6d4;
/* Couleurs places */
--spot-free: #10b981;
--spot-occupied: #ef4444;
--spot-reserved: #3b82f6;
/* Fonds */
--bg-dark: #0f172a;
--bg-darker: #020617;
--bg-card: #1e293b;
--bg-hover: #334155;
/* Texte */
--text-primary: #f8fafc;
--text-secondary: #cbd5e1;
--text-muted: #94a3b8;
/* Bordures */
--border: #334155;
--border-radius: 12px;
--border-radius-sm: 8px;
/* Ombres */
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
--shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
/* Transitions */
--transition: all 0.3s ease;
}
@@ -67,9 +62,7 @@ body {
padding: 0 20px;
}
/* ============================================
HEADER
============================================ */
.header {
background: var(--bg-card);
border-bottom: 1px solid var(--border);
@@ -110,7 +103,7 @@ body {
-webkit-text-fill-color: transparent;
}
/* Navigation */
.nav {
display: flex;
gap: 8px;
@@ -143,7 +136,7 @@ body {
font-size: 1.1rem;
}
/* Header right */
.header-right {
display: flex;
align-items: center;
@@ -166,9 +159,7 @@ body {
color: var(--text-muted);
}
/* ============================================
MAIN & PAGES
============================================ */
.main {
padding: 30px 0;
min-height: calc(100vh - 80px);
@@ -201,9 +192,7 @@ body {
font-size: 1.5rem;
}
/* ============================================
BOUTONS
============================================ */
.btn {
display: inline-flex;
align-items: center;
@@ -262,9 +251,7 @@ body {
cursor: not-allowed;
}
/* ============================================
FORMULAIRES
============================================ */
.form-group {
margin-bottom: 16px;
}
@@ -317,9 +304,6 @@ select.form-control {
flex: 1;
}
/* ============================================
CARTES
============================================ */
.card {
background: var(--bg-card);
border-radius: var(--border-radius);
@@ -328,9 +312,7 @@ select.form-control {
box-shadow: var(--shadow);
}
/* ============================================
STATS GRID
============================================ */
.stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
@@ -392,9 +374,7 @@ select.form-control {
margin-top: 4px;
}
/* ============================================
PARKING MAP
============================================ */
.parking-section {
display: grid;
grid-template-columns: 1fr 350px;
@@ -446,7 +426,7 @@ select.form-control {
.parking-spot .spot-number { font-size: 1.1rem; }
.parking-spot .spot-icon { font-size: 1.3rem; }
/* Legend */
.legend {
display: flex;
justify-content: center;
@@ -471,7 +451,7 @@ select.form-control {
.legend-color.occupied { background: var(--spot-occupied); }
.legend-color.reserved { background: var(--spot-reserved); }
/* Spot details */
.spot-details { min-height: 200px; }
.no-selection {
@@ -500,9 +480,7 @@ select.form-control {
.spot-status-occupied { color: var(--spot-occupied); }
.spot-status-reserved { color: var(--spot-reserved); }
/* ============================================
PRICING
============================================ */
.pricing-section {
background: var(--bg-card);
border-radius: var(--border-radius);
@@ -547,9 +525,7 @@ select.form-control {
color: var(--primary-light);
}
/* ============================================
MODAL
============================================ */
.modal {
position: fixed;
top: 0;
@@ -597,7 +573,7 @@ select.form-control {
.modal-body { padding: 24px; }
/* Récapitulatif réservation */
.payment-summary {
background: var(--bg-dark);
border-radius: var(--border-radius-sm);
@@ -625,9 +601,7 @@ select.form-control {
font-size: 1.1rem;
}
/* ============================================
MESSAGE DE CONFIRMATION (remplace QR code)
============================================ */
.confirmation-message {
text-align: center;
padding: 24px 16px;
@@ -658,9 +632,7 @@ select.form-control {
color: var(--text-primary);
}
/* ============================================
RESERVATIONS LIST
============================================ */
.reservations-list {
display: flex;
flex-direction: column;
@@ -739,9 +711,7 @@ select.form-control {
margin-bottom: 20px;
}
/* ============================================
PROFILE
============================================ */
.profile-container {
display: grid;
grid-template-columns: 1fr 1fr;
@@ -813,9 +783,7 @@ select.form-control {
color: var(--text-muted);
}
/* ============================================
ADMIN
============================================ */
.admin-page .admin-stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
@@ -882,7 +850,7 @@ select.form-control {
.admin-place-item.occupied { background: rgba(239, 68, 68, 0.2); color: var(--spot-occupied); }
.admin-place-item.reserved { background: rgba(59, 130, 246, 0.2); color: var(--spot-reserved); }
/* Tables */
.table-container { overflow-x: auto; }
.data-table {
@@ -908,7 +876,7 @@ select.form-control {
.data-table tr:hover td { background: var(--bg-hover); }
/* Log container */
.log-container {
max-height: 300px;
overflow-y: auto;
@@ -933,9 +901,7 @@ select.form-control {
font-size: 0.75rem;
}
/* ============================================
TOAST NOTIFICATIONS
============================================ */
.toast-container {
position: fixed;
bottom: 20px;
@@ -965,17 +931,13 @@ select.form-control {
to { transform: translateX(0); opacity: 1; }
}
/* ============================================
UTILITAIRES
============================================ */
.hidden { display: none !important; }
.admin-only { display: none; }
.admin-only.visible { display: flex; }
/* ============================================
RESPONSIVE
============================================ */
@media (max-width: 1024px) {
.stats-grid { grid-template-columns: repeat(2, 1fr); }
.parking-section { grid-template-columns: 1fr; }
@@ -1004,7 +966,6 @@ select.form-control {
.reservation-actions { align-items: flex-start; }
}
/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }