/* ============================================================
   Wizard "Demarrer un projet" - styles V1.1
   ============================================================ */

.wizard-section {
  padding: 80px 0 120px;
  background: #fafafa;
  min-height: calc(100vh - 200px);
}

.wizard-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.wizard-intro {
  text-align: center;
  margin-bottom: 40px;
}

.wizard-intro h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 12px;
  font-weight: 600;
}

.wizard-intro p {
  color: #555;
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.5;
}

#wizard-root {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding: 32px;
  scroll-margin-top: 80px;
}

/* ----- Progress bar ----- */
.wizard-header {
  margin-bottom: 32px;
}

.wizard-progress-bar {
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  background: #1a1a1a;
  border-radius: 3px;
  transition: width 0.35s ease;
}

.wizard-progress-label {
  text-align: right;
  font-size: 0.85rem;
  color: #888;
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* ----- Step header ----- */
.wizard-step {
  position: relative;
}

.wizard-title {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  margin: 0 0 8px;
  font-weight: 600;
  color: #1a1a1a;
}

.wizard-subtitle {
  color: #666;
  margin: 0 0 28px;
  line-height: 1.5;
}

.wizard-step-body {
  margin-bottom: 24px;
}

/* ----- Radio cards (step "type de projet") ----- */
.wizard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.wizard-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  border: 1.5px solid #e5e5e5;
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  transition: all 0.15s ease;
}

.wizard-card:hover {
  border-color: #999;
  transform: translateY(-1px);
}

.wizard-card.is-selected {
  border-color: #1a1a1a;
  background: #fafafa;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
}

.wizard-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wizard-card-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.wizard-card-label {
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a;
}

.wizard-card-desc {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.4;
}

/* ----- Radios verticaux ----- */
.wizard-radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wizard-radio {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  transition: all 0.15s ease;
  font-size: 0.98rem;
  color: #333;
}

.wizard-radio:hover {
  border-color: #999;
  background: #fafafa;
}

.wizard-radio.is-selected {
  border-color: #1a1a1a;
  background: #fafafa;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
}

.wizard-radio input[type="radio"] {
  accent-color: #1a1a1a;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

/* ----- Champs texte / select / textarea ----- */
.wizard-field {
  margin-bottom: 18px;
}

.wizard-field label {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 6px;
}

.wizard-field input[type="text"],
.wizard-field input[type="email"],
.wizard-field input[type="tel"],
.wizard-field select,
.wizard-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.98rem;
  font-family: inherit;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.wizard-field input:focus,
.wizard-field select:focus,
.wizard-field textarea:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}

.wizard-field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* ----- Checkbox ----- */
.wizard-field-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  color: #444;
  line-height: 1.5;
}

.wizard-field-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: #1a1a1a;
}

/* ----- Radio inline (canal de contact) ----- */
.wizard-field-inline-radios {
  margin: 8px 0 18px;
}

.wizard-field-label {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 8px;
}

.wizard-inline-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wizard-inline-radios label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.92rem;
  transition: all 0.15s ease;
}

.wizard-inline-radios label.is-selected {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #fff;
}

.wizard-inline-radios input[type="radio"] {
  display: none;
}

/* ----- Turnstile ----- */
.wizard-turnstile {
  margin-top: 12px;
  margin-bottom: 8px;
}

.wizard-help-warning {
  background: #fff7e6;
  border: 1px solid #ffd591;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #874d00;
  margin: 8px 0 0;
}

/* ----- Erreur ----- */
.wizard-error {
  min-height: 24px;
  margin-top: 12px;
  color: #c0392b;
  font-size: 0.92rem;
  font-weight: 500;
}

.wizard-error:empty {
  margin-top: 0;
}

/* ----- Navigation ----- */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid #eee;
  margin-top: 8px;
}

.wizard-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.wizard-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wizard-btn-secondary {
  background: #f4f4f4;
  color: #555;
}

.wizard-btn-secondary:hover:not(:disabled) {
  background: #e8e8e8;
}

.wizard-btn-primary {
  background: #1a1a1a;
  color: #fff;
  min-width: 200px;
}

.wizard-btn-primary:hover:not(:disabled) {
  background: #000;
  transform: translateY(-1px);
}

/* ============================================================
   Page merci
   ============================================================ */
.thank-you-section {
  padding: 120px 0 160px;
  text-align: center;
  background: #fafafa;
  min-height: calc(100vh - 200px);
}

.thank-you-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding: 48px 32px;
}

.thank-you-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.thank-you-card h1 {
  font-size: 1.8rem;
  margin: 0 0 12px;
  color: #1a1a1a;
}

.thank-you-card p {
  color: #555;
  line-height: 1.6;
  margin: 0 0 16px;
}

.thank-you-ref {
  display: inline-block;
  padding: 10px 18px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1rem;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  margin: 12px 0 24px;
}

.thank-you-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.thank-you-actions a {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  transition: all 0.15s ease;
}

.thank-you-actions .btn-primary {
  background: #1a1a1a;
  color: #fff;
}

.thank-you-actions .btn-primary:hover {
  background: #000;
}

.thank-you-actions .btn-secondary {
  background: #f4f4f4;
  color: #555;
}

.thank-you-actions .btn-secondary:hover {
  background: #e8e8e8;
}

/* ============================================================
   Composants additionnels (utilises sur contact.html + header)
   ============================================================ */

/* Lien Contact discret a cote du CTA primaire dans le header */
.header-link-secondary {
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
  margin-right: 16px;
  transition: color 0.15s ease;
}
.header-link-secondary:hover { color: #1a1a1a; }

/* Banniere de redirection vers le wizard sur la page contact */
.contact-cta-banner {
  background: linear-gradient(135deg, #fafafa, #f0f0f0);
  border-left: 4px solid #1a1a1a;
  padding: 18px 22px;
  border-radius: 8px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-cta-banner p { margin: 0; color: #444; line-height: 1.5; font-size: 0.95rem; }
.contact-cta-banner strong { color: #1a1a1a; }
.contact-cta-banner .btn-primary {
  align-self: flex-start;
  background: #1a1a1a; color: #fff; padding: 10px 18px;
  border-radius: 6px; text-decoration: none; font-size: 0.95rem;
  font-weight: 500; transition: all 0.15s ease;
}
.contact-cta-banner .btn-primary:hover { background: #000; transform: translateY(-1px); }

/* Checkbox dans contact form */
.form-group-checkbox label {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; font-size: 0.92rem; color: #444; line-height: 1.5;
}
.form-group-checkbox input[type="checkbox"] {
  margin-top: 3px; width: 18px; height: 18px; flex: 0 0 18px;
  accent-color: #1a1a1a;
}

/* Message d'erreur/succes contact form */
.form-error {
  min-height: 24px; margin-top: 12px;
  font-size: 0.92rem; font-weight: 500;
}

/* CTA mobile menu */
.mobile-menu .mobile-cta {
  display: inline-block; margin-top: 8px;
  background: #1a1a1a; color: #fff !important;
  padding: 10px 18px; border-radius: 6px;
  text-align: center; font-weight: 500;
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 640px) {
  .wizard-section { padding: 40px 0 80px; }
  #wizard-root { padding: 20px 18px; border-radius: 8px; }
  .wizard-cards { grid-template-columns: 1fr; }
  .wizard-nav { flex-direction: column-reverse; }
  .wizard-btn { width: 100%; }
  .thank-you-card { padding: 32px 20px; margin: 0 18px; }
}
