/* ============================================================================
   L'ŒUVRE — profil.css
   Formulaire de candidature en quizz (une question par écran).
   Reprend les tokens de styles.css.
   ========================================================================== */

.profil {
  background: var(--creme);
  min-height: 100svh;
}

/* ---------- Barre de progression ---------------------------------------- */
.quizbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 3px;
  background: color-mix(in srgb, var(--or) 14%, transparent);
}
.quizbar span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--or-clair), var(--or), var(--or-fonce));
  transition: width 0.6s var(--ease);
}

/* ---------- Nav minimale ------------------------------------------------- */
.pnav {
  position: fixed; top: 3px; left: 0; right: 0; z-index: 50;
  height: 66px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--creme) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--or-line);
}
.pnav__back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--serif); font-size: 1.15rem; color: var(--texte);
  transition: color 0.35s var(--ease);
}
.pnav__back:hover { color: var(--or-fonce); }
.pnav__title {
  font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--texte-doux);
}
.pnav__badge {
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: #35270F; padding: 0.42em 0.9em; border-radius: 100px;
  background: linear-gradient(180deg, var(--or-clair), var(--or));
}

/* ---------- Étapes ------------------------------------------------------- */
.quiz { position: relative; }
.step {
  display: none;
  min-height: 100svh;
  padding: calc(66px + clamp(2rem, 6vh, 4rem)) var(--gutter) clamp(3rem, 8vh, 5rem);
  align-items: center; justify-content: center;
}
.step.is-active { display: flex; animation: stepIn 0.7s var(--ease) both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.step__inner { width: 100%; max-width: 760px; }
.step__inner.center { text-align: center; }

.step__count {
  display: inline-block;
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.2rem;
}
.step h1, .step h2 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  color: var(--texte);
  margin-bottom: 0.7rem;
}
.step .h-gold { margin-bottom: 1.2rem; }
.step__hint {
  color: var(--texte-doux);
  font-size: 0.98rem;
  margin-bottom: 2rem;
  max-width: 56ch;
}
.step__inner.center .step__hint { margin-inline: auto; }
/* Encart « vous recevez votre profil » */
.promise {
  display: flex; align-items: flex-start; gap: 0.9rem;
  text-align: left;
  max-width: 560px; margin: 2rem auto 2.4rem;
  padding: 1.15rem 1.4rem;
  border: 1px solid var(--or-line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--or) 8%, var(--creme-clair));
}
.promise__icon {
  flex: 0 0 auto;
  font-size: 1.1rem; line-height: 1.4;
  color: var(--or);
}
.promise p { font-size: 0.95rem; line-height: 1.6; color: var(--texte-doux); }
.promise strong { color: var(--texte); font-weight: 500; }

.step__reassure {
  margin-top: 1.6rem;
  font-size: 0.85rem; color: var(--texte-doux); font-style: italic;
}
.step__reassure a { color: var(--or-fonce); text-decoration: underline; }
.lead strong { color: var(--texte); font-weight: 500; }

/* ---------- Choix -------------------------------------------------------- */
.choices { display: grid; gap: 0.85rem; }
.choices--compact { gap: 0.7rem; }

.choice {
  display: flex; align-items: flex-start; gap: 1.1rem;
  width: 100%;
  text-align: left;
  padding: 1.15rem 1.3rem;
  background: var(--creme-clair);
  border: 1px solid var(--or-line);
  border-radius: 5px;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease),
              transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.choice:hover {
  border-color: var(--or);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(160,122,24,0.65);
}
.choice__k {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 500;
  color: var(--or-fonce);
  border: 1px solid var(--or-line);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.choice__t {
  display: grid; gap: 0.25rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  line-height: 1.3;
  color: var(--texte);
}
.choice__t em {
  font-family: var(--sans); font-style: normal;
  font-size: 0.82rem; color: var(--texte-doux); line-height: 1.5;
}
.choice.is-selected {
  border-color: var(--or);
  background: color-mix(in srgb, var(--or) 9%, var(--creme-clair));
}
.choice.is-selected .choice__k {
  background: linear-gradient(180deg, var(--or-clair), var(--or));
  border-color: var(--or);
  color: #35270F;
}
.choices + .btn { margin-top: 1.8rem; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* ---------- Formulaire coordonnées -------------------------------------- */
.fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem;
  margin-bottom: 1.8rem;
}
.field { display: grid; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--texte-doux);
}
.field label span { text-transform: none; letter-spacing: 0; opacity: 0.7; }
.field input, .field textarea {
  font: inherit; font-size: 1rem;
  color: var(--texte);
  background: var(--creme-clair);
  border: 1px solid var(--or-line);
  border-radius: 4px;
  padding: 0.85em 1em;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--or);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--or) 16%, transparent);
}
.field input.is-error, .field textarea.is-error { border-color: var(--terracotta); }
.field textarea { resize: vertical; min-height: 3.4rem; }

.form__feedback {
  margin-top: 1rem; text-align: center;
  font-size: 0.9rem; color: var(--terracotta); min-height: 1.2em;
}
.form__legal {
  margin-top: 0.8rem; text-align: center;
  font-size: 0.78rem; color: var(--texte-doux);
}

/* ---------- Merci -------------------------------------------------------- */
.done__mark {
  width: 62px; height: 62px; margin: 0 auto 1.6rem;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--or-fonce);
  border: 1.5px solid var(--or-line);
  background: color-mix(in srgb, var(--or) 8%, transparent);
}
.done__next {
  max-width: 520px; margin: 2.5rem auto 2rem;
  text-align: left;
  border: 1px solid var(--or-line);
  border-radius: 5px;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--creme-clair);
}
.done__next h3 {
  font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--terracotta); font-family: var(--sans); font-weight: 500;
  margin-bottom: 1.2rem;
}
.done__next ol { counter-reset: n; display: grid; gap: 1.1rem; }
.done__next li {
  counter-increment: n;
  display: grid; gap: 0.2rem;
  padding-left: 2.4rem; position: relative;
}
.done__next li::before {
  content: counter(n);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 0.9rem; color: #35270F;
  background: linear-gradient(180deg, var(--or-clair), var(--or));
}
.done__next strong { font-family: var(--serif); font-size: 1.15rem; color: var(--texte); font-weight: 500; }
.done__next span { font-size: 0.88rem; color: var(--texte-doux); line-height: 1.55; }

.btn--ghost {
  color: var(--texte);
  border: 1px solid var(--or-line);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--or); background: color-mix(in srgb, var(--or) 8%, transparent); }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 640px) {
  .fields { grid-template-columns: 1fr; }
  .pnav__title { display: none; }
  .choice { padding: 1rem 1.05rem; gap: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .step.is-active { animation: none; }
  .choice:hover { transform: none; }
}
