/* =========================================================
   KJ · Talent Acquisition — Conversational Form
   Direction : éditorial / club privé · twilight golden hour
   Contrastes WCAG AA validés (cream sur espresso = 13:1)
   ========================================================= */

:root {
  /* === Espresso / depth === */
  --espresso-950: #18090A;
  --espresso-900: #1F0E08;
  --espresso-800: #2A1810;
  --espresso-700: #3D2418;
  --espresso-600: #5C3A26;
  --espresso-500: #7A4F36;

  /* === Gold / accents === */
  --gold-100: #F5E5C2;
  --gold-200: #E5C893;
  --gold-300: #D4A574;
  --gold-400: #C9A96E;   /* main */
  --gold-500: #B08855;
  --gold-600: #8C6B3D;
  --gold-700: #6B4F28;

  /* === Cream / surface === */
  --cream-50:  #FFFCF7;
  --cream-100: #FAF3E5;
  --cream-200: #F5EBD7;
  --cream-300: #EDDFC2;
  --cream-400: #DDC8A0;

  /* === Ink === */
  --ink-900:  #14080A;
  --ink-800:  #1F0E08;
  --ink-700:  #3D2418;
  --ink-600:  #5C3A26;
  --ink-500:  #7A5538;
  --ink-400:  #9B7B5C;

  /* === Aliases sémantiques === */
  --bg:           var(--cream-100);
  --surface:      var(--cream-50);
  --surface-alt:  var(--cream-200);
  --aside-bg:     var(--espresso-900);
  --aside-fg:     var(--cream-100);
  --aside-fg-mu:  rgba(250, 243, 229, 0.62);
  --aside-fg-dim: rgba(250, 243, 229, 0.38);
  --accent:       var(--gold-400);
  --accent-hi:    var(--gold-200);
  --accent-lo:    var(--gold-600);
  --text:         var(--ink-800);
  --text-mu:      var(--ink-500);
  --border:       rgba(61, 36, 24, 0.14);
  --border-hi:    rgba(61, 36, 24, 0.28);
  --border-aside: rgba(245, 229, 194, 0.16);

  /* Effects */
  --shadow-soft:  0 1px 2px rgba(20, 8, 10, 0.04), 0 12px 32px rgba(20, 8, 10, 0.08);
  --shadow-card:  0 1px 2px rgba(20, 8, 10, 0.06), 0 32px 80px -16px rgba(20, 8, 10, 0.28);
  --glow-warm:    0 0 0 1px rgba(201, 169, 110, 0.4), 0 0 28px -2px rgba(201, 169, 110, 0.55), 0 0 60px -8px rgba(201, 169, 110, 0.35);
  --glow-soft:    0 0 24px -4px rgba(201, 169, 110, 0.4);

  /* Radius */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;

  /* Typography */
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-mono:    ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* Layout */
  --shell-max-w: 1240px;
  --shell-max-h: 780px;
  --aside-w: 400px;
  --pad-x: clamp(1.4rem, 3.5vw, 3rem);
  --pad-y: clamp(1.5rem, 4vh, 3rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 220ms;
  --t-mid:  420ms;
  --t-slow: 680ms;
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 100% 0%, rgba(201, 169, 110, 0.18) 0%, transparent 55%),
    radial-gradient(900px 600px at 0% 100%, rgba(61, 36, 24, 0.10) 0%, transparent 50%),
    var(--cream-100);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "cv11";
}

/* Subtle paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.12 0 0 0 0 0.05 0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.55;
  mix-blend-mode: multiply;
}

button { font-family: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .35; }
input, select, textarea, button { font-family: inherit; color: inherit; }

kbd {
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(61, 36, 24, 0.06);
  border: 1px solid var(--border);
  color: var(--ink-700);
  font-weight: 500;
}

/* Smooth font selectors */
.serif    { font-family: var(--font-display); font-weight: 400; }
.serif-it { font-family: var(--font-display); font-weight: 400; font-style: italic; }
.mono     { font-family: var(--font-mono); }

/* =========================================================
   Shell — Mobile first
   ========================================================= */
.shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  z-index: 2;
}

