/* Variables CSS pour la cohérence avec index.css */
:root {
  --primary-orange: #ff6a00;
  --secondary-yellow: #FFE066;
  --text-dark: #222;
  --text-gray: #666;
  --text-light: #888;
  --background-light: #fafafa;
  --gradient-primary: linear-gradient(135deg, #ff6a00, #ff9500);
  --gradient-secondary: linear-gradient(135deg, #FFE066, #FFF3A0);
  --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.12);
  --shadow-large: 0 15px 35px rgba(0, 0, 0, 0.15);
  --border-radius-small: 8px;
  --border-radius: 16px;
  --border-radius-large: 24px;
  --transition: 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: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffeeaa 30%,
    #ffeeaa 70%,
    #ffffff 100%
  );
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typographie */
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section Hero avec navigation directe */
.subjects-hero {
  padding: 30px 0 40px 0;
  background: transparent;
}

.subjects-header {
  text-align: center;
  margin-bottom: 40px;
}

.subjects-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 106, 0, 0.1);
  color: var(--primary-orange);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 106, 0, 0.2);
}

.subjects-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.subjects-subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}



/* Grille des matières avec images */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.subject-card {
  background: var(--secondary-yellow);
  border-radius: var(--border-radius-large);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow-small);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.subject-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
}

.subject-card.coming-soon {
  opacity: 0.8;
  cursor: not-allowed;
}

.subject-card.coming-soon:hover {
  transform: translateY(-3px);
}

.subject-visual {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.subject-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.subject-card:hover .subject-image {
  transform: scale(1.05);
}

.subject-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 106, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.subject-card:hover .subject-overlay {
  opacity: 1;
}

.subject-overlay .subject-icon {
  font-size: 3rem;
  background: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
}

.subject-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.subject-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.subject-content p {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.subject-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 15px;
}

.subject-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 106, 0, 0.1);
  padding: 12px 16px;
  border-radius: var(--border-radius);
  margin-top: auto;
}

.cta-text {
  font-weight: 600;
  color: var(--primary-orange);
}

.cta-arrow {
  font-size: 1.2rem;
  color: var(--primary-orange);
  transition: var(--transition);
}

.subject-card:hover .cta-arrow {
  transform: translateX(5px);
}

.coming-soon-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-orange);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

/* Section fonctionnalités terminale */
.terminale-features {
  padding: 30px 0;
  background: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.feature-card {
  background: var(--secondary-yellow);
  padding: 25px 20px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-small);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
}

.feature-card .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: center;
  }
  
  .hero {
    min-height: 40vh;
    padding: 12px 0;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-image {
    max-width: 60%;
  }
  
  .hero-metrics {
    justify-content: center;
  }
  
  .hero-cta {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }
  
  .hero {
    padding: 10px 0;
    min-height: 35vh;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 6px;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
  
  .hero-image {
    max-width: 80%;
  }
  
  .hero-metrics {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 10px 0 12px 0;
  }
  
  .metric {
    flex: 1 1 calc(50% - 4px);
    min-width: 120px;
    justify-content: center;
    padding: 6px 10px;
  }
  
  .btn-hero-primary {
    width: 100%;
    max-width: 280px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .subjects-selection {
    padding: 25px 0;
  }
  
  .terminale-features {
    padding: 25px 0;
  }
  
  .subjects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero {
    padding: 10px 0;
    min-height: 30vh;
  }
  
  .hero-content h1 {
    font-size: 1.6rem;
    margin-bottom: 6px;
  }
  
  .hero-subtitle {
    margin-bottom: 10px;
  }
  
  .hero-metrics {
    gap: 6px;
    margin: 8px 0 10px 0;
  }
  
  .metric {
    padding: 8px 10px;
    flex: 1 1 100%;
    max-width: none;
  }
  
  .metric-icon {
    font-size: 1rem;
  }
  
  .metric-number {
    font-size: 0.9rem;
  }
  
  .metric-label {
    font-size: 0.65rem;
  }
  
  .subject-card,
  .feature-card {
    padding: 20px 15px;
  }
  
  .subject-icon,
  .feature-card .feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .subject-card h3,
  .feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }
  
  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
}