/* Base Styles */
:root {
  --bg-primary: #0f172a;
  --text-primary: #e2e8f0;
  --accent-gold: #f8c406;
  --accent-purple: #8b5cf6;
  --accent-lime: #a3e635;
  --accent-error: #ef4444;
  --sidebar-width: 250px;
  --header-height: 70px;
  --container-padding: 1.5rem;
  --border-radius: 0.75rem;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "SF Pro Text", "Helvetica Neue", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--accent-lime);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.hidden {
  display: none;
}

/* Header & Navigation */
header {
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(226, 232, 240, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-lime);
  transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent-lime);
}

/* Home Page */
.home-container {
  flex: 1;
}

.hero {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" preserveAspectRatio="none"><circle cx="500" cy="500" r="1" fill="white" opacity="0.8"/></svg>');
  background-size: 1000px 1000px;
  animation: stars 100s linear infinite;
}

@keyframes stars {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-1000px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-purple);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  background-color: var(--accent-lime);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.mission-brief {
  padding: 4rem 0;
}

.mission-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mission-content {
  flex: 1;
  min-width: 300px;
}

.mission-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.astronaut-image {
  width: 100%;
  height: 300px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%238b5cf6" opacity="0.8"/><circle cx="50" cy="40" r="20" fill="%23f8c406" opacity="0.9"/></svg>');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.objective-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.secondary-button {
  display: inline-block;
  background-color: transparent;
  color: var(--accent-lime);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--accent-lime);
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  margin-top: 1rem;
}

.secondary-button:hover {
  background-color: var(--accent-lime);
  color: var(--bg-primary);
}

.features {
  padding: 4rem 0;
  background-color: rgba(255, 255, 255, 0.02);
}

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

.feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition-speed) ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.data-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="20" y="20" width="60" height="60" fill="%23f8c406" opacity="0.8"/></svg>');
}

.model-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%238b5cf6" opacity="0.8"/></svg>');
}

.prediction-icon {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,20 80,80 20,80" fill="%23a3e635" opacity="0.8"/></svg>');
}

/* Tutorial Page */
.tutorial-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.tutorial-container {
  display: flex;
  flex: 1;
}

.sidebar {
  width: var(--sidebar-width);
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem 1rem;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  border-right: 1px solid rgba(226, 232, 240, 0.1);
}

.progress-container {
  margin-bottom: 2rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress {
  height: 100%;
  background-color: var(--accent-lime);
  width: 0;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 0.875rem;
  text-align: right;
}

.tutorial-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tutorial-nav a {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  font-family: var(--font-secondary);
  position: relative;
  overflow: hidden;
  white-space: normal;
  display: flex;
  align-items: center;
}

.tutorial-nav a::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-purple);
  border-radius: 50%;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.tutorial-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.tutorial-nav a:hover::before {
  background-color: var(--accent-lime);
  box-shadow: var(--glow-lime);
}

.tutorial-nav a.active {
  background-color: var(--accent-purple);
  color: white;
  box-shadow: var(--glow-purple);
}

.tutorial-nav a.active::before {
  background-color: white;
  transform: scale(1.2);
}

.tutorial-nav a.completed::after {
  content: "✓";
  position: absolute;
  right: 10px;
  color: var(--accent-lime);
}

