@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Metal+Mania&family=Nosifer&family=Butcherman&family=Pirata+One&family=Jolly+Lodger&family=Rye&family=VT323&display=swap');

* { box-sizing: border-box; } 

/* ============================================
   SYSTÈME DE TOAST / NOTIFICATIONS 
============================================ */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
  border-radius: 10px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  animation: toastSlideIn 0.3s ease;
  pointer-events: auto;
  max-width: 350px;
  border-left: 4px solid #CD853F;
}

.toast.success { border-left-color: #28a745; }
.toast.error { border-left-color: #dc3545; }
.toast.warning { border-left-color: #ffc107; }
.toast.info { border-left-color: #17a2b8; }

.toast-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.toast-message {
  color: #eee;
  font-size: 0.9rem;
  font-family: Arial, sans-serif;
  line-height: 1.4;
}

.toast.hiding {
  animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ============================================
   LOADER GLOBAL
============================================ */

.global-loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-content {
  text-align: center;
}

.loader-spinner {
  width: 50px; height: 50px;
  border: 4px solid rgba(205, 133, 63, 0.3);
  border-top-color: #CD853F;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  color: #CD853F;
  font-family: 'Metal Mania', cursive;
  font-size: 1.1rem;
}

.loading-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #CD853F;
}

.loading-message .loader-spinner {
  width: 40px; height: 40px;
  margin-bottom: 15px;
}

.loading-message p {
  font-family: 'Metal Mania', cursive;
  font-size: 1rem;
}

/* ============================================
   TERMINAL DOS - INTRO (AGRANDI)
============================================ */

#crtIntro {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #0a0a0a;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  font-family: 'VT323', 'Courier New', monospace;
}

.crt-scanlines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.4) 0px,
    rgba(0, 0, 0, 0.4) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 50;
}

.crt-scanlines::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 6px;
  background: linear-gradient(to bottom, transparent, rgba(255, 100, 50, 0.1), transparent);
  animation: scanLineMove 4s linear infinite;
}

@keyframes scanLineMove {
  0% { top: -10px; }
  100% { top: 100%; }
}

.crt-flicker {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 3;
  animation: crtFlicker 0.1s infinite;
}

@keyframes crtFlicker {
  0%, 100% { opacity: 0.98; }
  50% { opacity: 0.94; }
}

.crt-vignette {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 45;
  background: radial-gradient(ellipse at center,
    transparent 0%,
    transparent 40%,
    rgba(0, 0, 0, 0.5) 80%,
    rgba(0, 0, 0, 0.95) 100%
  );
}

.crt-content {
  position: relative;
  z-index: 10;
  width: 95%;
  max-width: 900px;
}