/* =========================================================
   ASIDE — espresso deep, cream + gold accents
   ========================================================= */
.aside {
  background: var(--aside-bg);
  color: var(--aside-fg);
  padding: 1.5rem var(--pad-x);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Layered atmospheric gradients on aside */
.aside::before,
.aside::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.aside::before {
  inset: 0;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(201, 169, 110, 0.22), transparent 60%),
    radial-gradient(70% 70% at 0% 100%, rgba(176, 136, 85, 0.16), transparent 65%),
    linear-gradient(180deg, rgba(245, 229, 194, 0.04), transparent 40%);
}
.aside::after {
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95 0 0 0 0 0.85 0 0 0 0 0.65 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.7;
  mix-blend-mode: overlay;
}

.aside__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* === Brand block === */
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.monogram {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  position: relative;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.monogram svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 4px;
}
.brand__name {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: -0.01em;
  color: var(--gold-100);
}
.brand__role {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aside-fg-mu);
}

/* Mobile : hide rest, keep header compact */
.aside__divider,
.aside__intro,
.aside__contact,
.aside__footer { display: none; }

/* =========================================================
   PANEL — form area
   ========================================================= */
.panel {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  min-height: 0;
}

/* Progress */
.progress {
  position: relative;
  height: 2px;
  background: rgba(61, 36, 24, 0.07);
  flex-shrink: 0;
}
.progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-500) 0%, var(--gold-300) 50%, var(--gold-200) 100%);
  transition: width var(--t-mid) var(--ease);
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.6);
}

/* Form */
.form {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
}
.steps {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* =========================================================
   Step
   ========================================================= */
.step {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--pad-y) var(--pad-x);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  /* transitions gérées par GSAP */
}
.step.is-active {
  pointer-events: auto;
}

.step__inner {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: 1rem 0 7rem;
}
.step__inner--center {
  align-items: center;
  text-align: center;
}

/* Eyebrow / counter — small mono caps */
.step__eyebrow,
.step__counter {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.step__counter::before {
  content: "—";
  color: var(--ink-400);
  letter-spacing: 0;
}

/* Question — large editorial serif italic */
.step__question {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.85rem, 5.2vw, 2.85rem);
  line-height: 1.08;
  margin: 0;
  color: var(--ink-900);
  letter-spacing: -0.018em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  flex-wrap: wrap;
}
.step__question em {
  font-style: italic;
  color: var(--gold-700);
}
.step__icon {
  font-size: 0.52em;
  color: var(--gold-500);
  opacity: 0.85;
  flex-shrink: 0;
  position: relative;
  top: 0.04em;
}

/* Input with leading icon */
.input-icon-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
}
.input-icon {
  position: static;
  color: var(--gold-600);
  font-size: 0.95rem;
  pointer-events: none;
  width: 1rem;
  margin-top: 1rem;
  text-align: center;
  flex-shrink: 0;
}
.input--icon {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  padding-left: 0;
  padding-right: 0;
}

/* Choice icon alignment */
.choice i:not(.fa-stack-1x):not(.fa-stack-2x) {
  font-size: 0.9em;
  opacity: 0.75;
  flex-shrink: 0;
  width: 1.1em;
  text-align: center;
}

.step__hint {
  margin: -0.4rem 0 0;
  color: var(--text-mu);
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 52ch;
}

.step__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

/* =========================================================
   Inputs — thin underline, refined
   ========================================================= */
.input {
  width: 100%;
  padding: 0.85rem 0;
  border: none;
  border-bottom: 1px solid var(--border-hi);
  background: transparent;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink-900);
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  border-radius: 0;
  letter-spacing: -0.005em;
}
.input::placeholder {
  color: var(--ink-400);
  font-weight: 400;
}
.input:focus {
  border-bottom-color: var(--gold-500);
  box-shadow: 0 1px 0 0 var(--gold-500);
}
.input.is-error {
  border-bottom-color: #B91C1C;
  box-shadow: 0 1px 0 0 #B91C1C;
}

.input--lg {
  font-size: clamp(1.35rem, 3.2vw, 1.65rem);
  padding: 1rem 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.input--lg::placeholder {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-400);
}

