/* ==========================================================================
   DÉMESURE — questionnaire projet
   ========================================================================== */

:root {
  --ink: #0b0b0a;
  --ink-2: #121210;
  --ink-3: #1a1a17;
  --bone: #ebe8df;
  --accent: #ff4a1c;

  --bg: var(--ink);
  --fg: var(--bone);
  --fg-dim: rgba(235, 232, 223, .58);
  --fg-faint: rgba(235, 232, 223, .32);
  --rule: rgba(235, 232, 223, .13);

  --display: "Archivo", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --g: clamp(16px, 3.2vw, 44px);
  --top-h: 68px;
  --bar-h: 88px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--display);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "wdth" 100, "wght" 420;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
p, h1, h2, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.q-title:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-variation-settings: normal; }

/* Grain discret, comme sur le site */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Boutons (repris du site) -------------------------------------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 26px 0 28px;
  border-radius: 999px;
  background: var(--accent); color: var(--ink);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease-out), opacity .3s;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fg); border-radius: inherit;
  transform: translateY(101%);
  transition: transform .6s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--bg); }
.btn__arrow {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: currentColor;
  transition: transform .6s var(--ease-out);
}
.btn__arrow svg { width: 10px; height: 10px; color: var(--accent); transition: color .5s var(--ease-out); }
.btn:hover .btn__arrow { transform: rotate(45deg); }
.btn:hover .btn__arrow svg { color: var(--fg); }
.btn__wa { width: 18px; height: 18px; flex: none; margin-right: -4px; }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg-faint); }
.btn--big { height: 64px; padding: 0 30px 0 34px; font-size: 13px; }

.roll { display: inline-block; height: 1.25em; line-height: 1.25em; overflow: hidden; vertical-align: top; }
.roll > span { display: block; transition: transform .6s var(--ease-out); }
.roll > span::after { content: attr(data-t); display: block; }
button:hover .roll > span, button:focus-visible .roll > span { transform: translateY(-1.25em); }

.q-link {
  color: var(--fg-dim);
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  padding-bottom: 3px;
  transition: color .3s;
}
.q-link:hover { color: var(--accent); }

/* ---------- En-tête : logo, règle de progression, devise ------------------ */

.q-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--top-h);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: clamp(16px, 3vw, 40px);
  padding: 0 var(--g);
  background: var(--ink);
}
.q-top::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 30px; pointer-events: none;
  background: linear-gradient(var(--ink), rgba(11, 11, 10, 0));
}
.q-logo {
  font-size: 17px; letter-spacing: .02em; line-height: 1;
  font-variation-settings: "wdth" 125, "wght" 800;
  transition: font-variation-settings .7s var(--ease-out), letter-spacing .7s var(--ease-out);
}
.q-logo:hover { font-variation-settings: "wdth" 62, "wght" 300; letter-spacing: .14em; }

/* La progression est une règle graduée qui se remplit : on « prend les mesures ». */
.q-ruler {
  position: relative; height: 14px;
  background:
    repeating-linear-gradient(90deg, var(--fg-faint) 0 1px, transparent 1px calc(100% / (var(--steps, 8) * 5))) left bottom / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--fg-dim) 0 1px, transparent 1px calc(100% / var(--steps, 8))) left bottom / 100% 12px no-repeat;
  box-shadow: inset 0 -1px 0 var(--rule);
}
.q-ruler::after { content: ""; position: absolute; right: 0; bottom: 0; width: 1px; height: 12px; background: var(--fg-dim); }
.q-ruler__fill {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease-out);
}
.q-count { color: var(--fg-dim); min-width: 7ch; text-align: right; }
.q-count [data-count] { color: var(--accent); font-size: 13px; }

.q-region { display: inline-flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); }
.q-region button { height: 28px; min-width: 34px; padding: 0 10px; border-radius: 999px; color: var(--fg-dim); transition: background-color .3s, color .3s; }
.q-region button[aria-pressed="true"] { background: var(--bone); color: var(--ink); }

