/* One centered column, questions read top to bottom; the yellow from the portfolio marks only what is selected. */
/* Inter et Inter Tight hébergées avec le formulaire (fonts/, licence OFL) : aucune requête vers Google Fonts, l'adresse IP des visiteurs n'y part plus. Sous-ensemble latin (français compris). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-tight-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #ffffff;
  --fg: #141414;
  --muted: #6b6a66;
  --line: #e4e2dc;
  --panel: #f7f6f3;
  --accent: #f2cd35;
  --accent-ink: #141414;
  --error: #b42318;
  --focus: #141414;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211; --fg: #f3f2ee; --muted: #a3a29c; --line: #2e2d2a; --panel: #1b1b19;
    --accent: #f2cd35; --accent-ink: #141414; --error: #ff8a7a; --focus: #f3f2ee;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { font: 600 15px/1 var(--display); color: var(--fg); text-decoration: none; white-space: nowrap; }
.progress { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--fg); transition: width .35s ease; }
.progress-label { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 6.5em; text-align: right; }
.app { max-width: 640px; margin: 0 auto; padding: 48px 20px 96px; }
h1 { font: 600 clamp(30px, 6vw, 44px)/1.08 var(--display); letter-spacing: -0.02em; margin: 0 0 16px; text-wrap: balance; }
h2 { font: 600 clamp(24px, 4.5vw, 32px)/1.15 var(--display); letter-spacing: -0.015em; margin: 0 0 8px; text-wrap: balance; }
.eyebrow { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.lead { color: var(--muted); margin: 0 0 32px; max-width: 58ch; }
.fields { display: flex; flex-wrap: wrap; gap: 28px 16px; }
.field { flex: 1 1 100%; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field.half { flex: 1 1 calc(50% - 8px); min-width: 220px; }
.field[hidden] { display: none; }
.label { font-weight: 500; }
.label .opt { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 6px; }
.help { color: var(--muted); font-size: 14px; margin-top: -4px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=date], textarea, select {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; transition: border-color .15s;
}
textarea { min-height: 110px; resize: vertical; }
input:hover, textarea:hover, select:hover { border-color: var(--muted); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.choices { display: grid; gap: 8px; }
.choice { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--muted); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .mark { flex: none; width: 18px; height: 18px; margin-top: 3px; border: 1.5px solid var(--muted); display: grid; place-items: center; }
.choice.radio .mark { border-radius: 50%; }
.choice.check .mark { border-radius: 4px; }
.choice:has(input:checked) { border-color: var(--fg); background: var(--panel); }
.choice:has(input:checked) .mark { background: var(--accent); border-color: var(--fg); }
.choice:has(input:checked) .mark::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); }
.choice.check:has(input:checked) .mark::after { width: 9px; height: 5px; border-radius: 0; background: none; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.consent { padding: 14px; }
.error-msg { color: var(--error); font-size: 14px; }
.field.has-error input, .field.has-error textarea, .field.has-error select, .field.has-error .choice { border-color: var(--error); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 40px; }
.btn { appearance: none; border: 1px solid var(--fg); background: var(--fg); color: var(--bg); font: 500 16px/1 var(--body); padding: 15px 22px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { opacity: .88; }
.btn.secondary { background: transparent; color: var(--fg); }
.btn.ghost { background: transparent; color: var(--muted); border-color: transparent; padding-inline: 8px; }
.btn.ghost:hover { color: var(--fg); }
.btn[disabled] { opacity: .5; cursor: wait; }
.hint { color: var(--muted); font-size: 13px; }
.hint kbd { font: inherit; border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--panel); margin-top: 24px; }
.saved { font-size: 13px; color: var(--muted); }
.noscript { max-width: 640px; margin: 40px auto; padding: 0 20px; }
/* lien vers les données personnelles, sous le formulaire */
.legal { max-width: 640px; margin: 8px auto 32px; padding: 0 20px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.legal a { color: inherit; text-underline-offset: 3px; }
@media (max-width: 520px) {
  .app { padding-top: 32px; }
  .progress-label { display: none; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .screen { animation: rise .35s ease-out both; }
  @keyframes rise { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