.input--area {
  border: 1px solid var(--border-hi);
  border-radius: var(--r-md);
  padding: 1.1rem 1.2rem;
  font-size: 1rem;
  background: var(--cream-50);
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
  font-family: var(--font-body);
}
.input--area:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238C6B3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 1.75rem;
  cursor: pointer;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}
@media (min-width: 600px) {
  .field-grid--2 { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Choices — refined editorial cards
   ========================================================= */
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.choice {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  color: var(--ink-800);
  padding: 0.75rem 1.05rem;
  border-radius: var(--r-sm);
  font-size: 0.97rem;
  font-weight: 500;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: -0.005em;
  transition:
    background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.choice::before {
  content: "";
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid var(--border-hi);
  background: var(--cream-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink-500);
  font-weight: 500;
  transition: all var(--t-fast) var(--ease);
}
/* Optional letter inside the box (set via JS or CSS counter) */
.choices[data-mode="single"] .choice {
  counter-increment: choice;
}
.choices[data-mode="single"] .choice::before {
  content: counter(choice, upper-alpha);
}
.choices[data-mode="multi"] .choice {
  counter-increment: mchoice;
}
.choices[data-mode="multi"] .choice::before {
  content: counter(mchoice, upper-alpha);
}
.choices { counter-reset: choice mchoice; }

/* Hover : illumination only — pas de translate/scale */
.choice:hover {
  border-color: var(--gold-500);
  background: var(--cream-50);
  box-shadow:
    0 0 0 1px var(--gold-500),
    0 0 20px -4px rgba(201, 169, 110, 0.45);
}
.choice:hover::before {
  border-color: var(--gold-500);
  background: var(--gold-100);
  color: var(--ink-900);
}

.choice.is-selected {
  background: var(--espresso-900);
  border-color: var(--espresso-900);
  color: var(--cream-100);
  box-shadow:
    0 0 0 1px var(--espresso-900),
    0 0 24px -4px rgba(201, 169, 110, 0.55),
    0 8px 24px -8px rgba(20, 8, 10, 0.35);
}
.choice.is-selected::before {
  background: var(--gold-300);
  border-color: var(--gold-300);
  color: var(--espresso-900);
  font-weight: 600;
}

/* =========================================================
   Tags input
   ========================================================= */
.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--cream-50);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-md);
  min-height: 60px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.tags:focus-within {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.18);
}
.tag {
  background: var(--espresso-900);
  color: var(--cream-100);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--gold-600);
  box-shadow: 0 0 12px -4px rgba(201, 169, 110, 0.45);
  letter-spacing: -0.005em;
}
.tag__remove {
  background: rgba(245, 229, 194, 0.18);
  border: none;
  color: var(--gold-200);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
  transition: background var(--t-fast);
}
.tag__remove:hover {
  background: var(--gold-300);
  color: var(--espresso-900);
}
.tags__input {
  flex: 1;
  min-width: 160px;
  border: none;
  background: transparent;
  outline: none;
  padding: 0.35rem 0.25rem;
  font-size: 1rem;
  color: var(--ink-900);
}
.tags__input::placeholder {
  color: var(--ink-400);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* =========================================================
   Buttons — light/glow effect, no transform on hover
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    box-shadow var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.btn--primary {
  background: var(--espresso-900);
  color: var(--cream-100);
  border-color: var(--espresso-900);
  box-shadow:
    inset 0 1px 0 rgba(245, 229, 194, 0.08),
    0 1px 2px rgba(20, 8, 10, 0.3),
    0 8px 24px -8px rgba(20, 8, 10, 0.35);
}

/* Inner radial light — animates on hover */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 50% 110%, rgba(201, 169, 110, 0.55) 0%, rgba(201, 169, 110, 0.18) 35%, transparent 70%);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease);
  z-index: -1;
}

/* Top shimmer line */
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 229, 194, 0.55), transparent);
  opacity: 0.5;
  transition: opacity var(--t-fast) var(--ease);
}