/* ---------- Écrans --------------------------------------------------------- */

.q {
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--top-h) + clamp(40px, 7vh, 90px)) var(--g) calc(var(--bar-h) + 70px);
}
.q-form { max-width: 1060px; margin: 0 auto; }
.q-screen { display: none; }
.q-screen.is-active { display: block; }

.q-anim { opacity: 0; }
.q-screen.is-in .q-anim { animation: q-in .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
.q-screen.is-in.is-back .q-anim { animation-name: q-in-back; }
@keyframes q-in { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes q-in-back { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: none; } }

.q-kicker { display: flex; align-items: center; gap: 14px; color: var(--fg-dim); }
.q-kicker span:first-child { color: var(--accent); font-size: 13px; }
.q-kicker::after { content: ""; width: 60px; height: 1px; background: var(--rule); }

.q-title {
  margin-top: 26px;
  font-size: clamp(42px, 6.6vw, 96px);
  line-height: .94;
  letter-spacing: -.035em;
  font-weight: 400;
  font-variation-settings: "wdth" 100, "wght" 760;
  text-wrap: balance;
}
.q-screen.is-in .q-title { animation-name: q-in, q-stretch; animation-duration: .9s, 1.3s; }
@keyframes q-stretch { from { font-variation-settings: "wdth" 62, "wght" 260; } to { font-variation-settings: "wdth" 100, "wght" 760; } }
.q-title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; font-variation-settings: normal; }
.q-title i { font-style: normal; color: var(--accent); }
.q-title--xl { font-size: clamp(56px, 10.5vw, 168px); line-height: .86; letter-spacing: -.045em; }
.q-sub { margin-top: 22px; max-width: 54ch; color: var(--fg-dim); font-size: clamp(16px, 1.25vw, 20px); line-height: 1.45; }
.q-sub b { color: var(--fg); font-weight: 400; font-variation-settings: "wdth" 100, "wght" 600; }

/* Accueil */
.q-promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(36px, 6vh, 64px); border-top: 1px solid var(--rule); }
.q-promise li { display: flex; gap: 12px; padding: 18px 20px 0 0; color: var(--fg); line-height: 1.5; }
.q-promise li span { color: var(--accent); }
.q-intro__ctas, .q-merci__ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: clamp(36px, 6vh, 60px); }
.q-fine { margin-top: 22px; color: var(--fg-faint); }

/* ---------- Champs --------------------------------------------------------- */

.q-fields { display: flex; flex-wrap: wrap; gap: 38px 28px; margin-top: clamp(34px, 5vh, 56px); }
.q-field { flex: 1 1 100%; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.q-field--half { flex: 1 1 320px; }
.q-field > legend, .q-field > span.mono { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; color: var(--fg-dim); margin-bottom: 14px; }
label.q-field > span.mono { margin-bottom: 0; }
.q-field legend span { color: var(--fg-faint); text-transform: none; letter-spacing: .02em; }
.q-field .mono b { color: var(--accent); font-weight: 400; }
.field__hint { color: var(--fg-faint); text-transform: none; letter-spacing: .02em; font-size: 12px; }
.q-field.is-error { animation: q-shake .5s var(--ease-out); }
.q-field.is-error input, .q-field.is-error textarea { border-bottom-color: var(--accent); }
@keyframes q-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.q-field input, .q-field textarea {
  width: 100%;
  background: transparent; color: var(--fg);
  border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  padding: 6px 0 12px;
  font: inherit; font-size: clamp(19px, 1.6vw, 24px);
  font-variation-settings: "wdth" 100, "wght" 420;
  resize: none;
  transition: border-color .3s;
}
.q-field input::placeholder, .q-field textarea::placeholder { color: var(--fg-faint); }
.q-field input:focus, .q-field textarea:focus { outline: none; border-bottom-color: var(--accent); }

/* Pastilles */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip, .card, .mood { position: relative; cursor: pointer; }
.chip input, .card input, .mood input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 10px 20px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 16px; line-height: 1.2;
  font-variation-settings: "wdth" 100, "wght" 450;
  transition: background-color .35s, color .35s, box-shadow .35s, font-variation-settings .5s var(--ease-out);
  user-select: none;
}
.chip span::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px currentColor;
  transition: background-color .3s, box-shadow .3s;
}
.chip:hover span { box-shadow: inset 0 0 0 1px var(--fg-dim); }
.chip input:checked + span { background: var(--fg); color: var(--bg); box-shadow: none; font-variation-settings: "wdth" 112, "wght" 640; }
.chip input:checked + span::before { background: var(--accent); box-shadow: none; }
.chip input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 3px; }
.chip--big span { min-height: 58px; padding: 14px 24px; font-size: clamp(17px, 1.4vw, 21px); }

