/* ============================================
   ATELIER IA BERNAY — Styles page Commander
   ============================================ */

/* === Barre de progression 3 étapes === */
.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid rgba(15, 42, 74, 0.06);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 42, 74, 0.05);
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  transition: opacity 0.3s ease;
}

.step:not(.active):not(.completed) {
  opacity: 0.55;
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f4f9;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: all 0.4s var(--ease-out);
}

.step.active .step-circle {
  background: var(--navy);
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(15, 42, 74, 0.18);
}

.step.completed .step-circle {
  background: var(--gold);
  color: #fff;
}

.step.completed .step-circle::before {
  content: "✓";
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
}

.step-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.step-label strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 600;
}

.step-label span {
  font-size: 0.82rem;
  color: var(--muted);
}

.step-connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, rgba(15, 42, 74, 0.1), rgba(15, 42, 74, 0.2), rgba(15, 42, 74, 0.1));
  min-width: 30px;
  border-radius: 2px;
}

/* === Cartes d'offre clickables === */
.offer-choices .offer-choice {
  display: flex;
  flex-direction: column;
}

.offer-choices .btn-block {
  width: 100%;
  margin-top: auto;
  justify-content: center;
}

.offer-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: none;
}

.offer-link:hover {
  color: var(--navy);
  text-decoration: underline;
}

.offer-choice.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.18), 0 20px 48px rgba(15, 42, 74, 0.12);
}

.offer-choice.selected::after {
  content: "✓ Sélectionné";
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gold);
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* === Offre sur mesure === */
.custom-offer {
  margin-top: 32px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #fafbfd, #fff);
  border: 1px dashed rgba(201, 166, 107, 0.4);
}

.custom-offer h3 { margin: 8px 0 6px; }
.custom-offer p { margin: 0; }
.custom-offer .btn { flex-shrink: 0; }

/* === Conteneur de formulaires === */
.form-container {
  scroll-margin-top: 100px;
  margin-top: 28px;
}

.form-card {
  padding: 40px 36px;
  position: relative;
}

.form-header {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(15, 42, 74, 0.08);
}

.form-header .badge { margin-bottom: 12px; }
.form-header h3 { margin: 4px 0 6px; }
.form-header p { margin: 0; }

.commander-form .form-group {
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Checkboxes en grille === */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #fafbfd;
  border: 1.5px solid rgba(15, 42, 74, 0.1);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.25s ease;
}

.checkbox-item:hover {
  border-color: rgba(201, 166, 107, 0.4);
  background: #fff;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold-dark);
  cursor: pointer;
  margin: 0;
}

.checkbox-item input[type="checkbox"]:checked + span,
.checkbox-item:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--navy);
  font-weight: 600;
}

/* === Consentement === */
.form-consent {
  margin: 22px 0 6px;
  padding: 16px 18px;
  background: #fafbfd;
  border: 1px solid rgba(15, 42, 74, 0.06);
  border-radius: 10px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.5;
}

.consent-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--gold-dark);
  cursor: pointer;
}

.consent-label a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: underline;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.empty-form {
  text-align: center;
  padding: 50px 28px;
  background: linear-gradient(135deg, #fafbfd, #fff);
  border: 1px dashed rgba(15, 42, 74, 0.1);
}

.empty-form p {
  font-size: 1.05rem;
  margin: 0;
}

/* === Étape 3 : confirmation + paiement === */
.confirmation-steps .mini-card {
  padding: 28px 24px;
  text-align: center;
}

.confirmation-steps .step-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.confirmation-steps h3 {
  margin-bottom: 8px;
}

/* === Section paiement === */
.payment-section {
  margin-top: 48px;
  padding: 40px;
  background: linear-gradient(135deg, #fafbfd, #fff);
  border: 1px solid rgba(15, 42, 74, 0.06);
  border-radius: 20px;
}

.payment-title {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.4rem;
  color: var(--navy);
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.payment-card {
  padding: 24px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.payment-icon {
  font-size: 2rem;
  margin-bottom: 6px;
}

.payment-card strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}

.payment-desc {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 8px 0 12px;
  line-height: 1.55;
  flex-grow: 1;
}

.payment-available {
  border-color: rgba(15, 122, 90, 0.2);
}

.payment-available .small {
  color: #0f7a5a;
  font-weight: 600;
}

.payment-soon {
  background: linear-gradient(135deg, #f7f9fc, #fff);
  border: 1.5px dashed rgba(201, 166, 107, 0.4);
}

.badge-soon {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--gold-dark);
  border: 1px solid rgba(201, 166, 107, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.payment-soon .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  width: 100%;
  margin-top: auto;
}

.payment-info {
  text-align: center;
  padding-top: 14px;
  border-top: 1px dashed rgba(15, 42, 74, 0.1);
}

.payment-info a {
  color: var(--gold-dark);
  font-weight: 600;
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* === Responsive === */
@media (max-width: 980px) {
  .custom-offer {
    flex-direction: column;
    text-align: center;
    padding: 28px 22px;
  }
  .custom-offer .btn { width: 100%; }
}

@media (max-width: 720px) {
  .steps-bar {
    padding: 20px 14px;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .step-circle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .step-label strong { font-size: 0.9rem; }
  .step-label span { font-size: 0.72rem; }
  .step-connector { min-width: 14px; }

  .form-card {
    padding: 28px 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-direction: column;
  }
  .form-actions .btn {
    width: 100%;
  }
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  .payment-section {
    padding: 28px 20px;
  }
  .payment-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .step-label {
    display: none;
  }
  .step-circle {
    width: 40px;
    height: 40px;
  }
}
