/* ======================================
   Styles partagés : simulateurs & quiz
   Thème sombre gradient + accents verts
   ====================================== */

/* Container principal */
.sim-container {
  background: linear-gradient(160deg, #1a1a2e 0%, #2d2d44 100%);
  border-radius: 12px;
  padding: 28px;
  margin: 24px 0;
  color: #e0e0e0;
}

/* Forcer les couleurs claires sur tous les textes dans le sim-container */
.sim-container h2,
.sim-container h3,
.sim-container h4,
.sim-container p {
  color: #e0e0e0;
}

/* Labels */
.sim-container label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #fff;
}

/* Inputs texte */
.sim-container input[type="text"],
.sim-container input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #444;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.sim-container input[type="text"]:focus,
.sim-container input[type="email"]:focus {
  border-color: #2ecc71;
}

/* Boutons toggle (billing, gateway, etc.) */
.sim-toggle-btn {
  flex: 1;
  padding: 10px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
}

.sim-toggle-btn.active {
  background: #2ecc71;
  color: #fff;
  font-weight: 600;
}

/* Boutons quiz / choix */
.sim-choice-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  margin: 10px 0;
  border: 1px solid #444;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.2s;
  box-sizing: border-box;
}

.sim-choice-btn:hover {
  background: rgba(46, 204, 113, 0.15);
  border-color: #2ecc71;
  color: #fff;
}

/* Barre de progression */
.sim-progress-bar {
  margin-bottom: 20px;
}

.sim-progress-bar .sim-progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sim-progress-bar .sim-progress-label {
  font-size: 0.8rem;
  color: #999;
}

.sim-progress-bar .sim-progress-value {
  font-size: 0.8rem;
  color: #2ecc71;
  font-weight: 600;
}

.sim-progress-bar .sim-progress-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}

.sim-progress-bar .sim-progress-fill {
  background: #2ecc71;
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}

/* Bloc stats */
.sim-stats-bar {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sim-stats-bar .sim-stat {
  text-align: center;
}

.sim-stats-bar .sim-stat-label {
  font-size: 0.8rem;
  color: #999;
}

.sim-stats-bar .sim-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 4px;
  color: #fff;
}

.sim-stats-bar .sim-stat-value.accent {
  color: #2ecc71;
}

/* Bloc résultat */
.sim-result-box {
  text-align: left;
  border: none;
  border-radius: 10px;
  padding: 28px;
}

.sim-result-box .sim-result-score {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 8px;
}

.sim-result-box .sim-result-verdict {
  font-size: 1.15em;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.sim-result-box .sim-result-detail {
  color: #999;
  margin-bottom: 20px;
}

/* CTA vert */
.sim-cta {
  display: inline-block;
  background: #2ecc71;
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: background 0.2s;
  box-shadow: none;
}

.sim-cta,
.sim-cta:visited,
.sim-cta:active {
  color: #fff !important;
}

.sim-cta:hover {
  background: #27ae60;
  color: #fff !important;
}

/* Override le debug nofollow dans les simulateurs */
.sim-container a.sim-cta[rel] {
  border: none !important;
}

/* Bouton secondaire (recommencer, etc.) */
.sim-btn-secondary {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 20px;
  border: 1px solid #444;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  cursor: pointer;
  font-size: 0.95em;
  transition: all 0.2s;
}

.sim-btn-secondary:hover {
  border-color: #666;
  color: #fff;
}

/* Bloc savings / alerte */
.sim-alert {
  margin-top: 16px;
  border-radius: 10px;
  padding: 16px 20px;
}

.sim-alert.warning {
  background: rgba(241, 196, 15, 0.1);
  border: 1px solid rgba(241, 196, 15, 0.3);
}

.sim-alert.success {
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Lead magnet */
.sim-lead-box {
  margin-top: 24px;
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 12px;
  padding: 24px;
}

.sim-lead-box .sim-lead-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 6px;
}

.sim-lead-box .sim-lead-desc {
  font-size: 0.85rem;
  color: #ccc;
  margin: 0 0 16px;
}

/* Disclaimer */
.sim-disclaimer {
  margin-top: 16px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

/* Steps (quiz multi-étapes) */
.sim-step {
  display: none;
}

.sim-step-active {
  display: block;
}

.sim-header {
  margin-bottom: 20px;
}

.sim-title,
.sim-container .sim-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff !important;
  margin: 0 0 6px;
}

.sim-container > h3:first-child {
  margin-top: 0;
}

.sim-subtitle {
  font-size: 0.9rem;
  color: #999;
  margin: 0;
}

.sim-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}

/* Boutons option (quiz inline) */
.sim-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.sim-option {
  padding: 10px 16px;
  border: 1px solid #444;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  cursor: pointer;
  font-size: 0.95em;
  transition: all 0.2s;
}

.sim-option:hover {
  background: rgba(46, 204, 113, 0.15);
  border-color: #2ecc71;
  color: #fff;
}

.sim-option-selected {
  background: #2ecc71;
  border-color: #2ecc71;
  color: #fff;
  font-weight: 600;
}

.sim-result {
  margin-top: 20px;
}

.sim-result-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.sim-result-content ul {
  margin: 8px 0 16px 20px;
  color: #e0e0e0;
}

.sim-result-content li {
  margin-bottom: 4px;
}

.sim-result-content p {
  margin-bottom: 10px;
  color: #e0e0e0;
}

/* Responsive */
@media (max-width: 640px) {
  .sim-container {
    padding: 20px;
  }

  .sim-grid-2 {
    grid-template-columns: 1fr !important;
  }

  .sim-stats-bar {
    grid-template-columns: 1fr !important;
  }

  .sim-stats-bar .sim-stat {
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 0 !important;
  }

  .sim-stats-bar .sim-stat:last-child {
    border-bottom: none;
  }

  .sim-choice-btn {
    font-size: 0.9em;
    padding: 10px 14px;
  }
}
