  :root {
    --ink: #0B1020; --gray: #586479; --muted: #8A95AB;
    --blue: #1F6BFF; --blue-text: #1A5FF0; --sky: #63A9FF;
    --ice: #EEF4FE; --bg: #F7FAFD; --line: #D9E6F2; --outline: #B8D2FF;
    --ok: #10B981; --ko: #E5484D;
    --shadow: 0 18px 50px -12px rgba(63,140,255,.22), 0 2px 8px rgba(11,16,32,.04);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  }
  * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html, body { margin: 0; min-height: 100%; }
  body { background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
  body::before { content: ""; position: fixed; inset: -20% -40% auto auto; width: 620px; height: 620px; border-radius: 50%;
    background: #9ED0FF; filter: blur(110px); opacity: .35; pointer-events: none; z-index: 0; }

  .app { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; max-width: 640px; margin: 0 auto;
    padding: max(16px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); }

  header { display: flex; align-items: center; justify-content: space-between; height: 44px; }
  header img { height: 26px; display: block; }
  .count { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
  .bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 10px; opacity: 0; transition: opacity .3s; }
  .bar.on { opacity: 1; }
  .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--sky)); border-radius: 4px; transition: width .45s cubic-bezier(.2,.7,.2,1); }

  main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 28px 0 12px; }
  .step { display: none; }
  .step.on { display: block; animation: in .42s cubic-bezier(.2,.7,.2,1) both; }
  .step.back { animation-name: inBack; }
  @keyframes in { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes inBack { from { opacity: 0; transform: translateY(-18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
  @media (prefers-reduced-motion: reduce) { .step.on { animation: none; } }

  /* Intro */
  .chip { display: inline-flex; align-items: center; gap: 10px; background: var(--ice); color: var(--blue-text); border: 1.5px solid var(--outline);
    font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; }
  .chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(31,107,255,.18); }
  h1 { font-size: clamp(46px, 13vw, 76px); line-height: .98; letter-spacing: -0.045em; font-weight: 800; margin: 22px 0 18px; }
  h1 b, h2 b { color: var(--blue-text); font-weight: inherit; }
  .lede { font-size: 19px; line-height: 1.45; color: var(--gray); margin: 0 0 26px; font-weight: 500; }
  .perks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
  .perks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; font-weight: 600; line-height: 1.35; }
  .perks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
    background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
  .perks span { color: var(--gray); font-weight: 500; }
  .meta { margin-top: 14px; font-size: 14px; color: var(--muted); font-weight: 500; text-align: center; }

  /* Questions */
  .q-num { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--blue-text); margin-bottom: 12px; }
  .q-num::after { content: "→"; }
  h2 { font-size: clamp(26px, 7vw, 34px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 750; margin: 0 0 10px; }
  .hint { font-size: 16px; line-height: 1.45; color: var(--gray); margin: 0 0 22px; font-weight: 500; }
  .hint:empty { display: none; }

  input[type=text], input[type=email], input[type=tel], textarea {
    width: 100%; font: 500 19px/1.4 var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 16px;
    padding: 16px 18px; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
  textarea { min-height: 150px; resize: vertical; }
  input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,107,255,.14); }
  input::placeholder, textarea::placeholder { color: #A9B3C6; }
  .prefix { position: relative; }
  .prefix span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 19px; color: var(--muted); font-weight: 600; pointer-events: none; }
  .prefix input { padding-left: 40px; }
  .chars { text-align: right; font-size: 13px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }

  .opts { display: grid; gap: 10px; }
  .opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: 600 17px/1.3 var(--font); color: var(--ink);
    background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 15px 16px; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
  .opt:active { transform: scale(.985); }
  .opt .k { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 1.5px solid var(--line); display: grid; place-items: center;
    font-size: 13px; font-weight: 700; color: var(--muted); background: var(--bg); }
  .opt.sel { border-color: var(--blue); background: var(--ice); }
  .opt.sel .k { background: var(--blue); border-color: var(--blue); color: #fff; }
  .other { margin-top: 10px; display: none; }
  .other.on { display: block; }

  .err { color: var(--ko); font-size: 15px; font-weight: 600; margin-top: 12px; min-height: 20px; }

  /* Boutons */
  .nav { display: flex; gap: 10px; align-items: center; padding-top: 8px; }
  .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; border: 0; cursor: pointer; text-decoration: none;
    font: 700 18px var(--font); color: #fff; background: var(--ink); border-radius: 999px; padding: 8px 8px 8px 28px; transition: transform .1s, opacity .2s; }
  .btn:active { transform: scale(.98); }
  .btn i { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(90deg, #1F6BFF, #3C84FF); display: grid; place-items: center; margin-left: auto; }
  .btn svg { width: 20px; stroke: #fff; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
  .btn[disabled] { opacity: .55; cursor: default; }
  .btn-back { flex: none; width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; }
  .btn-back svg { width: 22px; stroke: var(--ink); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .nav[hidden], .kbd[hidden], footer[hidden] { display: none !important; }
  #start, #confirm, .sched .btn { width: 100%; }
  .kbd { display: none; font-size: 13px; color: var(--muted); font-weight: 500; text-align: center; margin-top: 10px; }
  @media (hover: hover) and (pointer: fine) { .kbd { display: block; } }

  /* Écrans de fin */
  .done .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; box-shadow: 0 16px 40px -12px rgba(31,107,255,.6); margin-bottom: 24px; }
  .done .tick svg { width: 34px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .done .tick.soft { background: var(--ice); box-shadow: none; border: 1.5px solid var(--outline); }
  .done .tick.soft svg { stroke: var(--blue-text); }
  .done .btn { margin-top: 8px; }
  .done .btn.light { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
  .links { display: grid; gap: 10px; margin-top: 22px; }

  /* Calendrier maison */
  .sched { margin-top: 22px; }
  .sched-msg { color: var(--gray); font-weight: 600; text-align: center; padding: 26px 0; }
  .sched-msg.err { color: var(--ko); }
  .days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
  .days::-webkit-scrollbar { display: none; }
  .day { flex: 1 0 auto; min-width: 84px; text-align: center; font: 700 15px/1.25 var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line);
    border-radius: 16px; padding: 12px 10px; cursor: pointer; transition: border-color .15s, background .15s; }
  .day small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
  .day.sel { background: var(--ink); border-color: var(--ink); color: #fff; }
  .day.sel small { color: #B9C4DA; }
  .slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 8px; }
  .slot { font: 700 18px var(--font); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 14px; height: 54px; cursor: pointer;
    transition: border-color .15s, background .15s, transform .1s; font-variant-numeric: tabular-nums; }
  .slot:active { transform: scale(.97); }
  .slot.sel { background: var(--blue); border-color: var(--blue); color: #fff; }
  .tz { font-size: 13px; color: var(--muted); font-weight: 500; text-align: center; margin: 4px 0 16px; }
  .booked { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 20px; }
  .booked .when { font-size: 22px; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; }
  .booked .when::first-letter { text-transform: uppercase; }
  .booked .when span { display: block; font-size: 16px; font-weight: 600; color: var(--blue-text); text-transform: none; margin-top: 4px; }
  .booked p { color: var(--gray); font-size: 16px; line-height: 1.45; margin: 12px 0 0; font-weight: 500; }
  .booked .test { font-size: 13px; color: #8A5A00; background: #FFF4D6; border-radius: 10px; padding: 8px 12px; margin-top: 14px; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  footer { text-align: center; font-size: 12px; color: var(--muted); padding-top: 14px; line-height: 1.5; }
