:root {
  /* Couleurs principales */
  --primary: #4F46E5;
  --primary-hover: #1c13b2;
  --primary-light: #EDE9FE;
  --primary-dark: #020098;

  /* Couleurs secondaires */
  --secondary: #10B981;
  --secondary-hover: #00864e;
  --secondary-light: #D1FAE5;

  /* Accent */
  --accent: #F59E0B;
  --accent-hover: #c26b00;

  /* Neutres */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Statuts */
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;

  /* Typographie */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
  --font-size-base: 16px;
  --line-height: 1.5;

  /* Espacements & rayons */
  --spacing: 1rem;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Ombres */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset et Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--gray-50) 0%, #F0F4FF 100%);
  min-height: 100vh;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInDown 0.5s ease;
}

header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.logo {
  width: 48px;
  height: 48px;
  color: var(--gray-600);
  transition: var(--transition);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

header:hover .logo {
  color: var(--primary);
  animation-duration: 2s;
}

.subtitle {
  color: var(--gray-600);
  font-size: 1.125rem;
}

/* Status Card */
.status-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border: 1px solid var(--gray-200);
  animation: fadeIn 0.5s ease;
}

.status-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-card h2 i {
  color: var(--gray-600);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.status-item:hover {
  background: white;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.status-label {
  font-weight: 500;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.status-value {
  font-weight: 600;
  color: var(--gray-900);
}

.status-value.success {
  color: var(--success);
}

.status-value.warning {
  color: var(--warning);
}

/* Simple Process Steps */
.simple-process {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border: 1px solid var(--gray-200);
}

.simple-process h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.process-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.process-step {
  flex: 1;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  transition: var(--transition);
  border: 2px solid transparent;
}

.process-step:hover {
  background: white;
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.process-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.process-content strong {
  display: block;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.process-content p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin: 0;
}

.process-arrow {
  font-size: 2rem;
  color: var(--gray-400);
  font-weight: bold;
  flex-shrink: 0;
}

.process-step.active {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.process-step.active .process-number {
  background: var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
  }
}

.process-hint {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.process-hint i {
  color: var(--info);
}

/* Responsive pour process steps */
@media (max-width: 768px) {
  .process-steps {
    flex-direction: column;
  }
  
  .process-arrow {
    transform: rotate(90deg);
    margin: 0.5rem 0;
  }
  
  .process-step {
    width: 100%;
  }
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: white;
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.tab-button {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tab-button:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.tab-button.active {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.tab-button i {
  font-size: 1rem;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

/* Modules Section */
.modules-section {
  margin-bottom: 2rem;
}

.modules-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.module-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition-slow);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gray-300);
}

.module-card.core::before {
  background: var(--primary);
}

.module-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.module-icon {
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--gray-600);
}

.module-card.core .module-icon {
  background: var(--primary-light);
  color: var(--primary);
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.module-header h3 {
  font-size: 1.25rem;
  color: var(--gray-900);
}

.module-status {
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.module-status.required {
  background: var(--danger);
  color: white;
}

.module-status.recommended {
  background: var(--success);
  color: white;
}

.module-status.optional {
  background: var(--gray-300);
  color: var(--gray-700);
}

.module-info {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.module-info span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.module-info i {
  font-size: 0.75rem;
}

/* Installation Methods */
.installation-methods h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.method-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition-slow);
  text-align: center;
}

.method-card.recommended {
  border: 2px solid var(--primary);
  position: relative;
}

.method-card.recommended::before {
  content: '⭐ Recommandé';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0 1rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
}

.method-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.method-icon {
  width: 64px;
  height: 64px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--gray-600);
}

.method-card.recommended .method-icon {
  background: var(--primary-light);
  color: var(--primary);
}

.beginner-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.beginner-badge i {
  font-size: 0.875rem;
}

.method-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.method-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Commands Section */
.commands-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.commands-section h2 {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-text {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.commands-grid {
  display: grid;
  gap: 1rem;
}

.command-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem;
  transition: var(--transition);
}

.command-card:hover {
  background: white;
  box-shadow: var(--shadow-sm);
}

.command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.command-header h4 {
  color: var(--gray-900);
  font-size: 1rem;
}

.btn-copy {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
}

.btn-copy:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.command-description {
  color: var(--gray-600);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.command-text {
  background: var(--gray-900);
  color: #10B981;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  overflow-x: auto;
  cursor: pointer;
}

/* Troubleshooting */
.troubleshoot-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.quick-fixes {
  margin-bottom: 2rem;
}

.quick-fixes h3 {
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.fix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.fix-button {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.fix-button:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.fix-button i {
  font-size: 1.5rem;
  color: var(--gray-600);
}

.fix-button span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  text-align: center;
}

.fix-button:hover i,
.fix-button:hover span {
  color: var(--primary);
}

/* History Table */
.installations-history {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.history-table {
  overflow-x: auto;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--gray-500);
}

.empty-state i {
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.text-muted {
  color: var(--gray-400);
  font-size: 0.875rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
}

th {
  text-align: left;
  padding: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

tr:hover {
  background: var(--gray-50);
}

.os-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.os-badge.macos {
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  color: white;
}

.os-badge.windows {
  background: linear-gradient(135deg, #00D4FF 0%, #0050C1 100%);
  color: white;
}

.os-badge.linux {
  background: linear-gradient(135deg, #FCA311 0%, #E85D04 100%);
  color: white;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.completed {
  background: var(--success);
  color: white;
}

.status-badge.downloaded {
  background: var(--info);
  color: white;
}

.status-badge.started {
  background: var(--warning);
  color: white;
}

.status-badge.failed {
  background: var(--danger);
  color: white;
}

.btn-small {
  background: var(--gray-200);
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  color: var(--gray-700);
}

.btn-small:hover {
  background: var(--gray-300);
}

/* Terminal */
.terminal {
  background: var(--gray-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin-top: 2rem;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.terminal-header {
  background: var(--gray-800);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-700);
}

.terminal-header span {
  color: var(--gray-300);
  font-weight: 500;
}

.terminal-controls {
  display: flex;
  gap: 0.5rem;
}

.btn-terminal {
  background: transparent;
  border: 1px solid var(--gray-600);
  color: var(--gray-300);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-terminal:hover {
  background: var(--gray-700);
  border-color: var(--gray-500);
}

.terminal-content {
  padding: 1.5rem;
  max-height: 600px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--gray-300);
  line-height: 1.6;
}

.terminal-content h3,
.terminal-content h4 {
  font-family: var(--font-family);
  color: white;
  margin-bottom: 1rem;
}

.terminal-content pre,
.command-block {
  background: black;
  color: #10B981;
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 0.5rem 0 1rem 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  cursor: pointer;
  position: relative;
}

.terminal-content pre:hover::after,
.command-block:hover::after {
  content: '📋 Cliquer pour copier';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--gray-800);
  color: var(--gray-400);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-family: var(--font-family);
}

.terminal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.terminal-content li {
  margin-bottom: 0.5rem;
}

.terminal-content code {
  background: var(--gray-800);
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
  color: var(--accent);
}

.terminal-line {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.terminal-line.info {
  color: var(--info);
}

.terminal-line.success {
  color: var(--success);
}

.terminal-line.warning {
  color: var(--warning);
}

.terminal-line.error {
  color: var(--danger);
}

.help-text {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.instruction-section {
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
}

.code-tabs {
  margin: 1rem 0;
}

.tab-option {
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
}

.tab-option strong {
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  width: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--secondary-hover);
}

.btn-info {
  background: var(--info);
  color: white;
}

.btn-info:hover:not(:disabled) {
  background: #2563EB;
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-warning:hover:not(:disabled) {
  background: #DC7609;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.5rem;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-400);
  cursor: pointer;
  transition: var(--transition);
  padding: 0.25rem;
}

.modal-close:hover {
  color: var(--gray-700);
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem;
}

.config-section {
  margin-bottom: 1.5rem;
}

.config-section h4 {
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.checkbox-label:hover {
  background: var(--gray-50);
  border-color: var(--gray-200);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  position: relative;
  transition: var(--transition);
  margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.checkbox-label strong {
  display: block;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.checkbox-label small {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.estimated-info {
  background: var(--primary-light);
  padding: 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-dark);
}

.estimated-info i {
  font-size: 1.25rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.modal-footer .btn {
  width: auto;
  min-width: 120px;
}

/* Notifications */
#notification-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notification {
  min-width: 300px;
  max-width: 400px;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(400px);
  transition: transform 0.3s ease;
  border-left: 4px solid var(--gray-400);
}

.notification.show {
  transform: translateX(0);
}

.notification i {
  font-size: 1.25rem;
}

.notification.success {
  border-left-color: var(--success);
}

.notification.success i {
  color: var(--success);
}

.notification.error {
  border-left-color: var(--danger);
}

.notification.error i {
  color: var(--danger);
}

.notification.warning {
  border-left-color: var(--warning);
}

.notification.warning i {
  color: var(--warning);
}

.notification.info {
  border-left-color: var(--info);
}

.notification.info i {
  color: var(--info);
}

/* Post-download Banner */
.post-download-banner {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.post-download-banner.help-mode {
  background: linear-gradient(135deg, var(--info) 0%, #2563EB 100%);
}

.post-download-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.post-download-banner h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.banner-icon {
  position: absolute;
  top: 2rem;
  right: 4rem;
  font-size: 4rem;
  opacity: 0.2;
}

.banner-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.banner-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.instruction-steps {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.step-number {
  min-width: 40px;
  height: 40px;
  background: white;
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
}

.step-content {
  flex: 1;
}

.step-content strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.step-content p {
  margin: 0.25rem 0;
  opacity: 0.9;
}

.step-content ul {
  margin: 0.5rem 0 0 1.5rem;
  opacity: 0.9;
}

.step-content ul li {
  margin: 0.25rem 0;
}

.copy-command {
  display: inline-block;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  margin: 0.5rem 0;
}

.copy-command:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: translateX(5px);
}

.copy-command::after {
  content: '📋';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
}

.copy-command:hover::after {
  opacity: 1;
}

kbd {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

.all-commands-box {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.all-commands-box .btn {
  width: auto;
  display: inline-flex;
}

.quick-tip {
  background: rgba(255, 255, 255, 0.15);
  padding: 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.quick-tip i {
  font-size: 1.5rem;
  color: var(--accent);
}

.quick-tip strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Responsive pour la bannière */
@media (max-width: 768px) {
  .post-download-banner {
    padding: 1.5rem;
  }
  
  .banner-icon {
    display: none;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    margin: 0 auto;
  }
  
  .copy-command {
    display: block;
    text-align: center;
  }
}

/* Warning Box */
.warning-box {
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.warning-box i {
  color: var(--warning);
  font-size: 1.25rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 5px;
  transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

.terminal-content::-webkit-scrollbar-track {
  background: var(--gray-800);
}

.terminal-content::-webkit-scrollbar-thumb {
  background: var(--gray-600);
}

/* Loading */
.loading {
  text-align: center;
  padding: 2rem;
  color: var(--gray-500);
}

.loading i {
  font-size: 2rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  header h1 {
    font-size: 1.75rem;
  }
  
  .logo {
    width: 36px;
    height: 36px;
  }
  
  .tabs {
    padding: 0.25rem;
  }
  
  .tab-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    min-width: auto;
  }
  
  .tab-button i {
    display: none;
  }
  
  .modules-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }
  
  .status-grid {
    grid-template-columns: 1fr;
  }
  
  .fix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  table {
    font-size: 0.75rem;
  }
  
  th, td {
    padding: 0.5rem;
  }
  
  .os-badge {
    font-size: 0.625rem;
  }
  
  #notification-container {
    top: 1rem;
    right: 1rem;
    left: 1rem;
  }
  
  .notification {
    max-width: 100%;
    min-width: auto;
  }
  
  .modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .terminal {
    margin-top: 1rem;
  }
  
  .terminal-content {
    max-height: 400px;
  }
}

/* Tip styling */
.tip {
  background: var(--info);
  background: rgba(59, 130, 246, 0.1);
  padding: 0.75rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--info);
  margin-top: 1rem;
  color: var(--gray-700);
}

/* Floating Help Button */
.floating-help {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.floating-help button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.floating-help button:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.floating-help i {
  font-size: 1.25rem;
}

/* Responsive pour floating help */
@media (max-width: 768px) {
  .floating-help {
    bottom: 1rem;
    right: 1rem;
  }
  
  .floating-help button span {
    display: none;
  }
  
  .floating-help button {
    padding: 1rem;
    border-radius: 50%;
  }
}

/* Print styles */
@media print {
  .tabs,
  .btn,
  .modal,
  #notification-container {
    display: none !important;
  }
  
  .tab-content {
    display: block !important;
  }
  
  body {
    background: white;
  }
}
