/* ================= VARIABLES ================= */
:root {
  --primary-color: #2563eb;
  --secondary-color: #64748b;
  --accent-color: #3b82f6;
  --light-bg: #f8fafc;
  --dark-bg: #1e293b;
  --text-dark: #334155;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
}

/* ================= RESET ================= */
.systeme-main * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= HEADER ================= */
.systeme-header {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.systeme-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.systeme-hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.header-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat .number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
}

.stat .label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ================= NAVIGATION ================= */
.systeme-nav {
  background: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.systeme-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  background: var(--primary-color);
  color: white;
}

/* ================= SECTIONS ================= */
.systeme-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.systeme-section:nth-child(even) {
  background: var(--light-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ================= CONTENT GRID ================= */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.content-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.content-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  padding-left: 1.5rem;
}

.feature-list li:before {
  content: "✓";
  color: var(--success-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.feature-list li:last-child {
  border-bottom: none;
}

/* ================= DISTRIBUTIONS ================= */
.distributions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.distro-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

.distro-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.distro-card h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.distro-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.distro-tag {
  background: var(--light-bg);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ================= COMMANDES ================= */
.commandes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.commande-category h3 {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.commande-list {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.commande-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease;
}

.commande-item:hover {
  background: var(--light-bg);
}

.commande-item:last-child {
  border-bottom: none;
}

.commande-item code {
  background: var(--dark-bg);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
}

.commande-item span {
  color: var(--text-light);
  text-align: right;
  flex: 1;
  margin-left: 1rem;
}

/* ================= ASTUCES ================= */
.astuces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.astuce-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.astuce-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

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

.astuce-card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.astuce-card p {
  color: var(--text-light);
  line-height: 1.6;
}

/* ================= RESSOURCES ================= */
.ressources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.ressource-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.ressource-card:hover {
  transform: translateY(-5px);
}

.ressource-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.ressource-card ul {
  list-style: none;
  margin-bottom: 2rem;
}

.ressource-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
}

.ressource-card li:last-child {
  border-bottom: none;
}

.download-btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background: var(--accent-color);
}

/* ================= SCROLL TO TOP ================= */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.scroll-top:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .systeme-hero h1 {
    font-size: 2rem;
  }
  
  .header-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .systeme-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .commandes-container {
    grid-template-columns: 1fr;
  }
  
  .commande-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .commande-item span {
    margin-left: 0;
    text-align: left;
  }
  
  .systeme-section {
    padding: 2rem 1rem;
  }
}

/* Animations */
.content-card,
.distro-card,
.astuce-card,
.ressource-card {
  animation: fadeInUp 0.6s ease;
}

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

/* Styles pour le SPA */
.systeme-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.systeme-section.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

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

/* Styles pour les nouvelles sections */
.tips-grid, .performance-grid, .external-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tip-card, .performance-card, .external-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.terminal-demo {
    background: #1a1a1a;
    color: #00ff00;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
}

.command-example {
    margin-bottom: 1rem;
}

.command-example code {
    background: #2d2d2d;
    color: #00ff00;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: block;
    margin-bottom: 0.3rem;
}

.resource-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.preview-btn {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.preview-btn:hover {
    background: var(--text-light);
}