* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #030303;
  --bg-secondary: #080808;
  --bg-card: #0d0d0d;
  --bg-card-hover: #151515;
  --bg-glass: rgba(12, 12, 12, 0.85);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(220, 38, 38, 0.4);
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #505050;
  --accent: #dc2626;
  --accent-light: #ef4444;
  --accent-dark: #991b1b;
  --accent-glow: rgba(220, 38, 38, 0.5);
  --success: #22c55e;
  --success-glow: rgba(34, 197, 94, 0.4);
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.4);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ==================== PUBLIC INTERFACE STYLES ==================== */
.public-app {
  min-height: 100vh;
  background: var(--bg-primary);
  position: relative;
}

/* Background image pour toute l'interface publique - s'étend sur toute la page y compris le menu */
.public-app::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('background.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
}

/* Overlay sombre pour assombrir l'image de fond */
.public-app::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
  pointer-events: none;
}

.public-app > * {
  position: relative;
  z-index: 1;
}

.public-header {
  background: linear-gradient(145deg, rgba(12, 12, 12, 0.98) 0%, rgba(8, 8, 8, 1) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.public-header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.public-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.public-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.public-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.public-nav {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.public-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 1.5rem;
}

.public-nav-link:hover,
.public-nav-link.active {
  color: var(--accent);
}

.public-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.admin-login-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 10px;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.9rem;
}

.admin-login-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: var(--accent);
}

.public-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  justify-content: flex-start;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.public-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.public-page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.public-page.active {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: calc(100vh - 80px);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.public-page.active::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

#public-home.active {
  justify-content: flex-start;
  min-height: calc(100vh - 100px);
  max-height: calc(100vh - 100px);
  overflow: hidden;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 2rem 0.5rem 2rem;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 1400px;
  flex: 0 0 auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  align-items: flex-start;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  margin: 0;
  line-height: 1.2;
  text-align: left;
  text-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-primary);
  margin: 0;
  text-align: left;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-left: 4.5rem;
}

.hero-cta {
  padding: 1rem 2rem;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
  margin: 0;
  align-self: center;
  margin-left: -1rem;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 30px rgba(220, 38, 38, 0.6);
  background: var(--accent-light);
}

/* Features Section */
.features-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 10rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.feature-card {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.4) 0%, rgba(8, 8, 8, 0.5) 50%, rgba(12, 12, 12, 0.4) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 -2px 15px rgba(220, 38, 38, 0.8), 0 -4px 25px rgba(220, 38, 38, 0.5);
  z-index: 1;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.feature-card svg {
  color: var(--accent);
  margin-bottom: 1rem;
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
  transition: transform 0.3s ease;
}

.feature-card:hover svg {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.feature-card svg {
  position: relative;
  z-index: 2;
}

/* Public Page Header */
.public-page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.public-page-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.public-page-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Public Vehicles Grid */
.public-vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.public-vehicle-card {
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.9) 0%, rgba(8, 8, 8, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
}

.public-vehicle-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.public-vehicle-color {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.public-vehicle-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--bg-secondary);
}

.public-vehicle-info {
  padding: 1.5rem;
}

.public-vehicle-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.vehicle-status-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.vehicle-status-badge.available {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.vehicle-status-badge.unavailable {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.vehicle-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.vehicle-price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vehicle-price-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.vehicle-price-value {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
}

.public-vehicle-plate {
  display: none; /* Masquer la plaque dans l'interface publique */
}

/* Public Reservation Form */
.public-reservation-form {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.9) 0%, rgba(8, 8, 8, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
}

/* Contact Section */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card {
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.9) 0%, rgba(8, 8, 8, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}

.contact-card-link {
  cursor: pointer;
}

.contact-card-link:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.2);
}

.contact-card svg {
  color: var(--accent);
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}

