:root {
  --navy: #0b1a4a;
  --purple: #3a0d63;
  --pink: #ff2e88;
  --ink: #101828;
  --muted: #667085;
  --soft: #98a2b3;
  --line: #e4e7ec;
  --field: #f7f8fa;
  --ok: #12a150;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: #fff; padding: 40px 20px 60px; }
button, input, select { font: inherit; color: inherit; }

.hero { text-align: center; margin: 0 auto 36px; max-width: 900px; }
.hero h1 { font-size: clamp(28px, 4.6vw, 52px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; margin: 0; color: var(--ink); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.card { max-width: 1100px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.steps { display: flex; justify-content: center; gap: 36px; padding: 18px 16px; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--soft); }
.step { display: flex; align-items: center; gap: 10px; transition: color 0.2s; }
.step i { width: 10px; height: 10px; border-radius: 50%; background: #d0d5dd; transition: background 0.2s; }
.step.on { color: var(--ink); }
.step.on i { background: var(--ink); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* ---------- gauche : formulaire ---------- */
.left { padding: 36px 38px 32px; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.logo { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; font-size: 10px; letter-spacing: 0.4px; }
.event { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 26px 0 4px; }
.meta { color: var(--muted); margin: 0 0 14px; font-size: 15px; }
.subtitle { color: #475467; margin: 0 0 14px; line-height: 1.5; font-size: 16px; }
.bullets { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 4px; color: #475467; font-size: 16px; line-height: 1.5; }

input:not([type="radio"]) {
  width: 100%; height: 58px; border: 1px solid var(--line); border-radius: 10px; padding: 0 22px; background: var(--field);
  outline: none; font-size: 18px; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
input::placeholder { color: #667085; }
input:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: #fff; }
input.bad { border-color: #f04438; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.hint { color: #d92d20; font-size: 13px; display: block; margin-top: 6px; }

.phone { position: relative; display: flex; align-items: center; height: 60px; background: var(--field); border: 1px solid var(--line); border-radius: 10px; transition: border-color 0.15s, box-shadow 0.15s; }
.phone:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: #fff; }
.phone .flag { width: 64px; flex: none; height: 100%; display: flex; align-items: center; justify-content: center; gap: 4px; border-right: 1px solid var(--line); font-size: 18px; pointer-events: none; }
.phone .flag::after { content: "▾"; font-size: 10px; color: var(--muted); }
.phone select { position: absolute; left: 0; top: 0; width: 64px; height: 100%; opacity: 0; cursor: pointer; }
.phone .dial { padding-left: 16px; font-size: 18px; flex: none; }
.phone input { border: 0 !important; box-shadow: none !important; background: transparent !important; height: 56px; padding-left: 8px; }
.phone .check { position: absolute; right: 16px; color: var(--ok); font-weight: 700; }

.reveal { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.5s ease, opacity 0.35s ease; }
.reveal.open { max-height: 1600px; opacity: 1; padding-top: 24px; }
.q { border: 0; padding: 0; margin: 22px 0 0; }
.q legend { font-size: 15px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.q.bad legend { color: #d92d20; }
.opt { display: flex; align-items: center; gap: 12px; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; cursor: pointer; font-size: 15px; transition: border-color 0.15s, background 0.15s; }
.opt:hover { border-color: #c4cad4; }
.opt input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; flex: none; }
.opt:has(input:checked) { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }

.continue {
  width: 100%; height: 62px; margin-top: 26px; border: 0; border-radius: 10px; cursor: pointer; font-size: 19px; font-weight: 500; color: #fff;
  background: #7d7f88; display: flex; align-items: center; justify-content: center; gap: 12px; transition: background 0.2s;
}
.continue span { font-size: 26px; line-height: 0; margin-top: -3px; }
.continue.ready { background: linear-gradient(90deg, #000, var(--navy)); }
.continue[hidden] { display: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.progress { min-height: 0; font-size: 14px; color: #d92d20; margin: 10px 0 0; }
.progress:empty { display: none; }
.consent { color: #344054; font-size: 15px; line-height: 1.6; margin: 22px 0 0; }

/* ---------- droite : calendrier ---------- */
.right { position: relative; padding: 36px 38px 30px; min-height: 620px; }
.cal { transition: filter 0.45s ease, opacity 0.45s ease; }
.right:not(.unlocked) .cal { filter: blur(4px); opacity: 0.5; pointer-events: none; user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.cal-head h3 { font-size: 24px; font-weight: 500; margin: 0; }
.navs { display: flex; gap: 10px; }
.nav { width: 50px; height: 50px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 22px; color: var(--muted); }
.nav:disabled { opacity: 0.35; cursor: default; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px 8px; text-align: center; }
.dow span { font-size: 15px; color: var(--soft); text-transform: uppercase; letter-spacing: 0.04em; padding-bottom: 8px; }
.days button { height: 70px; border: 0; border-radius: 10px; background: none; font-size: 22px; color: var(--soft); cursor: default; position: relative; }
.days button.avail { background: #eef0f4; color: var(--ink); font-weight: 600; cursor: pointer; }
.days button.avail:hover { background: #e2e6ee; }
.days button.sel { background: var(--ink); color: #fff; }
.days button.today::after { content: ""; position: absolute; bottom: 8px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--soft); }
.days button.sel.today::after { background: #fff; }

.times-wrap { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.times-wrap h4 { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.times button { height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 600; cursor: pointer; font-size: 15px; }
.times button:hover { border-color: var(--ink); }
.times button.sel { background: var(--ink); border-color: var(--ink); color: #fff; }
.confirm { margin-top: 16px; width: 100%; height: 56px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 17px; color: #fff; background: linear-gradient(90deg, #000, var(--navy)); }
.confirm:disabled { opacity: 0.7; cursor: wait; }
.error { color: #d92d20; font-size: 14px; margin: 10px 0 0; }
.tz { font-size: 14px; color: var(--muted); margin: 18px 0 0; }

.lock { position: absolute; left: 0; right: 0; top: 230px; display: flex; justify-content: center; padding: 0 24px; z-index: 2; pointer-events: none; }
.lock[hidden] { display: none; }
.lock-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px 40px; text-align: center; max-width: 440px; font-size: 19px; line-height: 1.5; box-shadow: 0 2px 6px rgba(16, 24, 40, 0.08); }

.end { display: grid; place-items: center; text-align: center; min-height: 520px; align-content: center; gap: 6px; }
.end-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #e7f7ee; color: var(--ok); font-size: 30px; font-weight: 700; }
.end.sad .end-icon { background: #f2f4f7; }
.end h2 { margin: 10px 0 0; font-size: 26px; letter-spacing: -0.02em; }
.end-when { font-weight: 700; font-size: 18px; margin: 4px 0; }
.end-when:empty { display: none; }
.end p { max-width: 380px; color: var(--muted); line-height: 1.5; margin: 0; }
.end .end-when { color: var(--ink); }

@media (max-width: 900px) {
  body { padding: 24px 0 0; }
  .hero { padding: 0 20px; margin-bottom: 22px; }
  .card { border-left: 0; border-right: 0; border-radius: 0; }
  .steps { font-size: 14px; gap: 18px; }
  .cols { grid-template-columns: 1fr; }
  .left { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 20px; }
  .right { padding: 26px 16px 40px; min-height: 0; }
  .event { font-size: 24px; margin-top: 18px; }
  .row { gap: 12px; }
  input:not([type="radio"]) { height: 54px; font-size: 17px; padding: 0 16px; }
  .days button { height: 46px; font-size: 17px; }
  .nav { width: 42px; height: 42px; }
  .cal-head h3 { font-size: 20px; }
  .lock { top: 150px; }
  .lock-card { font-size: 16px; padding: 18px 22px; }
}