/* Cartes « type de projet » */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.card__in {
  position: relative; height: 100%;
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px 22px 22px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: background-color .4s, color .4s, box-shadow .4s, transform .5s var(--ease-out);
  user-select: none;
}
.card:hover .card__in { box-shadow: inset 0 0 0 1px var(--fg-dim); }
.card__num { color: var(--accent); }
.card__title { margin-top: 18px; font-size: clamp(21px, 1.7vw, 26px); line-height: 1.05; letter-spacing: -.02em; font-variation-settings: "wdth" 100, "wght" 640; transition: font-variation-settings .6s var(--ease-out); }
.card__desc { color: var(--fg-dim); font-size: 14px; line-height: 1.4; transition: color .4s; }
.card__tick {
  position: absolute; top: 16px; right: 16px;
  width: 22px; height: 22px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--fg-faint);
  transition: background-color .3s, box-shadow .3s, transform .5s var(--ease-out);
}
.card__tick::after {
  content: ""; position: absolute; left: 7px; top: 5px; width: 6px; height: 10px;
  border: solid var(--ink); border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transition: transform .4s var(--ease-out);
}
.card input:checked + .card__in { background: var(--bone); color: var(--ink); box-shadow: none; }
.card input:checked + .card__in .card__title { font-variation-settings: "wdth" 118, "wght" 760; }
.card input:checked + .card__in .card__desc { color: rgba(11, 11, 10, .62); }
.card input:checked + .card__in .card__tick, .mood input:checked + .mood__in .card__tick { background: var(--accent); box-shadow: none; }
.card input:checked + .card__in .card__tick::after, .mood input:checked + .mood__in .card__tick::after { transform: rotate(45deg) scale(1); }
.card input:focus-visible + .card__in, .mood input:focus-visible + .mood__in { outline: 1px solid var(--accent); outline-offset: 3px; }

/* Ambiances : mini-maquettes dessinées en CSS */
.moods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.mood__in { position: relative; display: flex; flex-direction: column; gap: 12px; user-select: none; }
.mood__name { font-size: 16px; font-variation-settings: "wdth" 100, "wght" 520; transition: color .3s; }
.mood .card__tick { top: auto; bottom: 0; right: 0; width: 20px; height: 20px; }
.mood .card__tick::after { left: 6px; top: 4px; }
.mood__name { padding-right: 28px; }
.mood input:checked + .mood__in .shot { box-shadow: 0 0 0 2px var(--accent); transform: translateY(-4px); }
.mood input:checked + .mood__in .mood__name { color: var(--accent); }
.mood:hover .shot { transform: translateY(-3px); }

