* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  color: white;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.duration-info {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 25px;
  display: inline-block;
  margin-top: 10px;
}

.navigation {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover,
.nav-btn.active {
  background: #4caf50;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.section {
  display: none;
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.section.active {
  display: block;
  animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section h2 {
  color: #2c3e50;
  font-size: 2em;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #4caf50;
}

.section h3 {
  color: #34495e;
  font-size: 1.4em;
  margin-top: 25px;
  margin-bottom: 15px;
  padding-left: 20px;
  border-left: 4px solid #3498db;
}

.competence-card {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  border-left: 5px solid #e74c3c;
}

.savoir-faire {
  background: #e8f5e8;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 4px solid #27ae60;
}

.indicateur {
  background: #fff3cd;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
  border-left: 3px solid #ffc107;
}

.ressources {
  background: #d1ecf1;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 4px solid #17a2b8;
}

.timeline {
  position: relative;
  margin: 30px 0;
}

.timeline-item {
  display: flex;
  margin: 20px 0;
  align-items: center;
}

.time-marker {
  background: #4caf50;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  width: 130px;
  text-align: center;
  flex-shrink: 0;
}

.time-content {
  background: white;
  margin-left: 20px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex: 1;
}

.interactive-element {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.interactive-element:hover {
  transform: scale(1.02);
}

.quiz-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  border: 2px dashed #6c757d;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #45a049);
  width: 0%;
  transition: width 0.3s ease;
}

ul,
ol {
  margin: 15px 0;
  padding-left: 30px;
}

li {
  margin: 8px 0;
}

.highlight {
  background: linear-gradient(120deg, #a8e6cf 0%, #ffd3a5 100%);
  padding: 2px 6px;
  border-radius: 4px;
}

.warning-box {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}

.success-box {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}

.placeholder-lexique {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
  font-style: italic;
  background: #f8f9fa;
  border-radius: 15px;
  border: 2px dashed #dee2e6;
}

.search-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  border-left: 4px solid #4caf50;
}

.search-input {
  width: 100%;
  padding: 15px;
  border: 2px solid #4caf50;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  transition: box-shadow 0.3s ease;
}

.search-input:focus {
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.stats {
  text-align: center;
  margin: 20px 0;
  padding: 15px;
  background: #e8f5e8;
  border-radius: 10px;
}

.lexique-section {
  margin: 40px 0;
}

.lexique-section h2 {
  color: #4caf50;
  font-size: 2.2em;
  border-bottom: 3px solid #4caf50;
  padding-bottom: 10px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.letter-icon {
  background: #4caf50;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.lexique-item {
  background: #f8f9fa;
  padding: 20px;
  margin: 15px 0;
  border-radius: 10px;
  border-left: 5px solid #6c757d;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.lexique-item:hover {
  background: #e9ecef;
  border-left-color: #4caf50;
  transform: translateX(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lexique-item strong {
  color: #2c3e50;
  font-size: 1.3em;
  display: block;
  margin-bottom: 5px;
}

.lexique-item em {
  color: #e74c3c;
  font-size: 1.1em;
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.lexique-item small {
  color: #5a6c7d;
  font-size: 0.95em;
  line-height: 1.5;
}

.usage-info {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  padding: 15px;
  border-radius: 8px;
  margin-top: 30px;
}

.footer-info {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 20px;
  border-radius: 10px;
  margin-top: 40px;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6c757d;
  font-style: italic;
}

.empty-state .icon {
  font-size: 4em;
  margin-bottom: 20px;
  opacity: 0.5;
}

mark {
  background: #ffeb3b;
  padding: 2px 4px;
  border-radius: 3px;
  color: #333;
}

@media (max-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 20px;
  }
}
