/* ===============================
   PARCOURS — LAYOUT GÉNÉRAL
================================ */

main {
  width: 90%;
  max-width: 1000px;
  margin: 40px auto 80px;
}

/* TITRE PRINCIPAL */
.snc-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #004080;
}

/* ===============================
   SECTIONS PÉDAGOGIQUES
================================ */

.snc-section {
  background: #ffffff;
  padding: 35px 40px;
  margin-bottom: 35px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.snc-section h2 {
  color: #003366;
  margin-bottom: 15px;
}

.snc-section h3 {
  margin-top: 25px;
  color: #004080;
}

.snc-section h4 {
  margin-top: 20px;
  color: #333;
}

.snc-section p {
  line-height: 1.7;
  color: #333;
}

.snc-section ul {
  margin-top: 15px;
  padding-left: 20px;
}

.snc-section ul li {
  margin-bottom: 8px;
}

/* ===============================
   TABLEAUX
================================ */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

thead {
  background: #004080;
  color: #ffffff;
}

th, td {
  padding: 12px 14px;
  border: 1px solid #ddd;
  text-align: left;
}

tbody tr:nth-child(even) {
  background: #f5f7fa;
}

/* ===============================
   CONCLUSION
================================ */

.snc-section.conclusion {
  background: #f2f6fb;
  border-left: 6px solid #004080;
}

/* ===============================
   NAVIGATION FIN DE PAGE
================================ */

.next-page-container {
  text-align: center;
  margin: 40px 0 70px;
}

.next-page-btn {
  display: inline-block;
  background: #004080;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease, transform 0.2s ease;
}

.next-page-btn:hover {
  background: #003366;
  transform: scale(1.05);
}

/* ===============================
   TEST DE CONNAISSANCES
================================ */

.test-section {
  background: linear-gradient(135deg, #004080, #0066cc);
  color: #ffffff;
  padding: 70px 20px;
  border-radius: 20px;
  margin-top: 60px;
}

.test-box {
  max-width: 720px;
  margin: auto;
  text-align: center;
}

.test-box h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.test-box p {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.95;
}

/* BOUTON ACTION */
.btn-action {
  display: inline-block;
  margin-top: 30px;
  background: #ffcc00;
  color: #003366;
  padding: 15px 36px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 35px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-action:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.test-note {
  margin-top: 18px;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
  main {
    width: 95%;
  }

  .snc-section {
    padding: 25px;
  }

  .snc-title {
    font-size: 1.8rem;
  }

  table {
    font-size: 0.85rem;
  }
}

.question-block button {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 12px;
  font-size: 1rem;
  cursor: pointer;
}

.question-block button.selected {
  border: 3px solid #004080;
  background: #e6f0ff;
}

.question-block button {
  cursor: pointer;
  transition: all 0.2s ease;
}

.question-block button.selected {
  background: #004080;
  color: #fff;
  border: 2px solid #003366;
}

.question-block button.disabled {
  opacity: 0.6;
}

/* ===============================
   TABLEAUX RESPONSIVES (MOBILE)
================================ */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 8px;
}

/* Optionnel : petit effet visuel */
.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-track {
  background: transparent;
}

/* Empêche les colonnes de se casser */
.snc-table {
  min-width: 700px; /* clé pour mobile */
}