.contact-logo {
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.contact-card-link:hover svg,
.contact-card-link:hover .contact-logo {
  transform: scale(1.1);
}

.contact-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-value {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem 0;
  word-break: break-all;
}

.contact-action {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.contact-card-link:hover .contact-action {
  background: rgba(220, 38, 38, 0.2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-card p:not(.contact-value) {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .public-header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .public-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .public-nav-link {
    padding-bottom: 0.5rem;
  }

  .hero-section {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
  }

  .hero-content {
    padding-left: 0;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  .hero-cta {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .public-page-header h2 {
    font-size: 2rem;
  }

  .features-section {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .public-content {
    padding: 1rem;
    min-height: calc(100vh - 70px);
  }
}

/* ==================== LOGIN SCREEN ==================== */
.login-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

.login-screen.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
}

.login-bg-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Login orbs - version statique pour performance */
.login-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
}

.login-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -100px;
  right: -50px;
}

.login-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.25) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
}

.login-orb-3 {
  display: none;
}

.login-particles {
  position: absolute;
  inset: 0;
}

/* Particules desactivees pour performance */
.particle {
  display: none;
}

.login-particles {
  display: none;
}

.login-container {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: login-appear 1s ease-out;
}

@keyframes login-appear {
  0% { opacity: 0; transform: translateY(50px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
  position: relative;
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-logo::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.5;
  z-index: -1;
}

.login-title {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 3rem;
}

.login-form {
  max-width: 380px;
  margin: 0 auto;
}

.login-input-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.login-input {
  width: 100%;
  padding: 1.25rem 1.5rem;
  padding-left: 3.5rem;
  background: rgba(15, 15, 15, 0.8);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(20, 20, 20, 0.95);
}

.login-input::placeholder {
  color: var(--text-muted);
}

.login-input-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.login-input:focus + .login-input-icon {
  color: var(--accent);
}

.login-btn {
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  transform: translateY(-2px);
}

.login-btn:active {
  transform: translateY(0) scale(0.98);
}

.login-error {
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.login-error.show {
  opacity: 1;
  transform: translateY(0);
}

.login-input.error {
  border-color: var(--accent);
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

/* ==================== MAIN APP ==================== */
.app-container {
  display: none;
}

.app-container.visible {
  display: block;
  animation: app-reveal 1s ease-out;
}

@keyframes app-reveal {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Background Effects */
.bg-effects {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* ORBS DESACTIVES POUR PERFORMANCE - remplace par fond statique */
.glow-orb {
  display: none;
}

.glow-orb-1,
.glow-orb-2,
.glow-orb-3 {
  display: none;
}

/* Fond statique leger a la place */
.bg-effects::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.3;
}

.bg-effects::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
  opacity: 0.3;
}

.noise-overlay {
  display: none;
}

/* Grid Lines Effect - DESACTIVE pour performance */
.grid-overlay {
  display: none;
}

/* Sidebar Navigation */
.sidebar-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(145deg, rgba(12, 12, 12, 0.98) 0%, rgba(8, 8, 8, 1) 100%);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  .sidebar-nav {
    transform: translateX(-100%);
  }
  
  .sidebar-nav.active {
    transform: translateX(0);
  }
}

.sidebar-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-header .logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-header .logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.sidebar-header .logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-header .logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.nav-menu {
  flex: 1;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
  border-left: 3px solid transparent;
}

.nav-menu-item:hover {
  background: rgba(220, 38, 38, 0.1);
  color: var(--text-primary);
}

.nav-menu-item.active {
  background: rgba(220, 38, 38, 0.15);
  color: var(--accent);
  border-left-color: var(--accent);
}

.nav-menu-item svg {
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.logout-btn-sidebar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 10px;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.logout-btn-sidebar:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: var(--accent);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Header */
.header {
  background: rgb(8, 8, 8);
  padding: 1.25rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-left: 280px;
  transition: margin-left 0.3s ease;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

/* Pages */
.page {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.9) 0%, rgba(8, 8, 8, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
}

.quick-action-btn:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.95) 0%, rgba(12, 12, 12, 1) 100%);
}

.quick-action-btn svg {
  color: var(--accent);
}

.form-panel-full {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.9) 0%, rgba(8, 8, 8, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
}

/* Clients */
.clients-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.client-card {
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.9) 0%, rgba(8, 8, 8, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.client-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.95) 0%, rgba(12, 12, 12, 1) 100%);
}

.client-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
}

.client-info {
  flex: 1;
  min-width: 0;
}

.client-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.client-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.client-actions {
  display: flex;
  gap: 0.5rem;
}

/* Validation Réservation */
.validation-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.validation-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.validation-card {
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.9) 0%, rgba(8, 8, 8, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.2s ease;
}

.validation-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.validation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.validation-client-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.validation-vehicle {
  font-size: 1rem;
  color: var(--text-secondary);
}

.validation-status-badge {
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.validation-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.validation-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.validation-detail-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.validation-detail-item strong {
  color: var(--text-primary);
  margin-right: 0.5rem;
}

.validation-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.validation-actions .btn {
  flex: 1;
}

/* Client Search Modal */
.client-search-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.75rem;
}

.client-search-item:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: var(--accent);
  transform: translateX(4px);
}