.btn--primary:hover {
  border-color: var(--gold-500);
  box-shadow:
    inset 0 1px 0 rgba(245, 229, 194, 0.18),
    0 0 0 1px var(--gold-500),
    0 0 32px -4px rgba(201, 169, 110, 0.6),
    0 0 60px -8px rgba(201, 169, 110, 0.35),
    0 8px 28px -10px rgba(20, 8, 10, 0.4);
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover::after { opacity: 1; }

.btn--primary:active {
  filter: brightness(0.96);
}

.btn__kbd {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(245, 229, 194, 0.12);
  border: 1px solid rgba(245, 229, 194, 0.22);
  color: var(--gold-200);
  letter-spacing: 0.05em;
}

/* =========================================================
   Bottom nav
   ========================================================= */
.nav {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  background: var(--cream-50);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  z-index: 5;
}
.nav__meta {
  margin: 0;
  padding: 0 0.8rem;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: var(--ink-500);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.nav__btn {
  width: 44px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--ink-700);
  font-size: 1rem;
  display: grid;
  place-items: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__btn + .nav__btn { border-left: 1px solid var(--border); }
.nav__btn:hover:not(:disabled) {
  background: var(--cream-200);
  color: var(--gold-700);
}

/* =========================================================
   Success
   ========================================================= */
.success-mark {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--espresso-900);
  color: var(--gold-200);
  margin-bottom: 0.75rem;
  border: 1px solid var(--gold-500);
  box-shadow:
    inset 0 1px 0 rgba(245, 229, 194, 0.1),
    0 0 0 8px rgba(201, 169, 110, 0.08),
    0 0 40px -4px rgba(201, 169, 110, 0.5);
  animation: pop 700ms var(--ease-out) both;
  font-size: 2.75rem;
}
@keyframes pop {
  0%   { transform: scale(0.7); opacity: 0; }
  60%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}

/* =========================================================
   DESKTOP — 2-col grid, centered, rounded
   ========================================================= */
@media (min-width: 960px) {
  body {
    display: grid;
    place-items: center;
    padding: 2rem;
  }
  .shell {
    flex-direction: row;
    width: 100%;
    max-width: var(--shell-max-w);
    height: min(var(--shell-max-h), calc(100vh - 4rem));
    min-height: 640px;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: var(--surface);
    border: 1px solid var(--border);
  }

  .aside {
    width: var(--aside-w);
    flex-shrink: 0;
    padding: 2.75rem 2.25rem 2.25rem;
    display: flex;
    flex-direction: column;
  }
  .aside__inner {
    flex: 1;
    gap: 2rem;
    height: 100%;
  }

  .monogram { width: 72px; height: 72px; }
  .brand__name { font-size: 1.85rem; }
  .brand__role { font-size: 0.66rem; }

  .aside__divider {
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-aside) 30%, var(--border-aside) 70%, transparent);
    margin: 0.25rem 0;
  }

  .aside__intro { display: block; }
  .aside__title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 2.4rem;
    line-height: 1.1;
    margin: 0 0 0.85rem;
    letter-spacing: -0.018em;
    color: var(--cream-100);
  }
  .aside__title::after {
    content: "";
  }
  .aside__lead {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--aside-fg-mu);
    max-width: 32ch;
  }

  .aside__contact {
    display: block;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-aside);
  }
  .aside__label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-300);
    margin: 0 0 1rem;
  }
  .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .contact-list li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.9rem;
    color: var(--aside-fg);
    transition: color var(--t-fast);
  }
  .contact-list li:hover { color: var(--gold-200); }
  .contact-list__icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(245, 229, 194, 0.06);
    border: 1px solid var(--border-aside);
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--gold-300);
    flex-shrink: 0;
  }
  .contact-list__text {
    color: var(--aside-fg-mu);
    font-size: 0.88rem;
    letter-spacing: -0.005em;
    text-decoration: none;
    transition: color var(--t-fast);
  }
  .contact-list__text:hover,
  .contact-list__text:focus-visible {
    color: var(--gold-200);
  }

  .aside__footer {
    display: block;
    margin: 1.25rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--aside-fg-dim);
  }

  .panel { background: var(--surface); }
  .step__inner { padding: 2rem 0 4.5rem; }
}

@media (min-width: 1200px) {
  .step__inner { max-width: 640px; gap: 1.6rem; }
  .step__question { font-size: 3.1rem; }
}

