/* Quête « Créer ma micro-entreprise » (creer-mon-entreprise.html).
   Fond terracotta de la marque (.landing-bg, css/styles.css), contenu en
   cartes blanches par-dessus. Un seul niveau ouvert à la fois quand le JS
   tourne (.qx-js) ; sans JS, tout reste lisible (et indexable). */

:root {
  --terra: #c8502c;
  --qx-grad: linear-gradient(135deg, #e0722f 0%, #c94d1d 42%, #a63c11 100%);
  --qx-card: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 28px -20px rgba(16, 24, 40, .3);
  --qx-soft: #fff6ef;
  --qx-soft-line: #f8d2b4;
}
html { background: var(--bg); }
body { background: transparent; color: var(--ink); font-family: var(--font); }
.nav, .qx-hero, .qx, .qx-footer { position: relative; z-index: 1; }

/* Icônes (sprite en tête de page) */
.i {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.i-fill { fill: currentColor; stroke: none; }

/* Bouton principal : même pilule que .cta-create de la landing */
.qx-cta {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 10px 10px 22px; min-height: 48px; max-width: 100%;
  border: 0; border-radius: 100px;
  background: var(--qx-grad); color: #fff;
  font: inherit; font-size: 15px; font-weight: 650; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: 0 10px 26px -8px rgba(166, 60, 17, .55), 0 2px 6px rgba(28, 25, 23, .14), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, opacity .2s ease;
}
.qx-cta:visited { color: #fff; }
.qx-cta:not(:has(.arrow)) { padding: 10px 22px; }
.qx-cta .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, .18); transition: transform .25s ease;
}
@media (hover: hover) {
  .qx-cta:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(166, 60, 17, .6), 0 3px 8px rgba(28, 25, 23, .18); }
  .qx-cta:hover:not(:disabled) .arrow { transform: translateX(3px); }
}
.qx-cta:active:not(:disabled) { transform: scale(.98); }
.qx-cta:focus-visible { outline: 3px solid rgba(224, 114, 47, .45); outline-offset: 3px; }
.qx-cta:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.qx-cta-sm { min-height: 40px; padding: 8px 18px; font-size: 13.5px; }

.qx-link {
  background: none; border: 0; padding: 6px 4px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-3);
  text-decoration: underline; text-underline-offset: 3px;
}
.qx-link:hover { color: var(--ink); }

