#decision-tree {
  margin: 0 auto;
  padding: 20px;
  animation: fadeStep 0.6s ease both;
}

#decision-tree .dt-card {
  max-width: 960px;
  margin: 0 auto;
}

#decision-tree .dt-question {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: white;
  text-align: center;
}

#decision-tree .dt-options {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

#decision-tree .dt-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 1 1 calc(50% - 12px);
  padding: 26px 28px;
  min-height: 84px;

  background: linear-gradient(135deg, #ffffff, #f9faff);
  border-radius: 20px;
  border: 1px solid rgba(30, 36, 92, 0.15);

  box-shadow:
    0 8px 20px rgba(20, 30, 60, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  font-size: 20px;
  font-weight: 600;
  color: #1e245c;
  text-align: center;

  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  line-height: 1.35;
  white-space: normal;
}

#decision-tree .dt-btn:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(20, 30, 60, 0.12);
}

/* Points colorés retirés - design épuré */

#decision-tree .dt-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

#decision-tree .dt-card-item {
  display: block;
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  color: #1e245c;
  text-decoration: none;

  box-shadow: 0 12px 30px rgba(20, 30, 60, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

#decision-tree .dt-card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(20, 30, 60, 0.14);
}

#decision-tree .dt-card-item h4 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 12px;
}

#decision-tree .dt-card-item p {
  font-size: 15px;
  line-height: 1.5;
  color: #5c6b82;
}

.dt-contact {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
  animation: fadeUp 0.4s ease;
}

.dt-contact.is-hidden {
  display: none;
}

.dt-contact-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e245c;
  margin-bottom: 12px;
  text-align: center;
}

.dt-contact-subtitle {
  font-size: 16px;
  color: #5c6b82;
  margin-bottom: 24px;
  text-align: center;
}
/* ============================
   ZONE OPTIONS (GRID)
============================ */
#decision-tree .dt-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Boutons pleine largeur dans la grille */
#decision-tree .dt-content .dt-btn {
  width: 100%;
}

/* ============================
     RESPONSIVE
  ============================ */
@media (max-width: 1024px) {
  #decision-tree .dt-content {
    grid-template-columns: 1fr;
  }
}

/* ============================
   HEADER / ACTIONS
============================ */
.dt-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.dt-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================
     BREADCRUMB
  ============================ */
.dt-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: white;
}

.dt-crumb {
  cursor: pointer;
  opacity: 0.85;
}

.dt-crumb:hover {
  text-decoration: underline;
  opacity: 1;
}

.dt-sep {
  opacity: 0.4;
}

/* ============================
   ICONES SVG (FORMATION / PAGE)
============================ */
/* ============================
   CARDS FINALES (RECO)
============================ */

#decision-tree .dt-card-item {
  display: flex;
  gap: 18px;
  padding: 28px 30px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(30, 36, 92, 0.12);
  box-shadow: 0 10px 30px rgba(20, 30, 60, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

#decision-tree .dt-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(20, 30, 60, 0.14);
}

#decision-tree .dt-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: rgba(61, 165, 244, 0.12);
  color: #3da5f4;
}

#decision-tree .dt-card-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

#decision-tree .dt-card-item.orange h4,
#decision-tree .dt-card-item.orange .dt-card-icon {
  color: #f6a623;
}

#decision-tree .dt-card-item.orange .dt-card-icon {
  background: rgba(246, 166, 35, 0.12);
}

#decision-tree .dt-card-item.vert h4,
#decision-tree .dt-card-item.vert .dt-card-icon {
  color: #2ecc71;
}

#decision-tree .dt-card-item.vert .dt-card-icon {
  background: rgba(46, 204, 113, 0.12);
}

#decision-tree .dt-card-item.bleu h4,
#decision-tree .dt-card-item.bleu .dt-card-icon {
  color: #3da5f4;
}

#decision-tree .dt-card-item.bleu .dt-card-icon {
  background: rgba(61, 165, 244, 0.12);
}

#decision-tree .dt-card-item.gris h4,
#decision-tree .dt-card-item.gris .dt-card-icon {
  color: #495b70;
}

#decision-tree .dt-card-item.gris .dt-card-icon {
  background: rgba(73, 91, 112, 0.12);
}
/* ======================================================
   HISTORIQUE DES CHOIX
====================================================== */

/* Wrapper de l'historique - EN DEHORS du dt-content */
.dt-history-wrapper {
  width: 100%;
  margin-bottom: 24px;
}

/* Conteneur de l'historique - FULL WIDTH, pas dans la grille */
.dt-choices-history {
  width: 100%;
  padding: 24px;
  background: linear-gradient(135deg, #f9faff, #ffffff);
  border-radius: 16px;
  border: 2px solid rgba(61, 165, 244, 0.2);
  box-shadow: 0 4px 12px rgba(20, 30, 60, 0.05);
}

.dt-choices-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e245c;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(61, 165, 244, 0.15);
}

.dt-choices-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dt-choice-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e0e5ed;
  transition: all 0.3s ease;
}

.dt-choice-item:hover {
  border-color: #3da5f4;
  box-shadow: 0 4px 12px rgba(61, 165, 244, 0.1);
  transform: translateX(4px);
}

.dt-choice-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #3da5f4, #2e8dd6);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.dt-choice-content {
  flex: 1;
}

.dt-choice-question {
  font-size: 15px;
  font-weight: 600;
  color: #1e245c;
  margin-bottom: 4px;
  line-height: 1.4;
}

.dt-choice-answer {
  font-size: 14px;
  font-weight: 600;
  color: #3da5f4;
  line-height: 1.4;
}

/* Dans le formulaire */
.dt-form-history {
  margin-bottom: 24px;
}

.dt-form-history .dt-choices-history {
  background: rgba(61, 165, 244, 0.05);
  border-color: rgba(61, 165, 244, 0.3);
}

/* Animation d'apparition */
.dt-choice-item {
  animation: slideInRight 0.3s ease;
  animation-fill-mode: both;
}

.dt-choice-item:nth-child(1) {
  animation-delay: 0s;
}
.dt-choice-item:nth-child(2) {
  animation-delay: 0.05s;
}
.dt-choice-item:nth-child(3) {
  animation-delay: 0.1s;
}
.dt-choice-item:nth-child(4) {
  animation-delay: 0.15s;
}
.dt-choice-item:nth-child(5) {
  animation-delay: 0.2s;
}
.dt-choice-item:nth-child(6) {
  animation-delay: 0.25s;
}
.dt-choice-item:nth-child(7) {
  animation-delay: 0.3s;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .dt-choices-history {
    padding: 20px;
    margin-bottom: 24px;
  }

  .dt-choices-title {
    font-size: 18px;
  }

  .dt-choice-item {
    padding: 12px;
  }

  .dt-choice-question {
    font-size: 14px;
  }

  .dt-choice-answer {
    font-size: 13px;
  }

  .dt-choice-number {
    min-width: 24px;
    height: 24px;
    font-size: 12px;
  }
}

/* Style pour le champ caché du formulaire (pour debug) */
#input_1_6[type="hidden"] {
  display: none !important;
}