.client-search-item:last-child {
  margin-bottom: 0;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.header-content {
  max-width: 1800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.logo-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.4;
  z-index: -1;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
}

.logo img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.logo-text-container {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-top: 0.35rem;
}

.search-container {
  flex: 1;
  max-width: 500px;
}

.search-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  padding-left: 3.25rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(25, 25, 25, 0.9);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.search-input:focus + .search-icon {
  color: var(--accent);
}

/* Main Layout */
.main-content {
  margin-left: 280px;
  padding: 2rem;
  position: relative;
  z-index: 2;
  transition: margin-left 0.3s ease;
  min-height: calc(100vh - 80px);
}

@media (max-width: 1400px) {
  .main-content {
    margin-left: 0;
  }
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 1000px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-card {
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.9) 0%, rgba(8, 8, 8, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  contain: layout;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--stat-color, var(--accent)), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, var(--stat-glow, var(--accent-glow)) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--stat-color, var(--accent));
}

.stat-card:hover::before,
.stat-card:hover::after {
  opacity: 1;
}

.stat-card.red { --stat-color: var(--accent); --stat-glow: var(--accent-glow); }
.stat-card.green { --stat-color: var(--success); --stat-glow: var(--success-glow); }
.stat-card.yellow { --stat-color: var(--warning); --stat-glow: var(--warning-glow); }
.stat-card.gray { --stat-color: #666; --stat-glow: rgba(102, 102, 102, 0.3); }

.stat-content {
  position: relative;
  z-index: 1;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
}

.stat-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: var(--stat-color, var(--accent));
  opacity: 0.15;
}

.stat-icon svg {
  color: var(--stat-color, var(--accent));
  position: relative;
  z-index: 1;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Filter Buttons */
.filter-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  font-family: inherit;
}

.filter-btn:hover {
  background: rgba(40, 40, 40, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border-color: var(--accent);
}

.filter-btn.active-green {
  background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
  border-color: var(--success);
  color: white;
}

.filter-btn.active-yellow {
  background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
  border-color: var(--warning);
  color: white;
}

.filter-btn.active-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-color: #3b82f6;
  color: white;
}

/* Calendar */
.calendar-container {
  background: linear-gradient(145deg, rgba(12, 12, 12, 0.95) 0%, rgba(8, 8, 8, 0.98) 100%);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.calendar-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.calendar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.calendar-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  border-radius: 2px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.calendar-month {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 180px;
  text-align: center;
}

.nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}

.nav-btn:hover {
  transform: scale(1.08);
}