.shot {
  --s-bg: #f6f5f1; --s-fg: #1b1b1a; --s-acc: #1b1b1a; --s-img: #dedbd2; --s-r: 3px;
  position: relative; display: flex; flex-direction: column;
  aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 8px;
  background: var(--s-bg); color: var(--s-fg);
  box-shadow: 0 0 0 1px var(--rule);
  transition: transform .5s var(--ease-out), box-shadow .3s;
}
.shot__nav { display: flex; align-items: center; gap: 6px; padding: 9% 9% 0; }
.shot__nav i { height: 3px; width: 10%; border-radius: 2px; background: currentColor; opacity: .35; }
.shot__nav i:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--s-acc); opacity: 1; margin-right: auto; }
.shot__body { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 8%; align-items: center; padding: 0 9% 9%; }
.shot__txt { display: flex; flex-direction: column; gap: 7px; }
.shot__txt b { font-size: clamp(17px, 1.8vw, 24px); line-height: 1; font-weight: 400; letter-spacing: -.02em; margin-bottom: 4px; white-space: nowrap; }
.shot__txt i { height: 3px; border-radius: 2px; background: currentColor; opacity: .3; }
.shot__txt i + i { width: 70%; }
.shot__btn { width: 52%; height: 12px; margin-top: 6px; border-radius: var(--s-r); background: var(--s-acc); }
.shot__img { align-self: stretch; margin-top: 10%; border-radius: var(--s-r); background: var(--s-img); }