/* ── En-tête ── */
.qx-hero { max-width: 760px; margin: 0 auto; padding: 44px 20px 30px; text-align: center; }
.qx-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: 100px;
  font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 20px;
}
.qx-pill .i { width: 15px; height: 15px; color: var(--terra); }
.qx-hero h1 {
  font-size: clamp(34px, 6.6vw, 56px); font-weight: 750;
  letter-spacing: -.035em; line-height: 1.04; margin: 0;
}
.qx-hero h1 span {
  background: var(--qx-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.qx-hero-lead { font-size: 17.5px; line-height: 1.55; color: var(--ink-3); max-width: 560px; margin: 18px auto 0; }
.qx-score {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 26px;
  padding: 8px 18px 8px 8px; background: #fff; border-radius: 100px;
  border: 1px solid rgba(18, 18, 28, .07); box-shadow: var(--qx-card);
}
.qx-ring { width: 46px; height: 46px; transform: rotate(-90deg); }
.qx-ring circle { fill: none; stroke-width: 5; }
.qx-ring-bg { stroke: #f4e4d8; }
.qx-ring-fg { stroke: var(--terra); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset .6s cubic-bezier(.2, .8, .2, 1); }
.qx-score-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.qx-score-text strong { font-size: 14.5px; }
.qx-stars { display: inline-flex; gap: 2px; color: #ead9cc; }
.qx-stars .i { width: 15px; height: 15px; transition: color .3s ease, transform .3s ease; }
.qx-stars .i.on { color: #f59e0b; }
.qx-hero-actions { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.qx-hero-note { font-size: 13px; color: var(--ink-soft); max-width: 480px; margin: 18px auto 0; line-height: 1.5; }

/* ── Carte des niveaux ── */
.qx { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }
.qx-map {
  list-style: none; margin: 0 0 16px; padding: 16px 8px 12px;
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(18, 18, 28, .07);
  border-radius: 22px; box-shadow: var(--qx-card); scroll-margin-top: 12px;
}
.qx-map li { position: relative; }
/* Trait entre deux pastilles */
.qx-map li + li::before {
  content: ''; position: absolute; top: 21px; right: 50%; width: 100%; height: 3px;
  background: var(--line); border-radius: 3px;
}
.qx-map li.is-done + li::before { background: #eba57d; }
.qx-node {
  position: relative; z-index: 1; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--ink-soft);
}
.qx-node-dot {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line);
  font-size: 15px; font-weight: 700; color: var(--ink-3);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.qx-node-dot .i { width: 18px; height: 18px; }
.qx-node-label { font-size: 12px; font-weight: 600; white-space: nowrap; }
.is-done .qx-node-dot { background: var(--qx-grad); border-color: transparent; color: #fff; }
.is-current .qx-node-dot { border-color: var(--terra); color: var(--terra); box-shadow: 0 0 0 5px rgba(200, 80, 44, .14); transform: scale(1.06); }
.is-current .qx-node-label { color: var(--terra); }
.is-done.is-current .qx-node-dot { color: #fff; }
.is-locked .qx-node { cursor: not-allowed; }
.is-locked .qx-node-dot { background: #faf7f5; color: var(--ink-faint); }
.qx-node:focus-visible { outline: none; }
.qx-node:focus-visible .qx-node-dot { box-shadow: 0 0 0 4px rgba(224, 114, 47, .45); }

/* ── Un niveau ── */
.qx-level {
  background: #fff; border: 1px solid rgba(18, 18, 28, .07); border-radius: 22px;
  box-shadow: var(--qx-card); padding: 28px; margin-bottom: 18px; scroll-margin-top: 12px;
}
.qx-js .qx-level:not(.is-open) { display: none; }
.qx-js .qx-level.is-open { animation: qx-in .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes qx-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.qx-level-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.qx-level-icon {
  width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fff1e6, #fdd9bf); color: var(--terra);
}
.qx-level-icon .i { width: 26px; height: 26px; }
.qx-kicker { margin: 0 0 3px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--terra); }
.qx-level h2 { margin: 0; font-size: clamp(23px, 4.6vw, 29px); font-weight: 750; letter-spacing: -.025em; line-height: 1.15; }
.qx-level-body p, .qx-level-body li { font-size: 15.5px; line-height: 1.6; color: var(--ink-3); }
.qx-level-body p { margin: 0 0 12px; }
.qx-level-body h3 { margin: 24px 0 10px; font-size: 16.5px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.qx-level-body a { color: var(--terra); font-weight: 600; }
.qx-level-body a.qx-cta { color: #fff; }
.qx-lead { font-size: 17px !important; color: var(--ink-2) !important; }
.qx-note { font-size: 13.5px !important; color: var(--ink-soft) !important; line-height: 1.55 !important; }

.qx-duo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; margin: 16px 0 6px; }
.qx-box { padding: 16px 18px; border-radius: 16px; background: var(--bg-subtle); border: 1px solid var(--line-2); }
.qx-box h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15.5px; }
.qx-box h3 .i { width: 18px; height: 18px; color: var(--ink-soft); }
.qx-box.is-yes { background: var(--qx-soft); border-color: var(--qx-soft-line); }
.qx-box.is-yes h3 .i { color: var(--terra); }
.qx-box ul { margin: 0; padding-left: 18px; }
.qx-box li { font-size: 14.5px; margin-bottom: 4px; }

.qx-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qx-perk { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--bg-subtle); }
.qx-perk .i { color: var(--terra); margin-top: 2px; }
.qx-perk p { margin: 0; font-size: 14px; line-height: 1.45; }
.qx-perk strong { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 2px; }
.qx-faq { list-style: none; padding: 0; margin: 0; }
.qx-faq li { padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.qx-faq li:last-child { border-bottom: 0; }
.qx-faq strong { color: var(--ink); }

/* Choix du profil */
.qx-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.qx-choice {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff;
  cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
  font-size: 13.5px; line-height: 1.45; color: var(--ink-soft);
}
.qx-choice-wide { grid-column: 1 / -1; }
.qx-choice input, .qx-pill-choice input { position: absolute; opacity: 0; pointer-events: none; }
.qx-choice strong { display: block; font-size: 15px; color: var(--ink); margin-bottom: 1px; }
.qx-choice-icon {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; background: var(--bg-subtle); color: var(--ink-3);
  transition: background .2s ease, color .2s ease;
}
@media (hover: hover) { .qx-choice:hover { border-color: #e9b393; transform: translateY(-2px); } }
.qx-choice.is-checked { border-color: var(--terra); background: var(--qx-soft); box-shadow: 0 0 0 3px rgba(200, 80, 44, .12); }
.qx-choice.is-checked .qx-choice-icon { background: var(--qx-grad); color: #fff; }
.qx-choice:has(input:focus-visible), .qx-pill-choice:has(input:focus-visible) span { outline: 3px solid rgba(224, 114, 47, .45); outline-offset: 2px; }

.qx-result {
  margin: 16px 0 12px; padding: 18px; border-radius: 18px;
  background: linear-gradient(135deg, var(--qx-soft), #fff 70%); border: 1px solid var(--qx-soft-line);
}
.qx-result.is-warn { background: #fffbeb; border-color: #fde68a; }
.qx-result p { font-size: 14.5px !important; }
.qx-result-title { font-size: 16.5px !important; color: var(--ink) !important; margin-bottom: 6px !important; }
.qx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.qx-stats div { background: #fff; border-radius: 14px; padding: 12px; border: 1px solid #f6e3d5; }
.qx-stats b { display: block; font-size: 22px; letter-spacing: -.02em; color: var(--terra); margin-bottom: 2px; }
.qx-stats span { display: block; font-size: 12.5px; line-height: 1.4; color: var(--ink-soft); }
.qx-ext { display: inline-flex; align-items: center; gap: 5px; }
.qx-ext .i { width: 15px; height: 15px; }

.qx-warn {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; margin: 10px 0; border-radius: 14px;
  background: #fffbeb; border: 1px solid #fde68a;
}
.qx-warn .i { color: #b45309; margin-top: 2px; }
.qx-warn p { margin: 0 !important; font-size: 14px !important; color: #78350f !important; }
.qx-warn a { color: #92400e !important; }

/* Sac à dos */
.qx-bag-progress { height: 8px; border-radius: 8px; background: #f4e4d8; overflow: hidden; margin: 4px 0 14px; }
.qx-bag-progress span { display: block; height: 100%; width: 0; background: var(--qx-grad); border-radius: 8px; transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.qx-bag { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.qx-bag li { border: 1.5px solid var(--line); border-radius: 16px; transition: border-color .2s ease, background .2s ease; }
.qx-bag li.is-checked { border-color: var(--qx-soft-line); background: var(--qx-soft); }
.qx-bag label { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; cursor: pointer; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.qx-bag strong { color: var(--ink); }
.qx-bag input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 24px; height: 24px; margin: 0; border-radius: 8px;
  border: 2px solid #d6d3d1; background: #fff center / 16px no-repeat; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.qx-bag input[type="checkbox"]:checked {
  border-color: transparent; background-color: #c94d1d; transform: scale(1.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.qx-bag input[type="checkbox"]:focus-visible { outline: 3px solid rgba(224, 114, 47, .45); outline-offset: 2px; }
.qx-activity { padding: 0 14px 12px 50px; }
.qx-activity input {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; outline: none;
}
.qx-activity input:focus { border-color: var(--terra); box-shadow: 0 0 0 3px rgba(200, 80, 44, .12); }
.qx-activity .qx-note { margin: 6px 0 0 !important; }

/* Les 3 choix */
.qx-q { padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.qx-q:last-child { border-bottom: 0; padding-bottom: 0; }
.qx-q h3 { display: flex; align-items: center; gap: 10px; margin-top: 0 !important; }
.qx-q-num {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 13px; color: #fff; background: var(--qx-grad);
}
.qx-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.qx-pill-choice { position: relative; cursor: pointer; }
.qx-pill-choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 100px; border: 1.5px solid var(--line); background: #fff;
  font-size: 14.5px; font-weight: 600; color: var(--ink-3);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.qx-pill-choice.is-checked span { border-color: var(--terra); background: var(--qx-soft); color: var(--terra); }
[data-when] { display: none; }
[data-when].is-on { display: block; }

/* Envoi */
.qx-gov {
  display: flex; align-items: center; gap: 14px; margin: 6px 0 10px;
  padding: 16px 18px; border-radius: 18px; text-decoration: none;
  background: #1c1917; color: #fff !important;
  box-shadow: 0 14px 30px -14px rgba(28, 25, 23, .55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.qx-gov:visited { color: #fff; }
.qx-gov > .i:first-child { width: 30px; height: 30px; color: #f5a06c; }
.qx-gov span { flex: 1; font-weight: 500; font-size: 13.5px; color: #d6d3d1; line-height: 1.35; }
.qx-gov strong { display: block; font-size: 17px; color: #fff; }
@media (hover: hover) { .qx-gov:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px rgba(28, 25, 23, .6); } }
.qx-steps { margin: 0; padding-left: 22px; }
.qx-steps li { margin-bottom: 6px; }
.qx-steps li::marker { color: var(--terra); font-weight: 700; }
/* Antisèche : les réponses des niveaux 2 à 4, cochées une à une */
.qx-cheat {
  margin: 20px 0 14px; padding: 16px 18px 4px; border-radius: 18px;
  background: var(--qx-soft); border: 1px solid #f3dcc6;
}
.qx-cheat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qx-level-body .qx-cheat-title { margin: 0; font-size: 16.5px; font-weight: 750; color: var(--ink); letter-spacing: -.01em; }
.qx-cheat-count {
  flex-shrink: 0; padding: 3px 10px; border-radius: 100px;
  background: #fff; border: 1px solid #f0d6bd;
  font-size: 12.5px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.qx-cheat-count.is-full { background: var(--terra); border-color: var(--terra); color: #fff; }
.qx-level-body .qx-cheat-sub { margin: 2px 0 6px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.qx-cheat-list { list-style: none; margin: 0; padding: 0; }
.qx-level-body .qx-cheat-list li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px;
  align-items: center; margin: 0; padding: 12px 0; line-height: 1.4;
  border-top: 1px solid #f3e1cf;
}
.qx-level-body .qx-cheat-list li:first-child { border-top: 0; }
.qx-cheat-mark {
  grid-column: 1; grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; color: transparent;
  border: 1.5px dashed #e2c4a6; background: #fff;
}
.qx-cheat-mark .i { width: 14px; height: 14px; stroke-width: 3; }
.qx-cheat-list li.is-set .qx-cheat-mark { border: 0; background: var(--qx-grad); color: #fff; }
.qx-cheat-label { grid-column: 2; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.qx-cheat-value { grid-column: 2 / 4; font-size: 15.5px; font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }
#cheat-phrase .qx-cheat-value { font-weight: 550; }
#cheat-phrase .qx-cheat-value::before { content: '«\00a0'; color: var(--terra); }
#cheat-phrase .qx-cheat-value::after { content: '\00a0»'; color: var(--terra); }
.qx-cheat-todo {
  grid-column: 2 / 4; justify-self: start; padding: 0; border: 0; background: none;
  font: inherit; font-size: 14.5px; font-weight: 600; color: var(--terra); text-align: left; cursor: pointer;
}
.qx-cheat-copy {
  grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 10px; border-radius: 100px; border: 1px solid #f0d6bd; background: #fff;
  font: inherit; font-size: 13px; font-weight: 650; color: var(--terra); cursor: pointer;
}
.qx-cheat-copy .i { width: 15px; height: 15px; }
.qx-cheat-list li:not(.is-set) .qx-cheat-value,
.qx-cheat-list li:not(.is-set) .qx-cheat-copy,
.qx-cheat-list li.is-set .qx-cheat-todo { display: none; }
.qx-cheat-todo:focus-visible, .qx-cheat-copy:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 8px; }
@media (hover: hover) {
  .qx-cheat-todo:hover { text-decoration: underline; text-underline-offset: 3px; }
  .qx-cheat-copy:hover { border-color: var(--terra); }
}

/* SIREN */
.qx-wait { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--bg-subtle); margin-bottom: 12px; }
.qx-wait .i { color: var(--terra); margin-top: 3px; }
.qx-wait p { margin: 0 !important; font-size: 14.5px !important; }
.qx-siren-form { margin: 18px 0 0; }
.qx-siren-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.qx-siren-row { display: flex; gap: 8px; }
.qx-siren-row input {
  flex: 1; min-width: 0; padding: 12px 16px; border-radius: 100px; border: 1.5px solid var(--line);
  font: inherit; font-size: 18px; letter-spacing: .06em; color: var(--ink); background: #fff; outline: none;
}
.qx-siren-row input:focus { border-color: var(--terra); box-shadow: 0 0 0 3px rgba(200, 80, 44, .12); }
.qx-siren-row .qx-cta { padding: 10px 20px; flex-shrink: 0; }
.qx-siren-form .qx-note { margin-top: 8px !important; }
.qx-msg { margin-top: 14px; padding: 14px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.qx-msg.is-error { background: var(--danger-bg); color: var(--danger); }
.qx-msg.is-info { background: var(--bg-subtle); color: var(--ink-3); }
.qx-company {
  margin-top: 14px; padding: 18px; border-radius: 18px;
  background: var(--success-bg); border: 1px solid #a7f3d0;
}
.qx-company-head { display: flex; align-items: center; gap: 8px; color: var(--success); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.qx-company-name { font-size: 19px; font-weight: 750; letter-spacing: -.02em; color: var(--ink); margin: 0 0 4px; }
.qx-company p { margin: 0 0 4px !important; font-size: 14.5px !important; }
.qx-company-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.qx-btn-ghost {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 100px;
  border: 1.5px solid rgba(18, 18, 28, .14); background: #fff; color: var(--ink) !important;
  font-weight: 650; font-size: 14.5px; text-decoration: none;
}
.qx-win {
  margin-top: 20px; padding: 26px 20px; border-radius: 20px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #ffe3cc 0%, #fff6ef 55%, #fff 100%);
  border: 1px solid var(--qx-soft-line);
}
.qx-badge { width: 104px; height: 104px; margin: 0 auto 10px; animation: qx-pop .7s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes qx-pop { from { transform: scale(.3) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
.qx-win-title { font-size: 21px !important; font-weight: 750; letter-spacing: -.02em; color: var(--ink) !important; margin-bottom: 6px !important; }

/* Pied du niveau */
.qx-level-foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2);
}
.qx-level-foot .qx-cta { margin-left: auto; }
.qx-reward { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #b45309; }
.qx-reward .i { width: 17px; height: 17px; color: #f59e0b; }
.qx-need { font-size: 13px; color: var(--ink-soft); }
.qx-need[hidden] { display: none; }

/* Règles du jeu */
.qx-rules-wrap { margin: 34px 0 10px; }
.qx-rules-wrap h2 { font-size: clamp(22px, 4.4vw, 28px); font-weight: 750; letter-spacing: -.025em; margin: 0 0 6px; }
.qx-rules-sub { margin: 0 0 16px; color: var(--ink-3); font-size: 15.5px; }
.qx-rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.qx-rule {
  background: #fff; border: 1px solid rgba(18, 18, 28, .07); border-radius: 22px;
  box-shadow: var(--qx-card); padding: 18px 20px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
@media (hover: hover) {
  .qx-rule:hover { transform: translateY(-4px); border-color: var(--terra); box-shadow: 0 20px 40px -12px rgba(50, 50, 93, .15); }
}
.qx-rule strong { display: block; font-size: 15.5px; margin-bottom: 4px; }
.qx-rule p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-3); }

/* Sources */
.qx-sources { margin-top: 26px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(18, 18, 28, .07); }
.qx-sources p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
.qx-sources summary { cursor: pointer; font-size: 13.5px; font-weight: 700; }
.qx-sources ul { margin: 10px 0 0; padding-left: 18px; }
.qx-sources li { font-size: 13px; line-height: 1.5; margin-bottom: 4px; }
.qx-sources a { color: var(--ink-3); }
.qx-reset { font-size: 13px; margin-top: 8px; color: var(--ink-soft); }

.qx-footer {
  max-width: 760px; margin: 0 auto; padding: 24px 16px 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-soft);
}
.qx-footer-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.qx-footer-links a { color: inherit; text-decoration: none; }

/* Toast et confettis */
.qx-toast {
  position: fixed; left: 16px; right: 16px; bottom: 24px; z-index: 100001;
  width: max-content; max-width: calc(100vw - 32px); margin: 0 auto;
  transform: translateY(160%); opacity: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 100px; background: #1c1917; color: #fff;
  font-size: 14.5px; font-weight: 650; white-space: nowrap;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .45);
  transition: transform .4s cubic-bezier(.2, 1.2, .4, 1), opacity .3s ease;
  pointer-events: none;
}
.qx-toast .i { width: 17px; height: 17px; color: #f59e0b; }
.qx-toast.show { transform: none; opacity: 1; }
.qx-confetti { position: fixed; inset: 0; z-index: 100000; pointer-events: none; overflow: hidden; }
.qx-confetti i {
  position: absolute; top: -16px; width: 8px; height: 14px; border-radius: 2px;
  animation: qx-fall 1.7s cubic-bezier(.25, .6, .45, 1) forwards;
}
@keyframes qx-fall { to { transform: translate(var(--dx), 108vh) rotate(var(--r)); } }

@media (prefers-reduced-motion: reduce) {
  .qx-js .qx-level.is-open, .qx-badge { animation: none; }
  .qx-cta, .qx-choice, .qx-rule, .qx-toast, .qx-ring-fg { transition: none; }
}

/* ── Mobile ── */
@media (max-width: 700px) {
  .nav { padding: 14px 16px; }
  .qx-hero { padding: 26px 16px 22px; }
  .qx-hero-lead { font-size: 16px; }
  .qx { padding: 0 12px 36px; }
  .qx-level { padding: 20px 18px; border-radius: 20px; }
  .qx-duo, .qx-perks, .qx-choices, .qx-rules { grid-template-columns: 1fr; }
  .qx-stats { grid-template-columns: 1fr 1fr; }
  .qx-stats div:last-child { grid-column: 1 / -1; }
  .qx-activity { padding: 0 12px 12px 12px; }
  .qx-level-foot .qx-cta { width: 100%; margin-left: 0; }
  .qx-need { width: 100%; text-align: center; order: 3; }
  .qx-level-head { align-items: flex-start; }
  .qx-level-icon { width: 44px; height: 44px; border-radius: 14px; }
  .qx-level-icon .i { width: 22px; height: 22px; }
  .qx-toast { bottom: 92px; }
}
@media (max-width: 480px) {
  .qx-map { padding: 12px 4px 10px; }
  .qx-node-dot { width: 36px; height: 36px; font-size: 13.5px; }
  .qx-map li + li::before { top: 17px; }
  .qx-node-label { font-size: 10.5px; }
  .qx-siren-row { flex-direction: column; }
  .qx-siren-row .qx-cta { width: 100%; }
  .qx-toast { white-space: normal; text-align: center; }
}

/* Contenu qui dépend du profil choisi au niveau 2 (sans JS : tout visible) */
.qx-js [data-profile]:not(.is-on) { display: none; }