.tutorial-content {
  flex: 1;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.tutorial-section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tutorial-section.active {
  display: block;
}

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

.nova-says,
.orion-advises {
  background-color: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  gap: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nova-says:hover,
.orion-advises:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.nova-says {
  border-left: 4px solid var(--accent-purple);
}

.orion-advises {
  border-left: 4px solid var(--accent-gold);
}

/* Styles pour les personnages Nova et ORION */
.nova-icon,
.orion-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.nova-says:hover .nova-icon,
.orion-advises:hover .orion-icon {
  transform: rotate(10deg);
}

.nova-icon {
  background-color: var(--accent-gold);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="35" r="25" fill="%23ffffff"/><rect x="25" y="35" width="50" height="40" rx="10" fill="%23ffffff"/><circle cx="40" cy="35" r="5" fill="%230f172a"/><circle cx="60" cy="35" r="5" fill="%230f172a"/><path d="M 40 50 Q 50 60 60 50" stroke="%230f172a" stroke-width="2" fill="none"/><rect x="35" y="65" width="30" height="10" rx="5" fill="%23f8c406"/><circle cx="50" cy="15" r="5" fill="%23f8c406"/></svg>');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.orion-icon {
  background-color: var(--accent-purple);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="25" y="25" width="50" height="50" rx="10" fill="%23ffffff"/><circle cx="40" cy="40" r="5" fill="%238b5cf6"/><circle cx="60" cy="40" r="5" fill="%238b5cf6"/><rect x="35" y="55" width="30" height="5" fill="%238b5cf6"/><path d="M 20 30 L 10 20 M 20 50 L 5 50 M 20 70 L 10 80 M 80 30 L 90 20 M 80 50 L 95 50 M 80 70 L 90 80" stroke="%238b5cf6" stroke-width="2"/></svg>');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.nova-icon,
.orion-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.nova-says:hover .nova-icon,
.orion-advises:hover .orion-icon {
  transform: rotate(10deg);
}

.nova-message h4,
.orion-message h4 {
  font-family: var(--font-futuristic);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.nova-message h4 {
  color: var(--accent-purple);
  text-shadow: var(--glow-gold);
}

.orion-message h4 {
  color: var(--accent-gold);
  text-shadow: var(--glow-purple);
}

.prerequisites {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.prerequisite {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.prerequisite h4 {
  margin-bottom: 1rem;
}

.prerequisite ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.code-editor {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius);
  margin: 2rem 0;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.code-header {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.run-button {
  background-color: var(--accent-lime);
  color: var(--bg-primary);
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease;
}

.run-button:hover {
  background-color: #b4f361;
}

.code-area {
  padding: 1rem;
  overflow-x: auto;
}

.python-code {
  font-family: "Courier New", monospace;
  color: #e2e8f0;
  line-height: 1.5;
}

.code-output {
  background-color: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.output-header {
  padding: 0.75rem 1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.output-content {
  padding: 1rem;
  max-height: 300px;
  overflow-y: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.data-table th,
.data-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
  background-color: rgba(255, 255, 255, 0.05);
  font-weight: 600;
}

.info-box {
  background-color: rgba(139, 92, 246, 0.1);
  border-left: 4px solid var(--accent-purple);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 1.5rem;
  margin: 2rem 0;
}

.info-box h4 {
  margin-bottom: 1rem;
}

.info-box ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
}

.prev-button,
.next-button,
.home-button,
.submit-quiz {
  background-color: var(--accent-purple);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.prev-button:hover,
.next-button:hover,
.home-button:hover,
.submit-quiz:hover {
  background-color: var(--accent-lime);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.prev-button {
  background-color: transparent;
  border: 2px solid var(--accent-purple);
  color: var(--accent-purple);
}

.prev-button:hover {
  background-color: var(--accent-purple);
  color: white;
}

.home-button {
  background-color: var(--accent-gold);
  color: var(--bg-primary);
}

.home-button:hover {
  background-color: #ffd34e;
}

.decision-tree-image,
.planet-visualization {
  margin: 2rem 0;
  text-align: center;
}

.responsive-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.planet-visualization {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.planet {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  position: relative;
}

.planet::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.kepler {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.trappist {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.toi {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.lhs {
  background: linear-gradient(135deg, #f1c40f, #f39c12);
}

.gliese {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.mission-complete {
  text-align: center;
  margin: 2rem 0;
}

.landing-image {
  width: 100%;
  height: 300px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="70" r="30" fill="%232ecc71" opacity="0.8"/><circle cx="50" cy="30" r="10" fill="%23f8c406" opacity="0.9"/><path d="M 40 50 L 50 30 L 60 50 Z" fill="%238b5cf6" opacity="0.8"/></svg>');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  margin: 2rem 0;
}

.quiz-container {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem 0;
}

.quiz-question {
  margin-bottom: 2rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.quiz-options label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-speed) ease;
}

.quiz-options label:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.quiz-options input[type="radio"] {
  margin-top: 0.25rem;
}

.submit-quiz {
  margin-top: 2rem;
  width: 100%;
}

#quiz-results {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
}

#quiz-score {
  font-weight: 700;
  color: var(--accent-lime);
}

/* Resources Page */
.resources-container {
  flex: 1;
}

.resources-hero {
  text-align: center;
  padding: 4rem 2rem;
  background-color: rgba(255, 255, 255, 0.02);
}

.resources-hero h1 {
  margin-bottom: 1rem;
}

.resources-grid {
  padding: 4rem 0;
}

.resources-grid:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}

.resource-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.resource-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition-speed) ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.resource-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.sklearn {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%23f8c406" opacity="0.8"/></svg>');
}

.pandas {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="20" y="20" width="60" height="60" fill="%238b5cf6" opacity="0.8"/></svg>');
}

.numpy {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,20 80,80 20,80" fill="%23a3e635" opacity="0.8"/></svg>');
}

.python {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="35" cy="35" r="15" fill="%23f8c406" opacity="0.8"/><circle cx="65" cy="65" r="15" fill="%238b5cf6" opacity="0.8"/></svg>');
}

.ml {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="20" y="20" width="25" height="25" fill="%23f8c406" opacity="0.8"/><rect x="55" y="20" width="25" height="25" fill="%238b5cf6" opacity="0.8"/><rect x="20" y="55" width="25" height="25" fill="%23a3e635" opacity="0.8"/><rect x="55" y="55" width="25" height="25" fill="%23ef4444" opacity="0.8"/></svg>');
}

.jupyter {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="30" fill="%23f8c406" opacity="0.8"/><circle cx="50" cy="50" r="15" fill="%230f172a"/></svg>');
}

.book {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="25" y="20" width="50" height="60" fill="%238b5cf6" opacity="0.8"/><rect x="30" y="25" width="40" height="5" fill="%23f8c406" opacity="0.8"/><rect x="30" y="35" width="40" height="5" fill="%23f8c406" opacity="0.8"/><rect x="30" y="45" width="40" height="5" fill="%23f8c406" opacity="0.8"/></svg>');
}

.resource-link {
  margin-top: auto;
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(139, 92, 246, 0.2);
  border-radius: var(--border-radius);
  transition: background-color var(--transition-speed) ease;
}

.resource-link:hover {
  background-color: var(--accent-purple);
  color: white;
}

/* Profile Page */
.profile-container {
  flex: 1;
}

.profile-header {
  padding: 4rem 0;
  background-color: rgba(255, 255, 255, 0.02);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--accent-purple);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="40" r="20" fill="%230f172a"/><rect x="30" y="60" width="40" height="20" fill="%230f172a"/></svg>');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.profile-info {
  flex: 1;
}

.profile-subtitle {
  font-size: 1.25rem;
  opacity: 0.8;
}

.profile-stats {
  padding: 4rem 0;
}

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

.stat-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
}

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

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

.profile-progress {
  padding: 4rem 0;
  background-color: rgba(255, 255, 255, 0.02);
}

.progress-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.progress-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

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

.progress-badge {
  background-color: var(--accent-lime);
  color: var(--bg-primary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
}

.progress-badge.locked {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.progress-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.review-link {
  color: var(--accent-purple);
  font-weight: 500;
}

.locked-message {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.profile-achievements {
  padding: 4rem 0;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.achievement-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition-speed) ease;
}

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

.achievement-card.locked {
  opacity: 0.5;
}

.achievement-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.explorer {
  background-color: var(--accent-gold);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="20" fill="%230f172a"/><path d="M 30 70 L 50 30 L 70 70 Z" fill="%230f172a"/></svg>');
}

.data-scientist {
  background-color: var(--accent-purple);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="30" y="30" width="40" height="40" fill="%230f172a"/><circle cx="40" cy="40" r="5" fill="%23f8c406"/><circle cx="60" cy="40" r="5" fill="%23f8c406"/></svg>');
}

.achievement-icon.locked {
  background-color: rgba(255, 255, 255, 0.2);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="35" y="45" width="30" height="30" fill="%230f172a"/><circle cx="50" cy="35" r="15" fill="%230f172a"/></svg>');
}

/* Footer */
footer {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 3rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.footer-links {
  flex: 1;
  min-width: 200px;
}

.footer-links h4 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.25rem;
  }

  .tutorial-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    border-right: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.1);
  }

  .tutorial-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tutorial-nav a {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }

  .navigation-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .prev-button,
  .next-button,
  .home-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .mission-card,
  .feature-card,
  .prerequisite {
    padding: 1.5rem;
  }

  .code-editor {
    margin: 1.5rem 0;
  }

  .code-area {
    padding: 0.75rem;
  }

  .python-code {
    font-size: 0.875rem;
  }

  .data-table {
    font-size: 0.75rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem;
  }

  .planet {
    width: 70px;
    height: 70px;
  }
}

/* Scrollbar pour WebKit (Chrome, Edge Chromium, Safari) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--accent-purple),
    var(--accent-gold)
  );
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--accent-purple),
    var(--accent-lime)
  );
}

/* Scrollbar pour Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-purple) var(--bg-primary);
}

/* Styles pour la page QCM */
.qcm-container {
  flex: 1;
}

.qcm-header {
  text-align: center;
  padding: 4rem 2rem;
  background-color: rgba(255, 255, 255, 0.02);
}

.qcm-content {
  padding: 2rem 0;
}

.qcm-intro {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
}

.nova-orion-container {
  display: flex;
  gap: 3rem;
  justify-content: center;
}

.nova-character,
.orion-character {
  text-align: center;
}

.nova-image,
.orion-image {
  width: 150px;
  height: 150px;
  margin-bottom: 1rem;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.nova-image:hover,
.orion-image:hover {
  transform: translateY(-10px);
}

.nova-image {
  background-color: var(--accent-gold);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="35" r="25" fill="%23ffffff"/><rect x="25" y="35" width="50" height="40" rx="10" fill="%23ffffff"/><circle cx="40" cy="35" r="5" fill="%230f172a"/><circle cx="60" cy="35" r="5" fill="%230f172a"/><path d="M 40 50 Q 50 60 60 50" stroke="%230f172a" stroke-width="2" fill="none"/><rect x="35" y="65" width="30" height="10" rx="5" fill="%23f8c406"/><circle cx="50" cy="15" r="5" fill="%23f8c406"/></svg>');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.orion-image {
  background-color: var(--accent-purple);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="25" y="25" width="50" height="50" rx="10" fill="%23ffffff"/><circle cx="40" cy="40" r="5" fill="%238b5cf6"/><circle cx="60" cy="40" r="5" fill="%238b5cf6"/><path d="M 35 60 Q 50 70 65 60" stroke="%238b5cf6" stroke-width="2" fill="none"/><path d="M 20 30 L 10 20 M 20 50 L 5 50 M 20 70 L 10 80 M 80 30 L 90 20 M 80 50 L 95 50 M 80 70 L 90 80" stroke="%238b5cf6" stroke-width="2"/></svg>');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.qcm-instructions {
  max-width: 600px;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.question-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.question-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.question-number {
  font-weight: 600;
  color: var(--accent-gold);
}

.question-difficulty {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.question-difficulty.facile {
  background-color: rgba(163, 230, 53, 0.2);
  color: var(--accent-lime);
}

.question-difficulty.intermédiaire {
  background-color: rgba(248, 196, 6, 0.2);
  color: var(--accent-gold);
}

.question-difficulty.avancé,
.question-difficulty.expert {
  background-color: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color var(--transition-speed) ease;
}

.option:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.option.selected {
  background-color: rgba(139, 92, 246, 0.2);
  border: 1px solid var(--accent-purple);
}

.option input[type="radio"] {
  margin-top: 0.25rem;
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.results-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}

.score-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(248, 196, 6, 0.3);
}

#score-message {
  text-align: center;
  font-size: 1.25rem;
  max-width: 600px;
}

.result-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.result-item.correct {
  border-left: 4px solid var(--accent-lime);
}

.result-item.incorrect {
  border-left: 4px solid var(--accent-error);
}

.result-question {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.result-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.result-text {
  flex: 1;
  font-weight: 600;
}

.result-icon {
  font-weight: 700;
}

.result-item.correct .result-icon {
  color: var(--accent-lime);
}

.result-item.incorrect .result-icon {
  color: var(--accent-error);
}

.result-details {
  padding-left: 3rem;
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.hidden {
  display: none;
}