/* Terminal Window - AGRANDI */
.terminal-window {
  background: rgba(10, 10, 10, 0.95);
  border: 3px solid #ff6b35;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(255, 107, 53, 0.4);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  background: linear-gradient(90deg, #ff6b35, #ff9735);
  padding: 12px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-title {
  color: #000;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.terminal-status {
  color: #000;
  font-size: 1rem;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

.terminal-body {
  padding: 50px 80px;
  flex: 1;
  color: #ff6b35;
  font-size: 1.3rem;
  line-height: 2.2;
  text-shadow: 0 0 8px rgba(255, 107, 53, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.terminal-line {
  margin-bottom: 10px;
  opacity: 0;
  animation: typeLine 0.3s forwards;
}

.terminal-line::before {
  content: '› ';
  color: #ff9500;
  font-weight: bold;
}

.terminal-line.success { color: #44ff44; }
.terminal-line.warning { color: #ffcc00; }
.terminal-line.error { color: #ff4444; animation: typeLine 0.3s forwards, glitchText 0.3s infinite; }
.terminal-line.system { color: #888; font-size: 1.1rem; }

@keyframes typeLine {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes glitchText {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.terminal-cursor {
  display: inline-block;
  width: 12px; height: 1.2em;
  background: #ff6b35;
  animation: cursorBlink 0.6s infinite;
  vertical-align: text-bottom;
  margin-left: 5px;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.terminal-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 20px 40px;
  border-top: 2px solid rgba(255, 107, 53, 0.4);
  background: rgba(0, 0, 0, 0.4);
}

.stat-item {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  padding: 10px 15px;
  background: rgba(255, 107, 53, 0.05);
  border-left: 3px solid #ff6b35;
}

.stat-item .label { color: #888; }
.stat-item .value { color: #ff6b35; font-weight: bold; }
.stat-item .value.danger { color: #ff4444; animation: blink 0.5s infinite; }
.stat-item .value.warning { color: #ffcc00; }
.stat-item .value.safe { color: #44ff44; }

.crt-enter-btn {
  display: block;
  width: 100%;
  padding: 25px;
  background: transparent;
  border: none;
  border-top: 3px solid #ff6b35;
  color: #ff6b35;
  font-family: 'VT323', monospace;
  font-size: 1.6rem;
  letter-spacing: 4px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  text-shadow: 0 0 15px rgba(255, 107, 53, 0.6);
}

.crt-enter-btn.visible {
  opacity: 1;
  animation: btnPulse 2s ease-in-out infinite;
}

.crt-enter-btn:hover {
  background: rgba(255, 107, 53, 0.2);
  text-shadow: 0 0 25px rgba(255, 107, 53, 1);
}

.crt-enter-btn:active {
  transform: scale(0.98);
}

@keyframes btnPulse {
  0%, 100% { box-shadow: inset 0 0 20px rgba(255, 107, 53, 0.1); }
  50% { box-shadow: inset 0 0 40px rgba(255, 107, 53, 0.3); }
}

.crt-poweroff {
  animation: powerOff 0.8s ease-out forwards;
}

@keyframes powerOff {
  0% { transform: scale(1, 1); filter: brightness(1); }
  30% { filter: brightness(1.5); }
  50% { transform: scale(1.1, 0.01); filter: brightness(2); }
  100% { transform: scale(0, 0); filter: brightness(0); }
}

/* ============================================
   EFFETS IMMERSIFS
============================================ */

.vignette-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse at center,
    transparent 0%,
    transparent 30%,
    rgba(0, 0, 0, 0.3) 60%,
    rgba(0, 0, 0, 0.7) 85%,
    rgba(0, 0, 0, 0.9) 100%
  );
  animation: vignettePulse 8s ease-in-out infinite;
}

@keyframes vignettePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.scanlines-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 3;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  opacity: 0.5;
}

.grain-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 4;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.glow-overlay {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%; height: 40%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(139, 69, 19, 0.15) 0%,
    rgba(139, 69, 19, 0.05) 30%,
    transparent 100%
  );
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ============================================
   BODY & BACKGROUND
============================================ */

body {
  font-family: 'Rye', cursive;
  background: #111;
  color: #eee;
  text-align: center;
  margin: 0; padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('./images/dod-2v.png') center/cover no-repeat;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* ============================================
   TITRE & ÉLÉMENTS PRINCIPAUX
============================================ */

h1 {
  margin: 15px 10px;
  font-size: 2.5rem;
  font-family: 'Pirata One', cursive;
  background: linear-gradient(45deg, #8B4513, #D2691E, #CD853F, #DEB887);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 10;
  position: relative;
}

.important-notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(145deg, rgba(15, 15, 15, 0.98), rgba(30, 15, 5, 0.95));
  border: 3px solid #CD853F;
  border-radius: 12px;
  padding: 18px 35px;
  font-family: 'Metal Mania', cursive;
  color: #e8a84c;
  font-size: 1.1rem;
  z-index: 150;
  max-width: 85%;
  text-align: center;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(205, 133, 63, 0.1);
  letter-spacing: 0.5px;
}

.important-notice::before {
  content: '⚠️';
  margin-right: 10px;
  font-size: 1.2rem;
}

.important-notice.hidden { display: none; }

.social-buttons {
  position: fixed;
  bottom: 20px; left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.social-logo-btn {
  display: block;
  width: 50px; height: 50px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(40, 40, 40, 0.9));
  border: 2px solid rgba(139, 69, 19, 0.5);
  transition: all 0.3s ease;
}

.social-logo-btn:hover { transform: scale(1.1); }
.social-logo { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

/* ============================================
   MENU PRINCIPAL
============================================ */

.main-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 30px 15px;
  z-index: 10;
  position: relative;
}

.main-menu.hidden { display: none; }

.category-choice-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.category-choice {
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(34, 34, 34, 0.9));
  border: 3px solid #CD853F;
  border-radius: 20px;
  padding: 40px 35px;
  width: 320px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7);
}

.category-choice:hover { transform: scale(1.05); border-color: #DAA520; box-shadow: 0 15px 45px rgba(205, 133, 63, 0.4); }
.category-choice:active { transform: scale(0.98); }

.category-icon {
  width: 110px; height: 110px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 69, 19, 0.3);
  border-radius: 50%;
  border: 3px solid #8B4513;
}

.category-icon img { width: 75px; height: 75px; object-fit: contain; }

.category-choice h2 {
  font-family: 'Metal Mania', cursive;
  font-size: 1.6rem;
  color: #CD853F;
  margin: 15px 0 10px;
}

.category-choice p {
  font-family: Arial, sans-serif;
  color: #aaa;
  font-size: 1rem;
  margin: 0;
}

/* ============================================
   CATALOGUE
============================================ */

#vehicle-catalog {
  position: relative;
  z-index: 10;
  padding-bottom: 100px;
}

.catalog-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  flex-wrap: wrap;
}

.back-button {
  background: linear-gradient(145deg, #8B4513, #CD853F);
  border: 2px solid #DAA520;
  border-radius: 20px;
  color: white;
  padding: 10px 18px;
  font-family: 'Metal Mania', cursive;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}

.back-button:active { transform: scale(0.95); }

.search-container { flex: 1; min-width: 150px; }

.search-container input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #444;
  border-radius: 25px;
  background: rgba(20, 20, 20, 0.9);
  color: #eee;
  font-size: 0.95rem;
  outline: none;
}

.search-container input:focus { border-color: #CD853F; }

.category-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.category-btn {
  padding: 10px 16px;
  background: rgba(26, 26, 26, 0.9);
  border: 2px solid #444;
  border-radius: 20px;
  color: #ddd;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Metal Mania', cursive;
  transition: all 0.2s ease;
}

.category-btn:active { transform: scale(0.95); }

.category-btn.active {
  background: linear-gradient(145deg, #CD853F, #8B4513);
  border-color: #DAA520;
  color: white;
}

.results-count {
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  margin: 10px 0;
  font-family: Arial, sans-serif;
}

/* ============================================
   GRILLE VÉHICULES
============================================ */

.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.vehicle-grid-card {
  background: linear-gradient(145deg, rgba(26, 26, 26, 0.95), rgba(34, 34, 34, 0.9));
  border: 2px solid #444;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vehicle-grid-card:active { transform: scale(0.97); border-color: #CD853F; }

.vehicle-grid-image {
  position: relative;
  width: 100%;
  height: 120px;
  background: #1a1a1a;
}

.vehicle-grid-image img { width: 100%; height: 100%; object-fit: contain; }

.vehicle-grid-badge {
  position: absolute;
  top: 8px; right: 8px;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: bold;
  text-transform: uppercase;
}

.vehicle-grid-badge.vanilla { background: linear-gradient(145deg, #11742a, #1ab340); color: white; }
.vehicle-grid-badge.import { background: linear-gradient(145deg, #a7470f, #f06413); color: white; }

.vehicle-grid-info { padding: 10px; }

.vehicle-grid-info h3 {
  margin: 0 0 5px;
  font-size: 0.9rem;
  color: #CD853F;
  font-family: Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vehicle-grid-details {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  color: #aaa;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #888;
}

.no-results span { font-size: 3rem; display: block; margin-bottom: 10px; }

.error-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: rgba(220, 53, 69, 0.1);
  border: 2px solid #dc3545;
  border-radius: 10px;
  margin: 20px;
}

.error-message span { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.error-message p { color: #dc3545; font-size: 1rem; margin: 5px 0; }
.error-message small { color: #888; font-size: 0.8rem; }

/* ============================================
   MODAL DÉTAILS
============================================ */

.vehicle-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-modal-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.vehicle-modal-content {
  position: relative;
  background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
  border: 3px solid #CD853F;
  border-radius: 15px;
  max-width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 2001;
  width: 400px;
}

.modal-close-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #CD853F;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 50%;
  z-index: 10;
}

.modal-vehicle-image {
  width: 100%;
  height: 200px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-vehicle-image img { max-width: 100%; max-height: 100%; object-fit: contain; }

.modal-vehicle-info { padding: 20px; }

.modal-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.modal-badge.vanilla { background: linear-gradient(145deg, #11742a, #1ab340); color: white; }
.modal-badge.import { background: linear-gradient(145deg, #a7470f, #f06413); color: white; }

.modal-vehicle-info h2 {
  margin: 0 0 15px;
  color: #CD853F;
  font-family: 'Metal Mania', cursive;
  font-size: 1.4rem;
}

.modal-vehicle-stats { display: flex; flex-direction: column; gap: 8px; }

.modal-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border-left: 3px solid #CD853F;
}

.modal-stat-row .label { color: #888; font-size: 0.9rem; }
.modal-stat-row .value { color: #eee; font-weight: bold; font-size: 0.9rem; }

/* ============================================
   PANEL STAFF
============================================ */

#staffBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(145deg, #c5762b, #be802e);
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  border: 2px solid #8B4513;
  cursor: pointer;
  z-index: 500;
  font-family: 'Metal Mania', cursive;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

#staffBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(197, 118, 43, 0.5);
}

#staffBtn:active { transform: scale(0.95); }

#staffOverlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
}

#staffModal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 400px;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
  border: 3px solid #af761f;
  border-radius: 15px;
  padding: 20px;
  z-index: 1001;
  -webkit-overflow-scrolling: touch;
}

.staff-close-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  border: none;
  color: #ad6827;
  font-size: 24px;
  cursor: pointer;
  padding: 5px 10px;
}

.staff-title {
  color: #af761f;
  text-align: center;
  margin: 0 0 15px;
  font-family: 'Metal Mania', cursive;
  font-size: 1.1rem;
}

.staff-subtitle {
  color: #888;
  font-size: 0.75rem;
  text-align: center;
  margin: 0 0 10px;
}

.staff-info {
  color: #28a745;
  font-size: 0.75rem;
  padding: 10px;
  background: rgba(40, 167, 69, 0.1);
  border-radius: 6px;
  text-align: center;
  margin-bottom: 10px;
}

.staff-logout-btn {
  background: none;
  border: none;
  color: #ad6827;
  cursor: pointer;
  font-size: 0.75rem;
  text-decoration: underline;
  display: block;
  margin-bottom: 15px;
  padding: 0;
}

#staffModal input,
#staffModal select {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px;
  background: #222;
  color: white;
  border: 2px solid #444;
  border-radius: 8px;
  font-size: 16px;
  -webkit-appearance: none;
}

#staffModal input:focus,
#staffModal select:focus {
  border-color: #af761f;
  outline: none;
}

.staff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.staff-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 15px;
  border-bottom: 2px solid #444;
  padding-bottom: 10px;
}

.staff-tab {
  flex: 1;
  padding: 10px;
  background: #333;
  color: #aaa;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: bold;
}

.staff-tab.active {
  background: linear-gradient(145deg, #af761f, #ff6b35);
  color: white;
}

.staff-btn-add {
  width: 100%;
  padding: 14px;
  background: linear-gradient(145deg, #af761f, #e7961c);
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1rem;
}

.staff-btn-add:active { transform: scale(0.98); }
.staff-btn-add:disabled { opacity: 0.6; cursor: not-allowed; }

.staff-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.staff-btn-info {
  padding: 10px;
  background: #17a2b8;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: bold;
}

.staff-btn-secondary {
  padding: 10px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: bold;
}

.staff-section {
  margin-top: 15px;
  border-top: 1px solid #444;
  padding-top: 10px;
}

.staff-section-title {
  color: #af761f;
  font-size: 0.8rem;
  font-weight: bold;
  margin: 0 0 10px;
}

.staff-list {
  max-height: 200px;
  overflow-y: auto;
}

.staff-list.validated { max-height: 300px; }

.staff-search {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}

.staff-search input { flex: 1; }

.staff-btn-icon {
  padding: 10px 15px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.staff-btn-icon.refresh { background: #17a2b8; }

.search-count {
  color: #888;
  font-size: 0.7rem;
  text-align: right;
  margin: 0 0 10px;
}

.staff-warning {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid #dc3545;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 15px;
}

.staff-warning p {
  color: #dc3545;
  font-size: 0.75rem;
  margin: 0;
  text-align: center;
}

.image-preview-container {
  background: #111;
  border: 2px dashed #444;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.preview-label {
  color: #888;
  font-size: 0.75rem;
  margin: 0 0 8px;
}

.image-preview {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  border-radius: 6px;
}

.preview-error {
  color: #dc3545;
  font-size: 0.8rem;
  margin: 10px 0 0;
}

/* ============================================
   RESPONSIVE
============================================ */

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  
  .vehicles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
  }
  
  .vehicle-grid-image { height: 150px; }
  .social-buttons { flex-direction: column; }
  .social-logo-btn { width: 60px; height: 60px; }
  
  .toast-container { top: 30px; right: 30px; }
}

@media (min-width: 1024px) {
  .vehicles-grid { grid-template-columns: repeat(4, 1fr); }
  
  .vehicle-grid-card:hover {
    transform: translateY(-5px);
    border-color: #CD853F;
    box-shadow: 0 10px 30px rgba(205, 133, 63, 0.3);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  
  .terminal-window { min-height: 65vh; }
  .terminal-body { 
    padding: 30px 25px;
    font-size: 1rem;
    line-height: 1.9;
  }
  .terminal-header { padding: 10px 15px; }
  .terminal-title { font-size: 0.9rem; letter-spacing: 1px; }
  .terminal-stats { 
    grid-template-columns: 1fr;
    padding: 15px 20px;
    gap: 8px;
  }
  .stat-item { font-size: 0.9rem; padding: 8px 12px; }
  .crt-enter-btn {
    font-size: 1.2rem;
    padding: 18px;
    letter-spacing: 2px;
  }
  
  body::before { background-attachment: scroll; }
  
  .scanlines-overlay { opacity: 0.3; }
  .grain-overlay { display: none; }
  .vignette-overlay, .glow-overlay { animation: none; }
  
  .social-buttons {
    flex-direction: row;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-logo-btn { width: 40px; height: 40px; }
  
  /* Catégories plus petites sur mobile */
  .category-choice-container {
    gap: 20px;
  }
  
  .category-choice {
    width: 85%;
    max-width: 280px;
    padding: 20px 15px;
    border-radius: 12px;
  }
  
  .category-icon {
    width: 70px; height: 70px;
    margin-bottom: 12px;
  }
  
  .category-icon img { width: 45px; height: 45px; }
  
  .category-choice h2 { font-size: 1.2rem; }
  .category-choice p { font-size: 0.8rem; }
  
  /* Notice CFX - plus petite sur mobile */
  .important-notice {
    bottom: 55px;
    font-size: 0.65rem;
    padding: 8px 15px;
    max-width: 95%;
    border-width: 2px;
    border-radius: 8px;
  }
  
  .important-notice::before {
    font-size: 0.8rem;
    margin-right: 6px;
  }
  
  /* Bouton staff - en haut à droite sur mobile */
  #staffBtn {
    position: fixed;
    bottom: auto;
    top: 12px;
    right: 12px;
    padding: 8px 14px;
    font-size: 0.75rem;
  }
  
  .toast { max-width: 90%; padding: 12px 15px; }
  .toast-container { top: 10px; right: 10px; left: 10px; }
}

@media (max-width: 480px) {
  .terminal-body { 
    padding: 20px 15px;
    font-size: 0.9rem;
    line-height: 1.8;
  }
  .terminal-title { font-size: 0.75rem; }
  .crt-enter-btn { font-size: 1rem; padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .vignette-overlay, .glow-overlay { animation: none; }
  .toast { animation: none; }
}

/* Z-INDEX */
.vignette-overlay, .scanlines-overlay, .grain-overlay { z-index: 2; }
.glow-overlay { z-index: 1; }
h1 { z-index: 10; }
.main-menu, #vehicle-catalog { z-index: 20; }
.social-buttons { z-index: 50; }
.important-notice { z-index: 60; }
#staffBtn { z-index: 100; }
#staffOverlay { z-index: 1000; }
#staffModal { z-index: 1001; }
.vehicle-modal { z-index: 2000; }
.global-loader { z-index: 9999; }
.toast-container { z-index: 10000; }
#crtIntro { z-index: 99999; }
