/* ============================================================
   Créations Adélice — Page Soumission (formulaire 4 étapes)
   S'appuie sur les tokens définis dans styles.css
   ============================================================ */

.soumission-main {
  padding-top: var(--header-h);
  background: var(--cream);
}

.soumission-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1rem, 2vw, 1.5rem);
  text-align: center;
}
.soumission-intro {
  max-width: 560px;
  margin-inline: auto;
}

.soumission-wizard {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(4rem, 8vw, 6rem);
}
.soumission-container {
  max-width: 860px;
}

/* ---------- Barre de progression ---------- */
.wizard-progress[hidden] { display: none; }
.wizard-form[hidden]     { display: none; }
.wizard-progress {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  padding: 0;
  position: relative;
}
.wizard-progress::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}
.wp-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
}
.wp-dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink-muted);
  transition: all var(--dur) var(--ease);
}
.wp-label {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color var(--dur) var(--ease);
}
.wp-step.is-current .wp-dot {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.wp-step.is-current .wp-label { color: var(--ink); }
.wp-step.is-done .wp-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.wp-step.is-done .wp-label { color: var(--gold-deep); }

/* ---------- Carte formulaire ---------- */
.wizard-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.6rem, 4vw, 3rem);
}

.wizard-step {
  display: none;
  border: none;
  margin: 0;
  padding: 0;
  min-inline-size: auto;
}
.wizard-step.is-active {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  animation: stepIn 0.45s var(--ease);
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.wizard-legend {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--ink);
  padding: 0;
  margin-bottom: 0.4rem;
}

.field-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.field-label em,
.field label em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
.field-help {
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin: 0.1rem 0 0.2rem;
  line-height: 1.55;
}

/* ---------- Pastilles de choix ---------- */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.35rem;
}
.choice {
  position: relative;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice span {
  display: inline-block;
  padding: 0.62em 1.15em;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--cream);
  transition: all 0.25s var(--ease);
  line-height: 1.3;
}
.choice:hover span {
  border-color: var(--gold);
  color: var(--ink);
}
.choice input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Grandes pastilles — question d'accueil (type d'événement) */
.choices-lg { gap: 0.8rem; margin-top: 0.6rem; }
.choices-lg .choice span {
  padding: 0.95em 1.6em;
  font-size: 0.98rem;
  border-radius: var(--r-lg);
  background: var(--white);
}
.wizard-lead-soft {
  margin: -0.3rem 0 0.4rem;
  font-size: 0.95rem;
}

/* Icônes et pastilles de couleur dans les choix */
.choice .picto {
  vertical-align: -4px;
  margin-right: 0.45em;
  padding: 0;
  border: none;
  background: none;
}
.choice .dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  padding: 0;
  margin-right: 0.5em;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 50%;
  background: none;
  vertical-align: -1px;
}
.choice .dot--autre {
  background: transparent;
  border: 1.5px dashed var(--gold);
}
.choice input:checked + span .dot {
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---------- Champs conditionnels ---------- */
.conditional { display: none; }
.conditional.is-visible {
  display: flex;
  margin-top: 0.9rem;
  animation: stepIn 0.35s var(--ease);
}
.mariage-section.conditional.is-visible { display: block; }

/* ---------- Section mariage ---------- */
.mariage-section {
  border: 1px solid var(--champagne);
  border-radius: var(--r-lg);
  background: var(--cream-2);
  padding: clamp(1.2rem, 3vw, 1.8rem);
}
.mariage-section .field { margin-bottom: 1.4rem; }
.mariage-section .field:last-child,
.mariage-section .field-row:last-child { margin-bottom: 0; }
.mariage-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 1.2rem;
  color: var(--gold-deep);
}

/* ---------- Zone de téléversement ---------- */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.8rem 1rem;
  border: 1.5px dashed var(--champagne);
  border-radius: var(--r-lg);
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 0.92rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s var(--ease);
}
.upload-zone:hover,
.upload-zone.is-dragover {
  border-color: var(--gold);
  background: var(--cream-2);
  color: var(--ink);
}
.upload-zone svg { color: var(--gold); }

.upload-list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.upload-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4em 0.6em 0.4em 0.9em;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.upload-list button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--champagne);
  color: var(--ink);
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.upload-list button:hover { background: var(--gold); color: var(--white); }

/* ---------- Consentement ---------- */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1.55;
}
.consent input {
  margin-top: 0.25em;
  width: 17px;
  height: 17px;
  accent-color: var(--gold-deep);
  flex: none;
}

/* ---------- Honeypot ---------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- Navigation du wizard ---------- */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.wizard-nav .btn { min-width: 150px; }
.wizard-nav .btn[hidden] { display: none; }
#btnNext, #btnSubmit { margin-left: auto; }
.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- Erreurs ---------- */
.field.has-error input,
.field.has-error textarea {
  border-color: #b0442f;
  box-shadow: 0 0 0 3px rgba(176, 68, 47, 0.12);
}
.choices.has-error .choice span { border-color: #b0442f; }
.consent.has-error span { color: #b0442f; }

/* ---------- Confirmation ---------- */
.wizard-success {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.wizard-success[hidden] { display: none; }
.wizard-success svg { color: var(--gold); }
.wizard-success h2 {
  font-family: var(--script);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}
.wizard-success p {
  max-width: 460px;
  color: var(--ink-soft);
  margin: 0 0 0.8rem;
}

/* ---------- Bloc Calendly (leads premium) ---------- */
.wizard-lead {
  background: var(--cream-2);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 0.9rem 1.1rem;
  margin: -0.4rem 0 0.2rem;
}
.wizard-lead strong { color: var(--gold-deep); font-weight: 500; }

.calendly-block {
  width: 100%;
  margin-top: 1.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.calendly-block h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 500;
  margin: 0 0 0.6rem;
  color: var(--ink);
}
.calendly-block > p {
  max-width: 520px;
  margin: 0 auto 1.4rem;
  color: var(--ink-soft);
}
.calendly-embed {
  width: 100%;
  height: 680px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--white);
}
.calendly-fallback {
  background: var(--cream-2);
  border-radius: var(--r);
  padding: 1rem 1.3rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .wp-label { display: none; }
  .wizard-progress::before { left: 12%; right: 12%; }
  .wizard-nav { flex-direction: column-reverse; }
  .wizard-nav .btn { width: 100%; }
  #btnNext, #btnSubmit { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-step.is-active,
  .conditional.is-visible { animation: none; }
}