/* =========================================================
   Reduce motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.form.is-submitting { pointer-events: none; opacity: 0.7; }

/* =========================================================
   Section label (bandeau début de section)
   ========================================================= */
.step__section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(180, 136, 85, 0.08);
  border: 1px solid rgba(180, 136, 85, 0.2);
  border-radius: 999px;
  width: fit-content;
}

/* =========================================================
   Field helpers
   ========================================================= */
.field-grid--3 {
  grid-template-columns: 1fr;
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 600px) {
  .field-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
}
.field-with-label { display: flex; flex-direction: column; gap: 0.4rem; }
.field-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--ink-600);
  cursor: pointer;
  margin-top: 0.5rem;
}
.step__inner--wide { max-width: 780px; }

/* =========================================================
   Textarea with char counter
   ========================================================= */
.textarea-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}
.char-count {
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-400);
  margin-top: 0.3rem;
  letter-spacing: 0.05em;
  transition: color var(--t-fast);
}
.char-count.is-near  { color: var(--gold-600); }
.char-count.is-limit { color: #B91C1C; }

/* =========================================================
   Skill grid (hard skills rating 1–5)
   ========================================================= */
.skill-grid {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-hi);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--cream-50);
}
.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  transition: background var(--t-fast);
}
.skill-row:last-child { border-bottom: none; }
.skill-row:hover { background: var(--cream-100); }
.skill-row__name {
  font-size: 0.95rem;
  color: var(--ink-800);
  flex: 1;
  min-width: 0;
}
.skill-custom-input {
  border-bottom: 1px solid var(--border);
  padding: 0.15rem 0;
  font-size: 0.95rem;
  width: 100%;
  background: transparent;
}
.skill-stars {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}
.skill-star {
  padding: 0;
  border: none;
  background: transparent;
  line-height: 1;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: rgba(61, 36, 24, 0.24);
  font-size: 0.95rem;
  transition: color var(--t-fast), text-shadow var(--t-fast), transform var(--t-fast);
}
.skill-star i {
  display: block;
  line-height: 1;
}
.skill-star.is-filled {
  color: var(--gold-600);
  text-shadow: 0 0 8px rgba(201, 169, 110, 0.45);
}
.skill-star:hover { color: var(--gold-500); }

/* =========================================================
   Sortable drag-and-drop (critères)
   ========================================================= */
.sortable-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.sortable-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: var(--cream-50);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-sm);
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ink-800);
  cursor: grab;
  user-select: none;
  transition: background var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.sortable-item:active { cursor: grabbing; }
.sortable-item.sortable-chosen {
  background: var(--cream-100);
  border-color: var(--gold-500);
  box-shadow: 0 0 0 1px var(--gold-500), 0 8px 24px -8px rgba(180, 136, 85, 0.35);
}
.sortable-item.sortable-ghost { opacity: 0.35; }
.sortable-handle {
  color: var(--ink-400);
  font-size: 0.85rem;
  flex-shrink: 0;
  cursor: grab;
}
.sortable-item i:not(.sortable-handle) {
  color: var(--gold-600);
  font-size: 0.9em;
  opacity: 0.8;
  width: 1em;
  text-align: center;
}

/* =========================================================
   Slider (intérêt 1–10)
   ========================================================= */
.slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--gold-400) 0%,
    var(--gold-400) var(--range-pct, 60%),
    var(--border-hi) var(--range-pct, 60%),
    var(--border-hi) 100%
  );
  outline: none;
  cursor: pointer;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--espresso-900);
  border: 2px solid var(--gold-400);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(180, 136, 85, 0.15);
  transition: box-shadow var(--t-fast);
}
.range-input::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px rgba(180, 136, 85, 0.25), 0 0 20px -4px rgba(180, 136, 85, 0.5);
}
.range-input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--espresso-900);
  border: 2px solid var(--gold-400);
  cursor: pointer;
}
.range-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-400);
}
.range-display {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}
.range-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1;
}
.range-unit {
  font-size: 0.9rem;
  color: var(--ink-400);
}

/* =========================================================
   STAR block
   ========================================================= */