.shot--epure b { font-family: var(--display); font-variation-settings: "wdth" 100, "wght" 300; }
.shot--luxe { --s-bg: #0f0e0c; --s-fg: #eadfc6; --s-acc: #c8a45d; --s-img: linear-gradient(160deg, #3a3122, #14110c 70%); --s-r: 0; }
.shot--luxe b { font-family: "Cormorant Garamond", var(--serif); font-style: italic; color: #d8b873; }
.shot--luxe .shot__btn { background: transparent; box-shadow: inset 0 0 0 1px var(--s-acc); }
.shot--pop { --s-bg: #ffd84d; --s-fg: #1b1b1b; --s-acc: #ff4fa3; --s-img: #4f7bff; --s-r: 999px; }
.shot--pop b { font-family: "Bricolage Grotesque", var(--display); font-weight: 800; font-variation-settings: "wght" 800; }
.shot--pop .shot__img { border-radius: 50%; aspect-ratio: 1; align-self: center; margin-top: 0; box-shadow: 10px 8px 0 #1b1b1b; }
.shot--nature { --s-bg: #efe5d4; --s-fg: #3b2f22; --s-acc: #c4643a; --s-img: linear-gradient(170deg, #9aa66b, #6d7a45); --s-r: 14px; }
.shot--nature b { font-family: var(--serif); }
.shot--nature .shot__img { border-radius: 60px 60px 12px 12px; }
.shot--edito { --s-bg: #f1ede6; --s-fg: #121212; --s-acc: #121212; --s-img: #cfc9bf; --s-r: 0; }
.shot--edito b { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.1vw, 28px); }
.shot--edito .shot__nav { border-bottom: 1px solid rgba(0, 0, 0, .25); padding-bottom: 6px; margin: 0 9%; padding-left: 0; padding-right: 0; padding-top: 9%; }
.shot--edito .shot__img { filter: grayscale(1); background: linear-gradient(180deg, #d8d2c7, #a9a297); }
.shot--tech { --s-bg: #070b18; --s-fg: #dfe6ff; --s-acc: linear-gradient(90deg, #3de0ff, #8b5cff); --s-img: radial-gradient(circle at 40% 40%, #8b5cff, #1a2a6c 55%, transparent 75%); --s-r: 8px; }
.shot--tech b { font-family: "Inter Tight", var(--display); font-weight: 600; background: linear-gradient(90deg, #3de0ff, #b49bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shot--tech .shot__nav i:first-child { background: #3de0ff; }
.shot--tech .shot__img { box-shadow: 0 0 0 1px rgba(61, 224, 255, .25); }
.shot--libre {
  align-items: center; justify-content: center; gap: 8px; text-align: center;
  background: transparent; color: var(--fg-dim);
  box-shadow: inset 0 0 0 1px var(--fg-faint);
  background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgba(235, 232, 223, .04) 10px 11px);
}
.shot--libre b { font-size: 46px; line-height: 1; color: var(--accent); font-weight: 400; }
.shot--libre small { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.card__tag { margin-top: auto; padding-top: 14px; color: var(--fg-faint); transition: color .4s; }
.card input:checked + .card__in .card__tag { color: rgba(11, 11, 10, .55); }

/* Difficultés : en cochant, la solution se dévoile */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pain { position: relative; cursor: pointer; }
.pain input { position: absolute; opacity: 0; pointer-events: none; }
.pain__in {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  padding: 18px 52px 18px 20px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: background-color .4s, box-shadow .4s;
  user-select: none;
}
.pain:hover .pain__in { box-shadow: inset 0 0 0 1px var(--fg-dim); }
.pain .card__tick { top: 50%; margin-top: -11px; }
.pain input:checked + .pain__in .card__tick { top: 18px; margin-top: 0; }
.pain__q { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.3; font-variation-settings: "wdth" 100, "wght" 500; }
.pain__fix { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s var(--ease-out), opacity .4s, margin .6s var(--ease-out); }
.pain__fix > span { overflow: hidden; color: var(--fg); font-size: 15px; line-height: 1.4; }
.pain__fix b { color: var(--accent); font-weight: 400; margin-right: 8px; }
.pain input:checked + .pain__in { background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--accent); }
.pain input:checked + .pain__in .pain__fix { grid-template-rows: 1fr; opacity: 1; margin-top: 12px; }
.pain input:checked + .pain__in .pain__q { color: var(--fg-dim); text-decoration: line-through; text-decoration-color: rgba(255, 74, 28, .7); text-decoration-thickness: 1px; }
.pain input:checked + .pain__in .card__tick { background: var(--accent); box-shadow: none; }
.pain input:checked + .pain__in .card__tick::after { transform: rotate(45deg) scale(1); }
.pain input:focus-visible + .pain__in { outline: 1px solid var(--accent); outline-offset: 3px; }

/* Temps perdu, conseils */
.q-stat { padding: 18px 22px; border-radius: 10px; background: var(--accent); color: var(--ink); font-size: clamp(16px, 1.2vw, 19px); line-height: 1.4; }
.q-stat b { font-weight: 400; font-variation-settings: "wdth" 110, "wght" 760; }
.q-tip { display: flex; gap: 12px; color: var(--fg-dim); text-transform: none; letter-spacing: .02em; font-size: 13px; line-height: 1.5; }
.q-tip span { color: var(--accent); }

/* Diagnostic */
.diag { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.diag__col { padding: 22px 24px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--rule); }
.diag__col > .mono { color: var(--fg-dim); margin-bottom: 14px; }
.diag__col ul { display: flex; flex-direction: column; gap: 8px; }
.diag__col li { position: relative; padding-left: 20px; line-height: 1.35; }
.diag__col li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 1px; background: var(--accent); }
.diag__col li.is-top { font-variation-settings: "wdth" 100, "wght" 620; }
.diag__col li em { font-style: normal; margin-left: 8px; padding: 3px 8px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 9px; vertical-align: 2px; }
.diag__empty { color: var(--fg-dim); }
.diag__stat { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-width: 220px; padding: 22px 24px; border-radius: 10px; background: var(--bone); color: var(--ink); }
.diag__stat .mono { color: rgba(11, 11, 10, .55); margin-bottom: auto; }
.diag__stat b { margin-top: 26px; font-size: clamp(40px, 4vw, 60px); line-height: .9; font-weight: 400; letter-spacing: -.03em; font-variation-settings: "wdth" 100, "wght" 780; }
.diag__stat span:last-child { color: rgba(11, 11, 10, .7); }

/* Modules */
.mods__label { color: var(--fg-dim); margin: 6px 0 12px; }
.mods__grid + .mods__label { margin-top: 26px; }
.mods__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.mod { position: relative; cursor: pointer; }
.mod input { position: absolute; opacity: 0; pointer-events: none; }
.mod__in {
  position: relative; height: 100%;
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 50px 18px 20px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: background-color .4s, color .4s, box-shadow .4s;
  user-select: none;
}
.mod:hover .mod__in { box-shadow: inset 0 0 0 1px var(--fg-dim); }
.mod__name { font-size: 18px; line-height: 1.15; letter-spacing: -.01em; font-variation-settings: "wdth" 100, "wght" 620; }
.mod__desc { color: var(--fg-dim); font-size: 14px; line-height: 1.4; transition: color .4s; }
.mod__tag { margin-top: 6px; color: var(--accent); }
.mod input:checked + .mod__in { background: var(--bone); color: var(--ink); box-shadow: none; }
.mod input:checked + .mod__in .mod__desc { color: rgba(11, 11, 10, .62); }
.mod input:checked + .mod__in .card__tick { background: var(--accent); box-shadow: none; }
.mod input:checked + .mod__in .card__tick::after { transform: rotate(45deg) scale(1); }
.mod input:focus-visible + .mod__in { outline: 1px solid var(--accent); outline-offset: 3px; }

.q-demo {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; row-gap: 4px; align-items: baseline;
  padding: 18px 22px; border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--fg-faint);
  transition: box-shadow .3s, background-color .3s;
}
.q-demo:hover { box-shadow: inset 0 0 0 1px var(--accent); background: var(--ink-2); }
.q-demo .mono { color: var(--accent); grid-row: span 2; }
.q-demo b { font-weight: 400; font-size: 18px; font-variation-settings: "wdth" 100, "wght" 600; }
.q-demo small { color: var(--fg-dim); font-size: 13px; }

/* ---------- Récapitulatif -------------------------------------------------- */

.q-recap__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(30px, 5vh, 50px); }
.rc { padding: 20px 22px 22px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--rule); }
.rc header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; color: var(--fg-dim); }
.rc header b { color: var(--accent); font-weight: 400; margin-right: 10px; }
.rc__edit { color: var(--fg-faint); transition: color .3s; }
.rc__edit:hover { color: var(--accent); }
.rc dl { display: flex; flex-direction: column; gap: 8px; }
.rc dl div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.rc dl div:not(:has(dt)) { grid-template-columns: minmax(0, 1fr); }
.rc dt { color: var(--fg-faint); text-transform: none; letter-spacing: .02em; font-size: 12px; }
.rc dd { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.rc dd ul { display: flex; flex-direction: column; gap: 4px; }
.rc dd li { position: relative; padding-left: 16px; }
.rc dd li::before { content: "–"; position: absolute; left: 0; color: var(--accent); }
.rc__empty { color: var(--fg-faint); text-transform: none; letter-spacing: .02em; font-size: 12px; }
.q-recap__alt { margin-top: 28px; color: var(--fg-faint); line-height: 2; }
.q-recap__alt .q-link { color: var(--fg); margin: 0 4px; font: inherit; letter-spacing: inherit; text-transform: inherit; }

/* ---------- Merci ---------------------------------------------------------- */

.q-next-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(36px, 6vh, 60px); }
.q-next-steps li { display: flex; flex-direction: column; gap: 22px; padding: 20px 22px 24px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--rule); }
.q-next-steps li:first-child { background: var(--bone); color: var(--ink); box-shadow: none; }
.q-next-steps span { color: var(--accent); }
.q-next-steps p { font-size: 17px; line-height: 1.4; }

/* ---------- Barre du bas --------------------------------------------------- */

.q-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px;
  padding: 18px var(--g) calc(18px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(rgba(11, 11, 10, 0), var(--ink) 38%);
  transition: transform .7s var(--ease-out), opacity .4s;
}
html[data-screen="intro"] .q-bar, html[data-screen="merci"] .q-bar { transform: translateY(110%); opacity: 0; pointer-events: none; }
html.no-js .q-bar { display: none; }
.q-back { height: 48px; padding: 0 4px; color: var(--fg-dim); transition: color .3s; }
.q-back:hover { color: var(--fg); }
.q-msg { text-align: center; color: var(--fg-faint); }
.q-msg.is-error { color: var(--accent); text-transform: none; letter-spacing: .02em; font-size: 13px; }
.q-next { justify-self: end; }
.q-next.is-skip { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg-faint); }
.q-next.is-skip .btn__arrow svg { color: var(--bg); }

.q-toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-h) + 16px); z-index: 60;
  padding: 12px 18px; border-radius: 999px;
  background: var(--bone); color: var(--ink);
  text-transform: none; letter-spacing: .02em; font-size: 12px;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: transform .6s var(--ease-out), opacity .4s;
}
.q-toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Mobile --------------------------------------------------------- */

