/* IFEMOS — questionnaire préalable (reprise à l'identique du formulaire Tally, thème IFEMOS) */
:root {
  --bg: #1a1917;
  --text: #DFDFDE;
  --muted: #898884;
  --accent: #d8b049;
  --btn: #cea849;
  --field: #262522;
  --field-border: #3a3935;
  --option: #232220;
  --danger: #f2777a;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Manrope', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
a { color: var(--accent); }

.cover {
  height: 215px;
  background: #000 url('/assets/rdv/ifemos-fond-noir.jpg') center 31.9% / cover no-repeat;
}

.form { max-width: 700px; margin: 0 auto; padding: 56px 20px 120px; }
.page { animation: pageIn .35s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.back {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 0; margin: 0 0 40px;
  color: var(--muted); font: 700 14px 'Manrope', sans-serif; cursor: pointer;
}
.back:hover { color: var(--text); }
.back svg { width: 14px; height: 14px; }

h1.title { font-size: 40px; font-weight: 800; margin: 0 0 44px; letter-spacing: -.01em; }
.text { font-size: 16px; line-height: 1.5; margin: 0 0 12px; }
.text.sub { margin-left: 3px; }
.text p { margin: 0 0 24px; }
.text p:last-child { margin-bottom: 0; }

.q { margin: 0 0 34px; }
.q-title { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; margin: 0 0 12px; line-height: 1.35; }
.req { flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #3b3a36; color: var(--text); font-size: 11px; line-height: 1; padding-top: 3px; }
.q-help { font-size: 16px; margin: -2px 0 14px; line-height: 1.5; }

.input {
  display: block; width: 320px; max-width: 100%; height: 38px; padding: 0 10px;
  background: var(--field); border: 1px solid var(--field-border); border-radius: 8px;
  color: var(--text); font: 500 16px 'Manrope', sans-serif; outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #6b6a66; }
.input:focus { border-color: rgba(216, 176, 73, .75); box-shadow: 0 0 0 3px rgba(216, 176, 73, .28); }
.input.wide { width: 100%; }
.err { color: var(--danger); font-size: 12px; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }

.options { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.opt {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  min-height: 38px; padding: 7px 14px 7px 10px;
  background: var(--option); border: 1px solid var(--field-border); border-radius: 8px;
  color: var(--text); font: 500 16px/1.35 'Manrope', sans-serif; text-align: left; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: border-color .15s, background .15s, transform .1s;
}
.opt:hover { border-color: #55534d; background: #2a2926; }
.opt:active { transform: scale(.99); }
.opt:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(216, 176, 73, .35); }
.badge { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 3px; background: #bcbbb7; color: #1a1917; font-size: 11px; font-weight: 800; }
.box { flex: none; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #77766f; display: grid; place-items: center; }
.box svg { width: 11px; height: 11px; opacity: 0; }
.opt.on { border-color: var(--accent); background: rgba(216, 176, 73, .12); }
.opt.on .badge { background: var(--accent); color: #1a1917; }
.opt.on .box { background: var(--accent); border-color: var(--accent); }
.opt.on .box svg { opacity: 1; }
.other { margin-top: 12px; }

.next {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 2px;
  height: 36px; padding: 0 14px; border: 0; border-radius: 8px;
  background: var(--btn); color: #fff; font: 700 15px 'Manrope', sans-serif; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  transition: filter .15s, transform .1s;
}
.next:hover { filter: brightness(1.07); }
.next:active { transform: scale(.98); }
.next[disabled] { opacity: .6; cursor: progress; }
.next svg { width: 16px; height: 16px; }
.submit-err { color: var(--danger); font-size: 14px; margin: 14px 0 0; }

.thanks .text { font-size: 16px; line-height: 1.5; margin: 0 0 6px; }
.thanks .text a { font-weight: 700; }
.thanks .spacer { height: 18px; }

.noscript { color: var(--muted); }

@media (max-width: 640px) {
  .cover { height: 120px; }
  .form { padding: 36px 18px 90px; }
  h1.title { font-size: 32px; margin-bottom: 32px; }
  .q-title { font-size: 18px; }
  .input { width: 100%; }
}