.star-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.star-field { display: flex; flex-direction: column; gap: 0.5rem; }
.star-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: 0.02em;
}
.star-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--espresso-900);
  color: var(--gold-200);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  font-weight: 400;
  flex-shrink: 0;
}
.star-badge--r {
  background: var(--gold-500);
  color: var(--cream-50);
}

/* =========================================================
   Repeater
   ========================================================= */
.repeater {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.repeater-block {
  background: var(--cream-50);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-md);
  overflow: hidden;
}
.repeater-block--compact .field-grid { padding: 0.85rem 1rem; }
.repeater-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(61, 36, 24, 0.04);
  border-bottom: 1px solid var(--border);
}
.repeater-block__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-600);
}
.repeater-block__remove {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-500);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.repeater-block__remove:hover {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #B91C1C;
}
.repeater-block .field-grid {
  padding: 1rem;
  gap: 1rem;
}
.repeater__add-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}
.repeater__count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-400);
  letter-spacing: 0.05em;
}

/* =========================================================
   Button ghost (repeater add)
   ========================================================= */
.btn--ghost {
  background: transparent;
  border: 1px dashed var(--border-hi);
  color: var(--ink-600);
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  border-radius: var(--r-sm);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.btn--ghost:hover {
  background: var(--cream-100);
  border-color: var(--gold-500);
  color: var(--gold-700);
  border-style: solid;
  box-shadow: 0 0 16px -4px rgba(180, 136, 85, 0.3);
}

/* =========================================================
   Upload zones (placeholder)
   ========================================================= */
.upload-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 600px) {
  .upload-grid { grid-template-columns: repeat(3, 1fr); }
}
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.5rem 1rem;
  border: 1.5px dashed var(--border-hi);
  border-radius: var(--r-md);
  text-align: center;
  position: relative;
}
.upload-zone--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--cream-100);
}
.upload-zone > i {
  font-size: 1.75rem;
  color: var(--gold-500);
  margin-bottom: 0.2rem;
}
.upload-zone__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-800);
}
.upload-zone__sub {
  font-size: 0.78rem;
  color: var(--ink-400);
}
.upload-zone__badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(180, 136, 85, 0.12);
  color: var(--gold-700);
  border: 1px solid rgba(180, 136, 85, 0.2);
}

/* =========================================================
   RGPD checkbox
   ========================================================= */
.gdpr-block {
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.gdpr-text {
  font-size: 0.85rem;
  color: var(--ink-600);
  line-height: 1.6;
  margin: 0;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.checkbox-custom {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--border-hi);
  background: var(--cream-50);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: background var(--t-fast), border-color var(--t-fast);
  margin-top: 1px;
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--espresso-900);
  border-color: var(--espresso-900);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid var(--gold-300);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
.checkbox-text {
  font-size: 0.9rem;
  color: var(--ink-700);
  line-height: 1.5;
}

/* =========================================================
   Section nav (aside desktop)
   ========================================================= */
.aside__section-nav { display: none; }

@media (min-width: 960px) {
  .aside__section-nav { display: none; }
  .section-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }
  .section-nav-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.85rem;
    color: var(--aside-fg-mu);
    padding: 0.3rem 0;
    transition: color var(--t-fast);
    cursor: default;
  }
  .section-nav-item.is-done {
    cursor: pointer;
  }
  .section-nav-item.is-done:hover {
    color: var(--gold-300);
  }
  .section-nav-item.is-active {
    color: var(--gold-200);
    font-weight: 500;
  }
  .section-nav-item.is-done {
    color: var(--gold-500);
  }
  .section-nav-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--aside-fg-dim);
    flex-shrink: 0;
    transition: background var(--t-fast), box-shadow var(--t-fast);
  }
  .section-nav-item.is-active .section-nav-dot {
    background: var(--gold-300);
    box-shadow: 0 0 8px rgba(212, 165, 116, 0.7);
  }
  .section-nav-item.is-done .section-nav-dot {
    background: var(--gold-600);
  }
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 3px;
}
.input:focus-visible { outline: none; }
.choice:focus-visible { outline-offset: 2px; }
.btn:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
}