@media (max-width: 760px) {
  :root { --top-h: 92px; --bar-h: 80px; }
  .q-top { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: 56px 22px; row-gap: 0; align-content: start; }
  .q-ruler { grid-column: 1 / -1; grid-row: 2; align-self: start; }
  .q-title--xl { font-size: 18vw; }
  .q-promise { grid-template-columns: 1fr; }
  .q-promise li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .q-recap__list, .q-next-steps { grid-template-columns: 1fr; }
  .q-msg { display: none; }
  .q-bar { grid-template-columns: auto minmax(0, 1fr); }
  .q-next { width: 100%; justify-content: space-between; }
  .btn--big { height: 58px; }
  .q-intro__ctas .btn, .q-merci__ctas .btn { width: 100%; justify-content: space-between; }
  .cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .card__in { padding: 14px 14px 16px; }
  .card__title { margin-top: 10px; font-size: 18px; }
  .card__desc { font-size: 13px; }
  .card__tick { top: 12px; right: 12px; width: 20px; height: 20px; }
  .card__tick::after { left: 6px; top: 4px; }
  .moods { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pains { grid-template-columns: 1fr; }
  .diag { grid-template-columns: 1fr; }
  .diag__stat { min-width: 0; }
  .q-demo { grid-template-columns: 1fr; }
  .q-demo .mono { grid-row: auto; }
  .mood__name { font-size: 14px; }
  .chip span { min-height: 42px; padding: 9px 16px; font-size: 15px; }
  .chip--big span { min-height: 50px; font-size: 16px; }
  .q-field input, .q-field textarea { font-size: 19px; }
  .rc dl div { grid-template-columns: 96px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* Méthode rappelée sur les parcours « logiciel » */
.q-process { margin-top: 10px; padding: 24px; border-radius: 10px; background: var(--bone); color: var(--ink); }
.q-process > .mono { color: rgba(11, 11, 10, .55); margin-bottom: 18px; }
.q-process ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.q-process li { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 2px solid rgba(11, 11, 10, .2); }
.q-process li:nth-child(3) { border-top: 4px solid var(--accent); padding-top: 12px; }
.q-process li:nth-child(4) { border-top: 2px dashed var(--accent); }
.q-process li b { color: var(--accent); font-weight: 400; }
.q-process li span { font-size: 17px; line-height: 1.15; font-variation-settings: "wdth" 100, "wght" 640; }
.q-process li small { color: rgba(11, 11, 10, .65); font-size: 13px; line-height: 1.4; }
.q-process__promise { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(11, 11, 10, .14); font-size: 16px; }
.q-process__promise em { font-family: var(--serif); font-style: italic; font-size: 1.15em; color: var(--accent); }
@media (max-width: 760px) { .q-process ol { grid-template-columns: 1fr 1fr; } }
