:root {
  --ink: #0f1318; --ink2: #2a313a; --muted: #5d6673; --faint: #8a939e;
  --line: #e4e8ee; --line2: #d2d8e0; --bg: #ffffff; --panel: #f7f8fa;
  --blue: #1d4ed8; --blue-soft: #eef3ff; --blue-line: #c9d7fb;
  --radius: 12px; --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --top: 60px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { font-size: 15px; line-height: 1.55; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.ar { font-family: "Noto Sans Arabic", "Geeza Pro", var(--sans); unicode-bidi: isolate; }

/* boot */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-mark { font-family: var(--mono); letter-spacing: .3em; color: var(--blue); font-size: 13px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; height: var(--top); background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { height: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { font-family: var(--mono); font-weight: 500; letter-spacing: .22em; font-size: 12px; color: var(--blue); white-space: nowrap; }
.brand-sep { width: 1px; height: 18px; background: var(--line2); }
.brand-for { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-for b { color: var(--ink); font-weight: 600; }
.top-right { display: flex; align-items: center; gap: 14px; }
.saved { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.saved i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.saved.ok i { background: var(--blue); }
.help { font-size: 12.5px; color: var(--ink2); text-decoration: none; border: 1px solid var(--line2); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.help:hover { border-color: var(--blue); color: var(--blue); }
.bar { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--blue); transition: width .5s ease; }
.toc-btn { display: none; border: 1px solid var(--line2); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; }

/* layout */
.shell { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 56px; padding: 0 20px; }
.side { position: sticky; top: var(--top); height: calc(100vh - var(--top)); padding: 26px 0 18px; display: flex; flex-direction: column; }
.side-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.side-pct { font-family: var(--mono); font-size: 11px; color: var(--blue); }
.steps { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 0; }
.steps li button { width: 100%; text-align: left; background: none; border: 0; padding: 4px 8px; border-radius: 8px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; font-size: 12.8px; color: var(--ink2); line-height: 1.25; min-height: 26px; }
.steps li button:hover { background: var(--panel); }
.steps .n { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.steps .st { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line2); }
.steps .done .st { background: var(--blue); border-color: var(--blue); }
.steps .part .st { border-color: var(--blue); background: linear-gradient(90deg, var(--blue) 50%, #fff 50%); }
.steps .cur button { background: var(--blue-soft); color: var(--ink); font-weight: 600; }
.steps .cur .n { color: var(--blue); }
.steps .off button { color: var(--faint); }
.steps .off .t::after { content: " · non concerné"; font-size: 11px; }
.side-foot { font-size: 11.5px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; }

.main { padding: 40px 0 140px; min-width: 0; max-width: 780px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
h1.h { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 10px; font-weight: 700; }
.lead { color: var(--muted); font-size: 15px; margin: 0 0 8px; max-width: 640px; }
.fade { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* items */
.item { padding: 26px 0 22px; border-top: 1px solid var(--line); }
.item:first-of-type { margin-top: 18px; }
.qh { display: flex; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.qn { font-family: var(--mono); font-size: 11.5px; color: var(--blue); min-width: 26px; }
.qt { font-weight: 600; font-size: 16px; line-height: 1.45; }
.qbody { margin-left: 38px; }
textarea, input.txt { width: 100%; border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; font-size: 15px; background: #fff; transition: border-color .15s, box-shadow .15s; resize: vertical; }
textarea:focus, input.txt:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
textarea::placeholder, input.txt::placeholder { color: #a7afb9; }

.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 11px; text-align: left; background: #fff; border: 1px solid var(--line2); border-radius: 10px; padding: 11px 14px; font-size: 14.2px; line-height: 1.35; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--blue-line); }
.opt .bx { flex: 0 0 auto; width: 18px; height: 18px; border: 1.5px solid var(--line2); border-radius: 5px; display: grid; place-items: center; transition: all .15s; }
.opt.single .bx { border-radius: 50%; }
.opt[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); }
.opt[aria-pressed="true"] .bx { background: var(--blue); border-color: var(--blue); }
.opt[aria-pressed="true"] .bx::after { content: ""; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.opt.single[aria-pressed="true"] .bx::after { width: 6px; height: 6px; border: 0; border-radius: 50%; background: #fff; transform: none; }
.other { margin-top: 8px; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { width: 42px; height: 40px; border: 1px solid var(--line2); border-radius: 9px; background: #fff; font-family: var(--mono); font-size: 13px; }
.pill:hover { border-color: var(--blue-line); }
.pill[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill.sm { width: 34px; height: 32px; font-size: 12px; border-radius: 8px; }
.ten-l { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); max-width: 470px; margin: 6px 0 12px; }

/* grids (tables) */
.tgrid { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.trow { display: grid; gap: 0; border-top: 1px solid var(--line); }
.trow:first-child { border-top: 0; }
.trow.head { background: var(--panel); }
.tcell { padding: 6px 8px; display: flex; align-items: center; min-width: 0; border-left: 1px solid var(--line); }
.tcell:first-child { border-left: 0; }
.trow.head .tcell { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 9px 10px; }
.tcell.lab { font-weight: 600; font-size: 13.5px; padding-left: 12px; }
.tcell input { width: 100%; border: 0; border-radius: 7px; padding: 8px 8px; font-size: 14px; background: transparent; }
.tcell input:focus { outline: none; background: var(--blue-soft); }
.tcell .tlab { display: none; }
.tcell.c { justify-content: center; }

/* scale */
.scale .trow { grid-template-columns: 1fr repeat(5, 46px) 1fr; }
.scale .tcell { border-left: 0; justify-content: center; padding: 8px 4px; }
.scale .tcell.l { justify-content: flex-end; font-weight: 600; font-size: 13.5px; padding-right: 12px; }
.scale .tcell.r { justify-content: flex-start; font-weight: 600; font-size: 13.5px; padding-left: 12px; }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line2); background: #fff; padding: 0; }
.dot:hover { border-color: var(--blue); }
.dot[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }

/* menu */
.mgroup { margin-top: 22px; }
.mgroup:first-child { margin-top: 4px; }
.mgroup-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.mgroup-h .mono { color: var(--blue); }
.mgroup-h .cnt { font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.svcs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svc { border: 1px solid var(--line2); border-radius: 11px; background: #fff; transition: border-color .15s, background .15s; }
.svc.on { border-color: var(--blue); background: var(--blue-soft); }
.svc-t { width: 100%; background: none; border: 0; text-align: left; display: flex; gap: 11px; align-items: center; padding: 11px 13px; font-size: 14px; line-height: 1.35; }
.svc .bx { flex: 0 0 auto; width: 18px; height: 18px; border: 1.5px solid var(--line2); border-radius: 5px; display: grid; place-items: center; background: #fff; }
.svc.on .bx { background: var(--blue); border-color: var(--blue); }
.svc.on .bx::after { content: ""; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.svc-x { padding: 0 13px 12px 42px; display: grid; gap: 8px; }
.seg { display: flex; border: 1px solid var(--blue-line); border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { flex: 1; border: 0; background: none; padding: 6px 4px; font-size: 11.5px; color: var(--ink2); border-left: 1px solid var(--blue-line); }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.svc-x select { width: 100%; border: 1px solid var(--blue-line); border-radius: 8px; padding: 6px 8px; font-size: 12.5px; background: #fff; }
.mini { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* voice */
.voice { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vbtn { display: inline-flex; align-items: center; gap: 8px; border: 1px dashed var(--line2); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 12.5px; color: var(--ink2); }
.vbtn:hover { border-color: var(--blue); color: var(--blue); }
.vbtn svg { width: 15px; height: 15px; }
.vbtn.rec { border-style: solid; border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.vbtn.rec .rdot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: pulse 1s infinite; }
.clip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--blue-line); background: var(--blue-soft); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 12.5px; }
.clip button { border: 0; background: #fff; border-radius: 999px; width: 26px; height: 26px; display: grid; place-items: center; }
.clip svg { width: 12px; height: 12px; }
.vnote { font-size: 12px; color: var(--muted); }

/* nav */
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.btn { border: 1px solid var(--line2); background: #fff; border-radius: 999px; padding: 12px 20px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { border-color: var(--ink2); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: #1a43bd; }
.btn.big { padding: 15px 26px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn svg { width: 16px; height: 16px; }
.navhint { font-size: 12px; color: var(--faint); }

/* welcome */
.welcome { max-width: 860px; margin: 0 auto; padding: 72px 20px 90px; }
.welcome h1 { font-size: 52px; line-height: 1.05; letter-spacing: -.03em; margin: 14px 0 18px; }
.welcome .lead { font-size: 17px; max-width: 660px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); margin: 34px 0 30px; }
.fact { padding: 16px 16px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font-size: 20px; letter-spacing: -.01em; margin-bottom: 2px; }
.fact span { font-size: 12.5px; color: var(--muted); }
.how { counter-reset: how; display: grid; gap: 10px; margin: 0 0 34px; padding: 0; list-style: none; }
.how li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-size: 14.5px; color: var(--ink2); }
.how li::before { counter-increment: how; content: "0" counter(how); font-family: var(--mono); font-size: 12px; color: var(--blue); padding-top: 2px; }
.conf { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* contact */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink2); }
.field label em { color: var(--blue); font-style: normal; }
.err { color: #b42318; font-size: 12.5px; margin-top: 10px; }

/* review */
.rv { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.rv-row { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.rv-row:first-child { border-top: 0; }
.rv-row .n { font-family: var(--mono); font-size: 11px; color: var(--blue); }
.rv-row .t { font-weight: 600; font-size: 14px; }
.rv-row .c { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.rv-row.off { color: var(--faint); }
.rv-row.off .t { font-weight: 500; }
.link { border: 0; background: none; color: var(--blue); font-size: 13px; padding: 4px 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { border: 1px solid var(--blue-line); background: var(--blue-soft); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; }
.chip b { font-family: var(--mono); font-size: 10.5px; color: var(--blue); margin-right: 4px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 22px; background: var(--panel); }

/* thanks */
.thanks { max-width: 760px; margin: 0 auto; padding: 80px 20px 100px; }
.okmark { width: 58px; height: 58px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; margin-bottom: 26px; }
.okmark::after { content: ""; width: 20px; height: 11px; border: 3px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(2px, -2px); }
.tl { list-style: none; padding: 0; margin: 34px 0; border-left: 1px solid var(--line2); }
.tl li { position: relative; padding: 0 0 22px 24px; }
.tl li::before { content: ""; position: absolute; left: -6px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--line2); }
.tl li.done::before { background: var(--blue); border-color: var(--blue); }
.tl b { display: block; font-size: 15px; }
.tl span { font-size: 13.5px; color: var(--muted); }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* invalid */
.lock { max-width: 560px; margin: 0 auto; padding: 120px 20px; text-align: left; }

/* toast */
#toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 50; white-space: nowrap; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* drawer (mobile toc) */
.drawer { position: fixed; inset: 0; z-index: 40; background: rgba(15,19,24,.35); display: none; }
.drawer.open { display: block; }
.drawer-in { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: #fff; padding: 20px 16px; overflow-y: auto; }

#print { display: none; }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; gap: 0; padding: 0 16px; }
  .side { display: none; }
  .toc-btn { display: inline-block; }
  .brand-sep, .brand-for { display: none; }
  .main { padding: 26px 0 120px; }
  h1.h { font-size: 27px; }
  .qbody { margin-left: 0; }
  .qh { gap: 10px; }
  .svcs { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr !important; }
  .welcome { padding: 44px 16px 70px; }
  .welcome h1 { font-size: 38px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .help { display: none; }
  /* tables become stacked cards */
  .tgrid { border: 0; border-radius: 0; overflow: visible; display: grid; gap: 10px; }
  .trow.head { display: none; }
  .trow { display: block !important; border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px; }
  .trow:first-child { border-top: 1px solid var(--line); }
  .tcell { border-left: 0; display: grid; grid-template-columns: 38% 1fr; gap: 8px; padding: 4px 8px; }
  .tcell.lab { display: block; padding: 6px 8px 2px; }
  .tcell .tlab { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); align-self: center; }
  .tcell input { border: 1px solid var(--line); background: #fff; }
  .rate .tcell.c { display: none; }
  .rate .ratep { display: flex !important; }
  .scale .trow { display: grid !important; grid-template-columns: 1fr 1fr; }
  .scale .tcell.l, .scale .tcell.r { display: flex; justify-content: flex-start; padding: 6px 8px 0; font-size: 13px; }
  .scale .tcell.r { justify-content: flex-end; }
  .scale .dots { display: flex !important; grid-column: 1 / -1; justify-content: space-between; padding: 8px 12px 6px; }
  .scale .tcell.d { display: none; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); z-index: 15; }
  .navhint { display: none; }
  .rv-row { grid-template-columns: 30px 1fr auto; }
  .rv-row .c { display: none; }
}
.ratep, .scale .dots { display: none; }

@media print {
  body > *:not(#print) { display: none !important; }
  #print { display: block !important; font-size: 10.5pt; color: #000; }
  #print h1 { font-size: 18pt; margin: 0 0 4pt; }
  #print h2 { font-size: 12pt; margin: 14pt 0 4pt; border-top: 1px solid #000; padding-top: 6pt; }
  #print .pq { margin: 6pt 0; break-inside: avoid; }
  #print .pq b { display: block; }
  #print .pa { white-space: pre-wrap; color: #222; }
}

/* sidebar must fit short laptop screens without inner scroll */
.steps .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-height: 740px) {
  .side { padding: 16px 0 10px; }
  .side-head { margin-bottom: 6px; }
  .steps li button { min-height: 22px; padding: 2px 8px; font-size: 12.2px; }
  .side-foot { display: none; }
}
@media (max-height: 640px) {
  .steps li button { min-height: 21px; padding: 1px 8px; font-size: 11.8px; }
}
.svcs { align-items: start; }
.tick { width: 22px; height: 22px; border: 1.5px solid var(--line2); border-radius: 6px; background: #fff; padding: 0; display: grid; place-items: center; }
.tick:hover { border-color: var(--blue); }
.tick[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); }
.tick[aria-pressed="true"]::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.tcell.tk { justify-content: center; }
@media (max-width: 960px) {
  .trow.head { display: none !important; }
  .tcell.tk { justify-content: stretch; }
}
/* phone welcome: start button visible on the first screen */
@media (max-width: 960px) {
  .welcome { display: flex; flex-direction: column; }
  .welcome .eyebrow { order: 0; } .welcome h1 { order: 1; } .welcome .lead { order: 2; }
  .welcome .btn.big { order: 3; align-self: stretch; justify-content: center; margin-top: 18px; }
  .welcome .facts { order: 4; } .welcome .how { order: 5; } .welcome .conf { order: 6; }
}
