.simulateur-travaux {
    background: #fff;
    border: 2px solid #009EDF;
    padding: 20px;
    border-radius: 10px;
    font-family: sans-serif;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.steps-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.step-indicator {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0e7ef;
  color: #009EDF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  border: 2px solid #009EDF;
  transition: background 0.2s, color 0.2s;
}
.step-indicator.active, .step-indicator[data-active="true"] {
  background: #009EDF;
  color: #fff;
}
.etape {
  margin-bottom: 10px;
}
.etape-titre {
  color: #009EDF;
  margin-bottom: 20px;
  font-size: 1.3em;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}
.actions-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}
button, .btn-devis {
  background: #009EDF;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-weight: 500;
}
button:hover, .btn-devis:hover {
  background: #007bb8;
  transform: translateY(-1px);
}
button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}
input, select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #bcdff6;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
input:focus, select:focus {
  outline: none;
  border-color: #009EDF;
  box-shadow: 0 0 0 2px rgba(0, 158, 223, 0.1);
}
input.error, select.error {
  border-color: #e74c3c;
  background-color: #fdf2f2;
}
label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}
.helper-text {
  color: #666;
  font-size: 0.9em;
  margin-top: -10px;
  margin-bottom: 15px;
  display: block;
}
/* Messages de simulation */
.simulation-message {
  padding: 12px 16px;
  margin-bottom: 15px;
  border-radius: 6px;
  font-weight: 500;
}
.simulation-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.simulation-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.simulation-message.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}
/* Informations sur les services */
.service-info {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
}
.service-info h4 {
  color: #009EDF;
  margin-bottom: 10px;
  font-size: 1.1em;
}
.service-info p {
  margin-bottom: 10px;
  color: #495057;
  line-height: 1.5;
}
.service-info small {
  color: #6c757d;
  font-style: italic;
}
/* Conteneur de surface conditionnel */
#surface-container {
  margin: 15px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 5px;
}
/* Notice rénovation globale */
.info-box {
  background: #e7f3ff;
  border: 1px solid #b8daff;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
}
.info-box h4 {
  color: #004085;
  margin-bottom: 15px;
}
.info-box p {
  margin-bottom: 10px;
  color: #004085;
}
.info-box ul {
  margin: 10px 0;
  padding-left: 20px;
}
.info-box li {
  margin-bottom: 5px;
  color: #004085;
}
/* Barème des revenus */
.revenus-info {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
}
.revenus-info h4 {
  color: #856404;
  margin-bottom: 15px;
}
.revenus-info table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}
.revenus-info th, .revenus-info td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: center;
}
.revenus-info th {
  background: #f8f9fa;
  font-weight: 600;
}
/* Informations CEE */
.cee-info {
  background: #e8f5e8;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
}
.cee-info h4 {
  color: #155724;
  margin-bottom: 15px;
}
.cee-info p {
  color: #155724;
  margin-bottom: 8px;
}
/* Tableau des aides (étape 4) */
#tableau-aides-container {
  min-height: 100px;
  margin: 15px 0;
}
.aides-preview {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
}
.aides-preview h4 {
  color: #009EDF;
  margin-bottom: 15px;
}
.estimation-summary {
  margin-bottom: 20px;
}
.cout-item {
  font-size: 1.1em;
  font-weight: 600;
  color: #495057;
  margin-bottom: 15px;
  padding: 10px;
  background: #e9ecef;
  border-radius: 5px;
}
.aides-list-preview {
  margin: 15px 0;
}
.aide-item {
  background: #e8f5e8;
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 5px;
  border-left: 4px solid #28a745;
}
.total-aides-preview {
  background: #d4edda;
  padding: 12px;
  border-radius: 5px;
  font-weight: 600;
  color: #155724;
  text-align: center;
  margin: 15px 0;
}
.reste-preview {
  background: #fff3cd;
  padding: 12px;
  border-radius: 5px;
  font-weight: 600;
  color: #856404;
  text-align: center;
}
.no-aides-preview {
  background: #f8d7da;
  padding: 12px;
  border-radius: 5px;
  color: #721c24;
  text-align: center;
  margin-bottom: 15px;
}
.eligibilite-info {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #dee2e6;
}
.eligibilite-info h5 {
  color: #495057;
  margin-bottom: 10px;
}
.eligibilite-info ul {
  list-style: none;
  padding: 0;
}
.eligibilite-info li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.eligibilite-info li:last-child {
  border-bottom: none;
}
/* Estimation finale (étape 5) */
.estimation-box {
  background: #f6fbff;
  border: 1px solid #bcdff6;
  border-radius: 8px;
  padding: 18px;
  margin-top: 18px;
  margin-bottom: 10px;
}
.estimation-finale {
  padding: 20px 0;
}
.estimation-finale h3 {
  color: #009EDF;
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.4em;
}
.recap-projet {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}
.recap-projet h4 {
  color: #495057;
  margin-bottom: 15px;
}
.projet-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.detail-item {
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}
.detail-item:last-child {
  border-bottom: none;
}
.estimation-financiere {
  background: #fff;
  border: 2px solid #009EDF;
  border-radius: 10px;
  padding: 25px;
}
.cout-total-final {
  text-align: center;
  font-size: 1.3em;
  margin-bottom: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border-left: 4px solid #009EDF;
}
.cout-total-final span {
  color: #009EDF;
  font-weight: bold;
}
.aides-finales {
  margin: 20px 0;
}
.aides-finales h4 {
  color: #155724;
  margin-bottom: 15px;
}
.aide-finale {
  background: #e8f5e8;
  padding: 12px 15px;
  margin-bottom: 8px;
  border-radius: 5px;
  border-left: 4px solid #28a745;
}
.total-aides-final {
  background: #d4edda;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1em;
  color: #155724;
  margin-top: 15px;
}
.reste-final {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}
.reste-final h4 {
  color: #856404;
  margin-bottom: 15px;
}
.montant-final {
  font-size: 1.8em;
  font-weight: bold;
  color: #856404;
  margin: 10px 0;
}
.message-gratuit {
  color: #155724;
  font-weight: bold;
  background: #d4edda;
  padding: 10px;
  border-radius: 5px;
  margin-top: 15px;
}
.aucune-aide {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}
/* Rénovation globale spéciale */
.renovation-globale {
  text-align: center;
}
.contact-prioritaire {
  background: #e7f3ff;
  border: 2px solid #009EDF;
  border-radius: 10px;
  padding: 25px;
  margin-top: 20px;
}
.contact-prioritaire h4 {
  color: #009EDF;
  margin-bottom: 15px;
}
.contact-prioritaire ul {
  text-align: left;
  display: inline-block;
  margin: 15px 0;
}
/* Service Client */
.service-client-info {
  background: #e7f3ff;
  border: 1px solid #b8daff;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}
.service-client-info h4 {
  color: #004085;
  margin-bottom: 15px;
}
.service-client-info ul {
  margin: 15px 0;
  padding-left: 0;
  list-style: none;
}
.service-client-info li {
  padding: 5px 0;
  color: #004085;
}
/* Confirmation devis */
.confirmation-devis {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 25px;
  margin-top: 20px;
}
.confirmation-devis h3 {
  color: #155724;
  margin-bottom: 15px;
  text-align: center;
}
.recap-contact {
  background: #fff;
  padding: 15px;
  border-radius: 5px;
  margin: 15px 0;
}
.recap-contact h4 {
  color: #495057;
  margin-bottom: 10px;
}
.contact-info div {
  padding: 5px 0;
  border-bottom: 1px solid #e9ecef;
}
.contact-info div:last-child {
  border-bottom: none;
}
.next-steps {
  background: #fff;
  padding: 15px;
  border-radius: 5px;
  margin-top: 15px;
}
.next-steps h4 {
  color: #495057;
  margin-bottom: 10px;
}
.next-steps ol {
  margin: 10px 0;
  padding-left: 20px;
}
.next-steps li {
  padding: 5px 0;
  color: #495057;
}
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.loader {
  border: 4px solid #e0e7ef;
  border-top: 4px solid #009EDF;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Bouton de calcul */
.calculate-container {
  text-align: center;
  padding: 30px 20px;
}
.calculate-container p {
  font-size: 1.1em;
  color: #495057;
  margin-bottom: 20px;
}
#btn-calculate {
  background: #009EDF;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.1em;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 158, 223, 0.3);
}
#btn-calculate:hover {
  background: #007bb8;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 158, 223, 0.4);
}
#btn-calculate .icon {
  font-size: 1.2em;
  margin-right: 8px;
}
.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 12px 15px;
  border-radius: 5px;
  margin: 10px 0;
  text-align: center;
}
/* Groupes d'options dans les selects */
optgroup {
  font-weight: bold;
  color: #495057;
  padding: 5px 0;
}
option {
  font-weight: normal;
  padding: 5px;
}
/* Responsive */
@media (max-width: 768px) {
  .simulateur-travaux {
    padding: 15px;
    max-width: 100%;
    margin: 10px;
  }
  .steps-indicator {
    max-width: 100%;
    font-size: 0.9em;
  }
  .step-indicator {
    width: 32px;
    height: 32px;
    font-size: 1em;
  }
  .actions-row {
    flex-direction: column;
    gap: 8px;
  }
  button, .btn-devis {
    padding: 10px 20px;
    font-size: 0.95em;
  }
  input, select {
    font-size: 16px; /* Évite le zoom sur iOS */
  }
  .etape-titre {
    font-size: 1.2em;
  }
  .cout-total-final {
    font-size: 1.1em;
    padding: 12px;
  }
  .montant-final {
    font-size: 1.5em;
  }
  .aide-finale, .aide-item {
    padding: 10px 12px;
    font-size: 0.95em;
  }
  .projet-details {
    font-size: 0.95em;
  }
  .service-info, .info-box, .revenus-info, .cee-info {
    padding: 15px;
  }
  .confirmation-devis, .contact-prioritaire {
    padding: 20px;
  }
}
@media (max-width: 480px) {
  .simulateur-travaux {
    padding: 10px;
    margin: 5px;
  }
  .steps-indicator {
    margin-bottom: 20px;
  }
  .step-indicator {
    width: 28px;
    height: 28px;
    font-size: 0.9em;
  }
  .etape-titre {
    font-size: 1.1em;
    margin-bottom: 15px;
  }
  input, select {
    padding: 8px 10px;
  }
  .service-info, .info-box {
    padding: 12px;
  }
  .estimation-financiere {
    padding: 15px;
  }
}
/* Formulaire de contact de l'estimation */
.contact-intro {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.contact-intro h4 {
    color: #009EDF;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.contact-intro p {
    color: #495057;
    margin-bottom: 0;
    line-height: 1.5;
}

#form-contact-estimation {
    background: white;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#btn-get-estimation {
    background: #009EDF;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 158, 223, 0.3);
    width: 100%;
    margin-top: 10px;
}

#btn-get-estimation:hover {
    background: #007bb8;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 158, 223, 0.4);
}

#btn-get-estimation:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#btn-get-estimation .icon {
    font-size: 1.2em;
    margin-right: 8px;
}

/* Message de confirmation */
.contact-confirmation-message {
    margin: 20px 0;
}

.highlight-box {
    background: #e7f3ff;
    border: 2px solid #009EDF;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.highlight-box h4 {
    color: #009EDF;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.highlight-box p {
    color: #004085;
    margin-bottom: 10px;
    font-weight: 500;
}

.highlight-box ul {
    margin: 10px 0;
    padding-left: 20px;
}

.highlight-box li {
    margin-bottom: 8px;
    color: #004085;
    font-weight: 500;
}

/* Styles pour le récapitulatif des informations */
.recap-contact {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.recap-contact h4 {
    color: #009EDF;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-info div {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-weight: 500;
    color: #495057;
}

.contact-info div:last-child {
    border-bottom: none;
}

.contact-info span {
    font-weight: normal;
    color: #6c757d;
}

/* Amélioration du service client info */
.service-client-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.service-client-info h4 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.service-client-info p {
    color: #856404;
    margin-bottom: 8px;
    font-weight: 500;
}