.nav-btn:active {
  transform: scale(0.95);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day-header {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-day {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid transparent;
  position: relative;
  overflow: visible;
}

.calendar-day:hover:not(.empty) {
  background: rgba(40, 40, 40, 0.9);
  border-color: var(--border-color);
  transform: translateY(-2px);
  z-index: 1;
}

.calendar-day.empty {
  background: transparent;
  cursor: default;
  min-height: 0;
  padding: 0;
}

.calendar-day-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  align-self: flex-start;
}

.calendar-day.today .calendar-day-number {
  color: var(--accent);
  font-weight: 700;
}

.calendar-day.has-rental .calendar-day-number {
  color: white;
  font-weight: 700;
}

.calendar-day-rentals {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  width: 100%;
  margin-top: auto;
  overflow: visible;
}

.calendar-rental-badge {
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.2;
  min-height: auto;
}

.calendar-rental-badge:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.calendar-rental-active {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
}

.calendar-rental-upcoming {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.calendar-rental-completed {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
}

.calendar-rental-more {
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  text-align: center;
}

.calendar-rental-client {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-rental-vehicle {
  display: block;
  font-size: 0.5rem;
  opacity: 0.9;
  white-space: normal;
  word-wrap: break-word;
  font-weight: 500;
  line-height: 1.3;
  max-height: 2.4em;
  overflow: hidden;
}

.calendar-payment-badge {
  margin-top: 0.2rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 600;
  text-align: center;
  width: fit-content;
}

.calendar-payment-pending {
  background: rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.5);
}

.calendar-payment-partial {
  background: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.5);
}

.calendar-payment-paid {
  background: rgba(34, 197, 94, 0.3);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

/* Couleurs de fond selon le statut */
.calendar-day.rental-active {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
}

.calendar-day.rental-upcoming {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}

.calendar-day.rental-completed {
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.3);
}

.calendar-day.today {
  border: 2px solid var(--accent);
}

.calendar-day.today .calendar-day-number {
  color: var(--accent);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.legend-item:hover {
  background: rgba(30, 30, 30, 0.5);
}

.legend-item.active {
  background: rgba(220, 38, 38, 0.15);
  color: var(--text-primary);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

.legend-color.reserved {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.legend-color.free {
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid var(--border-color);
}

.legend-color.today {
  background: rgba(18, 18, 18, 0.6);
  border: 2px solid var(--accent);
}

.legend-color.active {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.legend-color.upcoming {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.legend-color.completed {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

/* Section Title */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 26px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  border-radius: 2px;
}

/* Rental Cards */
.rentals-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ==================== ADD VEHICLE BUTTON ==================== */
.add-vehicle-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border: 2px solid var(--border-color);
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: transform 0.15s ease;
}

.add-vehicle-btn:hover {
  transform: scale(1.08);
}

.add-vehicle-btn:active {
  transform: scale(0.95);
}

/* Cacher le bouton dans l'interface publique */
.public-app ~ .add-vehicle-btn {
  display: none !important;
}

/* ==================== VEHICLE MODAL ==================== */
.vehicle-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.vehicle-modal.active {
  display: flex;
}

.vehicle-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: slideUp 0.3s ease;
  margin: auto;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.vehicle-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.vehicle-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.vehicle-modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.vehicle-modal-close:hover {
  color: var(--accent);
}

.vehicle-form-group {
  margin-bottom: 1.5rem;
}

.vehicle-form-input[type="file"] {
  cursor: pointer;
  padding: 0.5rem;
}

.vehicle-form-input[type="file"]::-webkit-file-upload-button {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 1rem;
  transition: background 0.2s ease;
}

.vehicle-form-input[type="file"]::-webkit-file-upload-button:hover {
  background: var(--accent-light);
}

#vehicleImagePreview {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#vehicleImagePreviewImg {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  object-fit: contain;
  display: block;
}

.vehicle-form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.vehicle-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.vehicle-form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.vehicle-form-submit {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.vehicle-form-submit:hover {
  transform: translateY(-2px);
}

.vehicle-form-submit:active {
  transform: translateY(0);
}

/* ==================== VEHICLE LIST DISPLAY ==================== */
.vehicle-display {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.vehicle-item {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 1.25rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
  position: relative;
  contain: layout;
}

.vehicle-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.vehicle-item-model {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.vehicle-item-detail {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vehicle-item-color {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--text-secondary);
  vertical-align: middle;
}

.vehicle-item-delete {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(220, 38, 38, 0.2);
  border: none;
  color: var(--accent);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  font-size: 14px;
}

.vehicle-item-delete:hover {
  background: rgba(220, 38, 38, 0.4);
}

.rental-card {
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.5s ease forwards;
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.9) 0%, rgba(8, 8, 8, 0.95) 100%);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.5rem;
}

.rental-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rental-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.rental-card:hover {
  transform: translateX(6px) translateY(-2px);
  border-color: rgba(220, 38, 38, 0.4);
}

.rental-card:hover::before {
  opacity: 1;
}

.rental-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.rental-client {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.rental-vehicle {
  font-size: 0.9rem;
  color: var(--accent-light);
  margin-top: 0.25rem;
  font-weight: 500;
}

.badge {
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-upcoming {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-completed {
  background: rgba(80, 80, 80, 0.2);
  color: var(--text-muted);
  border: 1px solid rgba(80, 80, 80, 0.3);
}

.rental-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.rental-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

/* Buttons */
.btn {
  padding: 0.7rem 1.1rem;
  border-radius: 11px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(25, 25, 25, 0.9);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(45, 45, 45, 0.9);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-danger:hover {
  background: rgba(220, 38, 38, 0.15);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
}

/* Form Panel */
.form-panel {
  background: linear-gradient(145deg, rgba(12, 12, 12, 0.98) 0%, rgba(6, 6, 6, 0.99) 100%);
  border: 1px solid var(--border-color);
  border-radius: 26px;
  padding: 1.75rem;
  height: fit-content;
  position: sticky;
  top: 180px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

.form-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.form-title svg {
  color: var(--accent);
}

.form-section {
  margin-bottom: 1.75rem;
}

.form-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-section-title::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-select {
  width: 100%;
  min-width: 0;
  padding: 0.85rem 1.1rem;
  background: rgba(12, 12, 12, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(18, 18, 18, 0.95);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  cursor: pointer;
  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='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.75rem;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.form-submit {
  flex: 1;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.form-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.form-submit:hover::before {
  left: 100%;
}

.form-submit:hover {
  transform: translateY(-2px);
}

.form-submit:active {
  transform: translateY(0);
}

.form-cancel {
  padding: 1.1rem 1.75rem;
  background: rgba(25, 25, 25, 0.9);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

.form-cancel:hover {
  background: rgba(45, 45, 45, 0.9);
  color: var(--text-primary);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.99) 0%, rgba(8, 8, 8, 1) 100%);
  border: 1px solid var(--border-color);
  border-radius: 26px;
  padding: 2.25rem;
  max-width: 580px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(25, 25, 25, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.modal-body {
  color: var(--text-secondary);
}

.modal-actions {
  display: flex;
  gap: 1.1rem;
  margin-top: 2.25rem;
  justify-content: flex-end;
}

/* Detail Modal */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.detail-box {
  background: rgba(18, 18, 18, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.1rem;
}

.detail-box:hover {
  border-color: rgba(220, 38, 38, 0.3);
}

.detail-box.full {
  grid-column: span 2;
}

.detail-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.detail-value {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* ==================== CONFIRMATION MODAL ==================== */
.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.confirm-modal-overlay.show {
  display: flex;
  animation: fadeInConfirm 0.2s ease;
}

.confirm-modal {
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.98) 0%, rgba(8, 8, 8, 1) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: slideUpConfirm 0.3s ease;
  overflow: hidden;
}

.confirm-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.confirm-modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.confirm-modal-body {
  padding: 2rem;
}

.confirm-modal-message {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}

.confirm-modal-actions {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
  justify-content: flex-end;
}

.confirm-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  min-width: 100px;
}

.confirm-btn-cancel {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.confirm-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.confirm-btn-confirm {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border: 1px solid var(--accent);
}

.confirm-btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.confirm-btn:active {
  transform: translateY(0);
}

@keyframes fadeInConfirm {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUpConfirm {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.toast {
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.98) 0%, rgba(12, 12, 12, 0.99) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.1rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: translateX(130%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-width: 320px;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-color: var(--success);
}

.toast.success .toast-icon {
  color: var(--success);
}

.toast.error {
  border-color: var(--accent);
}

.toast.error .toast-icon {
  color: var(--accent);
}

.toast.warning {
  border-color: var(--warning);
}

.toast.warning .toast-icon {
  color: var(--warning);
}

.toast-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.toast-message {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* Animation glow supprimee pour performance */

.animate-pulse { animation: pulse 0.3s ease; }
.animate-shake { animation: shake 0.4s ease; }
.animate-pop { animation: popIn 0.3s ease; }

/* Year View */
.year-selector {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.year-btn {
  padding: 0.7rem 1.4rem;
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 11px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.year-btn:hover, .year-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border-color: var(--accent);
}

.months-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.mini-month {
  background: rgba(12, 12, 12, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.1rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  contain: layout;
}

.mini-month:hover {
  border-color: var(--accent);
  transform: scale(1.02);
}

.mini-month-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  text-align: center;
}

.mini-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.mini-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.mini-day.reserved {
  background: var(--accent);
  color: white;
}

.mini-day.today {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.view-toggle {
  display: flex;
  gap: 0.6rem;
  margin-left: auto;
}

.view-btn {
  padding: 0.6rem 1.1rem;
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.view-btn:hover, .view-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border-color: var(--accent);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-muted);
}

.no-results svg {
  width: 70px;
  height: 70px;
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

.no-results p {
  font-size: 1.1rem;
}

/* Mobile */
@media (max-width: 768px) {
  .sidebar-nav {
    width: 260px;
  }

  .header {
    margin-left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .header-content {
    flex-direction: row;
    gap: 1rem;
  }

  .header-title {
    font-size: 1.2rem;
  }

  .page {
    padding: 1.5rem 1rem;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .logo img {
    width: 100px;
    height: 100px;
  }

  .logo-text {
    font-size: 2rem;
  }

  .search-container {
    max-width: 100%;
    width: 100%;
  }

  .main-content {
    padding: 1.5rem;
    margin-left: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rental-details {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .calendar-legend {
    flex-wrap: wrap;
    gap: 1.1rem;
  }

  .calendar-day {
    min-height: 85px;
    padding: 0.35rem;
  }

  .calendar-day-number {
    font-size: 0.7rem;
  }

  .calendar-rental-badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.4rem;
  }

  .calendar-rental-client {
    font-size: 0.7rem;
  }

  .calendar-rental-vehicle {
    font-size: 0.6rem;
  }

  .months-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-box.full {
    grid-column: span 1;
  }

  .filter-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-title {
    font-size: 2.5rem;
  }

  .login-logo {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .logo img {
    width: 80px;
    height: 80px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .logo-subtitle {
    font-size: 0.75rem;
  }

  .search-input {
    padding: 0.75rem 1rem;
    padding-left: 2.5rem;
    font-size: 0.85rem;
  }

  .main-content {
    margin-left: 0;
    padding: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
  }

  .filter-buttons {
    gap: 0.25rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .calendar-container {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .calendar-grid {
    gap: 0.5rem;
  }

  .day {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .rental-list {
    gap: 0.75rem;
  }

  .rental-card {
    padding: 1rem;
  }

  .rental-header {
    gap: 0.5rem;
  }

  .rental-vehicle-name {
    font-size: 1rem;
  }

  .rental-client-info {
    font-size: 0.8rem;
  }

  .rental-dates {
    font-size: 0.75rem;
  }

  .rental-footer {
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .rental-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .form-container {
    padding: 1.25rem;
  }

  .form-title {
    font-size: 1.5rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-label {
    font-size: 0.85rem;
  }

  .form-input, .form-select, .form-textarea {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .form-btn {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .sidebar {
    margin-top: 1.5rem;
  }

  .login-title {
    font-size: 2rem;
  }

  .login-form {
    max-width: 100%;
  }

  .login-logo {
    width: 120px;
    height: 120px;
  }
}

/* ==================== LOGOUT BUTTON ==================== */
.logout-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(25, 25, 25, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.logout-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.logout-btn:active {
  transform: scale(0.95);
}

/* ==================== ACCESSIBILITY ==================== */
/* Focus visible pour navigation clavier */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip link pour accessibilite */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  z-index: 10001;
  border-radius: 0 0 8px 0;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .login-orb,
  .glow-orb,
  .particle {
    animation: none !important;
    opacity: 0.3;
  }
  
  .login-particles {
    display: none;
  }
}

/* ==================== MOBILE PERFORMANCE ==================== */
@media (max-width: 768px) {
  /* Reduire les effets visuels sur mobile */
  .login-orb,
  .glow-orb {
    animation-duration: 30s;
  }
  
  .login-particles {
    display: none;
  }
  
  .grid-overlay {
    display: none;
  }
  
  .logo-glow {
    display: none;
  }
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .login-screen,
  .bg-effects,
  .grid-overlay,
  .noise-overlay,
  .add-vehicle-btn,
  .logout-btn,
  .toast-container {
    display: none !important;
  }
  
  .header {
    position: static;
    box-shadow: none;
  }
  
  .rental-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  body {
    background: white;
    color: black;
  }
}
